Compare commits
No commits in common. "5af1afd8ba01e3c18b1aedc427d53e583832f344" and "ac31dc2010bffea57830cb35b2d5f4dadb4f5cdd" have entirely different histories.
5af1afd8ba
...
ac31dc2010
|
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"mcpServers": {
|
|
||||||
"maestro": {
|
|
||||||
"transport": "stdio",
|
|
||||||
"enabled": true,
|
|
||||||
"command": ["maestro", "mcp"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -196,9 +196,7 @@ export default function EditProduct() {
|
||||||
name: values.name,
|
name: values.name,
|
||||||
shortDescription: values.shortDescription || undefined,
|
shortDescription: values.shortDescription || undefined,
|
||||||
longDescription: values.longDescription || undefined,
|
longDescription: values.longDescription || undefined,
|
||||||
// Null (global product) becomes undefined: the backend falls back to
|
regionId: values.regionId,
|
||||||
// the staffer's region, which is the desired regional scoping.
|
|
||||||
regionId: values.regionId ?? undefined,
|
|
||||||
productType: values.productType,
|
productType: values.productType,
|
||||||
incrementStep: 1,
|
incrementStep: 1,
|
||||||
skus,
|
skus,
|
||||||
|
|
|
||||||
30
apps/admin-ui/ios/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# OSX
|
||||||
|
#
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Xcode
|
||||||
|
#
|
||||||
|
build/
|
||||||
|
*.pbxuser
|
||||||
|
!default.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
!default.mode1v3
|
||||||
|
*.mode2v3
|
||||||
|
!default.mode2v3
|
||||||
|
*.perspectivev3
|
||||||
|
!default.perspectivev3
|
||||||
|
xcuserdata
|
||||||
|
*.xccheckout
|
||||||
|
*.moved-aside
|
||||||
|
DerivedData
|
||||||
|
*.hmap
|
||||||
|
*.ipa
|
||||||
|
*.xcuserstate
|
||||||
|
project.xcworkspace
|
||||||
|
.xcode.env.local
|
||||||
|
|
||||||
|
# Bundle artifacts
|
||||||
|
*.jsbundle
|
||||||
|
|
||||||
|
# CocoaPods
|
||||||
|
/Pods/
|
||||||
11
apps/admin-ui/ios/.xcode.env
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
# This `.xcode.env` file is versioned and is used to source the environment
|
||||||
|
# used when running script phases inside Xcode.
|
||||||
|
# To customize your local environment, you can create an `.xcode.env.local`
|
||||||
|
# file that is not versioned.
|
||||||
|
|
||||||
|
# NODE_BINARY variable contains the PATH to the node executable.
|
||||||
|
#
|
||||||
|
# Customize the NODE_BINARY variable here.
|
||||||
|
# For example, to use nvm with brew, add the following line
|
||||||
|
# . "$(brew --prefix nvm)/nvm.sh" --no-use
|
||||||
|
export NODE_BINARY=$(command -v node)
|
||||||
555
apps/admin-ui/ios/FreshyoAdmin.xcodeproj/project.pbxproj
Normal file
|
|
@ -0,0 +1,555 @@
|
||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 54;
|
||||||
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
|
||||||
|
3600E50E647D2AB5602E4C5A /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = C3AE1E8BC1667055BBDF4408 /* PrivacyInfo.xcprivacy */; };
|
||||||
|
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
|
||||||
|
87A288A0F5F7156FA6323043 /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2F4911A595766C5F1C188E0 /* ExpoModulesProvider.swift */; };
|
||||||
|
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
|
||||||
|
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F11748412D0307B40044C1D9 /* AppDelegate.swift */; };
|
||||||
|
FBC089081ACEB42560FD9605 /* libPods-FreshyoAdmin.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72F9434E2E25D4F6E3895340 /* libPods-FreshyoAdmin.a */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXFileReference section */
|
||||||
|
13B07F961A680F5B00A75B9A /* FreshyoAdmin.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FreshyoAdmin.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = FreshyoAdmin/Images.xcassets; sourceTree = "<group>"; };
|
||||||
|
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = FreshyoAdmin/Info.plist; sourceTree = "<group>"; };
|
||||||
|
72F9434E2E25D4F6E3895340 /* libPods-FreshyoAdmin.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-FreshyoAdmin.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
8D1B7A489F8C992C37CA905E /* Pods-FreshyoAdmin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FreshyoAdmin.release.xcconfig"; path = "Target Support Files/Pods-FreshyoAdmin/Pods-FreshyoAdmin.release.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = FreshyoAdmin/SplashScreen.storyboard; sourceTree = "<group>"; };
|
||||||
|
B64C0365DD0A717B110770E3 /* Pods-FreshyoAdmin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FreshyoAdmin.debug.xcconfig"; path = "Target Support Files/Pods-FreshyoAdmin/Pods-FreshyoAdmin.debug.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
|
||||||
|
C3AE1E8BC1667055BBDF4408 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = FreshyoAdmin/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
|
||||||
|
E2F4911A595766C5F1C188E0 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-FreshyoAdmin/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
|
||||||
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
||||||
|
F11748412D0307B40044C1D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = FreshyoAdmin/AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
|
F11748442D0722820044C1D9 /* FreshyoAdmin-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "FreshyoAdmin-Bridging-Header.h"; path = "FreshyoAdmin/FreshyoAdmin-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
FBC089081ACEB42560FD9605 /* libPods-FreshyoAdmin.a in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
13B07FAE1A68108700A75B9A /* FreshyoAdmin */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
F11748412D0307B40044C1D9 /* AppDelegate.swift */,
|
||||||
|
F11748442D0722820044C1D9 /* FreshyoAdmin-Bridging-Header.h */,
|
||||||
|
BB2F792B24A3F905000567C9 /* Supporting */,
|
||||||
|
13B07FB51A68108700A75B9A /* Images.xcassets */,
|
||||||
|
13B07FB61A68108700A75B9A /* Info.plist */,
|
||||||
|
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
|
||||||
|
C3AE1E8BC1667055BBDF4408 /* PrivacyInfo.xcprivacy */,
|
||||||
|
);
|
||||||
|
name = FreshyoAdmin;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
|
||||||
|
72F9434E2E25D4F6E3895340 /* libPods-FreshyoAdmin.a */,
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
6B383365642FB5358C5BA8E5 /* Pods */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
B64C0365DD0A717B110770E3 /* Pods-FreshyoAdmin.debug.xcconfig */,
|
||||||
|
8D1B7A489F8C992C37CA905E /* Pods-FreshyoAdmin.release.xcconfig */,
|
||||||
|
);
|
||||||
|
name = Pods;
|
||||||
|
path = Pods;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
);
|
||||||
|
name = Libraries;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
83CBB9F61A601CBA00E9B192 = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
13B07FAE1A68108700A75B9A /* FreshyoAdmin */,
|
||||||
|
832341AE1AAA6A7D00B99B32 /* Libraries */,
|
||||||
|
83CBBA001A601CBA00E9B192 /* Products */,
|
||||||
|
2D16E6871FA4F8E400B85C8A /* Frameworks */,
|
||||||
|
6B383365642FB5358C5BA8E5 /* Pods */,
|
||||||
|
B10F8EED5A983C6DE2E09661 /* ExpoModulesProviders */,
|
||||||
|
);
|
||||||
|
indentWidth = 2;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
tabWidth = 2;
|
||||||
|
usesTabs = 0;
|
||||||
|
};
|
||||||
|
83CBBA001A601CBA00E9B192 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
13B07F961A680F5B00A75B9A /* FreshyoAdmin.app */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
B10F8EED5A983C6DE2E09661 /* ExpoModulesProviders */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
C237E6A59D03E99F8AEF2B4B /* FreshyoAdmin */,
|
||||||
|
);
|
||||||
|
name = ExpoModulesProviders;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
BB2F792B24A3F905000567C9 /* Supporting */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
BB2F792C24A3F905000567C9 /* Expo.plist */,
|
||||||
|
);
|
||||||
|
name = Supporting;
|
||||||
|
path = FreshyoAdmin/Supporting;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
C237E6A59D03E99F8AEF2B4B /* FreshyoAdmin */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
E2F4911A595766C5F1C188E0 /* ExpoModulesProvider.swift */,
|
||||||
|
);
|
||||||
|
name = FreshyoAdmin;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
13B07F861A680F5B00A75B9A /* FreshyoAdmin */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "FreshyoAdmin" */;
|
||||||
|
buildPhases = (
|
||||||
|
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
|
||||||
|
8254F6B70850498144945872 /* [Expo] Configure project */,
|
||||||
|
13B07F871A680F5B00A75B9A /* Sources */,
|
||||||
|
13B07F8C1A680F5B00A75B9A /* Frameworks */,
|
||||||
|
13B07F8E1A680F5B00A75B9A /* Resources */,
|
||||||
|
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
|
||||||
|
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
|
||||||
|
E1A945B7F366C375E22EF118 /* [CP] Embed Pods Frameworks */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = FreshyoAdmin;
|
||||||
|
productName = FreshyoAdmin;
|
||||||
|
productReference = 13B07F961A680F5B00A75B9A /* FreshyoAdmin.app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
|
/* Begin PBXProject section */
|
||||||
|
83CBB9F71A601CBA00E9B192 /* Project object */ = {
|
||||||
|
isa = PBXProject;
|
||||||
|
attributes = {
|
||||||
|
LastUpgradeCheck = 1130;
|
||||||
|
TargetAttributes = {
|
||||||
|
13B07F861A680F5B00A75B9A = {
|
||||||
|
LastSwiftMigration = 1250;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "FreshyoAdmin" */;
|
||||||
|
compatibilityVersion = "Xcode 3.2";
|
||||||
|
developmentRegion = en;
|
||||||
|
hasScannedForEncodings = 0;
|
||||||
|
knownRegions = (
|
||||||
|
en,
|
||||||
|
Base,
|
||||||
|
);
|
||||||
|
mainGroup = 83CBB9F61A601CBA00E9B192;
|
||||||
|
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
|
||||||
|
projectDirPath = "";
|
||||||
|
projectRoot = "";
|
||||||
|
targets = (
|
||||||
|
13B07F861A680F5B00A75B9A /* FreshyoAdmin */,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
|
13B07F8E1A680F5B00A75B9A /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
|
||||||
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
|
||||||
|
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
|
||||||
|
3600E50E647D2AB5602E4C5A /* PrivacyInfo.xcprivacy in Resources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
|
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
alwaysOutOfDate = 1;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "Bundle React Native code and images";
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios absolute | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n# Source .xcode.env.updates if it exists to allow\n# SKIP_BUNDLING to be unset if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.updates\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.updates\"\nfi\n# Source local changes to allow overrides\n# if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
|
||||||
|
};
|
||||||
|
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||||
|
"${PODS_ROOT}/Manifest.lock",
|
||||||
|
);
|
||||||
|
name = "[CP] Check Pods Manifest.lock";
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
"$(DERIVED_FILE_DIR)/Pods-FreshyoAdmin-checkManifestLockResult.txt",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-FreshyoAdmin/Pods-FreshyoAdmin-resources.sh",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXApplication/ExpoApplication_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/ExpoConstants_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXNotifications/ExpoNotifications_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXUpdates/EXUpdates.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoDevice/ExpoDevice_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoFileSystem/ExpoFileSystem_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoSystemUI/ExpoSystemUI_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ReachabilitySwift/ReachabilitySwift.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/glog/glog_privacy.bundle",
|
||||||
|
);
|
||||||
|
name = "[CP] Copy Pods Resources";
|
||||||
|
outputPaths = (
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoApplication_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoConstants_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoNotifications_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXUpdates.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoDevice_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoFileSystem_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoSystemUI_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ReachabilitySwift.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/glog_privacy.bundle",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FreshyoAdmin/Pods-FreshyoAdmin-resources.sh\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
8254F6B70850498144945872 /* [Expo] Configure project */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
alwaysOutOfDate = 1;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "[Expo] Configure project";
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-FreshyoAdmin/expo-configure-project.sh\"\n";
|
||||||
|
};
|
||||||
|
E1A945B7F366C375E22EF118 /* [CP] Embed Pods Frameworks */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-FreshyoAdmin/Pods-FreshyoAdmin-frameworks.sh",
|
||||||
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
|
||||||
|
);
|
||||||
|
name = "[CP] Embed Pods Frameworks";
|
||||||
|
outputPaths = (
|
||||||
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FreshyoAdmin/Pods-FreshyoAdmin-frameworks.sh\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
13B07F871A680F5B00A75B9A /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */,
|
||||||
|
87A288A0F5F7156FA6323043 /* ExpoModulesProvider.swift in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
13B07F941A680F5B00A75B9A /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = B64C0365DD0A717B110770E3 /* Pods-FreshyoAdmin.debug.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CODE_SIGN_ENTITLEMENTS = FreshyoAdmin/FreshyoAdmin.entitlements;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
ENABLE_BITCODE = NO;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"FB_SONARKIT_ENABLED=1",
|
||||||
|
);
|
||||||
|
INFOPLIST_FILE = FreshyoAdmin/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 1.0;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"-ObjC",
|
||||||
|
"-lc++",
|
||||||
|
);
|
||||||
|
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = in.freshyo.adminui;
|
||||||
|
PRODUCT_NAME = FreshyoAdmin;
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "FreshyoAdmin/FreshyoAdmin-Bridging-Header.h";
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
13B07F951A680F5B00A75B9A /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = 8D1B7A489F8C992C37CA905E /* Pods-FreshyoAdmin.release.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CODE_SIGN_ENTITLEMENTS = FreshyoAdmin/FreshyoAdmin.entitlements;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
INFOPLIST_FILE = FreshyoAdmin/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 1.0;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"-ObjC",
|
||||||
|
"-lc++",
|
||||||
|
);
|
||||||
|
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = in.freshyo.adminui;
|
||||||
|
PRODUCT_NAME = FreshyoAdmin;
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "FreshyoAdmin/FreshyoAdmin-Bridging-Header.h";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
83CBBA201A601CBA00E9B192 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
ENABLE_TESTABILITY = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"DEBUG=1",
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
/usr/lib/swift,
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
|
||||||
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
" ",
|
||||||
|
);
|
||||||
|
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
|
||||||
|
USE_HERMES = true;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
83CBBA211A601CBA00E9B192 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = YES;
|
||||||
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
/usr/lib/swift,
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
|
||||||
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
" ",
|
||||||
|
);
|
||||||
|
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
USE_HERMES = true;
|
||||||
|
VALIDATE_PRODUCT = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "FreshyoAdmin" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
13B07F941A680F5B00A75B9A /* Debug */,
|
||||||
|
13B07F951A680F5B00A75B9A /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "FreshyoAdmin" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
83CBBA201A601CBA00E9B192 /* Debug */,
|
||||||
|
83CBBA211A601CBA00E9B192 /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,88 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1130"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||||
|
BuildableName = "FreshyoAdmin.app"
|
||||||
|
BlueprintName = "FreshyoAdmin"
|
||||||
|
ReferencedContainer = "container:FreshyoAdmin.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
|
||||||
|
BuildableName = "FreshyoAdminTests.xctest"
|
||||||
|
BlueprintName = "FreshyoAdminTests"
|
||||||
|
ReferencedContainer = "container:FreshyoAdmin.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||||
|
BuildableName = "FreshyoAdmin.app"
|
||||||
|
BlueprintName = "FreshyoAdmin"
|
||||||
|
ReferencedContainer = "container:FreshyoAdmin.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||||
|
BuildableName = "FreshyoAdmin.app"
|
||||||
|
BlueprintName = "FreshyoAdmin"
|
||||||
|
ReferencedContainer = "container:FreshyoAdmin.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
10
apps/admin-ui/ios/FreshyoAdmin.xcworkspace/contents.xcworkspacedata
generated
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Workspace
|
||||||
|
version = "1.0">
|
||||||
|
<FileRef
|
||||||
|
location = "group:FreshyoAdmin.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
<FileRef
|
||||||
|
location = "group:Pods/Pods.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
</Workspace>
|
||||||
70
apps/admin-ui/ios/FreshyoAdmin/AppDelegate.swift
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
import Expo
|
||||||
|
import React
|
||||||
|
import ReactAppDependencyProvider
|
||||||
|
|
||||||
|
@UIApplicationMain
|
||||||
|
public class AppDelegate: ExpoAppDelegate {
|
||||||
|
var window: UIWindow?
|
||||||
|
|
||||||
|
var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
|
||||||
|
var reactNativeFactory: RCTReactNativeFactory?
|
||||||
|
|
||||||
|
public override func application(
|
||||||
|
_ application: UIApplication,
|
||||||
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
||||||
|
) -> Bool {
|
||||||
|
let delegate = ReactNativeDelegate()
|
||||||
|
let factory = ExpoReactNativeFactory(delegate: delegate)
|
||||||
|
delegate.dependencyProvider = RCTAppDependencyProvider()
|
||||||
|
|
||||||
|
reactNativeDelegate = delegate
|
||||||
|
reactNativeFactory = factory
|
||||||
|
bindReactNativeFactory(factory)
|
||||||
|
|
||||||
|
#if os(iOS) || os(tvOS)
|
||||||
|
window = UIWindow(frame: UIScreen.main.bounds)
|
||||||
|
factory.startReactNative(
|
||||||
|
withModuleName: "main",
|
||||||
|
in: window,
|
||||||
|
launchOptions: launchOptions)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Linking API
|
||||||
|
public override func application(
|
||||||
|
_ app: UIApplication,
|
||||||
|
open url: URL,
|
||||||
|
options: [UIApplication.OpenURLOptionsKey: Any] = [:]
|
||||||
|
) -> Bool {
|
||||||
|
return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Universal Links
|
||||||
|
public override func application(
|
||||||
|
_ application: UIApplication,
|
||||||
|
continue userActivity: NSUserActivity,
|
||||||
|
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
|
||||||
|
) -> Bool {
|
||||||
|
let result = RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
|
||||||
|
return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
|
||||||
|
// Extension point for config-plugins
|
||||||
|
|
||||||
|
override func sourceURL(for bridge: RCTBridge) -> URL? {
|
||||||
|
// needed to return the correct URL for expo-dev-client.
|
||||||
|
bridge.bundleURL ?? bundleURL()
|
||||||
|
}
|
||||||
|
|
||||||
|
override func bundleURL() -> URL? {
|
||||||
|
#if DEBUG
|
||||||
|
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
|
||||||
|
#else
|
||||||
|
return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
//
|
||||||
|
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||||
|
//
|
||||||
8
apps/admin-ui/ios/FreshyoAdmin/FreshyoAdmin.entitlements
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>aps-environment</key>
|
||||||
|
<string>development</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
After Width: | Height: | Size: 884 KiB |
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"filename": "App-Icon-1024x1024@1x.png",
|
||||||
|
"idiom": "universal",
|
||||||
|
"platform": "ios",
|
||||||
|
"size": "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"colors": [
|
||||||
|
{
|
||||||
|
"color": {
|
||||||
|
"components": {
|
||||||
|
"alpha": "1.000",
|
||||||
|
"blue": "1.00000000000000",
|
||||||
|
"green": "1.00000000000000",
|
||||||
|
"red": "1.00000000000000"
|
||||||
|
},
|
||||||
|
"color-space": "srgb"
|
||||||
|
},
|
||||||
|
"idiom": "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
23
apps/admin-ui/ios/FreshyoAdmin/Images.xcassets/SplashScreenLogo.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"idiom": "universal",
|
||||||
|
"filename": "image.png",
|
||||||
|
"scale": "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom": "universal",
|
||||||
|
"filename": "image@2x.png",
|
||||||
|
"scale": "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom": "universal",
|
||||||
|
"filename": "image@3x.png",
|
||||||
|
"scale": "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
apps/admin-ui/ios/FreshyoAdmin/Images.xcassets/SplashScreenLogo.imageset/image.png
vendored
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
apps/admin-ui/ios/FreshyoAdmin/Images.xcassets/SplashScreenLogo.imageset/image@2x.png
vendored
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
apps/admin-ui/ios/FreshyoAdmin/Images.xcassets/SplashScreenLogo.imageset/image@3x.png
vendored
Normal file
|
After Width: | Height: | Size: 271 KiB |
132
apps/admin-ui/ios/FreshyoAdmin/Info.plist
Normal file
|
|
@ -0,0 +1,132 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||||
|
<true/>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>Freshyo Admin</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>$(PRODUCT_NAME)</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0.0</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleURLTypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleURLSchemes</key>
|
||||||
|
<array>
|
||||||
|
<string>freshyoadmin</string>
|
||||||
|
<string>in.freshyo.adminui</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleURLSchemes</key>
|
||||||
|
<array>
|
||||||
|
<string>exp+freshyoadmin</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1</string>
|
||||||
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
|
<false/>
|
||||||
|
<key>LSApplicationQueriesSchemes</key>
|
||||||
|
<array>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
<string>ppemerchantsdkv1</string>
|
||||||
|
<string>ppemerchantsdkv2</string>
|
||||||
|
<string>ppemerchantsdkv3</string>
|
||||||
|
<string>paytmmp</string>
|
||||||
|
<string>gpay</string>
|
||||||
|
</array>
|
||||||
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
<string>12.0</string>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>NSAppTransportSecurity</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSAllowsArbitraryLoads</key>
|
||||||
|
<false/>
|
||||||
|
<key>NSAllowsLocalNetworking</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>NSFaceIDUsageDescription</key>
|
||||||
|
<string>Allow $(PRODUCT_NAME) to access your Face ID biometric data.</string>
|
||||||
|
<key>NSUserActivityTypes</key>
|
||||||
|
<array>
|
||||||
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route</string>
|
||||||
|
</array>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>SplashScreen</string>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>UIRequiresFullScreen</key>
|
||||||
|
<false/>
|
||||||
|
<key>UIStatusBarStyle</key>
|
||||||
|
<string>UIStatusBarStyleDefault</string>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UIUserInterfaceStyle</key>
|
||||||
|
<string>Automatic</string>
|
||||||
|
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
48
apps/admin-ui/ios/FreshyoAdmin/PrivacyInfo.xcprivacy
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPITypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPIType</key>
|
||||||
|
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
||||||
|
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||||
|
<array>
|
||||||
|
<string>C617.1</string>
|
||||||
|
<string>0A2A.1</string>
|
||||||
|
<string>3B52.1</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPIType</key>
|
||||||
|
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||||
|
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||||
|
<array>
|
||||||
|
<string>CA92.1</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPIType</key>
|
||||||
|
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
||||||
|
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||||
|
<array>
|
||||||
|
<string>35F9.1</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPIType</key>
|
||||||
|
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
|
||||||
|
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||||
|
<array>
|
||||||
|
<string>E174.1</string>
|
||||||
|
<string>85F4.1</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>NSPrivacyCollectedDataTypes</key>
|
||||||
|
<array/>
|
||||||
|
<key>NSPrivacyTracking</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
42
apps/admin-ui/ios/FreshyoAdmin/SplashScreen.storyboard
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="EXPO-VIEWCONTROLLER-1">
|
||||||
|
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
|
||||||
|
<capability name="Named colors" minToolsVersion="9.0"/>
|
||||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<scene sceneID="EXPO-SCENE-1">
|
||||||
|
<objects>
|
||||||
|
<viewController storyboardIdentifier="SplashScreenViewController" id="EXPO-VIEWCONTROLLER-1" sceneMemberID="viewController">
|
||||||
|
<view key="view" userInteractionEnabled="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="EXPO-ContainerView" userLabel="ContainerView">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<imageView id="EXPO-SplashScreen" userLabel="SplashScreenLogo" image="SplashScreenLogo" contentMode="scaleAspectFit" clipsSubviews="true" userInteractionEnabled="false" translatesAutoresizingMaskIntoConstraints="false">
|
||||||
|
<rect key="frame" x="96.5" y="326" width="200" height="200"/>
|
||||||
|
</imageView>
|
||||||
|
</subviews>
|
||||||
|
<viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="EXPO-SplashScreen" firstAttribute="centerX" secondItem="EXPO-ContainerView" secondAttribute="centerX" id="cad2ab56f97c5429bf29decf850647a4216861d4"/>
|
||||||
|
<constraint firstItem="EXPO-SplashScreen" firstAttribute="centerY" secondItem="EXPO-ContainerView" secondAttribute="centerY" id="1a145271b085b6ce89b1405a310f5b1bb7656595"/>
|
||||||
|
</constraints>
|
||||||
|
<color key="backgroundColor" name="SplashScreenBackground"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="0.0" y="0.0"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
<resources>
|
||||||
|
<image name="SplashScreenLogo" width="200" height="200"/>
|
||||||
|
<namedColor name="SplashScreenBackground">
|
||||||
|
<color alpha="1.000" blue="1.00000000000000" green="1.00000000000000" red="1.00000000000000" customColorSpace="sRGB" colorSpace="custom"/>
|
||||||
|
</namedColor>
|
||||||
|
</resources>
|
||||||
|
</document>
|
||||||
16
apps/admin-ui/ios/FreshyoAdmin/Supporting/Expo.plist
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>EXUpdatesCheckOnLaunch</key>
|
||||||
|
<string>ALWAYS</string>
|
||||||
|
<key>EXUpdatesEnabled</key>
|
||||||
|
<true/>
|
||||||
|
<key>EXUpdatesLaunchWaitMs</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
<key>EXUpdatesRuntimeVersion</key>
|
||||||
|
<string>1.0.0</string>
|
||||||
|
<key>EXUpdatesURL</key>
|
||||||
|
<string>https://u.expo.dev/55e2f200-eb9d-4880-a193-70f59320e054</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
64
apps/admin-ui/ios/Podfile
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
|
||||||
|
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
|
||||||
|
|
||||||
|
require 'json'
|
||||||
|
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
|
||||||
|
|
||||||
|
ENV['RCT_NEW_ARCH_ENABLED'] = '0' if podfile_properties['newArchEnabled'] == 'false'
|
||||||
|
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
|
||||||
|
|
||||||
|
platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
|
||||||
|
install! 'cocoapods',
|
||||||
|
:deterministic_uuids => false
|
||||||
|
|
||||||
|
prepare_react_native_project!
|
||||||
|
|
||||||
|
target 'FreshyoAdmin' do
|
||||||
|
use_expo_modules!
|
||||||
|
|
||||||
|
if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
|
||||||
|
config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
|
||||||
|
else
|
||||||
|
config_command = [
|
||||||
|
'npx',
|
||||||
|
'expo-modules-autolinking',
|
||||||
|
'react-native-config',
|
||||||
|
'--json',
|
||||||
|
'--platform',
|
||||||
|
'ios'
|
||||||
|
]
|
||||||
|
end
|
||||||
|
|
||||||
|
config = use_native_modules!(config_command)
|
||||||
|
|
||||||
|
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
|
||||||
|
use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
|
||||||
|
|
||||||
|
use_react_native!(
|
||||||
|
:path => config[:reactNativePath],
|
||||||
|
:hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
|
||||||
|
# An absolute path to your application root.
|
||||||
|
:app_path => "#{Pod::Config.instance.installation_root}/..",
|
||||||
|
:privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
|
||||||
|
)
|
||||||
|
|
||||||
|
post_install do |installer|
|
||||||
|
react_native_post_install(
|
||||||
|
installer,
|
||||||
|
config[:reactNativePath],
|
||||||
|
:mac_catalyst_enabled => false,
|
||||||
|
:ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
|
||||||
|
)
|
||||||
|
|
||||||
|
# This is necessary for Xcode 14, because it signs resource bundles by default
|
||||||
|
# when building for devices.
|
||||||
|
installer.target_installation_results.pod_target_installation_results
|
||||||
|
.each do |pod_name, target_installation_result|
|
||||||
|
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
|
||||||
|
resource_bundle_target.build_configurations.each do |config|
|
||||||
|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
2669
apps/admin-ui/ios/Podfile.lock
Normal file
5
apps/admin-ui/ios/Podfile.properties.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"expo.jsEngine": "hermes",
|
||||||
|
"EX_DEV_CLIENT_NETWORK_INSPECTOR": "true",
|
||||||
|
"newArchEnabled": "true"
|
||||||
|
}
|
||||||
|
|
@ -5,6 +5,7 @@ import * as Yup from 'yup'
|
||||||
import { MyTextInput, BottomDropdown, MyText, tw, ImageUploaderNeo, ImageUploaderNeoItem, ImageUploaderNeoPayload, Checkbox, InfoDialog } from 'common-ui'
|
import { MyTextInput, BottomDropdown, MyText, tw, ImageUploaderNeo, ImageUploaderNeoItem, ImageUploaderNeoPayload, Checkbox, InfoDialog } from 'common-ui'
|
||||||
import MaterialIcons from '@expo/vector-icons/MaterialIcons'
|
import MaterialIcons from '@expo/vector-icons/MaterialIcons'
|
||||||
import { trpc } from '../trpc-client'
|
import { trpc } from '../trpc-client'
|
||||||
|
import { useIsSuperAdmin } from '../../hooks/useIsSuperAdmin'
|
||||||
import type { CreateComboItemInput, CreateSkuInput } from '@packages/shared'
|
import type { CreateComboItemInput, CreateSkuInput } from '@packages/shared'
|
||||||
import type { SkuFeatureLike } from '@packages/shared'
|
import type { SkuFeatureLike } from '@packages/shared'
|
||||||
|
|
||||||
|
|
@ -152,7 +153,7 @@ const productValidationSchema = Yup.object().shape({
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
const makeProductValidationSchema = (regions: RegionOption[], onlyRegionId?: number | null) =>
|
const makeProductValidationSchema = (regions: RegionOption[]) =>
|
||||||
productValidationSchema.concat(
|
productValidationSchema.concat(
|
||||||
Yup.object().shape({
|
Yup.object().shape({
|
||||||
storeIdsByRegion: Yup.mixed().test(
|
storeIdsByRegion: Yup.mixed().test(
|
||||||
|
|
@ -160,13 +161,8 @@ const makeProductValidationSchema = (regions: RegionOption[], onlyRegionId?: num
|
||||||
'Store is required for every region',
|
'Store is required for every region',
|
||||||
function (value: any) {
|
function (value: any) {
|
||||||
if (this.parent?.availableInAllRegions !== true) return true
|
if (this.parent?.availableInAllRegions !== true) return true
|
||||||
// Regional staff editing a global product: only their own region
|
|
||||||
// must have a store. (Superadmin-role editors cover all regions.)
|
|
||||||
const applicable = onlyRegionId != null
|
|
||||||
? regions.filter((r) => r.id === onlyRegionId)
|
|
||||||
: regions
|
|
||||||
const map: Record<number, number> = value ?? {}
|
const map: Record<number, number> = value ?? {}
|
||||||
for (const region of applicable) {
|
for (const region of regions) {
|
||||||
const storeId = map[region.id]
|
const storeId = map[region.id]
|
||||||
if (storeId == null || Number(storeId) < 1) {
|
if (storeId == null || Number(storeId) < 1) {
|
||||||
return this.createError({
|
return this.createError({
|
||||||
|
|
@ -193,7 +189,7 @@ const collectErrorMessages = (errors: unknown, depth = 0): string[] => {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
type RegionStoreOption = { id: number; name: string; regionId?: number | null; availableInAllRegions?: boolean }
|
type RegionStoreOption = { id: number; name: string; regionId?: number }
|
||||||
type RegionOption = { id: number; name: string }
|
type RegionOption = { id: number; name: string }
|
||||||
|
|
||||||
// On edit, an all-regions product has no per-region store payload from the API,
|
// On edit, an all-regions product has no per-region store payload from the API,
|
||||||
|
|
@ -244,21 +240,10 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
clearImages: () => setVariantImages(initialValues.variants.map(() => [])),
|
clearImages: () => setVariantImages(initialValues.variants.map(() => [])),
|
||||||
}), [initialValues.variants])
|
}), [initialValues.variants])
|
||||||
|
|
||||||
// All-region products are managed from superadmin-ui only: the flag is
|
const isSuperAdmin = useIsSuperAdmin()
|
||||||
// hidden here (so global products can never be created from this app).
|
// Non-superadmins may not flip all-regions availability (backend 403s either
|
||||||
// Regional staff may still edit a global product, but every write applies
|
// direction); lock the checkbox on all-region products.
|
||||||
// to their own region only (backend scopes via the staffer's region).
|
const allRegionsLocked = !isSuperAdmin && !!initialValues.availableInAllRegions
|
||||||
const isAllRegionsProduct = !!initialValues.availableInAllRegions
|
|
||||||
|
|
||||||
// Staffer identity for scoping global-product edits. Superadmin-role staff
|
|
||||||
// keep the full per-region UI; everyone else is collapsed to their region.
|
|
||||||
const { data: selfData } = trpc.admin.staffUser.getSelf.useQuery(undefined, {
|
|
||||||
staleTime: Infinity,
|
|
||||||
retry: false,
|
|
||||||
})
|
|
||||||
const staffIsSuperAdmin = selfData?.staff?.roleName === 'super_admin'
|
|
||||||
const staffRegionId: number | null = selfData?.staff?.regionId ?? null
|
|
||||||
const editingGlobalAsRegional = isAllRegionsProduct && !staffIsSuperAdmin
|
|
||||||
|
|
||||||
const { data: storesData } = trpc.admin.store.getStores.useQuery()
|
const { data: storesData } = trpc.admin.store.getStores.useQuery()
|
||||||
const allStores: RegionStoreOption[] = useMemo(
|
const allStores: RegionStoreOption[] = useMemo(
|
||||||
|
|
@ -277,7 +262,7 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
)
|
)
|
||||||
const storesForRegion = (regionId: number) =>
|
const storesForRegion = (regionId: number) =>
|
||||||
allRegionsStores
|
allRegionsStores
|
||||||
.filter((store) => store.regionId === regionId || store.availableInAllRegions)
|
.filter((store) => store.regionId === regionId)
|
||||||
.map((store) => ({ label: store.name, value: store.id }))
|
.map((store) => ({ label: store.name, value: store.id }))
|
||||||
|
|
||||||
const { data: regionsData } = trpc.admin.region.getRegions.useQuery()
|
const { data: regionsData } = trpc.admin.region.getRegions.useQuery()
|
||||||
|
|
@ -285,21 +270,7 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
() => (regionsData?.regions || []).map((region) => ({ id: region.id, name: region.name })),
|
() => (regionsData?.regions || []).map((region) => ({ id: region.id, name: region.name })),
|
||||||
[regionsData]
|
[regionsData]
|
||||||
)
|
)
|
||||||
// Regions whose stores are editable in this form: just the staffer's own
|
const validationSchema = useMemo(() => makeProductValidationSchema(regions), [regions])
|
||||||
// when they are regionally editing a global product, else everything.
|
|
||||||
const editableRegions = useMemo(
|
|
||||||
() => (editingGlobalAsRegional && staffRegionId != null
|
|
||||||
? regions.filter((r) => r.id === staffRegionId)
|
|
||||||
: regions),
|
|
||||||
[editingGlobalAsRegional, staffRegionId, regions]
|
|
||||||
)
|
|
||||||
const staffRegionName = regions.find((r) => r.id === staffRegionId)?.name ?? 'your region'
|
|
||||||
const validationSchema = useMemo(
|
|
||||||
// -1 matches no region: while the staffer's region is still loading the
|
|
||||||
// check passes vacuously (the backend enforces region scope regardless).
|
|
||||||
() => makeProductValidationSchema(regions, editingGlobalAsRegional ? (staffRegionId ?? -1) : null),
|
|
||||||
[regions, editingGlobalAsRegional, staffRegionId]
|
|
||||||
)
|
|
||||||
|
|
||||||
const { data: skusData } = trpc.common.product.getAllSkusSummary.useQuery()
|
const { data: skusData } = trpc.common.product.getAllSkusSummary.useQuery()
|
||||||
const skuOptions = (skusData?.skus || []).map((sku) => ({
|
const skuOptions = (skusData?.skus || []).map((sku) => ({
|
||||||
|
|
@ -373,19 +344,26 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
enableReinitialize
|
enableReinitialize
|
||||||
>
|
>
|
||||||
{({ handleChange, handleSubmit, values, setFieldValue, validateForm }) => {
|
{({ handleChange, handleSubmit, values, setFieldValue, validateForm }) => {
|
||||||
// Name-match prefill source for the own-region store dropdown when a
|
const currentStoreName = storeOptions.find((option) => option.value === values.storeId)?.label
|
||||||
// regional staffer edits a global product (the API sends no per-region
|
const handleToggleAllRegions = () => {
|
||||||
// store payload, so match by the product's current store name).
|
if (allRegionsLocked) return
|
||||||
const editStoreName = allStores.find((s) => s.id === initialValues.storeId)?.name
|
const next = !values.availableInAllRegions
|
||||||
|
setFieldValue('availableInAllRegions', next)
|
||||||
|
if (next) {
|
||||||
|
const prefill: Record<number, number> = {}
|
||||||
|
if (currentStoreName) {
|
||||||
|
for (const region of regions) {
|
||||||
|
const match = allStores.find(
|
||||||
|
(store) => store.regionId === region.id && store.name === currentStoreName
|
||||||
|
)
|
||||||
|
if (match) prefill[region.id] = match.id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setFieldValue('storeIdsByRegion', prefill)
|
||||||
|
}
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<ScrollView style={tw`flex-1`} contentContainerStyle={tw`px-4 pt-4 pb-10`} keyboardShouldPersistTaps="handled">
|
<ScrollView style={tw`flex-1`} contentContainerStyle={tw`px-4 pt-4 pb-10`} keyboardShouldPersistTaps="handled">
|
||||||
{editingGlobalAsRegional && (
|
|
||||||
<View style={tw`mb-4 rounded-lg border border-amber-200 bg-amber-50 p-3`}>
|
|
||||||
<MyText style={tw`text-sm font-medium text-amber-800`}>
|
|
||||||
Global product — changes you save here apply to {staffRegionName} only.
|
|
||||||
</MyText>
|
|
||||||
</View>
|
|
||||||
)}
|
|
||||||
<MyTextInput
|
<MyTextInput
|
||||||
testID="product-name-input"
|
testID="product-name-input"
|
||||||
topLabel="Product Name"
|
topLabel="Product Name"
|
||||||
|
|
@ -414,6 +392,16 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
onChangeText={handleChange('longDescription')}
|
onChangeText={handleChange('longDescription')}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
/>
|
/>
|
||||||
|
<View style={tw`flex-row items-center mb-4`}>
|
||||||
|
<Checkbox
|
||||||
|
testID="product-all-regions-checkbox"
|
||||||
|
checked={!!values.availableInAllRegions}
|
||||||
|
onPress={handleToggleAllRegions}
|
||||||
|
disabled={allRegionsLocked}
|
||||||
|
style={tw`mr-3`}
|
||||||
|
/>
|
||||||
|
<MyText style={tw`text-gray-700 font-medium`}>Available in all regions</MyText>
|
||||||
|
</View>
|
||||||
|
|
||||||
{!values.availableInAllRegions ? (
|
{!values.availableInAllRegions ? (
|
||||||
<BottomDropdown
|
<BottomDropdown
|
||||||
|
|
@ -427,7 +415,7 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
editableRegions.map((region) => {
|
regions.map((region) => {
|
||||||
const regionStores = storesForRegion(region.id)
|
const regionStores = storesForRegion(region.id)
|
||||||
return (
|
return (
|
||||||
<View key={region.id}>
|
<View key={region.id}>
|
||||||
|
|
@ -453,7 +441,7 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
})
|
})
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<RegionStorePrefill stores={allRegionsStores} regions={editableRegions} currentStoreName={editStoreName} />
|
<RegionStorePrefill stores={allRegionsStores} regions={regions} currentStoreName={currentStoreName} />
|
||||||
|
|
||||||
<BottomDropdown
|
<BottomDropdown
|
||||||
testID="product-type-dropdown"
|
testID="product-type-dropdown"
|
||||||
|
|
|
||||||
|
|
@ -187,8 +187,6 @@ export default function BannerForm({
|
||||||
onChange={handleChange('redirectUrl')}
|
onChange={handleChange('redirectUrl')}
|
||||||
onBlur={handleBlur('redirectUrl')}
|
onBlur={handleBlur('redirectUrl')}
|
||||||
type="url"
|
type="url"
|
||||||
autoCorrect="off"
|
|
||||||
autoCapitalize="none"
|
|
||||||
style={{ marginBottom: errors.redirectUrl && touched.redirectUrl ? 8 : 16 }}
|
style={{ marginBottom: errors.redirectUrl && touched.redirectUrl ? 8 : 16 }}
|
||||||
/>
|
/>
|
||||||
{errors.redirectUrl && touched.redirectUrl && (
|
{errors.redirectUrl && touched.redirectUrl && (
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,6 @@ export function MultiSelect({
|
||||||
}}
|
}}
|
||||||
onSearch={onSearch}
|
onSearch={onSearch}
|
||||||
className="mb-3"
|
className="mb-3"
|
||||||
testID={testID ? `${testID}-search` : undefined}
|
|
||||||
/>
|
/>
|
||||||
<div className="overflow-y-auto" style={{ maxHeight: 320 }}>
|
<div className="overflow-y-auto" style={{ maxHeight: 320 }}>
|
||||||
{filtered.map((option) => {
|
{filtered.map((option) => {
|
||||||
|
|
@ -105,7 +104,7 @@ export function MultiSelect({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={String(option.value)}
|
key={String(option.value)}
|
||||||
data-testid={testID ? `${testID}-option-${option.value}` : undefined}
|
data-testid="multiselect-option"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!option.disabled) toggle(option.value)
|
if (!option.disabled) toggle(option.value)
|
||||||
}}
|
}}
|
||||||
|
|
@ -139,7 +138,6 @@ export function MultiSelect({
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => setOpen(false)}
|
onClick={() => setOpen(false)}
|
||||||
data-testid={testID ? `${testID}-done` : undefined}
|
|
||||||
className="flex-1 p-3 rounded-lg bg-blue-500 text-white text-center font-semibold text-sm"
|
className="flex-1 p-3 rounded-lg bg-blue-500 text-white text-center font-semibold text-sm"
|
||||||
>
|
>
|
||||||
Done
|
Done
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { p as P, BottomDialog, Checkbox } from 'web-components'
|
import { p as P, BottomDialog, Checkbox } from 'web-components'
|
||||||
import { trpc } from '@/lib/trpc-client'
|
import { trpc } from '@/lib/trpc-client'
|
||||||
import { ChevronRight, Eye, Pencil, XCircle, MapPin, Map, MessageCircle, Phone, PartyPopper } from 'lucide-react'
|
import { ChevronRight, Eye, Pencil, XCircle, MapPin, Map, MessageCircle, Phone } from 'lucide-react'
|
||||||
|
|
||||||
interface OrderOptionsMenuProps {
|
interface OrderOptionsMenuProps {
|
||||||
open: boolean
|
open: boolean
|
||||||
|
|
@ -19,7 +19,6 @@ interface OrderOptionsMenuProps {
|
||||||
latitude?: number | null
|
latitude?: number | null
|
||||||
longitude?: number | null
|
longitude?: number | null
|
||||||
status?: string
|
status?: string
|
||||||
isFirstOrder?: boolean
|
|
||||||
}
|
}
|
||||||
onViewDetails: () => void
|
onViewDetails: () => void
|
||||||
onTogglePackaged: () => void
|
onTogglePackaged: () => void
|
||||||
|
|
@ -90,20 +89,6 @@ export function OrderOptionsMenu({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const { data: constants } = trpc.admin.const.getConstants.useQuery()
|
|
||||||
const welcomeMessage = constants?.find((c) => c.key === 'welcomeMessage')?.value
|
|
||||||
|
|
||||||
const handleWelcomeWhatsApp = () => {
|
|
||||||
const phone = extractPhone(order.address)
|
|
||||||
if (!phone) {
|
|
||||||
window.alert('No phone number found')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const message = welcomeMessage ? String(welcomeMessage) : ''
|
|
||||||
const text = message ? `&text=${encodeURIComponent(message)}` : ''
|
|
||||||
window.open(`https://wa.me/91${phone}${text}`, '_blank')
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleDial = () => {
|
const handleDial = () => {
|
||||||
const phone = extractPhone(order.address)
|
const phone = extractPhone(order.address)
|
||||||
if (phone) {
|
if (phone) {
|
||||||
|
|
@ -334,31 +319,6 @@ export function OrderOptionsMenu({
|
||||||
</div>
|
</div>
|
||||||
<ChevronRight className="h-6 w-6 text-gray-400 ml-auto" />
|
<ChevronRight className="h-6 w-6 text-gray-400 ml-auto" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{order.isFirstOrder && (
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
data-testid="send-welcome-msg"
|
|
||||||
onClick={() => {
|
|
||||||
handleWelcomeWhatsApp()
|
|
||||||
onClose()
|
|
||||||
}}
|
|
||||||
className="flex flex-row items-center p-4 bg-emerald-50 border border-emerald-200 rounded-xl mb-3 shadow-sm w-full text-left"
|
|
||||||
>
|
|
||||||
<div className="w-10 h-10 rounded-full bg-emerald-100 items-center justify-center mr-4 flex shrink-0">
|
|
||||||
<PartyPopper className="h-5 w-5 text-emerald-600" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<P className="font-semibold text-emerald-800 text-base block">
|
|
||||||
Send Welcome Msg
|
|
||||||
</P>
|
|
||||||
<P className="text-emerald-600 text-xs block">
|
|
||||||
First order — welcome the customer on WhatsApp
|
|
||||||
</P>
|
|
||||||
</div>
|
|
||||||
<ChevronRight className="h-6 w-6 text-gray-400 ml-auto" />
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import type { ImageUploaderNeoItem, ImageUploaderNeoPayload } from 'web-componen
|
||||||
import SearchableSelect from './SearchableSelect'
|
import SearchableSelect from './SearchableSelect'
|
||||||
import { Plus, Trash2, X, RotateCcw, Info } from 'lucide-react'
|
import { Plus, Trash2, X, RotateCcw, Info } from 'lucide-react'
|
||||||
import { trpc } from '@/lib/trpc-client'
|
import { trpc } from '@/lib/trpc-client'
|
||||||
|
import { useIsSuperAdmin } from '../hooks/useIsSuperAdmin'
|
||||||
import type { CreateComboItemInput, CreateSkuInput } from '@packages/shared'
|
import type { CreateComboItemInput, CreateSkuInput } from '@packages/shared'
|
||||||
import type { SkuFeatureLike } from '@packages/shared'
|
import type { SkuFeatureLike } from '@packages/shared'
|
||||||
|
|
||||||
|
|
@ -257,9 +258,10 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
clearImages: () => setVariantImages(initialValues.variants.map(() => [])),
|
clearImages: () => setVariantImages(initialValues.variants.map(() => [])),
|
||||||
}), [initialValues.variants])
|
}), [initialValues.variants])
|
||||||
|
|
||||||
// All-region products are managed from superadmin-ui only: the flag is
|
const isSuperAdmin = useIsSuperAdmin()
|
||||||
// hidden here, and edits to such products are read-only in this app.
|
// Non-superadmins may not flip all-regions availability (backend 403s either
|
||||||
const isAllRegionsProduct = !!initialValues.availableInAllRegions
|
// direction); lock the checkbox on all-region products.
|
||||||
|
const allRegionsLocked = !isSuperAdmin && !!initialValues.availableInAllRegions
|
||||||
|
|
||||||
const { data: storesData } = trpc.admin.store.getStores.useQuery()
|
const { data: storesData } = trpc.admin.store.getStores.useQuery()
|
||||||
const allStores: RegionStoreOption[] = useMemo(
|
const allStores: RegionStoreOption[] = useMemo(
|
||||||
|
|
@ -360,22 +362,32 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
enableReinitialize
|
enableReinitialize
|
||||||
>
|
>
|
||||||
{({ handleChange, handleSubmit, values, setFieldValue, validateForm }) => {
|
{({ handleChange, handleSubmit, values, setFieldValue, validateForm }) => {
|
||||||
|
const currentStoreName = storeOptions.find((option) => option.value === values.storeId)?.label
|
||||||
|
const handleToggleAllRegions = () => {
|
||||||
|
if (allRegionsLocked) return
|
||||||
|
const next = !values.availableInAllRegions
|
||||||
|
setFieldValue('availableInAllRegions', next)
|
||||||
|
if (next) {
|
||||||
|
const prefill: Record<number, number> = {}
|
||||||
|
if (currentStoreName) {
|
||||||
|
for (const region of regions) {
|
||||||
|
const match = allStores.find(
|
||||||
|
(store) => store.regionId === region.id && store.name === currentStoreName
|
||||||
|
)
|
||||||
|
if (match) prefill[region.id] = match.id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setFieldValue('storeIdsByRegion', prefill)
|
||||||
|
}
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div className="flex-1 overflow-auto pb-10">
|
<div className="flex-1 overflow-auto pb-10">
|
||||||
{isAllRegionsProduct && (
|
|
||||||
<div className="mb-4 rounded-lg border border-amber-200 bg-amber-50 p-3">
|
|
||||||
<p className="text-sm font-medium text-amber-800">
|
|
||||||
This product serves all regions and is managed from superadmin. Changes here are disabled.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<PInput
|
<PInput
|
||||||
topLabel="Product Name"
|
topLabel="Product Name"
|
||||||
placeholder="Enter product name"
|
placeholder="Enter product name"
|
||||||
value={values.name}
|
value={values.name}
|
||||||
onChange={handleChange('name')}
|
onChange={handleChange('name')}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
data-testid="product-name-input"
|
|
||||||
/>
|
/>
|
||||||
<PInput
|
<PInput
|
||||||
topLabel="Short Description"
|
topLabel="Short Description"
|
||||||
|
|
@ -385,7 +397,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
value={values.shortDescription}
|
value={values.shortDescription}
|
||||||
onChange={handleChange('shortDescription')}
|
onChange={handleChange('shortDescription')}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
data-testid="product-short-description-input"
|
|
||||||
/>
|
/>
|
||||||
<PInput
|
<PInput
|
||||||
topLabel="Long Description"
|
topLabel="Long Description"
|
||||||
|
|
@ -395,11 +406,18 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
value={values.longDescription}
|
value={values.longDescription}
|
||||||
onChange={handleChange('longDescription')}
|
onChange={handleChange('longDescription')}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
data-testid="product-long-description-input"
|
|
||||||
/>
|
/>
|
||||||
|
<div className="flex flex-row items-center mb-4" data-testid="product-all-regions-row">
|
||||||
|
<Checkbox
|
||||||
|
checked={!!values.availableInAllRegions}
|
||||||
|
onPress={handleToggleAllRegions}
|
||||||
|
disabled={allRegionsLocked}
|
||||||
|
/>
|
||||||
|
<P className="text-gray-700 font-medium ml-3">Available in all regions</P>
|
||||||
|
</div>
|
||||||
|
|
||||||
{!values.availableInAllRegions ? (
|
{!values.availableInAllRegions ? (
|
||||||
<div className="mb-4">
|
<div className="mb-4" data-testid="product-store-select">
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">Store</P>
|
<P className="mb-1 text-sm text-gray-500 font-medium">Store</P>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
label="Select store"
|
label="Select store"
|
||||||
|
|
@ -407,14 +425,13 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
options={storeOptions}
|
options={storeOptions}
|
||||||
onValueChange={(value) => setFieldValue('storeId', Number(value))}
|
onValueChange={(value) => setFieldValue('storeId', Number(value))}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
testID="product-store-dropdown"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
regions.map((region) => {
|
regions.map((region) => {
|
||||||
const regionStores = storesForRegion(region.id)
|
const regionStores = storesForRegion(region.id)
|
||||||
return (
|
return (
|
||||||
<div key={region.id} className="mb-4">
|
<div key={region.id} className="mb-4" data-testid={`product-region-${region.id}-store-select`}>
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">Store — {region.name}</P>
|
<P className="mb-1 text-sm text-gray-500 font-medium">Store — {region.name}</P>
|
||||||
{regionStores.length === 0 && (
|
{regionStores.length === 0 && (
|
||||||
<p className="mb-1 text-xs text-red-500">
|
<p className="mb-1 text-xs text-red-500">
|
||||||
|
|
@ -429,16 +446,15 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
setFieldValue(`storeIdsByRegion.${region.id}`, Number(value))
|
setFieldValue(`storeIdsByRegion.${region.id}`, Number(value))
|
||||||
}
|
}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
testID={`product-region-${region.id}-store-dropdown`}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<RegionStorePrefill stores={allRegionsStores} regions={regions} currentStoreName={undefined} />
|
<RegionStorePrefill stores={allRegionsStores} regions={regions} currentStoreName={currentStoreName} />
|
||||||
|
|
||||||
<div className="mb-4">
|
<div className="mb-4" data-testid="product-type-select">
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">Product Type</P>
|
<P className="mb-1 text-sm text-gray-500 font-medium">Product Type</P>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
label="Select product type"
|
label="Select product type"
|
||||||
|
|
@ -449,7 +465,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
]}
|
]}
|
||||||
onValueChange={(value) => setFieldValue('productType', value as 'item' | 'combo')}
|
onValueChange={(value) => setFieldValue('productType', value as 'item' | 'combo')}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
testID="product-type-dropdown"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -460,7 +475,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<P className="text-lg font-bold text-gray-800">Variants</P>
|
<P className="text-lg font-bold text-gray-800">Variants</P>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
data-testid="add-variant-button"
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
push(defaultVariant())
|
push(defaultVariant())
|
||||||
setVariantImages((prev) => [...prev, []])
|
setVariantImages((prev) => [...prev, []])
|
||||||
|
|
@ -489,7 +503,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
{(values.variants.length > 1 || isExistingSku) && (
|
{(values.variants.length > 1 || isExistingSku) && (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
data-testid={`variant-${vIndex}-remove`}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (isExistingSku) {
|
if (isExistingSku) {
|
||||||
// Mark existing SKU as deleted (sent to backend on save).
|
// Mark existing SKU as deleted (sent to backend on save).
|
||||||
|
|
@ -516,7 +529,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
value={variant.name ?? ''}
|
value={variant.name ?? ''}
|
||||||
onChange={handleChange(`variants.${vIndex}.name`)}
|
onChange={handleChange(`variants.${vIndex}.name`)}
|
||||||
style={{ marginBottom: 12 }}
|
style={{ marginBottom: 12 }}
|
||||||
data-testid={`variant-${vIndex}-sku-name`}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FieldArray name={`variants.${vIndex}.features`}>
|
<FieldArray name={`variants.${vIndex}.features`}>
|
||||||
|
|
@ -545,7 +557,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<PInput
|
<PInput
|
||||||
placeholder="Name"
|
placeholder="Name"
|
||||||
value={attr.featureName ?? ''}
|
value={attr.featureName ?? ''}
|
||||||
data-testid={`variant-${vIndex}-attr-${aIndex}-name`}
|
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
setFieldValue(
|
setFieldValue(
|
||||||
`variants.${vIndex}.features.${aIndex}.featureName`,
|
`variants.${vIndex}.features.${aIndex}.featureName`,
|
||||||
|
|
@ -560,7 +571,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<PInput
|
<PInput
|
||||||
placeholder={isQuantityFeature(attr) ? 'e.g. 0.5 kg' : 'Value'}
|
placeholder={isQuantityFeature(attr) ? 'e.g. 0.5 kg' : 'Value'}
|
||||||
value={attr.featureValue}
|
value={attr.featureValue}
|
||||||
data-testid={`variant-${vIndex}-attr-${aIndex}-value`}
|
|
||||||
onChange={handleChange(`variants.${vIndex}.features.${aIndex}.featureValue`)}
|
onChange={handleChange(`variants.${vIndex}.features.${aIndex}.featureValue`)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -597,7 +607,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
placeholder="MRP"
|
placeholder="MRP"
|
||||||
type="number"
|
type="number"
|
||||||
inputMode="numeric"
|
inputMode="numeric"
|
||||||
data-testid={`variant-${vIndex}-market-price`}
|
|
||||||
value={variant.marketPrice?.toString() ?? ''}
|
value={variant.marketPrice?.toString() ?? ''}
|
||||||
onChange={handleChange(`variants.${vIndex}.marketPrice`)}
|
onChange={handleChange(`variants.${vIndex}.marketPrice`)}
|
||||||
/>
|
/>
|
||||||
|
|
@ -608,7 +617,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
placeholder="Selling price"
|
placeholder="Selling price"
|
||||||
type="number"
|
type="number"
|
||||||
inputMode="numeric"
|
inputMode="numeric"
|
||||||
data-testid={`variant-${vIndex}-price`}
|
|
||||||
value={variant.price?.toString() ?? ''}
|
value={variant.price?.toString() ?? ''}
|
||||||
onChange={handleChange(`variants.${vIndex}.price`)}
|
onChange={handleChange(`variants.${vIndex}.price`)}
|
||||||
/>
|
/>
|
||||||
|
|
@ -618,7 +626,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<div className="flex flex-row items-center mb-3">
|
<div className="flex flex-row items-center mb-3">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={variant.isFlashAvailable}
|
checked={variant.isFlashAvailable}
|
||||||
testID={`variant-${vIndex}-flash`}
|
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
setFieldValue(`variants.${vIndex}.isFlashAvailable`, !variant.isFlashAvailable)
|
setFieldValue(`variants.${vIndex}.isFlashAvailable`, !variant.isFlashAvailable)
|
||||||
if (variant.isFlashAvailable) setFieldValue(`variants.${vIndex}.flashPrice`, null)
|
if (variant.isFlashAvailable) setFieldValue(`variants.${vIndex}.flashPrice`, null)
|
||||||
|
|
@ -630,7 +637,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<div className="flex flex-row items-center mb-3">
|
<div className="flex flex-row items-center mb-3">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={variant.isOffer}
|
checked={variant.isOffer}
|
||||||
testID={`variant-${vIndex}-offer`}
|
|
||||||
onPress={() => setFieldValue(`variants.${vIndex}.isOffer`, !variant.isOffer)}
|
onPress={() => setFieldValue(`variants.${vIndex}.isOffer`, !variant.isOffer)}
|
||||||
/>
|
/>
|
||||||
<P className="text-gray-700 font-medium ml-3">Offer SKU</P>
|
<P className="text-gray-700 font-medium ml-3">Offer SKU</P>
|
||||||
|
|
@ -640,7 +646,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<div className="flex flex-row items-center mb-3">
|
<div className="flex flex-row items-center mb-3">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={variant.isComboOnly}
|
checked={variant.isComboOnly}
|
||||||
testID={`variant-${vIndex}-combo-only`}
|
|
||||||
onPress={() => setFieldValue(`variants.${vIndex}.isComboOnly`, !variant.isComboOnly)}
|
onPress={() => setFieldValue(`variants.${vIndex}.isComboOnly`, !variant.isComboOnly)}
|
||||||
/>
|
/>
|
||||||
<P className="text-gray-700 font-medium ml-3">Combo Only SKU</P>
|
<P className="text-gray-700 font-medium ml-3">Combo Only SKU</P>
|
||||||
|
|
@ -648,10 +653,9 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{mode === 'edit' && (
|
{mode === 'edit' && (
|
||||||
<div className="flex flex-row items-center mb-3">
|
<div className="flex flex-row items-center mb-3" data-testid={`variant-suspend-row-${vIndex}`}>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={variant.isSuspended}
|
checked={variant.isSuspended}
|
||||||
testID={`variant-${vIndex}-suspend`}
|
|
||||||
onPress={() => setFieldValue(`variants.${vIndex}.isSuspended`, !variant.isSuspended)}
|
onPress={() => setFieldValue(`variants.${vIndex}.isSuspended`, !variant.isSuspended)}
|
||||||
/>
|
/>
|
||||||
<P className="text-gray-700 font-medium ml-3">Suspend SKU</P>
|
<P className="text-gray-700 font-medium ml-3">Suspend SKU</P>
|
||||||
|
|
@ -664,7 +668,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
placeholder="Enter flash price"
|
placeholder="Enter flash price"
|
||||||
type="number"
|
type="number"
|
||||||
inputMode="numeric"
|
inputMode="numeric"
|
||||||
data-testid={`variant-${vIndex}-flash-price`}
|
|
||||||
value={variant.flashPrice?.toString() ?? ''}
|
value={variant.flashPrice?.toString() ?? ''}
|
||||||
onChange={handleChange(`variants.${vIndex}.flashPrice`)}
|
onChange={handleChange(`variants.${vIndex}.flashPrice`)}
|
||||||
style={{ marginBottom: 12 }}
|
style={{ marginBottom: 12 }}
|
||||||
|
|
@ -673,7 +676,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
|
|
||||||
<ImageUploaderNeo
|
<ImageUploaderNeo
|
||||||
images={variantImages[vIndex] || []}
|
images={variantImages[vIndex] || []}
|
||||||
testID={`variant-${vIndex}-image-add`}
|
|
||||||
onImageAdd={(payloads) =>
|
onImageAdd={(payloads) =>
|
||||||
setVariantImages((prev) => {
|
setVariantImages((prev) => {
|
||||||
const next = [...prev]
|
const next = [...prev]
|
||||||
|
|
@ -697,7 +699,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<P className="font-medium text-gray-600">Included Items</P>
|
<P className="font-medium text-gray-600">Included Items</P>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
data-testid={`variant-${vIndex}-combo-add`}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const items = variant.comboItems || []
|
const items = variant.comboItems || []
|
||||||
items.push({ skuId: 0 })
|
items.push({ skuId: 0 })
|
||||||
|
|
@ -715,7 +716,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
<SearchableSelect
|
<SearchableSelect
|
||||||
label="SKU"
|
label="SKU"
|
||||||
value={ci.skuId}
|
value={ci.skuId}
|
||||||
testID={`variant-${vIndex}-combo-sku-${cIndex}`}
|
|
||||||
options={skuOptions.map((opt: { label: string; value: number }) => ({
|
options={skuOptions.map((opt: { label: string; value: number }) => ({
|
||||||
...opt,
|
...opt,
|
||||||
// Disable SKUs already picked in another row of this combo.
|
// Disable SKUs already picked in another row of this combo.
|
||||||
|
|
@ -757,7 +757,6 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
data-testid="add-variant-button-footer"
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
push(defaultVariant())
|
push(defaultVariant())
|
||||||
setVariantImages((prev) => [...prev, []])
|
setVariantImages((prev) => [...prev, []])
|
||||||
|
|
@ -773,12 +772,8 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
data-testid="create-product-button"
|
data-testid="product-submit-button"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (isAllRegionsProduct) {
|
|
||||||
window.alert('This product serves all regions and can only be edited from superadmin.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const validationErrors = await validateForm()
|
const validationErrors = await validateForm()
|
||||||
if (Object.keys(validationErrors).length > 0) {
|
if (Object.keys(validationErrors).length > 0) {
|
||||||
const variantsMessages = collectErrorMessages(validationErrors.variants)
|
const variantsMessages = collectErrorMessages(validationErrors.variants)
|
||||||
|
|
@ -789,7 +784,7 @@ const ProductForm = forwardRef<ProductFormRef, ProductFormProps>(({
|
||||||
}
|
}
|
||||||
handleSubmit()
|
handleSubmit()
|
||||||
}}
|
}}
|
||||||
disabled={isLoading || isAllRegionsProduct}
|
disabled={isLoading}
|
||||||
className={`px-4 py-3 rounded-lg shadow-lg items-center mt-4 text-white text-lg font-bold w-full disabled:opacity-70 ${isLoading ? 'bg-gray-400' : 'bg-blue-500'}`}
|
className={`px-4 py-3 rounded-lg shadow-lg items-center mt-4 text-white text-lg font-bold w-full disabled:opacity-70 ${isLoading ? 'bg-gray-400' : 'bg-blue-500'}`}
|
||||||
>
|
>
|
||||||
{(() => {
|
{(() => {
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,6 @@ export function SearchableSelect({
|
||||||
}}
|
}}
|
||||||
onSearch={onSearch}
|
onSearch={onSearch}
|
||||||
className="mb-3"
|
className="mb-3"
|
||||||
testID={testID ? `${testID}-search` : undefined}
|
|
||||||
/>
|
/>
|
||||||
<div className="overflow-y-auto" style={{ maxHeight: 320 }}>
|
<div className="overflow-y-auto" style={{ maxHeight: 320 }}>
|
||||||
{filtered.map((option) => {
|
{filtered.map((option) => {
|
||||||
|
|
@ -93,7 +92,6 @@ export function SearchableSelect({
|
||||||
type="button"
|
type="button"
|
||||||
disabled={option.disabled}
|
disabled={option.disabled}
|
||||||
onClick={() => handleSelect(option.value)}
|
onClick={() => handleSelect(option.value)}
|
||||||
data-testid={testID ? `${testID}-option-${option.value}` : undefined}
|
|
||||||
className={`flex flex-row items-center w-full p-3 border-b border-gray-100 text-left ${option.disabled ? 'opacity-50' : 'cursor-pointer hover:bg-gray-50'} ${selected ? 'bg-blue-50' : ''}`}
|
className={`flex flex-row items-center w-full p-3 border-b border-gray-100 text-left ${option.disabled ? 'opacity-50' : 'cursor-pointer hover:bg-gray-50'} ${selected ? 'bg-blue-50' : ''}`}
|
||||||
>
|
>
|
||||||
<span className={`text-sm flex-1 ${selected ? 'font-semibold text-blue-700' : 'text-gray-800'}`}>
|
<span className={`text-sm flex-1 ${selected ? 'font-semibold text-blue-700' : 'text-gray-800'}`}>
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,6 @@ export default function SlotForm({
|
||||||
|
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<ProductsSelector
|
<ProductsSelector
|
||||||
testID="snippet-products-selector"
|
|
||||||
value={snippet.skuIds || []}
|
value={snippet.skuIds || []}
|
||||||
onChange={(newSkuIds) => setFieldValue(`vendorSnippetList.${index}.skuIds`, newSkuIds)}
|
onChange={(newSkuIds) => setFieldValue(`vendorSnippetList.${index}.skuIds`, newSkuIds)}
|
||||||
groups={mappedGroups.filter(group =>
|
groups={mappedGroups.filter(group =>
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,6 @@ function StoreForm({ mode, initialValues, onSubmit, isLoading, storeId }: StoreF
|
||||||
onChange={handleChange('name')}
|
onChange={handleChange('name')}
|
||||||
error={!!(touched.name && errors.name)}
|
error={!!(touched.name && errors.name)}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
data-testid="store-name-input"
|
|
||||||
/>
|
/>
|
||||||
<PInput
|
<PInput
|
||||||
topLabel="Description"
|
topLabel="Description"
|
||||||
|
|
@ -144,7 +143,6 @@ function StoreForm({ mode, initialValues, onSubmit, isLoading, storeId }: StoreF
|
||||||
onChange={handleChange('description')}
|
onChange={handleChange('description')}
|
||||||
error={!!(touched.description && errors.description)}
|
error={!!(touched.description && errors.description)}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
data-testid="store-description-input"
|
|
||||||
/>
|
/>
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">Owner</P>
|
<P className="mb-1 text-sm text-gray-500 font-medium">Owner</P>
|
||||||
|
|
@ -154,7 +152,6 @@ function StoreForm({ mode, initialValues, onSubmit, isLoading, storeId }: StoreF
|
||||||
options={staffOptions}
|
options={staffOptions}
|
||||||
onValueChange={(value) => setFieldValue('owner', Number(value))}
|
onValueChange={(value) => setFieldValue('owner', Number(value))}
|
||||||
className="mb-4"
|
className="mb-4"
|
||||||
testID="store-owner-dropdown"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ProductsSelector
|
<ProductsSelector
|
||||||
|
|
@ -165,7 +162,6 @@ function StoreForm({ mode, initialValues, onSubmit, isLoading, storeId }: StoreF
|
||||||
placeholder="Select products"
|
placeholder="Select products"
|
||||||
isDisabled={(sku) => sku.storeId !== null && sku.storeId !== storeId}
|
isDisabled={(sku) => sku.storeId !== null && sku.storeId !== storeId}
|
||||||
labelFormat={(sku) => `${sku.productName} - ₹${sku.price}`}
|
labelFormat={(sku) => `${sku.productName} - ₹${sku.price}`}
|
||||||
testID="store-products-selector"
|
|
||||||
/>
|
/>
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
<P className="text-sm font-bold text-gray-700 mb-3 uppercase tracking-wider block">Store Image</P>
|
<P className="text-sm font-bold text-gray-700 mb-3 uppercase tracking-wider block">Store Image</P>
|
||||||
|
|
@ -187,7 +183,6 @@ function StoreForm({ mode, initialValues, onSubmit, isLoading, storeId }: StoreF
|
||||||
type="button"
|
type="button"
|
||||||
onClick={submit}
|
onClick={submit}
|
||||||
disabled={isLoading || isUploading}
|
disabled={isLoading || isUploading}
|
||||||
data-testid="store-submit-button"
|
|
||||||
className={`px-4 py-2 rounded-lg shadow-lg items-center mt-2 text-white text-lg font-bold w-full disabled:opacity-70 ${isLoading || isUploading ? 'bg-gray-400' : 'bg-blue-500'}`}
|
className={`px-4 py-2 rounded-lg shadow-lg items-center mt-2 text-white text-lg font-bold w-full disabled:opacity-70 ${isLoading || isUploading ? 'bg-gray-400' : 'bg-blue-500'}`}
|
||||||
>
|
>
|
||||||
{isUploading ? 'Uploading...' : isLoading ? (mode === 'create' ? 'Creating...' : 'Updating...') : (mode === 'create' ? 'Create Store' : 'Update Store')}
|
{isUploading ? 'Uploading...' : isLoading ? (mode === 'create' ? 'Creating...' : 'Updating...') : (mode === 'create' ? 'Create Store' : 'Update Store')}
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,6 @@ const TagForm = forwardRef<any, TagFormProps>(({
|
||||||
value={values.tagName}
|
value={values.tagName}
|
||||||
onChange={handleChange('tagName')}
|
onChange={handleChange('tagName')}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
data-testid="tag-name-input"
|
|
||||||
/>
|
/>
|
||||||
{errors.tagName && touched.tagName ? (
|
{errors.tagName && touched.tagName ? (
|
||||||
<P className="text-red-500 text-sm -mt-2 mb-4 block">{errors.tagName}</P>
|
<P className="text-red-500 text-sm -mt-2 mb-4 block">{errors.tagName}</P>
|
||||||
|
|
@ -228,7 +227,6 @@ const TagForm = forwardRef<any, TagFormProps>(({
|
||||||
value={values.tagDescription}
|
value={values.tagDescription}
|
||||||
onChange={handleChange('tagDescription')}
|
onChange={handleChange('tagDescription')}
|
||||||
style={{ marginBottom: 16 }}
|
style={{ marginBottom: 16 }}
|
||||||
data-testid="tag-description-input"
|
|
||||||
/>
|
/>
|
||||||
{errors.tagDescription && touched.tagDescription ? (
|
{errors.tagDescription && touched.tagDescription ? (
|
||||||
<P className="text-red-500 text-sm -mt-2 mb-4 block">{errors.tagDescription}</P>
|
<P className="text-red-500 text-sm -mt-2 mb-4 block">{errors.tagDescription}</P>
|
||||||
|
|
@ -242,7 +240,6 @@ const TagForm = forwardRef<any, TagFormProps>(({
|
||||||
|
|
||||||
<ImageUploaderNeo
|
<ImageUploaderNeo
|
||||||
images={images}
|
images={images}
|
||||||
testID="tag-image-add"
|
|
||||||
onImageAdd={(payload: ImageUploaderNeoPayload[]) => {
|
onImageAdd={(payload: ImageUploaderNeoPayload[]) => {
|
||||||
setImages((prev) => [...prev, ...payload.map((img) => ({
|
setImages((prev) => [...prev, ...payload.map((img) => ({
|
||||||
imgUrl: img.url,
|
imgUrl: img.url,
|
||||||
|
|
@ -263,7 +260,6 @@ const TagForm = forwardRef<any, TagFormProps>(({
|
||||||
<div className="flex flex-row items-center mb-6">
|
<div className="flex flex-row items-center mb-6">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={isDashboardTagChecked}
|
checked={isDashboardTagChecked}
|
||||||
testID="tag-dashboard-checkbox"
|
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
const newValue = !isDashboardTagChecked
|
const newValue = !isDashboardTagChecked
|
||||||
setIsDashboardTagChecked(newValue)
|
setIsDashboardTagChecked(newValue)
|
||||||
|
|
@ -281,7 +277,6 @@ const TagForm = forwardRef<any, TagFormProps>(({
|
||||||
<MultiSelect
|
<MultiSelect
|
||||||
label="Select Related Stores"
|
label="Select Related Stores"
|
||||||
placeholder="Select stores..."
|
placeholder="Select stores..."
|
||||||
testID="tag-stores-dropdown"
|
|
||||||
value={values.relatedStores.map(id => id.toString())}
|
value={values.relatedStores.map(id => id.toString())}
|
||||||
options={stores.map(store => ({
|
options={stores.map(store => ({
|
||||||
label: store.name,
|
label: store.name,
|
||||||
|
|
@ -306,7 +301,6 @@ const TagForm = forwardRef<any, TagFormProps>(({
|
||||||
label="Select Products"
|
label="Select Products"
|
||||||
placeholder="Search and select products..."
|
placeholder="Search and select products..."
|
||||||
showGroups={false}
|
showGroups={false}
|
||||||
testID="tag-products-selector"
|
|
||||||
/>
|
/>
|
||||||
<div className="mt-4">
|
<div className="mt-4">
|
||||||
{selectedProducts.length > 0 && (
|
{selectedProducts.length > 0 && (
|
||||||
|
|
@ -337,7 +331,6 @@ const TagForm = forwardRef<any, TagFormProps>(({
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => handleSubmit()}
|
onClick={() => handleSubmit()}
|
||||||
disabled={isLoading}
|
disabled={isLoading}
|
||||||
data-testid="tag-submit-button"
|
|
||||||
className={`px-4 py-3 rounded-lg shadow-lg items-center text-white text-lg font-bold w-full disabled:opacity-70 ${isLoading ? 'bg-gray-400' : 'bg-blue-500'}`}
|
className={`px-4 py-3 rounded-lg shadow-lg items-center text-white text-lg font-bold w-full disabled:opacity-70 ${isLoading ? 'bg-gray-400' : 'bg-blue-500'}`}
|
||||||
>
|
>
|
||||||
{isLoading ? (mode === 'create' ? 'Creating...' : 'Updating...') : (mode === 'create' ? 'Create Tag' : 'Update Tag')}
|
{isLoading ? (mode === 'create' ? 'Creating...' : 'Updating...') : (mode === 'create' ? 'Create Tag' : 'Update Tag')}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ const CONST_LABELS: Record<string, string> = {
|
||||||
isFlashDeliveryEnabled: 'Enable Flash Delivery',
|
isFlashDeliveryEnabled: 'Enable Flash Delivery',
|
||||||
supportMobile: 'Support Mobile',
|
supportMobile: 'Support Mobile',
|
||||||
supportEmail: 'Support Email',
|
supportEmail: 'Support Email',
|
||||||
internalAppVersion: 'Internal App Version',
|
|
||||||
welcomeMessage: 'Welcome Message',
|
welcomeMessage: 'Welcome Message',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -41,21 +40,20 @@ const CONST_VISIBILITY: Record<string, boolean> = {
|
||||||
deliveryCharge: true,
|
deliveryCharge: true,
|
||||||
flashFreeDeliveryThreshold: true,
|
flashFreeDeliveryThreshold: true,
|
||||||
flashDeliveryCharge: true,
|
flashDeliveryCharge: true,
|
||||||
platformFeePercent: false,
|
platformFeePercent: true,
|
||||||
taxRate: false,
|
taxRate: false,
|
||||||
minOrderAmountForCoupon: false,
|
minOrderAmountForCoupon: true,
|
||||||
maxCouponDiscount: false,
|
maxCouponDiscount: false,
|
||||||
flashDeliverySlotId: false,
|
flashDeliverySlotId: true,
|
||||||
readableOrderId: false,
|
readableOrderId: false,
|
||||||
versionNum: false,
|
versionNum: true,
|
||||||
playStoreUrl: false,
|
playStoreUrl: true,
|
||||||
appStoreUrl: false,
|
appStoreUrl: true,
|
||||||
popularItems: false,
|
popularItems: true,
|
||||||
allItemsOrder: true,
|
allItemsOrder: true,
|
||||||
isFlashDeliveryEnabled: true,
|
isFlashDeliveryEnabled: true,
|
||||||
supportMobile: true,
|
supportMobile: true,
|
||||||
supportEmail: true,
|
supportEmail: true,
|
||||||
internalAppVersion: false,
|
|
||||||
welcomeMessage: true,
|
welcomeMessage: true,
|
||||||
tester: false,
|
tester: false,
|
||||||
}
|
}
|
||||||
|
|
@ -192,24 +190,7 @@ function CustomizeApp() {
|
||||||
const router = {
|
const router = {
|
||||||
push: (to: string) => navigate({ to: to as any }),
|
push: (to: string) => navigate({ to: to as any }),
|
||||||
}
|
}
|
||||||
const [activeBoundId, setActiveBoundId] = React.useState<number | null>(null)
|
const { data: constants, isLoading: isLoadingConstants, refetch } = trpc.admin.const.getConstants.useQuery()
|
||||||
const [boundsReady, setBoundsReady] = React.useState(false)
|
|
||||||
const { data: boundsData } = trpc.admin.region.getMyRegionBounds.useQuery(undefined, {
|
|
||||||
staleTime: Infinity,
|
|
||||||
})
|
|
||||||
const bounds = boundsData?.bounds ?? []
|
|
||||||
|
|
||||||
React.useEffect(() => {
|
|
||||||
if (!boundsReady && bounds.length > 0) {
|
|
||||||
setActiveBoundId(bounds[0].id)
|
|
||||||
setBoundsReady(true)
|
|
||||||
}
|
|
||||||
}, [bounds, boundsReady])
|
|
||||||
|
|
||||||
const { data: constants, isLoading: isLoadingConstants, refetch } = trpc.admin.const.getConstants.useQuery(
|
|
||||||
activeBoundId != null ? { boundId: activeBoundId } : undefined,
|
|
||||||
{ enabled: boundsReady || bounds.length === 0 }
|
|
||||||
)
|
|
||||||
const { mutate: updateConstants, isPending: isUpdating } = trpc.admin.const.updateConstants.useMutation()
|
const { mutate: updateConstants, isPending: isUpdating } = trpc.admin.const.updateConstants.useMutation()
|
||||||
|
|
||||||
const handleSubmit = (values: ConstantFormData) => {
|
const handleSubmit = (values: ConstantFormData) => {
|
||||||
|
|
@ -227,10 +208,7 @@ function CustomizeApp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
updateConstants(
|
updateConstants(
|
||||||
{
|
{ constants: changedConstants },
|
||||||
constants: changedConstants,
|
|
||||||
...(activeBoundId != null ? { boundId: activeBoundId } : {}),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
onSuccess: (response) => {
|
onSuccess: (response) => {
|
||||||
window.alert(`Updated ${response.updatedCount} constants successfully.`)
|
window.alert(`Updated ${response.updatedCount} constants successfully.`)
|
||||||
|
|
@ -273,26 +251,7 @@ function CustomizeApp() {
|
||||||
Modify application constants. Changes will take effect immediately.
|
Modify application constants. Changes will take effect immediately.
|
||||||
</MyText>
|
</MyText>
|
||||||
|
|
||||||
{bounds.length > 0 && (
|
<Formik initialValues={initialValues} onSubmit={handleSubmit}>
|
||||||
<div className="mb-6 flex flex-row flex-wrap" data-testid="const-bound-tabs">
|
|
||||||
{bounds.map((bound, index) => {
|
|
||||||
const active = bound.id === activeBoundId
|
|
||||||
return (
|
|
||||||
<button
|
|
||||||
key={bound.id}
|
|
||||||
type="button"
|
|
||||||
data-testid={`const-bound-tab-${bound.id}`}
|
|
||||||
onClick={() => setActiveBoundId(bound.id)}
|
|
||||||
className={`mr-2 mb-2 rounded-full border px-4 py-2 text-sm font-semibold ${active ? 'border-blue-500 bg-blue-500 text-white' : 'border-gray-200 bg-white text-gray-700'}`}
|
|
||||||
>
|
|
||||||
{bound.name || `Bound ${index + 1}`}{index === 0 ? ' (Default)' : ''}
|
|
||||||
</button>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Formik key={activeBoundId ?? 'region'} initialValues={initialValues} onSubmit={handleSubmit}>
|
|
||||||
{({ handleSubmit, values, setFieldValue }) => (
|
{({ handleSubmit, values, setFieldValue }) => (
|
||||||
<div>
|
<div>
|
||||||
{constants.map((constant) => {
|
{constants.map((constant) => {
|
||||||
|
|
|
||||||
|
|
@ -392,7 +392,6 @@ const OrderItem = ({ order, refetch }: { order: OrderType, refetch: () => void }
|
||||||
latitude: order.latitude,
|
latitude: order.latitude,
|
||||||
longitude: order.longitude,
|
longitude: order.longitude,
|
||||||
status: order.status,
|
status: order.status,
|
||||||
isFirstOrder: order.isFirstOrder,
|
|
||||||
}}
|
}}
|
||||||
onViewDetails={handleMenuOption}
|
onViewDetails={handleMenuOption}
|
||||||
onTogglePackaged={() => handleMarkPackaged(!order.isPackaged)}
|
onTogglePackaged={() => handleMarkPackaged(!order.isPackaged)}
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,7 @@ interface OrderWithSequence {
|
||||||
addressId: number,
|
addressId: number,
|
||||||
adminNotes?: string | null,
|
adminNotes?: string | null,
|
||||||
customerName?: string | null,
|
customerName?: string | null,
|
||||||
assignedUserName?: string | null,
|
assignedUserName?: string | null
|
||||||
isFirstOrder?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SlotProgressProps {
|
interface SlotProgressProps {
|
||||||
|
|
@ -722,7 +721,6 @@ function DeliverySequences() {
|
||||||
adminNotes: selectedOrder?.adminNotes || null,
|
adminNotes: selectedOrder?.adminNotes || null,
|
||||||
latitude: selectedOrder?.latitude || null,
|
latitude: selectedOrder?.latitude || null,
|
||||||
longitude: selectedOrder?.longitude || null,
|
longitude: selectedOrder?.longitude || null,
|
||||||
isFirstOrder: selectedOrder?.isFirstOrder,
|
|
||||||
}}
|
}}
|
||||||
onViewDetails={() => {
|
onViewDetails={() => {
|
||||||
if (selectedOrder) {
|
if (selectedOrder) {
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ function Products() {
|
||||||
<>
|
<>
|
||||||
<div className="mb-6 flex flex-row items-center justify-between">
|
<div className="mb-6 flex flex-row items-center justify-between">
|
||||||
<MyText className="text-2xl font-bold text-gray-800">Products</MyText>
|
<MyText className="text-2xl font-bold text-gray-800">Products</MyText>
|
||||||
<MyButton onClick={() => navigate({ to: '/dashboard/products/new' })} data-testid="add-product-button">
|
<MyButton onClick={() => navigate({ to: '/dashboard/products/new' })}>
|
||||||
Add Product
|
Add Product
|
||||||
</MyButton>
|
</MyButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,6 @@ function SlotDetails() {
|
||||||
<button
|
<button
|
||||||
onClick={() => navigate({ to: '/dashboard/slots/$id/edit', params: { id: String(slot.id) } })}
|
onClick={() => navigate({ to: '/dashboard/slots/$id/edit', params: { id: String(slot.id) } })}
|
||||||
aria-label="Edit slot"
|
aria-label="Edit slot"
|
||||||
data-testid="edit-slot-fab"
|
|
||||||
className="fixed flex h-16 w-16 items-center justify-center rounded-[24px] shadow-lg"
|
className="fixed flex h-16 w-16 items-center justify-center rounded-[24px] shadow-lg"
|
||||||
style={{ bottom: 32, right: 24, zIndex: 100, background: 'linear-gradient(135deg,#F83758,#E91E63)' }}
|
style={{ bottom: 32, right: 24, zIndex: 100, background: 'linear-gradient(135deg,#F83758,#E91E63)' }}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
PRAGMA defer_foreign_keys=on;
|
PRAGMA defer_foreign_keys=TRUE;
|
||||||
CREATE TABLE IF NOT EXISTS "address_areas" ("id" INTEGER PRIMARY KEY, "place_name" TEXT NOT NULL, "zone_id" INTEGER, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP);
|
CREATE TABLE IF NOT EXISTS "address_areas" ("id" INTEGER PRIMARY KEY, "place_name" TEXT NOT NULL, "zone_id" INTEGER, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP);
|
||||||
INSERT INTO "address_areas" ("id","place_name","zone_id","created_at") VALUES(1,'Housing Board',1,'2025-12-10T20:00:58.912Z');
|
INSERT INTO "address_areas" ("id","place_name","zone_id","created_at") VALUES(1,'Housing Board',1,'2025-12-10T20:00:58.912Z');
|
||||||
INSERT INTO "address_areas" ("id","place_name","zone_id","created_at") VALUES(2,'Mettugadda',2,'2025-12-10T20:01:22.451Z');
|
INSERT INTO "address_areas" ("id","place_name","zone_id","created_at") VALUES(2,'Mettugadda',2,'2025-12-10T20:01:22.451Z');
|
||||||
|
|
@ -844,9 +844,7 @@ INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_lin
|
||||||
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(866,1294,1,'Mrs Riaz','9121967652','H no 1-10-148, SS gutta, Sri Sai Agency ','','Mahabubnagar','Telangana','509001',16.74902517225145,78.00564830249765,'2026-10-03 05:47:57',NULL,NULL,NULL,NULL);
|
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(866,1294,1,'Mrs Riaz','9121967652','H no 1-10-148, SS gutta, Sri Sai Agency ','','Mahabubnagar','Telangana','509001',16.74902517225145,78.00564830249765,'2026-10-03 05:47:57',NULL,NULL,NULL,NULL);
|
||||||
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(867,1295,1,'Deepika','8374242400','6-231 Padmavathi Colony Near Padmavathi Convention Hall ','','Mahabubnagar','Telangana','509001',16.7506788,78.0185419,'2026-10-03 08:06:45',NULL,NULL,NULL,NULL);
|
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(867,1295,1,'Deepika','8374242400','6-231 Padmavathi Colony Near Padmavathi Convention Hall ','','Mahabubnagar','Telangana','509001',16.7506788,78.0185419,'2026-10-03 08:06:45',NULL,NULL,NULL,NULL);
|
||||||
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(868,1217,0,'Jagadeesh ','8886155713','Shashidhar nagar street no 14 ','Bk reddy colony ','Mahabubnagar','Telangana','509001',16.7378205,78.0089493,'2026-10-04 05:27:51',NULL,NULL,NULL,NULL);
|
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(868,1217,0,'Jagadeesh ','8886155713','Shashidhar nagar street no 14 ','Bk reddy colony ','Mahabubnagar','Telangana','509001',16.7378205,78.0089493,'2026-10-04 05:27:51',NULL,NULL,NULL,NULL);
|
||||||
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(869,1301,1,'H no 14-3-178/1 ','6301658328','Balaji nagar ','Near Hanuman temple','Mahabubnagar','Telangana','509001',NULL,NULL,'2026-10-04 06:03:23',NULL,16.730003,77.9972773,NULL);
|
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(869,1301,1,'H no 14-3-178/1 ','6301658328','Balaji nagar ','Near Hanuman temple','Mahabubnagar','Telangana','509001',NULL,NULL,'2026-10-04 06:03:23',NULL,NULL,NULL,NULL);
|
||||||
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(870,1303,1,'Charan','8341310614','H.no 6-3-26/F/A/A/1 Jamulammanagar Hanmanpura','','Mahabubnagar','Telangana','509001',NULL,NULL,'2026-10-05 04:49:38',NULL,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "addresses" ("id","user_id","is_default","name","phone","address_line1","address_line2","city","state","pincode","latitude","longitude","created_at","zone_id","admin_latitude","admin_longitude","google_maps_url") VALUES(871,1304,0,'J akash','8309640036','Yenugonda','Sagara colony','Mahabubnagar','Telangana','509001',NULL,NULL,'2026-10-05 13:22:02',NULL,NULL,NULL,NULL);
|
|
||||||
CREATE TABLE IF NOT EXISTS "complaints" ("id" INTEGER PRIMARY KEY, "user_id" INTEGER NOT NULL, "order_id" INTEGER, "complaint_body" TEXT NOT NULL, "is_resolved" INTEGER NOT NULL DEFAULT false, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "response" TEXT, "images" TEXT);
|
CREATE TABLE IF NOT EXISTS "complaints" ("id" INTEGER PRIMARY KEY, "user_id" INTEGER NOT NULL, "order_id" INTEGER, "complaint_body" TEXT NOT NULL, "is_resolved" INTEGER NOT NULL DEFAULT false, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "response" TEXT, "images" TEXT);
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(4,17,NULL,'Hello',1,'2025-12-19T08:34:32.924Z','Hi',NULL);
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(4,17,NULL,'Hello',1,'2025-12-19T08:34:32.924Z','Hi',NULL);
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(5,17,NULL,'Hello',1,'2025-12-19T09:32:59.187Z','','["complaint-images/1766136777180-0"]');
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(5,17,NULL,'Hello',1,'2025-12-19T09:32:59.187Z','','["complaint-images/1766136777180-0"]');
|
||||||
|
|
@ -940,9 +938,9 @@ INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolve
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(97,1248,NULL,'Call not came and parcel too',1,'2026-09-25 09:47:38','Delivered Successfully',NULL);
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(97,1248,NULL,'Call not came and parcel too',1,'2026-09-25 09:47:38','Delivered Successfully',NULL);
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(98,1255,NULL,'Not delivered so far',1,'2026-09-27 02:32:58','Delivered Successfully',NULL);
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(98,1255,NULL,'Not delivered so far',1,'2026-09-27 02:32:58','Delivered Successfully',NULL);
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(99,1259,NULL,'All the items are good, but one item from Arvi is missing',1,'2026-09-27 07:12:58','Arvi was missing. Compensated that with capsicum','["complaint-images/1790493175973.jpg"]');
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(99,1259,NULL,'All the items are good, but one item from Arvi is missing',1,'2026-09-27 07:12:58','Arvi was missing. Compensated that with capsicum','["complaint-images/1790493175973.jpg"]');
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(100,1237,NULL,replace('Such a fraud store \nI order meat\nI waited almost 1hr 30 min \nThey didn’t respond at I did call to them they saying all our out we can’t deliverd your parcel \nThen why they accepted order \nI’m waiting here \nFor the meat \nBut they didn’t responding at all\nHow irresponsible they are \nDon’t order any item in this store \nIrresponsible management','\n',char(10)),1,'2026-10-02 08:27:29','Apologies for your inconvenience madam. I spoke to delivery agents about your complaint. I assure you smooth transactions from now on.',NULL);
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(100,1237,NULL,replace('Such a fraud store \nI order meat\nI waited almost 1hr 30 min \nThey didn’t respond at I did call to them they saying all our out we can’t deliverd your parcel \nThen why they accepted order \nI’m waiting here \nFor the meat \nBut they didn’t responding at all\nHow irresponsible they are \nDon’t order any item in this store \nIrresponsible management','\n',char(10)),0,'2026-10-02 08:27:29',NULL,NULL);
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(101,22,NULL,'Test compliant',1,'2026-10-02 08:37:32','Well tested','["complaint-images/1790930249522.jpg","complaint-images/1790930249571.jpg"]');
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(101,22,NULL,'Test compliant',1,'2026-10-02 08:37:32','Well tested','["complaint-images/1790930249522.jpg","complaint-images/1790930249571.jpg"]');
|
||||||
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(102,701,NULL,'Not delivered',1,'2026-10-04 06:04:32','Delivered Successfully',NULL);
|
INSERT INTO "complaints" ("id","user_id","order_id","complaint_body","is_resolved","created_at","response","images") VALUES(102,701,NULL,'Not delivered',0,'2026-10-04 06:04:32',NULL,NULL);
|
||||||
CREATE TABLE IF NOT EXISTS "coupon_applicable_users" ("id" INTEGER PRIMARY KEY, "coupon_id" INTEGER NOT NULL, "user_id" INTEGER NOT NULL);
|
CREATE TABLE IF NOT EXISTS "coupon_applicable_users" ("id" INTEGER PRIMARY KEY, "coupon_id" INTEGER NOT NULL, "user_id" INTEGER NOT NULL);
|
||||||
INSERT INTO "coupon_applicable_users" ("id","coupon_id","user_id") VALUES(2,11,4);
|
INSERT INTO "coupon_applicable_users" ("id","coupon_id","user_id") VALUES(2,11,4);
|
||||||
INSERT INTO "coupon_applicable_users" ("id","coupon_id","user_id") VALUES(6,18,145);
|
INSERT INTO "coupon_applicable_users" ("id","coupon_id","user_id") VALUES(6,18,145);
|
||||||
|
|
@ -2681,21 +2679,6 @@ INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active"
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1983,'2026-10-04T12:30:00.000Z','2026-10-04T12:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,7,8,11,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1983,'2026-10-04T12:30:00.000Z','2026-10-04T12:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,7,8,11,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1984,'2026-10-04T13:30:00.000Z','2026-10-04T13:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1984,'2026-10-04T13:30:00.000Z','2026-10-04T13:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1985,'2026-10-05T01:30:00.000Z','2026-10-05T01:20:00.000Z',1,'{}',0,'[9,8,7,5]',0,'[9,22,81,82,102,5,6,13,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,140,139,138,136]');
|
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1985,'2026-10-05T01:30:00.000Z','2026-10-05T01:20:00.000Z',1,'{}',0,'[9,8,7,5]',0,'[9,22,81,82,102,5,6,13,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,140,139,138,136]');
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1986,'2026-10-05T05:30:00.000Z','2026-10-05T05:20:00.000Z',1,'{}',0,'[12,11,10,9,8,7,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1987,'2026-10-05T06:30:00.000Z','2026-10-05T06:20:00.000Z',1,'{}',0,'[5,8,9,10,11,12]',0,'[2,3,5,7,8,9,10,11,13,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,76,77,78,79,80,81,82,88,89,90,91,92,94,95,96,97,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,129,130,131,132,133,134,135,136,137,138,139,140,141,144,145,146,147,148,149]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1988,'2026-10-05T09:30:00.000Z','2026-10-05T09:20:00.000Z',1,'{}',0,'[12,11,10,9,8,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1989,'2026-10-05T10:30:00.000Z','2026-10-05T10:20:00.000Z',1,'{}',0,'[12,11,10,9,8,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1990,'2026-10-05T12:30:00.000Z','2026-10-05T12:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1991,'2026-10-05T13:30:00.000Z','2026-10-05T13:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1992,'2026-10-05T02:30:00.000Z','2026-10-05T02:20:00.000Z',1,'{}',0,'[12,11,10,9,8,7,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,136,138]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1993,'2026-10-06T01:30:00.000Z','2026-10-06T01:20:00.000Z',1,'{}',0,'[9,8,7,5]',0,'[9,22,81,82,102,5,6,13,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,139,140,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1994,'2026-10-06T02:30:00.000Z','2026-10-06T02:20:00.000Z',1,'{}',0,'[12,11,10,9,8,7,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1995,'2026-10-06T05:30:00.000Z','2026-10-06T05:20:00.000Z',1,'{}',0,'[12,11,10,9,8,7,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1996,'2026-10-06T06:30:00.000Z','2026-10-06T06:20:00.000Z',1,'{}',0,'[12,11,10,9,8,7,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,4,14,35,86,98,99,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1997,'2026-10-06T09:30:00.000Z','2026-10-06T09:20:00.000Z',1,'{}',0,'[12,11,10,9,8,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1998,'2026-10-06T10:30:00.000Z','2026-10-06T10:20:00.000Z',1,'{}',0,'[12,11,10,9,8,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,5,16,17,18,19,27,28,29,30,31,32,33,37,45,64,65,66,67,68,69,70,71,72,74,76,77,78,79,88,89,90,91,92,94,95,97,101,103,127,144,145,146,2,3,10,21,23,24,36,40,41,42,80,137,149,147,141,140,139,138,136]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(1999,'2026-10-06T12:30:00.000Z','2026-10-06T12:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
|
||||||
INSERT INTO "delivery_slot_info" ("id","delivery_time","freeze_time","is_active","delivery_sequence","is_flash","group_ids","is_capacity_full","sku_ids") VALUES(2000,'2026-10-06T13:30:00.000Z','2026-10-06T13:20:00.000Z',1,'{}',0,'[12,11,10,9,5]',0,'[129,130,131,132,133,134,135,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,148,6,7,8,11,13,25,26,38,39,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,73,96,100,125,126,9,22,81,82,102,2,3,10,21,23,24,36,40,41,42,80,137,141]');
|
|
||||||
CREATE TABLE IF NOT EXISTS "home_banners" ("id" INTEGER PRIMARY KEY, "name" TEXT NOT NULL, "image_url" TEXT NOT NULL, "description" TEXT, "redirect_url" TEXT, "serial_num" INTEGER, "is_active" INTEGER NOT NULL DEFAULT false, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "last_updated" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "sku_ids" TEXT);
|
CREATE TABLE IF NOT EXISTS "home_banners" ("id" INTEGER PRIMARY KEY, "name" TEXT NOT NULL, "image_url" TEXT NOT NULL, "description" TEXT, "redirect_url" TEXT, "serial_num" INTEGER, "is_active" INTEGER NOT NULL DEFAULT false, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "last_updated" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "sku_ids" TEXT);
|
||||||
INSERT INTO "home_banners" ("id","name","image_url","description","redirect_url","serial_num","is_active","created_at","last_updated","sku_ids") VALUES(9,'10%off ','1770281046297.jpg',NULL,NULL,NULL,0,'2026-02-05T08:44:06.996Z','2026-09-04T15:04:56.030Z','[1,2,3,4,5,6,8,7,9,11,13,12,10]');
|
INSERT INTO "home_banners" ("id","name","image_url","description","redirect_url","serial_num","is_active","created_at","last_updated","sku_ids") VALUES(9,'10%off ','1770281046297.jpg',NULL,NULL,NULL,0,'2026-02-05T08:44:06.996Z','2026-09-04T15:04:56.030Z','[1,2,3,4,5,6,8,7,9,11,13,12,10]');
|
||||||
INSERT INTO "home_banners" ("id","name","image_url","description","redirect_url","serial_num","is_active","created_at","last_updated","sku_ids") VALUES(11,'Daily veggies ','store-images/1770429593455.jpg','Under 19 ',NULL,3,0,'2026-02-07T01:59:57.566Z','2026-08-19T04:14:07.794Z','[45,72,76,97,70,32,74,77,33]');
|
INSERT INTO "home_banners" ("id","name","image_url","description","redirect_url","serial_num","is_active","created_at","last_updated","sku_ids") VALUES(11,'Daily veggies ','store-images/1770429593455.jpg','Under 19 ',NULL,3,0,'2026-02-07T01:59:57.566Z','2026-08-19T04:14:07.794Z','[45,72,76,97,70,32,74,77,33]');
|
||||||
|
|
@ -2718,7 +2701,7 @@ INSERT INTO "key_val_store" ("key","value") VALUES('supportMobile','9000885620')
|
||||||
INSERT INTO "key_val_store" ("key","value") VALUES('tester','value41');
|
INSERT INTO "key_val_store" ("key","value") VALUES('tester','value41');
|
||||||
INSERT INTO "key_val_store" ("key","value") VALUES('versionNum','1.2.0');
|
INSERT INTO "key_val_store" ("key","value") VALUES('versionNum','1.2.0');
|
||||||
INSERT INTO "key_val_store" ("key","value") VALUES('cache_version','768');
|
INSERT INTO "key_val_store" ("key","value") VALUES('cache_version','768');
|
||||||
INSERT INTO "key_val_store" ("key","value") VALUES('slots_version_num','605');
|
INSERT INTO "key_val_store" ("key","value") VALUES('slots_version_num','589');
|
||||||
INSERT INTO "key_val_store" ("key","value") VALUES('availability_version_num','106');
|
INSERT INTO "key_val_store" ("key","value") VALUES('availability_version_num','106');
|
||||||
INSERT INTO "key_val_store" ("key","value") VALUES('tagsOrder','9,1,2,4,5,8,3,7,6');
|
INSERT INTO "key_val_store" ("key","value") VALUES('tagsOrder','9,1,2,4,5,8,3,7,6');
|
||||||
CREATE TABLE IF NOT EXISTS "notif_creds" ("id" INTEGER PRIMARY KEY, "token" TEXT NOT NULL, "added_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "user_id" INTEGER NOT NULL, "last_verified" TEXT);
|
CREATE TABLE IF NOT EXISTS "notif_creds" ("id" INTEGER PRIMARY KEY, "token" TEXT NOT NULL, "added_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "user_id" INTEGER NOT NULL, "last_verified" TEXT);
|
||||||
|
|
@ -2743,7 +2726,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(24,'ExponentPushToken[B2zWnHNaumIgbeFFKO-15D]','2026-02-09T19:53:37.594Z',113,'2026-02-10T07:43:48.632Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(24,'ExponentPushToken[B2zWnHNaumIgbeFFKO-15D]','2026-02-09T19:53:37.594Z',113,'2026-02-10T07:43:48.632Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(25,'ExponentPushToken[wIhrdlAmwj0Eytvz3W3TTZ]','2026-02-10T11:09:24.848Z',127,'2026-04-18T06:53:49.329Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(25,'ExponentPushToken[wIhrdlAmwj0Eytvz3W3TTZ]','2026-02-10T11:09:24.848Z',127,'2026-04-18T06:53:49.329Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(26,'ExponentPushToken[hFUlPFOKMdAUgtDP7EtSzM]','2026-02-10T11:33:43.821Z',3,'2026-02-24T11:16:46.799Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(26,'ExponentPushToken[hFUlPFOKMdAUgtDP7EtSzM]','2026-02-10T11:33:43.821Z',3,'2026-02-24T11:16:46.799Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(27,'ExponentPushToken[NymZTEED3G7YCyDg7ihgBA]','2026-02-11T03:16:04.540Z',2,'2026-10-05T12:10:38.480Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(27,'ExponentPushToken[NymZTEED3G7YCyDg7ihgBA]','2026-02-11T03:16:04.540Z',2,'2026-10-04T05:24:25.436Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(28,'ExponentPushToken[ARCT4KD7CJ_pFF_GkywepP]','2026-02-11T11:34:32.238Z',115,'2026-10-01T08:47:55.052Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(28,'ExponentPushToken[ARCT4KD7CJ_pFF_GkywepP]','2026-02-11T11:34:32.238Z',115,'2026-10-01T08:47:55.052Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(29,'ExponentPushToken[NN4v16BFslBX8ryVXDwQIg]','2026-02-12T08:46:42.421Z',128,'2026-02-17T19:04:12.936Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(29,'ExponentPushToken[NN4v16BFslBX8ryVXDwQIg]','2026-02-12T08:46:42.421Z',128,'2026-02-17T19:04:12.936Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(30,'ExponentPushToken[qbteKBC1wbLMCe1ltpul7u]','2026-02-12T13:28:00.376Z',129,'2026-02-12T13:28:00.375Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(30,'ExponentPushToken[qbteKBC1wbLMCe1ltpul7u]','2026-02-12T13:28:00.376Z',129,'2026-02-12T13:28:00.375Z');
|
||||||
|
|
@ -2754,7 +2737,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(35,'ExponentPushToken[pIQ2waNDjjSHjQYJbXKD8m]','2026-02-15T07:14:10.912Z',9,'2026-02-15T07:14:10.910Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(35,'ExponentPushToken[pIQ2waNDjjSHjQYJbXKD8m]','2026-02-15T07:14:10.912Z',9,'2026-02-15T07:14:10.910Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(37,'ExponentPushToken[kq0I8ADfcQ4VcsZ0yK0Mlc]','2026-02-16T04:01:56.375Z',102,'2026-07-05T14:39:51.366Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(37,'ExponentPushToken[kq0I8ADfcQ4VcsZ0yK0Mlc]','2026-02-16T04:01:56.375Z',102,'2026-07-05T14:39:51.366Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(38,'ExponentPushToken[8wH85rFtQRMk7ciFszmirX]','2026-02-16T09:30:32.930Z',134,'2026-09-08T07:22:34.339Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(38,'ExponentPushToken[8wH85rFtQRMk7ciFszmirX]','2026-02-16T09:30:32.930Z',134,'2026-09-08T07:22:34.339Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(39,'ExponentPushToken[YJRSQmMUEUbaI2VCZLaoN_]','2026-02-16T09:49:56.439Z',6,'2026-10-05T12:48:35.909Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(39,'ExponentPushToken[YJRSQmMUEUbaI2VCZLaoN_]','2026-02-16T09:49:56.439Z',6,'2026-10-03T05:36:50.514Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(40,'ExponentPushToken[QoWbURL2N8-3jRhQwfnRP_]','2026-02-17T08:59:14.561Z',135,'2026-02-17T08:59:14.561Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(40,'ExponentPushToken[QoWbURL2N8-3jRhQwfnRP_]','2026-02-17T08:59:14.561Z',135,'2026-02-17T08:59:14.561Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(41,'ExponentPushToken[sz_g75Il_CNAG6KpEAxYUH]','2026-02-17T12:56:33.589Z',136,'2026-02-21T08:42:45.220Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(41,'ExponentPushToken[sz_g75Il_CNAG6KpEAxYUH]','2026-02-17T12:56:33.589Z',136,'2026-02-21T08:42:45.220Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(42,'ExponentPushToken[JMEvkUHKT0n34hcs-MiJAJ]','2026-02-17T14:22:02.805Z',137,'2026-02-17T18:35:14.821Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(42,'ExponentPushToken[JMEvkUHKT0n34hcs-MiJAJ]','2026-02-17T14:22:02.805Z',137,'2026-02-17T18:35:14.821Z');
|
||||||
|
|
@ -2771,7 +2754,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(53,'ExponentPushToken[Gb4KieGJIaPnwHmzTYtcMv]','2026-02-18T09:59:40.489Z',146,'2026-03-19T13:14:04.282Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(53,'ExponentPushToken[Gb4KieGJIaPnwHmzTYtcMv]','2026-02-18T09:59:40.489Z',146,'2026-03-19T13:14:04.282Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(54,'ExponentPushToken[B74UidJrvnrP8wBb_rHdAC]','2026-02-18T10:44:13.691Z',147,'2026-02-23T08:38:19.771Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(54,'ExponentPushToken[B74UidJrvnrP8wBb_rHdAC]','2026-02-18T10:44:13.691Z',147,'2026-02-23T08:38:19.771Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(55,'ExponentPushToken[x2VSb-OGOkn6ivVxpzk6tX]','2026-02-18T12:22:43.429Z',24,'2026-09-23T03:03:05.361Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(55,'ExponentPushToken[x2VSb-OGOkn6ivVxpzk6tX]','2026-02-18T12:22:43.429Z',24,'2026-09-23T03:03:05.361Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(56,'ExponentPushToken[qh6APjAuydb_LnlN4DqYsO]','2026-02-18T12:46:15.407Z',82,'2026-10-05T07:43:39.780Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(56,'ExponentPushToken[qh6APjAuydb_LnlN4DqYsO]','2026-02-18T12:46:15.407Z',82,'2026-10-04T06:06:32.234Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(57,'ExponentPushToken[2o572RMsmVSFjUamLuEcoU]','2026-02-18T12:59:53.266Z',148,'2026-02-28T11:44:18.100Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(57,'ExponentPushToken[2o572RMsmVSFjUamLuEcoU]','2026-02-18T12:59:53.266Z',148,'2026-02-28T11:44:18.100Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(58,'ExponentPushToken[3kQdCMDTdTPoDMGP05IITB]','2026-02-18T14:39:16.947Z',149,'2026-02-24T12:34:44.462Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(58,'ExponentPushToken[3kQdCMDTdTPoDMGP05IITB]','2026-02-18T14:39:16.947Z',149,'2026-02-24T12:34:44.462Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(59,'ExponentPushToken[oHNDFzFcWPaMrr6UuCUaUd]','2026-02-18T14:41:42.373Z',150,'2026-02-19T10:15:17.727Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(59,'ExponentPushToken[oHNDFzFcWPaMrr6UuCUaUd]','2026-02-18T14:41:42.373Z',150,'2026-02-19T10:15:17.727Z');
|
||||||
|
|
@ -2811,7 +2794,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(101,'ExponentPushToken[6l-WlJL-dUG2BixclCkzSa]','2026-02-20T19:02:52.357Z',181,'2026-02-21T15:53:21.219Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(101,'ExponentPushToken[6l-WlJL-dUG2BixclCkzSa]','2026-02-20T19:02:52.357Z',181,'2026-02-21T15:53:21.219Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(102,'ExponentPushToken[GWm8_aOevnr5ec38AN858s]','2026-02-20T22:43:24.944Z',182,'2026-02-20T22:43:24.942Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(102,'ExponentPushToken[GWm8_aOevnr5ec38AN858s]','2026-02-20T22:43:24.944Z',182,'2026-02-20T22:43:24.942Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(103,'ExponentPushToken[IfWmkbPqhvki2Ddpx20WN5]','2026-02-20T23:50:19.602Z',183,'2026-02-20T23:50:19.601Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(103,'ExponentPushToken[IfWmkbPqhvki2Ddpx20WN5]','2026-02-20T23:50:19.602Z',183,'2026-02-20T23:50:19.601Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(106,'ExponentPushToken[DPeHKsBNbTJ74b4C69d_1e]','2026-02-21T04:15:31.155Z',184,'2026-10-05T06:33:56.122Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(106,'ExponentPushToken[DPeHKsBNbTJ74b4C69d_1e]','2026-02-21T04:15:31.155Z',184,'2026-08-15T12:38:46.844Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(107,'ExponentPushToken[4mdT-7ILy1RkxkKGHVeFih]','2026-02-21T08:17:55.879Z',185,'2026-07-17T06:42:44.910Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(107,'ExponentPushToken[4mdT-7ILy1RkxkKGHVeFih]','2026-02-21T08:17:55.879Z',185,'2026-07-17T06:42:44.910Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(108,'ExponentPushToken[OYJNU2Hl_BHC8vNmnh5nIa]','2026-02-21T09:05:03.666Z',186,'2026-04-20T07:51:11.084Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(108,'ExponentPushToken[OYJNU2Hl_BHC8vNmnh5nIa]','2026-02-21T09:05:03.666Z',186,'2026-04-20T07:51:11.084Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(110,'ExponentPushToken[2KeIQoIW7_xfYnmYKLjIxX]','2026-02-21T12:46:33.392Z',188,'2026-03-20T13:35:09.142Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(110,'ExponentPushToken[2KeIQoIW7_xfYnmYKLjIxX]','2026-02-21T12:46:33.392Z',188,'2026-03-20T13:35:09.142Z');
|
||||||
|
|
@ -2952,7 +2935,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(264,'ExponentPushToken[5Y0eOLHP-WHTdPIhswnzaw]','2026-04-02T08:29:21.649Z',329,'2026-09-25T04:35:16.056Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(264,'ExponentPushToken[5Y0eOLHP-WHTdPIhswnzaw]','2026-04-02T08:29:21.649Z',329,'2026-09-25T04:35:16.056Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(265,'ExponentPushToken[j1udiOOiTMrtb_49NPsyh-]','2026-04-02T18:49:29.930Z',330,'2026-04-03T14:24:44.024Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(265,'ExponentPushToken[j1udiOOiTMrtb_49NPsyh-]','2026-04-02T18:49:29.930Z',330,'2026-04-03T14:24:44.024Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(266,'ExponentPushToken[rz39abBULbPasMRFHOT-AN]','2026-04-03T12:01:30.781Z',331,'2026-04-04T06:55:46.505Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(266,'ExponentPushToken[rz39abBULbPasMRFHOT-AN]','2026-04-03T12:01:30.781Z',331,'2026-04-04T06:55:46.505Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(267,'ExponentPushToken[65W0pwIGMvhlJfkiFc6zx0]','2026-04-03T13:20:24.038Z',332,'2026-10-05T11:10:28.282Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(267,'ExponentPushToken[65W0pwIGMvhlJfkiFc6zx0]','2026-04-03T13:20:24.038Z',332,'2026-09-26T13:36:33.767Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(268,'ExponentPushToken[aXvbRJCJ7qL-dyqo0IniPl]','2026-04-04T09:26:11.860Z',334,'2026-04-04T09:26:11.859Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(268,'ExponentPushToken[aXvbRJCJ7qL-dyqo0IniPl]','2026-04-04T09:26:11.860Z',334,'2026-04-04T09:26:11.859Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(269,'ExponentPushToken[VlLrGUMtFX1nxxy2DeDIgN]','2026-04-04T13:09:09.177Z',335,'2026-04-07T09:54:31.885Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(269,'ExponentPushToken[VlLrGUMtFX1nxxy2DeDIgN]','2026-04-04T13:09:09.177Z',335,'2026-04-07T09:54:31.885Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(270,'ExponentPushToken[dFz_9LHwDFSBp1vWbcwmXl]','2026-04-05T13:39:16.893Z',336,'2026-05-15T16:18:43.947Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(270,'ExponentPushToken[dFz_9LHwDFSBp1vWbcwmXl]','2026-04-05T13:39:16.893Z',336,'2026-05-15T16:18:43.947Z');
|
||||||
|
|
@ -2990,7 +2973,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(303,'ExponentPushToken[YGTSX0EOsCf9hWEvguxNkS]','2026-04-16 10:52:35',369,'2026-04-16T14:10:37.392Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(303,'ExponentPushToken[YGTSX0EOsCf9hWEvguxNkS]','2026-04-16 10:52:35',369,'2026-04-16T14:10:37.392Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(304,'ExponentPushToken[p8DReGBwkddCghIhNQyQ0T]','2026-04-16 12:51:14',370,'2026-04-21T07:50:21.913Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(304,'ExponentPushToken[p8DReGBwkddCghIhNQyQ0T]','2026-04-16 12:51:14',370,'2026-04-21T07:50:21.913Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(305,'ExponentPushToken[buJyUUCfCpMmsiXqb1--T4]','2026-04-17 01:54:49',287,'2026-04-17T07:51:25.750Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(305,'ExponentPushToken[buJyUUCfCpMmsiXqb1--T4]','2026-04-17 01:54:49',287,'2026-04-17T07:51:25.750Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(306,'ExponentPushToken[ejbdytJvh3Il0GV1KwDToW]','2026-04-17 06:46:11',333,'2026-10-05T01:49:01.646Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(306,'ExponentPushToken[ejbdytJvh3Il0GV1KwDToW]','2026-04-17 06:46:11',333,'2026-10-02T16:20:30.127Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(307,'ExponentPushToken[bhhbsNIAeOe4Xhsj97LF5j]','2026-04-18 12:46:29',373,'2026-06-21T13:16:30.320Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(307,'ExponentPushToken[bhhbsNIAeOe4Xhsj97LF5j]','2026-04-18 12:46:29',373,'2026-06-21T13:16:30.320Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(308,'ExponentPushToken[yBdp3fLwkPsMiqeoKeMtIm]','2026-04-18 15:09:00',374,'2026-04-18T15:26:53.822Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(308,'ExponentPushToken[yBdp3fLwkPsMiqeoKeMtIm]','2026-04-18 15:09:00',374,'2026-04-18T15:26:53.822Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(309,'ExponentPushToken[2hQn8_HvBKqblcFpKRksux]','2026-04-18 17:40:19',375,'2026-04-20T15:53:31.948Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(309,'ExponentPushToken[2hQn8_HvBKqblcFpKRksux]','2026-04-18 17:40:19',375,'2026-04-20T15:53:31.948Z');
|
||||||
|
|
@ -3145,7 +3128,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(458,'ExponentPushToken[Ebc0cuPFrghIwb_FmJwENI]','2026-06-02 03:05:22',521,'2026-08-20T14:29:15.272Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(458,'ExponentPushToken[Ebc0cuPFrghIwb_FmJwENI]','2026-06-02 03:05:22',521,'2026-08-20T14:29:15.272Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(459,'ExponentPushToken[mGS5oMNKNsT8Mz8z4sx1go]','2026-06-02 04:53:36',56,'2026-06-26T13:46:12.851Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(459,'ExponentPushToken[mGS5oMNKNsT8Mz8z4sx1go]','2026-06-02 04:53:36',56,'2026-06-26T13:46:12.851Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(460,'ExponentPushToken[GVmFlgNm2z77xa9FHrNk6_]','2026-06-02 15:13:54',522,'2026-06-21T05:09:07.110Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(460,'ExponentPushToken[GVmFlgNm2z77xa9FHrNk6_]','2026-06-02 15:13:54',522,'2026-06-21T05:09:07.110Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(461,'ExponentPushToken[FQkh_ZP1lkQyiNnxXEqr4E]','2026-06-03 06:02:12',523,'2026-10-05T02:54:20.590Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(461,'ExponentPushToken[FQkh_ZP1lkQyiNnxXEqr4E]','2026-06-03 06:02:12',523,'2026-10-02T17:07:48.790Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(462,'ExponentPushToken[Mo-qy_GDfkNpabXVmUlvKq]','2026-06-03 19:55:48',524,'2026-06-03T19:55:48.709Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(462,'ExponentPushToken[Mo-qy_GDfkNpabXVmUlvKq]','2026-06-03 19:55:48',524,'2026-06-03T19:55:48.709Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(463,'ExponentPushToken[jPR6iMEYUQUelPxCuIpWNz]','2026-06-04 06:28:01',525,'2026-07-04T05:10:55.047Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(463,'ExponentPushToken[jPR6iMEYUQUelPxCuIpWNz]','2026-06-04 06:28:01',525,'2026-07-04T05:10:55.047Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(464,'ExponentPushToken[VCk4w1PDR1OV079kBuXOpx]','2026-06-05 06:17:11',526,'2026-06-05T06:17:11.931Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(464,'ExponentPushToken[VCk4w1PDR1OV079kBuXOpx]','2026-06-05 06:17:11',526,'2026-06-05T06:17:11.931Z');
|
||||||
|
|
@ -3174,7 +3157,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(487,'ExponentPushToken[UAnNHEEuWMTweGB1slqWH4]','2026-06-19 07:35:12',548,'2026-08-18T05:49:58.718Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(487,'ExponentPushToken[UAnNHEEuWMTweGB1slqWH4]','2026-06-19 07:35:12',548,'2026-08-18T05:49:58.718Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(488,'ExponentPushToken[EK8crzF5tdn9HfnPOT9H9D]','2026-06-19 11:46:44',251,'2026-09-06T11:45:54.060Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(488,'ExponentPushToken[EK8crzF5tdn9HfnPOT9H9D]','2026-06-19 11:46:44',251,'2026-09-06T11:45:54.060Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(489,'ExponentPushToken[ufvEW-JbkQ1TCVWiktLTyj]','2026-06-19 18:15:01',550,'2026-06-23T14:09:53.827Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(489,'ExponentPushToken[ufvEW-JbkQ1TCVWiktLTyj]','2026-06-19 18:15:01',550,'2026-06-23T14:09:53.827Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(490,'ExponentPushToken[DOkgOUPJde54yD6cUa0x9A]','2026-06-20 02:02:50',551,'2026-10-04T13:14:52.274Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(490,'ExponentPushToken[DOkgOUPJde54yD6cUa0x9A]','2026-06-20 02:02:50',551,'2026-10-02T11:40:53.699Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(491,'ExponentPushToken[cTNmkmDS-e8kqNL-7GSjGu]','2026-06-20 07:41:55',552,'2026-07-06T10:55:59.021Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(491,'ExponentPushToken[cTNmkmDS-e8kqNL-7GSjGu]','2026-06-20 07:41:55',552,'2026-07-06T10:55:59.021Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(492,'ExponentPushToken[2hQn8_HvBKqblcFpKRksux]','2026-06-20 11:55:56',553,'2026-09-11T16:15:57.405Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(492,'ExponentPushToken[2hQn8_HvBKqblcFpKRksux]','2026-06-20 11:55:56',553,'2026-09-11T16:15:57.405Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(493,'ExponentPushToken[OWNeViCALUf_Ihm-ccl-ey]','2026-06-21 04:43:58',555,'2026-08-14T16:46:51.573Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(493,'ExponentPushToken[OWNeViCALUf_Ihm-ccl-ey]','2026-06-21 04:43:58',555,'2026-08-14T16:46:51.573Z');
|
||||||
|
|
@ -3325,7 +3308,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(638,'ExponentPushToken[dOlEajFNIax8rdaTbBkNlc]','2026-07-21 02:30:00',706,'2026-08-07T04:10:38.432Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(638,'ExponentPushToken[dOlEajFNIax8rdaTbBkNlc]','2026-07-21 02:30:00',706,'2026-08-07T04:10:38.432Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(639,'ExponentPushToken[jW54u-I5_OejWjAkT2qUfE]','2026-07-23 16:57:18',287,'2026-09-12T12:33:12.087Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(639,'ExponentPushToken[jW54u-I5_OejWjAkT2qUfE]','2026-07-23 16:57:18',287,'2026-09-12T12:33:12.087Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(640,'ExponentPushToken[a_386KOA4xwSpcIkT0mGUi]','2026-07-25 10:18:36',709,'2026-07-25T10:18:36.972Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(640,'ExponentPushToken[a_386KOA4xwSpcIkT0mGUi]','2026-07-25 10:18:36',709,'2026-07-25T10:18:36.972Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(641,'ExponentPushToken[2NZqtPL16Um00KZCcMh0us]','2026-07-25 15:14:10',710,'2026-10-04T18:31:56.637Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(641,'ExponentPushToken[2NZqtPL16Um00KZCcMh0us]','2026-07-25 15:14:10',710,'2026-09-30T16:54:25.966Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(642,'ExponentPushToken[8hKXOnIpaUkmy10OUlclHN]','2026-07-25 15:17:25',711,'2026-09-19T03:34:28.425Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(642,'ExponentPushToken[8hKXOnIpaUkmy10OUlclHN]','2026-07-25 15:17:25',711,'2026-09-19T03:34:28.425Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(643,'ExponentPushToken[7h7wnsIG9HYUoyBvb4X8wS]','2026-07-26 02:54:02',677,'2026-09-28T02:22:48.903Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(643,'ExponentPushToken[7h7wnsIG9HYUoyBvb4X8wS]','2026-07-26 02:54:02',677,'2026-09-28T02:22:48.903Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(644,'ExponentPushToken[OKi6lkFWT3Qg5yj9DXJDO_]','2026-07-26 10:42:54',712,'2026-07-26T10:42:54.332Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(644,'ExponentPushToken[OKi6lkFWT3Qg5yj9DXJDO_]','2026-07-26 10:42:54',712,'2026-07-26T10:42:54.332Z');
|
||||||
|
|
@ -3397,18 +3380,18 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(710,'ExponentPushToken[DfXROmDG8YJTmvfcfVxMpe]','2026-08-23 04:49:05',773,'2026-09-27T04:20:25.487Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(710,'ExponentPushToken[DfXROmDG8YJTmvfcfVxMpe]','2026-08-23 04:49:05',773,'2026-09-27T04:20:25.487Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(711,'ExponentPushToken[tQsJhjJzn-50yVdmhNgCV6]','2026-08-23 12:41:26',774,'2026-10-01T13:02:10.973Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(711,'ExponentPushToken[tQsJhjJzn-50yVdmhNgCV6]','2026-08-23 12:41:26',774,'2026-10-01T13:02:10.973Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(712,'ExponentPushToken[A7oX6UATJaJSzbqtsn0yr7]','2026-08-25 12:51:53',775,'2026-08-25T12:51:53.370Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(712,'ExponentPushToken[A7oX6UATJaJSzbqtsn0yr7]','2026-08-25 12:51:53',775,'2026-08-25T12:51:53.370Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(713,'ExponentPushToken[RQkA2GC-Bx6xDJte59EcBq]','2026-08-26 03:07:00',631,'2026-10-05T03:05:35.927Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(713,'ExponentPushToken[RQkA2GC-Bx6xDJte59EcBq]','2026-08-26 03:07:00',631,'2026-10-03T16:17:05.643Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(714,'ExponentPushToken[FtW_9WFmvw03mvp8R_IlWO]','2026-08-26 04:49:34',777,'2026-10-04T01:53:35.745Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(714,'ExponentPushToken[FtW_9WFmvw03mvp8R_IlWO]','2026-08-26 04:49:34',777,'2026-10-04T01:53:35.745Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(715,'ExponentPushToken[T0eGUjNcmCOQ7NPLybYuA9]','2026-08-28 00:23:22',778,'2026-09-12T05:10:33.056Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(715,'ExponentPushToken[T0eGUjNcmCOQ7NPLybYuA9]','2026-08-28 00:23:22',778,'2026-09-12T05:10:33.056Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(716,'ExponentPushToken[x6SwyVAH1qfqZLVbCVQkex]','2026-08-28 04:02:04',753,'2026-08-28T04:02:04.916Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(716,'ExponentPushToken[x6SwyVAH1qfqZLVbCVQkex]','2026-08-28 04:02:04',753,'2026-08-28T04:02:04.916Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(717,'ExponentPushToken[n7SxWSMs2W7ui6TYUgAEbK]','2026-08-28 13:47:11',779,'2026-09-22T13:05:37.131Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(717,'ExponentPushToken[n7SxWSMs2W7ui6TYUgAEbK]','2026-08-28 13:47:11',779,'2026-09-22T13:05:37.131Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(718,'ExponentPushToken[iNGyPfJ6JQ_EB8KSrSdPdQ]','2026-08-29 08:08:28',780,'2026-08-29T08:08:28.659Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(718,'ExponentPushToken[iNGyPfJ6JQ_EB8KSrSdPdQ]','2026-08-29 08:08:28',780,'2026-08-29T08:08:28.659Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(719,'ExponentPushToken[Q7owrkPKnQ6h19Y7YhXNV6]','2026-08-29 13:35:29',782,'2026-10-05T02:16:25.849Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(719,'ExponentPushToken[Q7owrkPKnQ6h19Y7YhXNV6]','2026-08-29 13:35:29',782,'2026-09-29T05:42:55.772Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(720,'ExponentPushToken[xrdiTHAyODb8MC2Ods51zE]','2026-08-29 13:42:13',783,'2026-08-29T13:42:13.252Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(720,'ExponentPushToken[xrdiTHAyODb8MC2Ods51zE]','2026-08-29 13:42:13',783,'2026-08-29T13:42:13.252Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(721,'ExponentPushToken[MngcWzOVupG2jCP92aFAHU]','2026-08-29 15:28:31',784,'2026-09-27T03:02:00.567Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(721,'ExponentPushToken[MngcWzOVupG2jCP92aFAHU]','2026-08-29 15:28:31',784,'2026-09-27T03:02:00.567Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(722,'ExponentPushToken[An3bpDJv4ViVBBpzCzM44a]','2026-08-30 01:19:31',29,'2026-08-30T01:19:31.979Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(722,'ExponentPushToken[An3bpDJv4ViVBBpzCzM44a]','2026-08-30 01:19:31',29,'2026-08-30T01:19:31.979Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(723,'ExponentPushToken[t3FYXoICjlyY0mLg8oJk83]','2026-08-30 02:02:58',785,'2026-10-04T05:10:17.008Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(723,'ExponentPushToken[t3FYXoICjlyY0mLg8oJk83]','2026-08-30 02:02:58',785,'2026-10-04T05:10:17.008Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(724,'ExponentPushToken[cqGWnjOjW7qpXvF00rCIwY]','2026-08-30 04:10:48',787,'2026-10-05T12:06:12.922Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(724,'ExponentPushToken[cqGWnjOjW7qpXvF00rCIwY]','2026-08-30 04:10:48',787,'2026-10-02T02:31:38.247Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(725,'ExponentPushToken[loVe35LpngZFsQIIQLmHnS]','2026-08-30 14:44:23',788,'2026-08-30T14:44:23.687Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(725,'ExponentPushToken[loVe35LpngZFsQIIQLmHnS]','2026-08-30 14:44:23',788,'2026-08-30T14:44:23.687Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(726,'ExponentPushToken[jMAuL9Kx7xb-v6TQ3-YEQ-]','2026-09-04 08:44:41',789,'2026-09-07T17:53:58.352Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(726,'ExponentPushToken[jMAuL9Kx7xb-v6TQ3-YEQ-]','2026-09-04 08:44:41',789,'2026-09-07T17:53:58.352Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(727,'ExponentPushToken[L-HhklOaSOVOmC6sPjn7eQ]','2026-09-05 08:53:52',665,'2026-09-05T10:02:47.268Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(727,'ExponentPushToken[L-HhklOaSOVOmC6sPjn7eQ]','2026-09-05 08:53:52',665,'2026-09-05T10:02:47.268Z');
|
||||||
|
|
@ -3428,7 +3411,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(741,'ExponentPushToken[PwSeN-FT1Dy_NWAqI0OUfV]','2026-09-11 12:48:43',803,'2026-09-12T13:45:11.111Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(741,'ExponentPushToken[PwSeN-FT1Dy_NWAqI0OUfV]','2026-09-11 12:48:43',803,'2026-09-12T13:45:11.111Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(742,'ExponentPushToken[SIRJ0qB0C-J5OCmYaP-5UQ]','2026-09-11 12:50:13',804,'2026-09-22T14:04:54.628Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(742,'ExponentPushToken[SIRJ0qB0C-J5OCmYaP-5UQ]','2026-09-11 12:50:13',804,'2026-09-22T14:04:54.628Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(743,'ExponentPushToken[WzpuNzCkxDkXMzE41JBBmI]','2026-09-11 12:57:21',805,'2026-09-11T12:57:21.207Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(743,'ExponentPushToken[WzpuNzCkxDkXMzE41JBBmI]','2026-09-11 12:57:21',805,'2026-09-11T12:57:21.207Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(744,'ExponentPushToken[itG-EzEuLzZWVh9doGp12W]','2026-09-11 12:57:42',806,'2026-10-04T11:35:19.218Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(744,'ExponentPushToken[itG-EzEuLzZWVh9doGp12W]','2026-09-11 12:57:42',806,'2026-09-11T12:57:42.330Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(745,'ExponentPushToken[1AeiC4H0hILSydIylv68ot]','2026-09-11 12:59:41',807,'2026-09-11T12:59:41.031Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(745,'ExponentPushToken[1AeiC4H0hILSydIylv68ot]','2026-09-11 12:59:41',807,'2026-09-11T12:59:41.031Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(746,'ExponentPushToken[JZmGf7ExgbhcVTVWvpc0_C]','2026-09-11 13:01:36',808,'2026-09-12T06:27:13.134Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(746,'ExponentPushToken[JZmGf7ExgbhcVTVWvpc0_C]','2026-09-11 13:01:36',808,'2026-09-12T06:27:13.134Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(747,'ExponentPushToken[gdQBOmLhD0ombL0AYTbyFU]','2026-09-11 13:02:02',360,'2026-09-12T04:45:05.529Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(747,'ExponentPushToken[gdQBOmLhD0ombL0AYTbyFU]','2026-09-11 13:02:02',360,'2026-09-12T04:45:05.529Z');
|
||||||
|
|
@ -3509,7 +3492,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(823,'ExponentPushToken[AsJ0_BAV3SYXAB116LUz-x]','2026-09-11 16:13:55',864,'2026-09-11T16:13:55.457Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(823,'ExponentPushToken[AsJ0_BAV3SYXAB116LUz-x]','2026-09-11 16:13:55',864,'2026-09-11T16:13:55.457Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(824,'ExponentPushToken[gwiCY_CTyAwHuYJCIXrlbl]','2026-09-11 16:14:01',894,'2026-09-11T16:14:01.637Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(824,'ExponentPushToken[gwiCY_CTyAwHuYJCIXrlbl]','2026-09-11 16:14:01',894,'2026-09-11T16:14:01.637Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(825,'ExponentPushToken[8og40zCvY95XruXNZmJuWV]','2026-09-11 16:15:54',895,'2026-09-11T16:24:32.458Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(825,'ExponentPushToken[8og40zCvY95XruXNZmJuWV]','2026-09-11 16:15:54',895,'2026-09-11T16:24:32.458Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(826,'ExponentPushToken[HMyHoaCdsbphjB4cA6bJ26]','2026-09-11 16:17:21',896,'2026-10-04T08:11:08.581Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(826,'ExponentPushToken[HMyHoaCdsbphjB4cA6bJ26]','2026-09-11 16:17:21',896,'2026-09-13T05:41:25.975Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(827,'ExponentPushToken[dvG0gYNqkghs8mPmAIwpkz]','2026-09-11 16:18:00',898,'2026-10-03T15:13:53.722Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(827,'ExponentPushToken[dvG0gYNqkghs8mPmAIwpkz]','2026-09-11 16:18:00',898,'2026-10-03T15:13:53.722Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(828,'ExponentPushToken[lHJDcbPm2rj9OFPEA3vkO3]','2026-09-11 16:25:26',899,'2026-09-11T16:25:26.365Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(828,'ExponentPushToken[lHJDcbPm2rj9OFPEA3vkO3]','2026-09-11 16:25:26',899,'2026-09-11T16:25:26.365Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(829,'ExponentPushToken[6DbNeELLtm9itYXHz4zJR9]','2026-09-11 16:25:40',900,'2026-09-23T08:43:29.962Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(829,'ExponentPushToken[6DbNeELLtm9itYXHz4zJR9]','2026-09-11 16:25:40',900,'2026-09-23T08:43:29.962Z');
|
||||||
|
|
@ -3606,7 +3589,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(920,'ExponentPushToken[yoginqEu07w8QGrlJkq-fq]','2026-09-12 07:12:06',1006,'2026-09-28T14:27:02.835Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(920,'ExponentPushToken[yoginqEu07w8QGrlJkq-fq]','2026-09-12 07:12:06',1006,'2026-09-28T14:27:02.835Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(921,'ExponentPushToken[ceqKVyFD0U8CUtECPCErHD]','2026-09-12 07:12:33',1007,'2026-09-20T08:00:44.074Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(921,'ExponentPushToken[ceqKVyFD0U8CUtECPCErHD]','2026-09-12 07:12:33',1007,'2026-09-20T08:00:44.074Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(922,'ExponentPushToken[G04tsDHh8i7hJbjofA07m3]','2026-09-12 07:20:52',1008,'2026-09-13T14:55:37.692Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(922,'ExponentPushToken[G04tsDHh8i7hJbjofA07m3]','2026-09-12 07:20:52',1008,'2026-09-13T14:55:37.692Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(923,'ExponentPushToken[ZSldxmD8RXsz-HXinaVO3M]','2026-09-12 07:20:54',1009,'2026-10-05T12:13:56.158Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(923,'ExponentPushToken[ZSldxmD8RXsz-HXinaVO3M]','2026-09-12 07:20:54',1009,'2026-10-03T14:20:55.474Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(924,'ExponentPushToken[Ec-YZlJi14sZmFnBJMsaD4]','2026-09-12 07:28:19',1012,'2026-09-30T15:13:49.327Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(924,'ExponentPushToken[Ec-YZlJi14sZmFnBJMsaD4]','2026-09-12 07:28:19',1012,'2026-09-30T15:13:49.327Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(925,'ExponentPushToken[qJx-_AF4AVCayQ9gliKogm]','2026-09-12 07:36:49',1014,'2026-09-12T07:36:49.806Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(925,'ExponentPushToken[qJx-_AF4AVCayQ9gliKogm]','2026-09-12 07:36:49',1014,'2026-09-12T07:36:49.806Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(926,'ExponentPushToken[1ys58PAxbdv1srboHb095_]','2026-09-12 08:04:01',1015,'2026-09-19T09:48:45.111Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(926,'ExponentPushToken[1ys58PAxbdv1srboHb095_]','2026-09-12 08:04:01',1015,'2026-09-19T09:48:45.111Z');
|
||||||
|
|
@ -3629,7 +3612,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(943,'ExponentPushToken[iQXX1pIVCsJJJGy0Ai7r7L]','2026-09-12 11:15:20',1035,'2026-09-13T12:24:42.495Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(943,'ExponentPushToken[iQXX1pIVCsJJJGy0Ai7r7L]','2026-09-12 11:15:20',1035,'2026-09-13T12:24:42.495Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(944,'ExponentPushToken[mnOUodAfRrKayYT4a5oMei]','2026-09-12 11:54:22',1036,'2026-09-12T12:24:20.829Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(944,'ExponentPushToken[mnOUodAfRrKayYT4a5oMei]','2026-09-12 11:54:22',1036,'2026-09-12T12:24:20.829Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(945,'ExponentPushToken[S3edG9OMq0d901PGrHZ8Lc]','2026-09-12 11:59:09',1037,'2026-09-12T13:48:15.402Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(945,'ExponentPushToken[S3edG9OMq0d901PGrHZ8Lc]','2026-09-12 11:59:09',1037,'2026-09-12T13:48:15.402Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(946,'ExponentPushToken[ZoDA0WPIBWwAFPv5AZyokR]','2026-09-12 12:01:24',1038,'2026-10-04T10:27:02.904Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(946,'ExponentPushToken[ZoDA0WPIBWwAFPv5AZyokR]','2026-09-12 12:01:24',1038,'2026-10-04T02:06:02.618Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(947,'ExponentPushToken[MpbA9nJ3Dkazd3TBEuj5_-]','2026-09-12 12:09:19',1040,'2026-10-02T16:27:02.665Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(947,'ExponentPushToken[MpbA9nJ3Dkazd3TBEuj5_-]','2026-09-12 12:09:19',1040,'2026-10-02T16:27:02.665Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(948,'ExponentPushToken[o318VhF4eEOSNdVwOg1VGg]','2026-09-12 12:22:46',1041,'2026-09-13T08:55:19.536Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(948,'ExponentPushToken[o318VhF4eEOSNdVwOg1VGg]','2026-09-12 12:22:46',1041,'2026-09-13T08:55:19.536Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(949,'ExponentPushToken[DFCxaCAywyuJTCX5iv20UG]','2026-09-12 12:24:46',843,'2026-09-21T13:46:29.187Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(949,'ExponentPushToken[DFCxaCAywyuJTCX5iv20UG]','2026-09-12 12:24:46',843,'2026-09-21T13:46:29.187Z');
|
||||||
|
|
@ -3651,7 +3634,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(965,'ExponentPushToken[MeKE-hCClXytdZ53ocFiOv]','2026-09-12 14:43:04',1061,'2026-09-29T03:52:23.697Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(965,'ExponentPushToken[MeKE-hCClXytdZ53ocFiOv]','2026-09-12 14:43:04',1061,'2026-09-29T03:52:23.697Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(966,'ExponentPushToken[mlc1I9If6LtD8cFY8ByVRY]','2026-09-12 14:49:21',1062,'2026-09-12T14:49:21.627Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(966,'ExponentPushToken[mlc1I9If6LtD8cFY8ByVRY]','2026-09-12 14:49:21',1062,'2026-09-12T14:49:21.627Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(967,'ExponentPushToken[ISWleKA_LB8IT-fgRQdZWK]','2026-09-12 15:17:37',1064,'2026-09-25T01:39:25.062Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(967,'ExponentPushToken[ISWleKA_LB8IT-fgRQdZWK]','2026-09-12 15:17:37',1064,'2026-09-25T01:39:25.062Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(968,'ExponentPushToken[SoHvgyPJww_zlAKOSLhKRG]','2026-09-12 15:20:44',861,'2026-10-05T03:14:34.735Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(968,'ExponentPushToken[SoHvgyPJww_zlAKOSLhKRG]','2026-09-12 15:20:44',861,'2026-10-03T08:48:07.044Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(969,'ExponentPushToken[kxjt_tE8ZO5TXvQis1POo8]','2026-09-12 17:31:37',1066,'2026-09-12T17:31:37.634Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(969,'ExponentPushToken[kxjt_tE8ZO5TXvQis1POo8]','2026-09-12 17:31:37',1066,'2026-09-12T17:31:37.634Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(970,'ExponentPushToken[0wnswUCYyC2AGtnLoGObAw]','2026-09-12 17:51:00',388,'2026-09-30T16:35:36.684Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(970,'ExponentPushToken[0wnswUCYyC2AGtnLoGObAw]','2026-09-12 17:51:00',388,'2026-09-30T16:35:36.684Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(971,'ExponentPushToken[GLZhE2PQcy5pJifQ1Fz4XI]','2026-09-12 18:49:56',770,'2026-09-13T07:51:12.864Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(971,'ExponentPushToken[GLZhE2PQcy5pJifQ1Fz4XI]','2026-09-12 18:49:56',770,'2026-09-13T07:51:12.864Z');
|
||||||
|
|
@ -3672,7 +3655,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(987,'ExponentPushToken[16jaqrPx3FzyO_d1hHiGHg]','2026-09-13 03:55:43',1081,'2026-09-15T01:39:19.197Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(987,'ExponentPushToken[16jaqrPx3FzyO_d1hHiGHg]','2026-09-13 03:55:43',1081,'2026-09-15T01:39:19.197Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(988,'ExponentPushToken[usgE4PJwJdwbX42UIZXmc4]','2026-09-13 04:04:32',1083,'2026-09-13T09:53:48.358Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(988,'ExponentPushToken[usgE4PJwJdwbX42UIZXmc4]','2026-09-13 04:04:32',1083,'2026-09-13T09:53:48.358Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(989,'ExponentPushToken[ZLli-oCSwKXdwK76_wbpSV]','2026-09-13 04:08:11',1084,'2026-10-02T04:49:07.401Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(989,'ExponentPushToken[ZLli-oCSwKXdwK76_wbpSV]','2026-09-13 04:08:11',1084,'2026-10-02T04:49:07.401Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(990,'ExponentPushToken[OkvSBIH98-SD18k0ZGt4q5]','2026-09-13 04:08:15',1085,'2026-10-05T13:13:19.165Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(990,'ExponentPushToken[OkvSBIH98-SD18k0ZGt4q5]','2026-09-13 04:08:15',1085,'2026-10-03T03:47:24.988Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(991,'ExponentPushToken[24byybAHwDxXS5OllA0-A_]','2026-09-13 04:11:40',1086,'2026-09-20T17:15:42.267Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(991,'ExponentPushToken[24byybAHwDxXS5OllA0-A_]','2026-09-13 04:11:40',1086,'2026-09-20T17:15:42.267Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(992,'ExponentPushToken[JVnaxTB7poovs0jF9n6J2T]','2026-09-13 04:54:52',1090,'2026-09-13T04:54:52.652Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(992,'ExponentPushToken[JVnaxTB7poovs0jF9n6J2T]','2026-09-13 04:54:52',1090,'2026-09-13T04:54:52.652Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(993,'ExponentPushToken[tSuxQEHc4BQdGNJlijM7Vr]','2026-09-13 05:04:24',431,'2026-09-20T06:46:52.864Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(993,'ExponentPushToken[tSuxQEHc4BQdGNJlijM7Vr]','2026-09-13 05:04:24',431,'2026-09-20T06:46:52.864Z');
|
||||||
|
|
@ -3705,7 +3688,7 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1020,'ExponentPushToken[fugQ6_HLa2juewp8Zn4UgQ]','2026-09-13 14:33:32',1120,'2026-09-13T14:33:32.593Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1020,'ExponentPushToken[fugQ6_HLa2juewp8Zn4UgQ]','2026-09-13 14:33:32',1120,'2026-09-13T14:33:32.593Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1021,'ExponentPushToken[LZepWSN_vkskreDaEO5h49]','2026-09-13 14:38:46',1121,'2026-09-23T15:53:56.409Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1021,'ExponentPushToken[LZepWSN_vkskreDaEO5h49]','2026-09-13 14:38:46',1121,'2026-09-23T15:53:56.409Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1022,'ExponentPushToken[HfFi2-LusjcJG8pj_wtAjL]','2026-09-13 15:44:43',897,'2026-10-02T06:09:48.701Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1022,'ExponentPushToken[HfFi2-LusjcJG8pj_wtAjL]','2026-09-13 15:44:43',897,'2026-10-02T06:09:48.701Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1023,'ExponentPushToken[LYXJVoFOQ8GCqkCbnQfvkg]','2026-09-13 16:01:43',1122,'2026-10-04T07:51:35.337Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1023,'ExponentPushToken[LYXJVoFOQ8GCqkCbnQfvkg]','2026-09-13 16:01:43',1122,'2026-09-28T14:31:27.684Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1024,'ExponentPushToken[T_nIUfCINe10gwxfcHBOLA]','2026-09-13 16:52:48',1123,'2026-09-27T15:19:50.023Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1024,'ExponentPushToken[T_nIUfCINe10gwxfcHBOLA]','2026-09-13 16:52:48',1123,'2026-09-27T15:19:50.023Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1025,'ExponentPushToken[_klJWgJMeQYwJAgnCKG1Lr]','2026-09-13 18:33:34',1124,'2026-09-14T15:50:22.112Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1025,'ExponentPushToken[_klJWgJMeQYwJAgnCKG1Lr]','2026-09-13 18:33:34',1124,'2026-09-14T15:50:22.112Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1026,'ExponentPushToken[CTYqUwAYp2jOy53Qmc_lZ1]','2026-09-13 23:54:20',1125,'2026-09-13T23:54:20.633Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1026,'ExponentPushToken[CTYqUwAYp2jOy53Qmc_lZ1]','2026-09-13 23:54:20',1125,'2026-09-13T23:54:20.633Z');
|
||||||
|
|
@ -3715,9 +3698,9 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1031,'ExponentPushToken[VYy3y-BAtF4zXmnjHg4VyA]','2026-09-14 05:11:50',948,'2026-10-01T14:53:10.832Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1031,'ExponentPushToken[VYy3y-BAtF4zXmnjHg4VyA]','2026-09-14 05:11:50',948,'2026-10-01T14:53:10.832Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1032,'ExponentPushToken[JdH9rqPuxQU5jahvSsqyhJ]','2026-09-14 06:06:25',1130,'2026-09-26T13:37:37.135Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1032,'ExponentPushToken[JdH9rqPuxQU5jahvSsqyhJ]','2026-09-14 06:06:25',1130,'2026-09-26T13:37:37.135Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1033,'ExponentPushToken[cr6_1DEr-vrZgj8U0LtEt7]','2026-09-14 07:34:10',1131,'2026-09-21T05:54:20.792Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1033,'ExponentPushToken[cr6_1DEr-vrZgj8U0LtEt7]','2026-09-14 07:34:10',1131,'2026-09-21T05:54:20.792Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1034,'ExponentPushToken[tEGX8aFR3w2cjBrEbk1Fk4]','2026-09-14 12:32:32',1133,'2026-10-04T13:49:07.669Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1034,'ExponentPushToken[tEGX8aFR3w2cjBrEbk1Fk4]','2026-09-14 12:32:32',1133,'2026-10-02T12:05:14.056Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1035,'ExponentPushToken[30brXmOfR8xyF20BRLQ2eV]','2026-09-14 13:32:18',1135,'2026-09-14T13:32:18.417Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1035,'ExponentPushToken[30brXmOfR8xyF20BRLQ2eV]','2026-09-14 13:32:18',1135,'2026-09-14T13:32:18.417Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1036,'ExponentPushToken[QlF5ksFNOH8qup-CBDCj5k]','2026-09-14 13:37:50',1136,'2026-10-05T05:42:53.879Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1036,'ExponentPushToken[QlF5ksFNOH8qup-CBDCj5k]','2026-09-14 13:37:50',1136,'2026-10-01T11:48:18.862Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1037,'ExponentPushToken[tiZy9uGX2ERidETFAQUAEq]','2026-09-14 13:38:34',1137,'2026-09-27T12:27:58.319Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1037,'ExponentPushToken[tiZy9uGX2ERidETFAQUAEq]','2026-09-14 13:38:34',1137,'2026-09-27T12:27:58.319Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1038,'ExponentPushToken[iDeZjqHFrkhOc5JRXee6qz]','2026-09-14 13:56:03',1138,'2026-09-15T07:39:59.926Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1038,'ExponentPushToken[iDeZjqHFrkhOc5JRXee6qz]','2026-09-14 13:56:03',1138,'2026-09-15T07:39:59.926Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1039,'ExponentPushToken[0A5i8bBTbwwv6QV_JIqgVJ]','2026-09-14 14:24:03',1139,'2026-10-04T05:01:24.650Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1039,'ExponentPushToken[0A5i8bBTbwwv6QV_JIqgVJ]','2026-09-14 14:24:03',1139,'2026-10-04T05:01:24.650Z');
|
||||||
|
|
@ -3761,10 +3744,10 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1077,'ExponentPushToken[n6B80DEPzOZaVFxMEPV3XD]','2026-09-16 10:59:37',1178,'2026-09-28T10:31:29.786Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1077,'ExponentPushToken[n6B80DEPzOZaVFxMEPV3XD]','2026-09-16 10:59:37',1178,'2026-09-28T10:31:29.786Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1078,'ExponentPushToken[OpZW5bOeA7wJrcsUCo9Z8A]','2026-09-16 11:38:16',1179,'2026-09-17T12:20:30.157Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1078,'ExponentPushToken[OpZW5bOeA7wJrcsUCo9Z8A]','2026-09-16 11:38:16',1179,'2026-09-17T12:20:30.157Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1079,'ExponentPushToken[ye7MxxDDR0AwyeQGgFo8fd]','2026-09-16 13:30:36',1180,'2026-09-16T13:30:36.005Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1079,'ExponentPushToken[ye7MxxDDR0AwyeQGgFo8fd]','2026-09-16 13:30:36',1180,'2026-09-16T13:30:36.005Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1080,'ExponentPushToken[SEESKaBxsoIYTZLVY_K1sM]','2026-09-16 13:59:04',1181,'2026-10-05T13:14:35.498Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1080,'ExponentPushToken[SEESKaBxsoIYTZLVY_K1sM]','2026-09-16 13:59:04',1181,'2026-10-01T02:27:59.000Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1081,'ExponentPushToken[D7fhIqNks_2h7Ehe5jlrJq]','2026-09-16 14:45:45',621,'2026-09-16T14:45:45.138Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1081,'ExponentPushToken[D7fhIqNks_2h7Ehe5jlrJq]','2026-09-16 14:45:45',621,'2026-09-16T14:45:45.138Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1082,'ExponentPushToken[-4qSKkCdK0SXapQiMDNtns]','2026-09-16 15:01:02',1182,'2026-09-28T13:35:03.426Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1082,'ExponentPushToken[-4qSKkCdK0SXapQiMDNtns]','2026-09-16 15:01:02',1182,'2026-09-28T13:35:03.426Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1083,'ExponentPushToken[y8nVWRKuKgTA34bujyeLqJ]','2026-09-16 15:33:14',1183,'2026-10-04T10:38:51.995Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1083,'ExponentPushToken[y8nVWRKuKgTA34bujyeLqJ]','2026-09-16 15:33:14',1183,'2026-09-26T13:55:27.544Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1084,'ExponentPushToken[Zx-QUbFXu-Kt4XasJVNfCB]','2026-09-16 17:02:48',1184,'2026-10-03T12:12:59.773Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1084,'ExponentPushToken[Zx-QUbFXu-Kt4XasJVNfCB]','2026-09-16 17:02:48',1184,'2026-10-03T12:12:59.773Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1085,'ExponentPushToken[WNFDt7O_XwLLi9o4Kzkxh1]','2026-09-16 17:05:05',1141,'2026-09-16T17:05:05.695Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1085,'ExponentPushToken[WNFDt7O_XwLLi9o4Kzkxh1]','2026-09-16 17:05:05',1141,'2026-09-16T17:05:05.695Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1086,'ExponentPushToken[iy4keVDskW3UeguQ98IC18]','2026-09-16 18:28:01',1185,'2026-09-25T03:52:06.344Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1086,'ExponentPushToken[iy4keVDskW3UeguQ98IC18]','2026-09-16 18:28:01',1185,'2026-09-25T03:52:06.344Z');
|
||||||
|
|
@ -3788,11 +3771,11 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1104,'ExponentPushToken[BJwjKOBp3xFUnSdLaZ0yiz]','2026-09-19 12:14:28',1201,'2026-09-19T12:14:28.952Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1104,'ExponentPushToken[BJwjKOBp3xFUnSdLaZ0yiz]','2026-09-19 12:14:28',1201,'2026-09-19T12:14:28.952Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1105,'ExponentPushToken[sYn2CnJV_Focrm9PgNacHQ]','2026-09-19 15:53:55',1203,'2026-09-19T16:29:08.044Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1105,'ExponentPushToken[sYn2CnJV_Focrm9PgNacHQ]','2026-09-19 15:53:55',1203,'2026-09-19T16:29:08.044Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1106,'ExponentPushToken[ZG7Fh9C5LLnFyvla3a_3Jn]','2026-09-20 01:12:46',1204,'2026-10-04T02:52:13.956Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1106,'ExponentPushToken[ZG7Fh9C5LLnFyvla3a_3Jn]','2026-09-20 01:12:46',1204,'2026-10-04T02:52:13.956Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1107,'ExponentPushToken[HMXpGGGvmTBCh7B61lF2U0]','2026-09-20 01:53:21',1100,'2026-10-04T09:34:36.839Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1107,'ExponentPushToken[HMXpGGGvmTBCh7B61lF2U0]','2026-09-20 01:53:21',1100,'2026-10-04T02:02:47.072Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1108,'ExponentPushToken[HMXpGGGvmTBCh7B61lF2U0]','2026-09-20 01:54:47',1205,'2026-09-20T01:54:47.445Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1108,'ExponentPushToken[HMXpGGGvmTBCh7B61lF2U0]','2026-09-20 01:54:47',1205,'2026-09-20T01:54:47.445Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1109,'ExponentPushToken[mec1ZSMxmBvEMJyUlfJTm3]','2026-09-20 02:28:17',1207,'2026-10-01T04:05:14.056Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1109,'ExponentPushToken[mec1ZSMxmBvEMJyUlfJTm3]','2026-09-20 02:28:17',1207,'2026-10-01T04:05:14.056Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1110,'ExponentPushToken[h-oyvOAE2pv1SQx26f9v24]','2026-09-20 03:39:12',1206,'2026-09-20T03:39:12.084Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1110,'ExponentPushToken[h-oyvOAE2pv1SQx26f9v24]','2026-09-20 03:39:12',1206,'2026-09-20T03:39:12.084Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1111,'ExponentPushToken[mze7mZEI6bj7WfZMaQXgro]','2026-09-20 03:41:47',1209,'2026-10-04T11:26:11.185Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1111,'ExponentPushToken[mze7mZEI6bj7WfZMaQXgro]','2026-09-20 03:41:47',1209,'2026-10-02T13:48:34.806Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1112,'ExponentPushToken[dUhS4qLlRFg8aoEw-a6ovm]','2026-09-20 03:48:59',1210,'2026-09-20T03:48:59.584Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1112,'ExponentPushToken[dUhS4qLlRFg8aoEw-a6ovm]','2026-09-20 03:48:59',1210,'2026-09-20T03:48:59.584Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1113,'ExponentPushToken[fzAMDCDzxfz_INDdHPv4sp]','2026-09-20 03:58:53',1211,'2026-10-04T03:32:30.802Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1113,'ExponentPushToken[fzAMDCDzxfz_INDdHPv4sp]','2026-09-20 03:58:53',1211,'2026-10-04T03:32:30.802Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1114,'ExponentPushToken[JGzmRZFxa45kLsOKaqFopH]','2026-09-20 04:06:52',1212,'2026-10-01T05:04:28.699Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1114,'ExponentPushToken[JGzmRZFxa45kLsOKaqFopH]','2026-09-20 04:06:52',1212,'2026-10-01T05:04:28.699Z');
|
||||||
|
|
@ -3801,18 +3784,18 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1117,'ExponentPushToken[tSuxQEHc4BQdGNJlijM7Vr]','2026-09-20 06:52:20',1217,'2026-10-04T05:22:48.881Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1117,'ExponentPushToken[tSuxQEHc4BQdGNJlijM7Vr]','2026-09-20 06:52:20',1217,'2026-10-04T05:22:48.881Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1118,'ExponentPushToken[fVp1HDFuI6Y3wWmaHnu3-B]','2026-09-20 07:28:35',1218,'2026-09-26T13:39:50.431Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1118,'ExponentPushToken[fVp1HDFuI6Y3wWmaHnu3-B]','2026-09-20 07:28:35',1218,'2026-09-26T13:39:50.431Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1119,'ExponentPushToken[SId1iNAFY95XcsMtz2uJrg]','2026-09-20 07:48:12',1220,'2026-09-30T05:46:06.474Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1119,'ExponentPushToken[SId1iNAFY95XcsMtz2uJrg]','2026-09-20 07:48:12',1220,'2026-09-30T05:46:06.474Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1120,'ExponentPushToken[Pbr9F2D-ma760Dj3qOrb7x]','2026-09-20 19:09:47',1222,'2026-10-04T22:14:42.226Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1120,'ExponentPushToken[Pbr9F2D-ma760Dj3qOrb7x]','2026-09-20 19:09:47',1222,'2026-09-20T19:09:47.095Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1121,'ExponentPushToken[J8hBbBBeiw-no4syt58Rdn]','2026-09-21 02:45:58',1223,'2026-09-21T02:45:58.146Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1121,'ExponentPushToken[J8hBbBBeiw-no4syt58Rdn]','2026-09-21 02:45:58',1223,'2026-09-21T02:45:58.146Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1122,'ExponentPushToken[7YN-38A0es_jyMLZpWzHU7]','2026-09-21 03:26:03',1224,'2026-10-03T04:58:16.494Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1122,'ExponentPushToken[7YN-38A0es_jyMLZpWzHU7]','2026-09-21 03:26:03',1224,'2026-10-03T04:58:16.494Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1123,'ExponentPushToken[iIcTbdI1VF_NXjHMZyhxqd]','2026-09-21 16:20:32',614,'2026-09-21T16:20:32.456Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1123,'ExponentPushToken[iIcTbdI1VF_NXjHMZyhxqd]','2026-09-21 16:20:32',614,'2026-09-21T16:20:32.456Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1124,'ExponentPushToken[-XWvoZG6YvMAXGX-U8mWoz]','2026-09-22 04:51:09',1225,'2026-09-22T04:51:09.481Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1124,'ExponentPushToken[-XWvoZG6YvMAXGX-U8mWoz]','2026-09-22 04:51:09',1225,'2026-09-22T04:51:09.481Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1125,'ExponentPushToken[3-tDcEKCzibg-42zefSROO]','2026-09-22 06:53:18',1227,'2026-09-22T06:53:18.069Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1125,'ExponentPushToken[3-tDcEKCzibg-42zefSROO]','2026-09-22 06:53:18',1227,'2026-09-22T06:53:18.069Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1126,'ExponentPushToken[cJxCbaOagbae-Llcx3-aMY]','2026-09-22 07:38:58',1228,'2026-09-22T07:52:03.274Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1126,'ExponentPushToken[cJxCbaOagbae-Llcx3-aMY]','2026-09-22 07:38:58',1228,'2026-09-22T07:52:03.274Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1127,'ExponentPushToken[snonCdFK2OupPppDrYv_cT]','2026-09-22 08:41:30',1229,'2026-10-05T05:34:57.374Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1127,'ExponentPushToken[snonCdFK2OupPppDrYv_cT]','2026-09-22 08:41:30',1229,'2026-10-03T09:18:13.674Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1128,'ExponentPushToken[r6GG7TANCHJEFlGy4qit7d]','2026-09-22 10:28:10',1230,'2026-10-01T03:41:58.843Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1128,'ExponentPushToken[r6GG7TANCHJEFlGy4qit7d]','2026-09-22 10:28:10',1230,'2026-10-01T03:41:58.843Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1129,'ExponentPushToken[ta7f7nA1-1F_CwvMD7aYkw]','2026-09-22 16:42:15',1231,'2026-09-23T02:24:07.421Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1129,'ExponentPushToken[ta7f7nA1-1F_CwvMD7aYkw]','2026-09-22 16:42:15',1231,'2026-09-23T02:24:07.421Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1130,'ExponentPushToken[c5aQtcDHV5MI_-hOOEZKuS]','2026-09-22 17:50:06',1232,'2026-09-22T17:50:06.925Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1130,'ExponentPushToken[c5aQtcDHV5MI_-hOOEZKuS]','2026-09-22 17:50:06',1232,'2026-09-22T17:50:06.925Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1131,'ExponentPushToken[qTUrgFPaNG485pQjbGmp9z]','2026-09-23 06:22:33',1234,'2026-10-05T11:39:45.382Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1131,'ExponentPushToken[qTUrgFPaNG485pQjbGmp9z]','2026-09-23 06:22:33',1234,'2026-10-03T05:45:31.932Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1132,'ExponentPushToken[u_O_ydL80T2K3DCOenmP2f]','2026-09-23 12:21:42',1235,'2026-09-23T12:21:42.126Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1132,'ExponentPushToken[u_O_ydL80T2K3DCOenmP2f]','2026-09-23 12:21:42',1235,'2026-09-23T12:21:42.126Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1133,'ExponentPushToken[01eMroAzJBbq_R8mWS9cDx]','2026-09-23 12:34:56',1236,'2026-09-28T01:58:40.648Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1133,'ExponentPushToken[01eMroAzJBbq_R8mWS9cDx]','2026-09-23 12:34:56',1236,'2026-09-28T01:58:40.648Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1134,'ExponentPushToken[1o2hUJNgzIuYVrv0qg9BRz]','2026-09-23 13:07:26',1237,'2026-10-02T08:13:53.051Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1134,'ExponentPushToken[1o2hUJNgzIuYVrv0qg9BRz]','2026-09-23 13:07:26',1237,'2026-10-02T08:13:53.051Z');
|
||||||
|
|
@ -3831,30 +3814,30 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1147,'ExponentPushToken[091g6KArH4RT4D1WPvjX63]','2026-09-25 17:18:15',1251,'2026-09-30T12:29:06.713Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1147,'ExponentPushToken[091g6KArH4RT4D1WPvjX63]','2026-09-25 17:18:15',1251,'2026-09-30T12:29:06.713Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1148,'ExponentPushToken[LlfvF1Bhtvd7mGFReKcDV5]','2026-09-26 04:36:18',1252,'2026-09-26T04:36:18.357Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1148,'ExponentPushToken[LlfvF1Bhtvd7mGFReKcDV5]','2026-09-26 04:36:18',1252,'2026-09-26T04:36:18.357Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1149,'ExponentPushToken[__M9CLEVj_j9IpU3AsUdDC]','2026-09-26 05:51:38',119,'2026-09-26T05:51:38.509Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1149,'ExponentPushToken[__M9CLEVj_j9IpU3AsUdDC]','2026-09-26 05:51:38',119,'2026-09-26T05:51:38.509Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1150,'ExponentPushToken[mMJ-_6Ev70Hz-OnSi1oRY5]','2026-09-26 15:43:02',1254,'2026-10-04T14:39:21.788Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1150,'ExponentPushToken[mMJ-_6Ev70Hz-OnSi1oRY5]','2026-09-26 15:43:02',1254,'2026-10-02T10:37:14.485Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1151,'ExponentPushToken[cPo8IVBjvLXvjV1AFZoi68]','2026-09-27 01:27:58',1255,'2026-10-02T13:35:56.856Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1151,'ExponentPushToken[cPo8IVBjvLXvjV1AFZoi68]','2026-09-27 01:27:58',1255,'2026-10-02T13:35:56.856Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1152,'ExponentPushToken[TCFYIgFGUV7DFhrEMK3JqP]','2026-09-27 02:18:58',1257,'2026-10-02T07:17:45.378Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1152,'ExponentPushToken[TCFYIgFGUV7DFhrEMK3JqP]','2026-09-27 02:18:58',1257,'2026-10-02T07:17:45.378Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1153,'ExponentPushToken[kXfKFoI9a0ydsNoCA2Ox4F]','2026-09-27 02:59:14',1258,'2026-10-03T15:51:32.906Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1153,'ExponentPushToken[kXfKFoI9a0ydsNoCA2Ox4F]','2026-09-27 02:59:14',1258,'2026-10-03T15:51:32.906Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1154,'ExponentPushToken[a_TjBGIQuTFQFw9ZxIekcq]','2026-09-27 03:34:51',1259,'2026-10-05T13:33:57.163Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1154,'ExponentPushToken[a_TjBGIQuTFQFw9ZxIekcq]','2026-09-27 03:34:51',1259,'2026-09-27T06:21:04.569Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1155,'ExponentPushToken[H3VmShFfGbFHrDDmaQGcd9]','2026-09-27 04:28:20',1261,'2026-09-30T10:36:49.249Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1155,'ExponentPushToken[H3VmShFfGbFHrDDmaQGcd9]','2026-09-27 04:28:20',1261,'2026-09-30T10:36:49.249Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1156,'ExponentPushToken[RNP4FZNLcX77qQR4HTZbD6]','2026-09-27 04:35:24',1262,'2026-10-04T04:11:52.983Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1156,'ExponentPushToken[RNP4FZNLcX77qQR4HTZbD6]','2026-09-27 04:35:24',1262,'2026-10-04T04:11:52.983Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1157,'ExponentPushToken[p8BSpIIv3AIgIwzmgm4FBD]','2026-09-27 05:06:59',1263,'2026-09-28T02:21:51.679Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1157,'ExponentPushToken[p8BSpIIv3AIgIwzmgm4FBD]','2026-09-27 05:06:59',1263,'2026-09-28T02:21:51.679Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1158,'ExponentPushToken[2WvYJ4EPGylmNQeHzYkCpy]','2026-09-27 05:49:57',1264,'2026-10-04T04:25:37.974Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1158,'ExponentPushToken[2WvYJ4EPGylmNQeHzYkCpy]','2026-09-27 05:49:57',1264,'2026-10-04T04:25:37.974Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1159,'ExponentPushToken[8T5k3AFi81wJwzH5pPkG43]','2026-09-27 09:43:04',1266,'2026-10-04T11:55:05.309Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1159,'ExponentPushToken[8T5k3AFi81wJwzH5pPkG43]','2026-09-27 09:43:04',1266,'2026-09-27T09:43:04.258Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1160,'ExponentPushToken[44tjzWEw1tKZJyq5lmWYvU]','2026-09-27 10:30:28',1267,'2026-09-27T10:30:28.587Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1160,'ExponentPushToken[44tjzWEw1tKZJyq5lmWYvU]','2026-09-27 10:30:28',1267,'2026-09-27T10:30:28.587Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1161,'ExponentPushToken[WIbIhfC8-8Fo2mBYTM8tO8]','2026-09-28 01:08:37',1268,'2026-09-28T01:08:37.707Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1161,'ExponentPushToken[WIbIhfC8-8Fo2mBYTM8tO8]','2026-09-28 01:08:37',1268,'2026-09-28T01:08:37.707Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1162,'ExponentPushToken[JBd4acDqmDOYuAOynxmVUz]','2026-09-28 02:55:46',1269,'2026-09-28T03:15:10.932Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1162,'ExponentPushToken[JBd4acDqmDOYuAOynxmVUz]','2026-09-28 02:55:46',1269,'2026-09-28T03:15:10.932Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1163,'ExponentPushToken[d_qFXIMpgnyoTOM9PY6EYa]','2026-09-28 03:46:06',1233,'2026-09-28T03:46:06.497Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1163,'ExponentPushToken[d_qFXIMpgnyoTOM9PY6EYa]','2026-09-28 03:46:06',1233,'2026-09-28T03:46:06.497Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1164,'ExponentPushToken[iiQw1eCKtmFkybrIoV3NyB]','2026-09-28 12:17:26',1272,'2026-09-28T12:17:26.014Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1164,'ExponentPushToken[iiQw1eCKtmFkybrIoV3NyB]','2026-09-28 12:17:26',1272,'2026-09-28T12:17:26.014Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1165,'ExponentPushToken[_lQELkE2Rxs_fto6g-typP]','2026-09-28 12:34:03',1273,'2026-09-28T12:43:31.664Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1165,'ExponentPushToken[_lQELkE2Rxs_fto6g-typP]','2026-09-28 12:34:03',1273,'2026-09-28T12:43:31.664Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1166,'ExponentPushToken[3v1sQKMs__HfceTmRd5Fg-]','2026-09-28 13:15:48',1274,'2026-10-05T04:18:47.892Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1166,'ExponentPushToken[3v1sQKMs__HfceTmRd5Fg-]','2026-09-28 13:15:48',1274,'2026-10-04T06:25:19.471Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1167,'ExponentPushToken[MaQ46uKAQKPedMXwt7TORX]','2026-09-28 13:26:26',1275,'2026-09-28T13:26:26.923Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1167,'ExponentPushToken[MaQ46uKAQKPedMXwt7TORX]','2026-09-28 13:26:26',1275,'2026-09-28T13:26:26.923Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1168,'ExponentPushToken[S651dDNGPTIiFq-s482Tai]','2026-09-28 18:15:40',1277,'2026-10-05T08:57:04.304Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1168,'ExponentPushToken[S651dDNGPTIiFq-s482Tai]','2026-09-28 18:15:40',1277,'2026-09-28T18:15:40.614Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1169,'ExponentPushToken[SWycb0OCMaPoLEiYaZdMqV]','2026-09-28 18:21:27',1244,'2026-10-04T14:46:36.088Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1169,'ExponentPushToken[SWycb0OCMaPoLEiYaZdMqV]','2026-09-28 18:21:27',1244,'2026-10-03T09:34:11.892Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1170,'ExponentPushToken[sRFHdUK_qStCNkB0RFAOuY]','2026-09-29 00:46:12',1235,'2026-10-01T11:36:25.119Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1170,'ExponentPushToken[sRFHdUK_qStCNkB0RFAOuY]','2026-09-29 00:46:12',1235,'2026-10-01T11:36:25.119Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1171,'ExponentPushToken[U2j41LIuA4ZqK-_keYGAzw]','2026-09-29 03:42:22',1221,'2026-10-04T04:37:33.017Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1171,'ExponentPushToken[U2j41LIuA4ZqK-_keYGAzw]','2026-09-29 03:42:22',1221,'2026-10-04T04:37:33.017Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1172,'ExponentPushToken[HElBhxNE_Vv_5fB-VXVrBo]','2026-09-29 13:10:40',1279,'2026-10-05T11:58:12.981Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1172,'ExponentPushToken[HElBhxNE_Vv_5fB-VXVrBo]','2026-09-29 13:10:40',1279,'2026-09-30T02:14:22.276Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1173,'ExponentPushToken[-9hmGvKmFnYseUN643bZBf]','2026-09-29 15:22:57',1280,'2026-10-05T03:39:46.238Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1173,'ExponentPushToken[-9hmGvKmFnYseUN643bZBf]','2026-09-29 15:22:57',1280,'2026-10-04T02:25:44.273Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1174,'ExponentPushToken[FBpPOANc_R9a2U1AZT39AL]','2026-09-30 03:23:15',1281,'2026-09-30T03:23:15.752Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1174,'ExponentPushToken[FBpPOANc_R9a2U1AZT39AL]','2026-09-30 03:23:15',1281,'2026-09-30T03:23:15.752Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1175,'ExponentPushToken[hDWGA_O70ynKLkeymva6tV]','2026-09-30 08:20:55',1282,'2026-10-04T05:24:35.713Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1175,'ExponentPushToken[hDWGA_O70ynKLkeymva6tV]','2026-09-30 08:20:55',1282,'2026-10-04T05:24:35.713Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1176,'ExponentPushToken[VhggFNCqqwrX-sH6HHN-8J]','2026-09-30 10:54:47',1283,'2026-10-02T02:39:22.105Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1176,'ExponentPushToken[VhggFNCqqwrX-sH6HHN-8J]','2026-09-30 10:54:47',1283,'2026-10-02T02:39:22.105Z');
|
||||||
|
|
@ -3863,25 +3846,21 @@ INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VA
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1179,'ExponentPushToken[07KnPYO2STGMa2tn6e6mj7]','2026-10-01 04:49:49',1285,'2026-10-02T01:49:34.802Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1179,'ExponentPushToken[07KnPYO2STGMa2tn6e6mj7]','2026-10-01 04:49:49',1285,'2026-10-02T01:49:34.802Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1180,'ExponentPushToken[nL2gsVAJfWmhKVWCNe1ZZB]','2026-10-01 20:36:19',388,'2026-10-01T20:37:41.928Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1180,'ExponentPushToken[nL2gsVAJfWmhKVWCNe1ZZB]','2026-10-01 20:36:19',388,'2026-10-01T20:37:41.928Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1181,'ExponentPushToken[GTjfdAOHPHfHH2HFx7ybnq]','2026-10-02 00:02:40',1286,'2026-10-02T00:02:40.765Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1181,'ExponentPushToken[GTjfdAOHPHfHH2HFx7ybnq]','2026-10-02 00:02:40',1286,'2026-10-02T00:02:40.765Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1182,'ExponentPushToken[Ra-ME6JqJFo-WghMYKRQ5m]','2026-10-02 01:02:52',1287,'2026-10-04T15:29:11.981Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1182,'ExponentPushToken[Ra-ME6JqJFo-WghMYKRQ5m]','2026-10-02 01:02:52',1287,'2026-10-03T18:34:15.415Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1183,'ExponentPushToken[YqTvn4OCS3sf5UNuYGHdfC]','2026-10-02 03:09:59',988,'2026-10-03T15:14:46.226Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1183,'ExponentPushToken[YqTvn4OCS3sf5UNuYGHdfC]','2026-10-02 03:09:59',988,'2026-10-03T15:14:46.226Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1184,'ExponentPushToken[4dMyItFoZPR9MiLxNrIKqz]','2026-10-02 03:37:50',1288,'2026-10-03T15:25:56.342Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1184,'ExponentPushToken[4dMyItFoZPR9MiLxNrIKqz]','2026-10-02 03:37:50',1288,'2026-10-03T15:25:56.342Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1185,'ExponentPushToken[4PvgQAObU_b4Z_I2lSyL8g]','2026-10-02 05:07:34',992,'2026-10-02T05:07:33.999Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1185,'ExponentPushToken[4PvgQAObU_b4Z_I2lSyL8g]','2026-10-02 05:07:34',992,'2026-10-02T05:07:33.999Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1186,'ExponentPushToken[FSNk6WM1J7U1Jvja48EHsE]','2026-10-02 08:38:31',1289,'2026-10-02T10:51:32.798Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1186,'ExponentPushToken[FSNk6WM1J7U1Jvja48EHsE]','2026-10-02 08:38:31',1289,'2026-10-02T10:51:32.798Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1187,'ExponentPushToken[iXaOH8D5iAsn6lh66GuWRa]','2026-10-02 12:51:37',1290,'2026-10-05T01:03:11.369Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1187,'ExponentPushToken[iXaOH8D5iAsn6lh66GuWRa]','2026-10-02 12:51:37',1290,'2026-10-03T07:56:23.971Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1188,'ExponentPushToken[ycucWsL8Ci-AWWKiL6Na6R]','2026-10-03 02:19:44',1292,'2026-10-03T02:19:44.722Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1188,'ExponentPushToken[ycucWsL8Ci-AWWKiL6Na6R]','2026-10-03 02:19:44',1292,'2026-10-03T02:19:44.722Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1189,'ExponentPushToken[m4tPqTJay2E2_l8TrIEpJT]','2026-10-03 04:04:45',1293,'2026-10-05T11:14:48.980Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1189,'ExponentPushToken[m4tPqTJay2E2_l8TrIEpJT]','2026-10-03 04:04:45',1293,'2026-10-03T04:04:45.849Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1190,'ExponentPushToken[Y7kb0KFKDbU4YiK6DTORKV]','2026-10-03 07:35:55',1291,'2026-10-05T13:25:08.081Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1190,'ExponentPushToken[Y7kb0KFKDbU4YiK6DTORKV]','2026-10-03 07:35:55',1291,'2026-10-04T06:27:05.687Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1191,'ExponentPushToken[iex6cpCl0n8JzF4Zu-VTTY]','2026-10-03 08:05:45',1295,'2026-10-03T08:07:59.617Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1191,'ExponentPushToken[iex6cpCl0n8JzF4Zu-VTTY]','2026-10-03 08:05:45',1295,'2026-10-03T08:07:59.617Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1192,'ExponentPushToken[gv4jP3Gd6hSD0r2rU86quf]','2026-10-03 11:30:28',1296,'2026-10-05T13:28:01.933Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1192,'ExponentPushToken[gv4jP3Gd6hSD0r2rU86quf]','2026-10-03 11:30:28',1296,'2026-10-03T13:07:10.970Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1193,'ExponentPushToken[sAknjMCm2jKoeWHqDX7z9C]','2026-10-03 11:32:22',1004,'2026-10-03T11:32:22.216Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1193,'ExponentPushToken[sAknjMCm2jKoeWHqDX7z9C]','2026-10-03 11:32:22',1004,'2026-10-03T11:32:22.216Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1194,'ExponentPushToken[or_qITKM6czx7Kyg9YqE5B]','2026-10-04 03:50:03',1299,'2026-10-04T03:50:53.906Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1194,'ExponentPushToken[or_qITKM6czx7Kyg9YqE5B]','2026-10-04 03:50:03',1299,'2026-10-04T03:50:53.906Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1195,'ExponentPushToken[zmLLiLKL34nAfwRD4FnrUO]','2026-10-04 05:47:23',1300,'2026-10-04T05:47:23.353Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1195,'ExponentPushToken[zmLLiLKL34nAfwRD4FnrUO]','2026-10-04 05:47:23',1300,'2026-10-04T05:47:23.353Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1196,'ExponentPushToken[QubHqLMYz8UGVlRVnodNYH]','2026-10-04 06:02:25',1301,'2026-10-04T07:13:41.805Z');
|
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1196,'ExponentPushToken[QubHqLMYz8UGVlRVnodNYH]','2026-10-04 06:02:25',1301,'2026-10-04T06:43:17.324Z');
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1197,'ExponentPushToken[OcutknHquFrN-BuPWTbgX8]','2026-10-04 07:10:25',388,'2026-10-04T17:53:09.912Z');
|
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1198,'ExponentPushToken[MIRB6nIuLjGtsv4wKL9Psd]','2026-10-04 10:10:23',1200,'2026-10-04T10:10:23.404Z');
|
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1199,'ExponentPushToken[V1pgxrA6_Vzd4WtffJ3TnY]','2026-10-04 11:37:04',1302,'2026-10-04T11:37:04.834Z');
|
|
||||||
INSERT INTO "notif_creds" ("id","token","added_at","user_id","last_verified") VALUES(1200,'ExponentPushToken[QEHRtAMoZwGkBdPRNvcYHi]','2026-10-05 13:21:09',1304,'2026-10-05T13:33:03.228Z');
|
|
||||||
CREATE TABLE IF NOT EXISTS "notifications" ("id" INTEGER PRIMARY KEY, "user_id" INTEGER NOT NULL, "title" TEXT NOT NULL, "body" TEXT NOT NULL, "type" TEXT, "is_read" INTEGER NOT NULL DEFAULT false, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP);
|
CREATE TABLE IF NOT EXISTS "notifications" ("id" INTEGER PRIMARY KEY, "user_id" INTEGER NOT NULL, "title" TEXT NOT NULL, "body" TEXT NOT NULL, "type" TEXT, "is_read" INTEGER NOT NULL DEFAULT false, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP);
|
||||||
CREATE TABLE IF NOT EXISTS "order_status" ("id" INTEGER PRIMARY KEY, "order_time" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "user_id" INTEGER NOT NULL, "order_id" INTEGER NOT NULL, "is_packaged" INTEGER NOT NULL DEFAULT false, "is_delivered" INTEGER NOT NULL DEFAULT false, "is_cancelled" INTEGER NOT NULL DEFAULT false, "cancel_reason" TEXT, "payment_state" TEXT NOT NULL DEFAULT 'pending', "cancellation_user_notes" TEXT, "cancellation_admin_notes" TEXT, "cancellation_reviewed" INTEGER NOT NULL DEFAULT false, "cancellation_reviewed_at" TEXT, "refund_coupon_id" INTEGER, "is_cancelled_by_admin" INTEGER);
|
CREATE TABLE IF NOT EXISTS "order_status" ("id" INTEGER PRIMARY KEY, "order_time" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "user_id" INTEGER NOT NULL, "order_id" INTEGER NOT NULL, "is_packaged" INTEGER NOT NULL DEFAULT false, "is_delivered" INTEGER NOT NULL DEFAULT false, "is_cancelled" INTEGER NOT NULL DEFAULT false, "cancel_reason" TEXT, "payment_state" TEXT NOT NULL DEFAULT 'pending', "cancellation_user_notes" TEXT, "cancellation_admin_notes" TEXT, "cancellation_reviewed" INTEGER NOT NULL DEFAULT false, "cancellation_reviewed_at" TEXT, "refund_coupon_id" INTEGER, "is_cancelled_by_admin" INTEGER);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(105,'2025-12-24T02:50:33.284Z',22,105,0,0,1,'E','cod','E',NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(105,'2025-12-24T02:50:33.284Z',22,105,0,0,1,'E','cod','E',NULL,0,NULL,NULL,NULL);
|
||||||
|
|
@ -6128,27 +6107,10 @@ INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged"
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2407,'2026-10-04 04:24:21',1202,2413,0,0,1,'Change my openioin','cod','Change my openioin',NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2407,'2026-10-04 04:24:21',1202,2413,0,0,1,'Change my openioin','cod','Change my openioin',NULL,0,NULL,NULL,NULL);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2408,'2026-10-04 04:37:17',141,2414,0,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2408,'2026-10-04 04:37:17',141,2414,0,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2409,'2026-10-04 04:44:43',250,2415,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2409,'2026-10-04 04:44:43',250,2415,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2410,'2026-10-04 05:04:26',230,2416,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2410,'2026-10-04 05:04:26',230,2416,0,0,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2411,'2026-10-04 05:12:53',785,2417,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2411,'2026-10-04 05:12:53',785,2417,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2412,'2026-10-04 05:28:23',1217,2418,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2412,'2026-10-04 05:28:23',1217,2418,0,0,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2413,'2026-10-04 06:03:28',1301,2419,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2413,'2026-10-04 06:03:28',1301,2419,0,0,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2414,'2026-10-04 12:15:16',551,2420,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2415,'2026-10-04 12:16:57',333,2421,0,0,1,'I want to add more items','cod','I want to add more items',NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2416,'2026-10-04 12:24:54',332,2422,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2417,'2026-10-04 12:24:54',332,2423,0,0,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2418,'2026-10-04 12:24:54',332,2424,0,0,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2419,'2026-10-04 12:48:53',1133,2425,0,0,1,'Delivery too late ','cod','Delivery too late ',NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2420,'2026-10-04 12:57:55',1133,2426,1,1,1,'Please cancel ','cod','Please cancel ',NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2421,'2026-10-04 13:44:12',861,2427,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2422,'2026-10-04 13:46:10',538,2428,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2423,'2026-10-04 14:37:24',388,2429,0,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2424,'2026-10-04 16:23:30',523,2430,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2425,'2026-10-05 02:36:28',333,2431,0,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2426,'2026-10-05 03:07:58',631,2432,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2427,'2026-10-05 04:45:46',184,2433,0,0,1,'I want to cancel this order,I oder other.','cod','I want to cancel this order,I oder other.',NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2428,'2026-10-05 04:51:16',184,2434,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2429,'2026-10-05 07:45:43',82,2435,1,1,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
INSERT INTO "order_status" ("id","order_time","user_id","order_id","is_packaged","is_delivered","is_cancelled","cancel_reason","payment_state","cancellation_user_notes","cancellation_admin_notes","cancellation_reviewed","cancellation_reviewed_at","refund_coupon_id","is_cancelled_by_admin") VALUES(2430,'2026-10-05 13:22:13',1304,2436,0,0,0,NULL,'cod',NULL,NULL,0,NULL,NULL,NULL);
|
|
||||||
CREATE TABLE IF NOT EXISTS "orders" ("id" INTEGER PRIMARY KEY, "user_id" INTEGER NOT NULL, "address_id" INTEGER NOT NULL, "slot_id" INTEGER, "total_amount" REAL NOT NULL, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "is_cod" INTEGER NOT NULL DEFAULT false, "is_online_payment" INTEGER NOT NULL DEFAULT false, "payment_info_id" INTEGER, "readable_id" INTEGER NOT NULL, "admin_notes" TEXT, "user_notes" TEXT, "delivery_charge" REAL NOT NULL DEFAULT '0', "order_group_id" TEXT, "order_group_proportion" REAL, "is_flash_delivery" INTEGER NOT NULL DEFAULT false, `delivered_at` text);
|
CREATE TABLE IF NOT EXISTS "orders" ("id" INTEGER PRIMARY KEY, "user_id" INTEGER NOT NULL, "address_id" INTEGER NOT NULL, "slot_id" INTEGER, "total_amount" REAL NOT NULL, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "is_cod" INTEGER NOT NULL DEFAULT false, "is_online_payment" INTEGER NOT NULL DEFAULT false, "payment_info_id" INTEGER, "readable_id" INTEGER NOT NULL, "admin_notes" TEXT, "user_notes" TEXT, "delivery_charge" REAL NOT NULL DEFAULT '0', "order_group_id" TEXT, "order_group_proportion" REAL, "is_flash_delivery" INTEGER NOT NULL DEFAULT false, `delivered_at` text);
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(105,22,31,9,7700,'2025-12-24T02:50:33.284Z',1,0,NULL,147,NULL,NULL,0,NULL,NULL,0,NULL);
|
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(105,22,31,9,7700,'2025-12-24T02:50:33.284Z',1,0,NULL,147,NULL,NULL,0,NULL,NULL,0,NULL);
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(106,15,24,8,92,'2025-12-24T10:32:01.957Z',1,0,NULL,149,NULL,NULL,20,NULL,NULL,0,NULL);
|
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(106,15,24,8,92,'2025-12-24T10:32:01.957Z',1,0,NULL,149,NULL,NULL,20,NULL,NULL,0,NULL);
|
||||||
|
|
@ -8404,23 +8366,6 @@ INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","crea
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2417,785,574,1979,304,'2026-10-04 05:12:53',1,0,NULL,-1,NULL,'Give me leg pieces ',0,'1791090773608-785',1,0,NULL);
|
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2417,785,574,1979,304,'2026-10-04 05:12:53',1,0,NULL,-1,NULL,'Give me leg pieces ',0,'1791090773608-785',1,0,NULL);
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2418,1217,868,1980,429,'2026-10-04 05:28:23',1,0,NULL,-1,NULL,'Fresh mutton we need with out bones ',0,'1791091703670-1217',1,0,NULL);
|
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2418,1217,868,1980,429,'2026-10-04 05:28:23',1,0,NULL,-1,NULL,'Fresh mutton we need with out bones ',0,'1791091703670-1217',1,0,NULL);
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2419,1301,869,1980,859,'2026-10-04 06:03:28',1,0,NULL,-1,NULL,NULL,0,'1791093808818-1301',1,0,NULL);
|
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2419,1301,869,1980,859,'2026-10-04 06:03:28',1,0,NULL,-1,NULL,NULL,0,'1791093808818-1301',1,0,NULL);
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2420,551,418,1983,307,'2026-10-04 12:15:16',1,0,NULL,-1,NULL,'Please deliver fresh fruits and give fast service of delivery ',0,'1791116115178-551',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2421,333,243,1983,470,'2026-10-04 12:16:57',1,0,NULL,-1,NULL,NULL,0,'1791116216948-333',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2422,332,242,1984,469,'2026-10-04 12:24:54',1,0,NULL,-1,NULL,NULL,0,'1791116693757-332',0.5021413276231264,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2423,332,242,1985,216,'2026-10-04 12:24:54',1,0,NULL,-1,NULL,NULL,0,'1791116693757-332',0.23126338329764454,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2424,332,242,1983,249,'2026-10-04 12:24:54',1,0,NULL,-1,NULL,NULL,0,'1791116693757-332',0.26659528907922914,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2425,1133,745,1984,299,'2026-10-04 12:48:52',1,0,NULL,-1,NULL,NULL,0,'1791118132553-1133',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2426,1133,745,1984,299,'2026-10-04 12:57:54',1,0,NULL,-1,NULL,NULL,0,'1791118674557-1133',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2427,861,703,1985,214,'2026-10-04 13:44:12',1,0,NULL,-1,NULL,'I need fresh vegetables ',15,'1791121452700-861',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2428,538,405,1985,503,'2026-10-04 13:46:10',1,0,NULL,-1,NULL,'Chicken should be half kg leg portion and half kg breast portion ',0,'1791121570270-538',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2429,388,285,1985,107,'2026-10-04 14:37:24',1,0,NULL,-1,NULL,NULL,15,'1791124644167-388',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2430,523,392,1985,429,'2026-10-04 16:23:30',1,0,NULL,-1,NULL,NULL,0,'1791131009969-523',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2431,333,243,NULL,633,'2026-10-05 02:36:28',1,0,NULL,-1,NULL,NULL,0,'1791167788448-333',1,1,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2432,631,457,1986,399,'2026-10-05 03:07:58',1,0,NULL,-1,NULL,NULL,0,'1791169678126-631',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2433,184,148,1986,295,'2026-10-05 04:45:46',1,0,NULL,-1,NULL,NULL,0,'1791175545927-184',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2434,184,148,1986,345,'2026-10-05 04:51:16',1,0,NULL,-1,NULL,NULL,0,'1791175875856-184',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2435,82,72,1988,262,'2026-10-05 07:45:43',1,0,NULL,-1,NULL,NULL,15,'1791186343792-82',1,0,NULL);
|
|
||||||
INSERT INTO "orders" ("id","user_id","address_id","slot_id","total_amount","created_at","is_cod","is_online_payment","payment_info_id","readable_id","admin_notes","user_notes","delivery_charge","order_group_id","order_group_proportion","is_flash_delivery","delivered_at") VALUES(2436,1304,871,1991,569,'2026-10-05 13:22:12',1,0,NULL,-1,NULL,'Please send fresh tiger prawns',0,'1791206532901-1304',1,0,NULL);
|
|
||||||
CREATE TABLE IF NOT EXISTS "payment_info" ("id" INTEGER PRIMARY KEY, "status" TEXT NOT NULL, "gateway" TEXT NOT NULL, "order_id" TEXT, "token" TEXT, "merchant_order_id" TEXT NOT NULL, "payload" TEXT);
|
CREATE TABLE IF NOT EXISTS "payment_info" ("id" INTEGER PRIMARY KEY, "status" TEXT NOT NULL, "gateway" TEXT NOT NULL, "order_id" TEXT, "token" TEXT, "merchant_order_id" TEXT NOT NULL, "payload" TEXT);
|
||||||
INSERT INTO "payment_info" ("id","status","gateway","order_id","token","merchant_order_id","payload") VALUES(1,'pending','phonepe',NULL,NULL,'order_1763563896010',NULL);
|
INSERT INTO "payment_info" ("id","status","gateway","order_id","token","merchant_order_id","payload") VALUES(1,'pending','phonepe',NULL,NULL,'order_1763563896010',NULL);
|
||||||
INSERT INTO "payment_info" ("id","status","gateway","order_id","token","merchant_order_id","payload") VALUES(2,'pending','phonepe',NULL,NULL,'order_1763564910006',NULL);
|
INSERT INTO "payment_info" ("id","status","gateway","order_id","token","merchant_order_id","payload") VALUES(2,'pending','phonepe',NULL,NULL,'order_1763564910006',NULL);
|
||||||
|
|
@ -8754,10 +8699,6 @@ INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant
|
||||||
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(273,2365,NULL,'na',NULL,NULL,'2026-10-03 07:00:59');
|
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(273,2365,NULL,'na',NULL,NULL,'2026-10-03 07:00:59');
|
||||||
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(274,2396,NULL,'na',NULL,NULL,'2026-10-03 15:34:26');
|
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(274,2396,NULL,'na',NULL,NULL,'2026-10-03 15:34:26');
|
||||||
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(275,2413,NULL,'na',NULL,NULL,'2026-10-04 04:28:05');
|
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(275,2413,NULL,'na',NULL,NULL,'2026-10-04 04:28:05');
|
||||||
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(276,2421,NULL,'na',NULL,NULL,'2026-10-04 12:17:59');
|
|
||||||
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(277,2425,NULL,'na',NULL,NULL,'2026-10-04 12:51:59');
|
|
||||||
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(278,2426,NULL,'na',NULL,NULL,'2026-10-04 13:50:43');
|
|
||||||
INSERT INTO "refunds" ("id","order_id","refund_amount","refund_status","merchant_refund_id","refund_processed_at","created_at") VALUES(279,2433,NULL,'na',NULL,NULL,'2026-10-05 04:53:09');
|
|
||||||
CREATE TABLE IF NOT EXISTS "reserved_coupons" ("id" INTEGER PRIMARY KEY, "secret_code" TEXT NOT NULL, "coupon_code" TEXT NOT NULL, "discount_percent" REAL, "flat_discount" REAL, "min_order" REAL, "sku_ids" TEXT, "max_value" REAL, "valid_till" TEXT, "max_limit_for_user" INTEGER, "exclusive_apply" INTEGER NOT NULL DEFAULT false, "is_redeemed" INTEGER NOT NULL DEFAULT false, "redeemed_by" INTEGER, "redeemed_at" TEXT, "created_by" INTEGER NOT NULL, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, `is_first_order_only` integer DEFAULT false NOT NULL);
|
CREATE TABLE IF NOT EXISTS "reserved_coupons" ("id" INTEGER PRIMARY KEY, "secret_code" TEXT NOT NULL, "coupon_code" TEXT NOT NULL, "discount_percent" REAL, "flat_discount" REAL, "min_order" REAL, "sku_ids" TEXT, "max_value" REAL, "valid_till" TEXT, "max_limit_for_user" INTEGER, "exclusive_apply" INTEGER NOT NULL DEFAULT false, "is_redeemed" INTEGER NOT NULL DEFAULT false, "redeemed_by" INTEGER, "redeemed_at" TEXT, "created_by" INTEGER NOT NULL, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, `is_first_order_only` integer DEFAULT false NOT NULL);
|
||||||
INSERT INTO "reserved_coupons" ("id","secret_code","coupon_code","discount_percent","flat_discount","min_order","sku_ids","max_value","valid_till","max_limit_for_user","exclusive_apply","is_redeemed","redeemed_by","redeemed_at","created_by","created_at","is_first_order_only") VALUES(1,'RESERVE_TEST34','RESERVE_TEST34',25,NULL,1000,'[]',250,'2026-01-30T13:16:00.000Z',2,0,1,NULL,'2026-01-12T08:58:20.468Z',6,'2026-01-07T13:16:53.387Z',0);
|
INSERT INTO "reserved_coupons" ("id","secret_code","coupon_code","discount_percent","flat_discount","min_order","sku_ids","max_value","valid_till","max_limit_for_user","exclusive_apply","is_redeemed","redeemed_by","redeemed_at","created_by","created_at","is_first_order_only") VALUES(1,'RESERVE_TEST34','RESERVE_TEST34',25,NULL,1000,'[]',250,'2026-01-30T13:16:00.000Z',2,0,1,NULL,'2026-01-12T08:58:20.468Z',6,'2026-01-07T13:16:53.387Z',0);
|
||||||
INSERT INTO "reserved_coupons" ("id","secret_code","coupon_code","discount_percent","flat_discount","min_order","sku_ids","max_value","valid_till","max_limit_for_user","exclusive_apply","is_redeemed","redeemed_by","redeemed_at","created_by","created_at","is_first_order_only") VALUES(2,'TEST50OFF','TEST50OFF',10,NULL,250,'[]',500,'2026-08-13T02:30:00.000Z',1,0,1,6,'2026-08-12T16:15:10.211Z',4,'2026-08-12 16:14:27',0);
|
INSERT INTO "reserved_coupons" ("id","secret_code","coupon_code","discount_percent","flat_discount","min_order","sku_ids","max_value","valid_till","max_limit_for_user","exclusive_apply","is_redeemed","redeemed_by","redeemed_at","created_by","created_at","is_first_order_only") VALUES(2,'TEST50OFF','TEST50OFF',10,NULL,250,'[]',500,'2026-08-13T02:30:00.000Z',1,0,1,6,'2026-08-12T16:15:10.211Z',4,'2026-08-12 16:14:27',0);
|
||||||
|
|
@ -9964,7 +9905,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(799,'ExponentPushToken[Pe4vf3NBMKEUCH8XnSAarJ]','2026-06-06 12:34:20','2026-06-06T12:34:20.550Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(799,'ExponentPushToken[Pe4vf3NBMKEUCH8XnSAarJ]','2026-06-06 12:34:20','2026-06-06T12:34:20.550Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(800,'ExponentPushToken[t94Qi7PwylitxJ9SEc33ST]','2026-06-06 15:06:06','2026-08-31T14:23:28.098Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(800,'ExponentPushToken[t94Qi7PwylitxJ9SEc33ST]','2026-06-06 15:06:06','2026-08-31T14:23:28.098Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(801,'ExponentPushToken[tEO2BSMaOYta_ySFk9-Xgv]','2026-06-06 16:05:33','2026-06-24T09:07:38.228Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(801,'ExponentPushToken[tEO2BSMaOYta_ySFk9-Xgv]','2026-06-06 16:05:33','2026-06-24T09:07:38.228Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(802,'ExponentPushToken[tfH3Z5Nh1Bhi--an9eZ_Mi]','2026-06-06 16:10:51','2026-10-05T02:24:25.441Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(802,'ExponentPushToken[tfH3Z5Nh1Bhi--an9eZ_Mi]','2026-06-06 16:10:51','2026-10-03T15:16:03.632Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(803,'ExponentPushToken[851EHSGWWQq55c_EOj92IM]','2026-06-06 17:39:55','2026-07-02T15:54:44.521Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(803,'ExponentPushToken[851EHSGWWQq55c_EOj92IM]','2026-06-06 17:39:55','2026-07-02T15:54:44.521Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(805,'ExponentPushToken[8SZ3aeIlY5Nu309zzGhxms]','2026-06-07 04:11:45','2026-06-07T06:15:32.738Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(805,'ExponentPushToken[8SZ3aeIlY5Nu309zzGhxms]','2026-06-07 04:11:45','2026-06-07T06:15:32.738Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(806,'ExponentPushToken[wWBd_dLudieLX2on-NiKDo]','2026-06-07 08:07:14','2026-06-07T08:07:14.786Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(806,'ExponentPushToken[wWBd_dLudieLX2on-NiKDo]','2026-06-07 08:07:14','2026-06-07T08:07:14.786Z');
|
||||||
|
|
@ -10295,7 +10236,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1201,'ExponentPushToken[qWt7_0GZZo2qDxuX0llKVC]','2026-08-01 16:46:11','2026-08-01T16:46:11.944Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1201,'ExponentPushToken[qWt7_0GZZo2qDxuX0llKVC]','2026-08-01 16:46:11','2026-08-01T16:46:11.944Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1202,'ExponentPushToken[7xuq_-HIFgqeOki2fA6Foc]','2026-08-02 06:21:22','2026-08-02T14:57:58.549Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1202,'ExponentPushToken[7xuq_-HIFgqeOki2fA6Foc]','2026-08-02 06:21:22','2026-08-02T14:57:58.549Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1204,'ExponentPushToken[Stvw5UK4oB8JgvT60eog7_]','2026-08-02 10:18:17','2026-08-02T10:18:17.429Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1204,'ExponentPushToken[Stvw5UK4oB8JgvT60eog7_]','2026-08-02 10:18:17','2026-08-02T10:18:17.429Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1205,'ExponentPushToken[wnJKOpDdTuFJNVYQM5vRpI]','2026-08-02 12:20:05','2026-10-04T08:08:02.347Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1205,'ExponentPushToken[wnJKOpDdTuFJNVYQM5vRpI]','2026-08-02 12:20:05','2026-10-02T11:20:50.876Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1206,'ExponentPushToken[DsSzdhIpzFr5pulX0aVdF3]','2026-08-03 07:42:42','2026-08-03T07:42:42.260Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1206,'ExponentPushToken[DsSzdhIpzFr5pulX0aVdF3]','2026-08-03 07:42:42','2026-08-03T07:42:42.260Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1207,'ExponentPushToken[ezTV8rIY7mQpSv7MuH6i9q]','2026-08-03 17:19:12','2026-08-03T17:19:12.178Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1207,'ExponentPushToken[ezTV8rIY7mQpSv7MuH6i9q]','2026-08-03 17:19:12','2026-08-03T17:19:12.178Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1208,'ExponentPushToken[kydE10ILZwmENZvzyNCmUn]','2026-08-04 06:30:26','2026-08-04T06:34:59.082Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1208,'ExponentPushToken[kydE10ILZwmENZvzyNCmUn]','2026-08-04 06:30:26','2026-08-04T06:34:59.082Z');
|
||||||
|
|
@ -10349,6 +10290,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1287,'ExponentPushToken[Q6fBNXEvr9jidD5bAL6eIh]','2026-08-23 21:29:59','2026-08-23T21:29:59.121Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1287,'ExponentPushToken[Q6fBNXEvr9jidD5bAL6eIh]','2026-08-23 21:29:59','2026-08-23T21:29:59.121Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1288,'ExponentPushToken[ccQc_uEZmHOaLHDUKzSd_E]','2026-08-24 13:33:42','2026-08-26T15:42:54.789Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1288,'ExponentPushToken[ccQc_uEZmHOaLHDUKzSd_E]','2026-08-24 13:33:42','2026-08-26T15:42:54.789Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1292,'ExponentPushToken[BNSHMfHe9MQb-BxS_g7x74]','2026-08-25 14:59:50','2026-09-03T07:24:42.065Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1292,'ExponentPushToken[BNSHMfHe9MQb-BxS_g7x74]','2026-08-25 14:59:50','2026-09-03T07:24:42.065Z');
|
||||||
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1294,'ExponentPushToken[DPeHKsBNbTJ74b4C69d_1e]','2026-08-26 08:02:53','2026-09-29T10:43:57.230Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1295,'ExponentPushToken[qbOBFrCA4SODinKxsp1-Nj]','2026-08-26 08:47:41','2026-09-11T05:00:46.829Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1295,'ExponentPushToken[qbOBFrCA4SODinKxsp1-Nj]','2026-08-26 08:47:41','2026-09-11T05:00:46.829Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1296,'ExponentPushToken[A4oHbyHKndNX6Da1Q4pj5e]','2026-08-26 12:03:21','2026-08-26T12:03:21.728Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1296,'ExponentPushToken[A4oHbyHKndNX6Da1Q4pj5e]','2026-08-26 12:03:21','2026-08-26T12:03:21.728Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1298,'ExponentPushToken[RTNpR_HisFCqvD3_zk7w4o]','2026-08-27 06:17:04','2026-09-07T19:29:24.109Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1298,'ExponentPushToken[RTNpR_HisFCqvD3_zk7w4o]','2026-08-27 06:17:04','2026-09-07T19:29:24.109Z');
|
||||||
|
|
@ -10356,7 +10298,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1300,'ExponentPushToken[IvtP0cIXJYn4PaBvMHrUr3]','2026-08-29 03:31:36','2026-09-04T04:11:04.562Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1300,'ExponentPushToken[IvtP0cIXJYn4PaBvMHrUr3]','2026-08-29 03:31:36','2026-09-04T04:11:04.562Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1301,'ExponentPushToken[ls20qAMSvO4-JnwzeUbM9n]','2026-08-29 05:28:08','2026-08-29T05:28:08.815Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1301,'ExponentPushToken[ls20qAMSvO4-JnwzeUbM9n]','2026-08-29 05:28:08','2026-08-29T05:28:08.815Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1302,'ExponentPushToken[H5Bew6NCzG6klMANQjGN-T]','2026-08-29 05:39:49','2026-08-29T05:39:49.472Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1302,'ExponentPushToken[H5Bew6NCzG6klMANQjGN-T]','2026-08-29 05:39:49','2026-08-29T05:39:49.472Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1303,'ExponentPushToken[8lILUpNt7-tP7Uwq4-XGym]','2026-08-29 11:10:52','2026-10-04T14:31:58.010Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1303,'ExponentPushToken[8lILUpNt7-tP7Uwq4-XGym]','2026-08-29 11:10:52','2026-09-26T16:01:20.482Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1304,'ExponentPushToken[Lyp_JhEp-mzptQkxT2gV5j]','2026-08-29 11:50:51','2026-10-04T05:28:12.440Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1304,'ExponentPushToken[Lyp_JhEp-mzptQkxT2gV5j]','2026-08-29 11:50:51','2026-10-04T05:28:12.440Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1305,'ExponentPushToken[3eC5HtDRud8miUrwl3zt9v]','2026-08-29 20:21:28','2026-09-05T20:59:56.878Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1305,'ExponentPushToken[3eC5HtDRud8miUrwl3zt9v]','2026-08-29 20:21:28','2026-09-05T20:59:56.878Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1306,'ExponentPushToken[MgRbuDPi47m1ouclZ6ZgEM]','2026-08-30 02:23:32','2026-09-14T04:47:04.236Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1306,'ExponentPushToken[MgRbuDPi47m1ouclZ6ZgEM]','2026-08-30 02:23:32','2026-09-14T04:47:04.236Z');
|
||||||
|
|
@ -10401,10 +10343,10 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1360,'ExponentPushToken[_od99gDNf1l7L0mMBcLMr9]','2026-09-11 12:44:14','2026-09-11T12:44:14.499Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1360,'ExponentPushToken[_od99gDNf1l7L0mMBcLMr9]','2026-09-11 12:44:14','2026-09-11T12:44:14.499Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1361,'ExponentPushToken[u7SkaLCfSkPriMnRlJyvgJ]','2026-09-11 12:45:10','2026-09-11T15:59:56.319Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1361,'ExponentPushToken[u7SkaLCfSkPriMnRlJyvgJ]','2026-09-11 12:45:10','2026-09-11T15:59:56.319Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1362,'ExponentPushToken[ls8T8wO7ifQ7ZUxKqWh4M5]','2026-09-11 12:45:40','2026-09-26T03:56:08.146Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1362,'ExponentPushToken[ls8T8wO7ifQ7ZUxKqWh4M5]','2026-09-11 12:45:40','2026-09-26T03:56:08.146Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1365,'ExponentPushToken[FeXGW-JtZ1pQ3jl7PI5FuG]','2026-09-11 12:46:24','2026-10-04T12:06:14.184Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1365,'ExponentPushToken[FeXGW-JtZ1pQ3jl7PI5FuG]','2026-09-11 12:46:24','2026-10-02T03:45:24.946Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1368,'ExponentPushToken[Z1ylEmKoQEj5YySxD1qx4_]','2026-09-11 12:46:53','2026-09-11T12:46:53.782Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1368,'ExponentPushToken[Z1ylEmKoQEj5YySxD1qx4_]','2026-09-11 12:46:53','2026-09-11T12:46:53.782Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1370,'ExponentPushToken[teu17aApQM5qXeVdqWSjs-]','2026-09-11 12:48:09','2026-09-11T12:48:09.684Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1370,'ExponentPushToken[teu17aApQM5qXeVdqWSjs-]','2026-09-11 12:48:09','2026-09-11T12:48:09.684Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1371,'ExponentPushToken[RBbX04HviUEKWY6aFUf5m5]','2026-09-11 12:49:04','2026-10-05T13:10:45.843Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1371,'ExponentPushToken[RBbX04HviUEKWY6aFUf5m5]','2026-09-11 12:49:04','2026-10-03T14:53:50.499Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1372,'ExponentPushToken[PWUZHZD8AuQQEIaIbZtkvt]','2026-09-11 12:49:06','2026-09-11T12:49:06.157Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1372,'ExponentPushToken[PWUZHZD8AuQQEIaIbZtkvt]','2026-09-11 12:49:06','2026-09-11T12:49:06.157Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1373,'ExponentPushToken[TT0Gt1MuNs2iaeCKrmeP15]','2026-09-11 12:51:05','2026-09-11T12:51:05.425Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1373,'ExponentPushToken[TT0Gt1MuNs2iaeCKrmeP15]','2026-09-11 12:51:05','2026-09-11T12:51:05.425Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1374,'ExponentPushToken[zlc67eF08bbBYv36Yh8s0T]','2026-09-11 12:51:31','2026-09-25T15:27:29.099Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1374,'ExponentPushToken[zlc67eF08bbBYv36Yh8s0T]','2026-09-11 12:51:31','2026-09-25T15:27:29.099Z');
|
||||||
|
|
@ -10422,10 +10364,10 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1393,'ExponentPushToken[FtWIH9MapdEBGPUbNYkDxM]','2026-09-11 13:02:02','2026-09-11T13:02:02.974Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1393,'ExponentPushToken[FtWIH9MapdEBGPUbNYkDxM]','2026-09-11 13:02:02','2026-09-11T13:02:02.974Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1394,'ExponentPushToken[6oUP_SOmGpha-WGXUfHp5o]','2026-09-11 13:02:46','2026-09-19T09:06:32.476Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1394,'ExponentPushToken[6oUP_SOmGpha-WGXUfHp5o]','2026-09-11 13:02:46','2026-09-19T09:06:32.476Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1395,'ExponentPushToken[m66bDkPBtCOI62aclK5vj9]','2026-09-11 13:03:44','2026-09-11T13:03:44.002Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1395,'ExponentPushToken[m66bDkPBtCOI62aclK5vj9]','2026-09-11 13:03:44','2026-09-11T13:03:44.002Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1396,'ExponentPushToken[HieriIOnnNvGiO3n86wqnY]','2026-09-11 13:03:47','2026-10-04T08:23:28.018Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1396,'ExponentPushToken[HieriIOnnNvGiO3n86wqnY]','2026-09-11 13:03:47','2026-09-27T11:01:37.897Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1397,'ExponentPushToken[21wGFjFbRXGZOZmME0e1DY]','2026-09-11 13:04:43','2026-09-11T13:04:43.044Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1397,'ExponentPushToken[21wGFjFbRXGZOZmME0e1DY]','2026-09-11 13:04:43','2026-09-11T13:04:43.044Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1399,'ExponentPushToken[5kHYw0DTkumf43ZKUFfkyv]','2026-09-11 13:06:36','2026-09-11T13:06:36.022Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1399,'ExponentPushToken[5kHYw0DTkumf43ZKUFfkyv]','2026-09-11 13:06:36','2026-09-11T13:06:36.022Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1401,'ExponentPushToken[MPYmanKAc5-yZE_Jy8d2pV]','2026-09-11 13:08:11','2026-10-04T15:25:02.954Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1401,'ExponentPushToken[MPYmanKAc5-yZE_Jy8d2pV]','2026-09-11 13:08:11','2026-09-11T13:08:11.366Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1402,'ExponentPushToken[snQOgZAQ5zD0hJqMRxPVP2]','2026-09-11 13:08:43','2026-09-11T13:08:43.892Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1402,'ExponentPushToken[snQOgZAQ5zD0hJqMRxPVP2]','2026-09-11 13:08:43','2026-09-11T13:08:43.892Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1404,'ExponentPushToken[bI6a8eHNNfmKoMem32AmWx]','2026-09-11 13:08:46','2026-09-11T13:08:46.928Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1404,'ExponentPushToken[bI6a8eHNNfmKoMem32AmWx]','2026-09-11 13:08:46','2026-09-11T13:08:46.928Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1405,'ExponentPushToken[C4OUT_IMKW4yUjEkljqTiO]','2026-09-11 13:10:21','2026-09-23T16:05:44.406Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1405,'ExponentPushToken[C4OUT_IMKW4yUjEkljqTiO]','2026-09-11 13:10:21','2026-09-23T16:05:44.406Z');
|
||||||
|
|
@ -10476,7 +10418,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1472,'ExponentPushToken[kc3YBVGVwnrbt6JG-GbRFb]','2026-09-11 13:52:17','2026-09-12T03:43:33.718Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1472,'ExponentPushToken[kc3YBVGVwnrbt6JG-GbRFb]','2026-09-11 13:52:17','2026-09-12T03:43:33.718Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1473,'ExponentPushToken[UQw_czObCASGXOBFUEAymV]','2026-09-11 13:52:58','2026-09-11T13:52:58.922Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1473,'ExponentPushToken[UQw_czObCASGXOBFUEAymV]','2026-09-11 13:52:58','2026-09-11T13:52:58.922Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1475,'ExponentPushToken[3uxsagHRLt9lGQgm6pXj70]','2026-09-11 13:53:44','2026-09-29T06:55:43.647Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1475,'ExponentPushToken[3uxsagHRLt9lGQgm6pXj70]','2026-09-11 13:53:44','2026-09-29T06:55:43.647Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1476,'ExponentPushToken[pAM_WzDxuYquY2A-thxvAh]','2026-09-11 13:53:57','2026-10-04T07:04:24.767Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1476,'ExponentPushToken[pAM_WzDxuYquY2A-thxvAh]','2026-09-11 13:53:57','2026-09-11T13:53:57.315Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1479,'ExponentPushToken[ZZ4bS6PGSZTrj64Otimcq6]','2026-09-11 13:56:54','2026-09-22T15:24:05.580Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1479,'ExponentPushToken[ZZ4bS6PGSZTrj64Otimcq6]','2026-09-11 13:56:54','2026-09-22T15:24:05.580Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1480,'ExponentPushToken[H6pE_-CmuxDG6xUsRnj5x4]','2026-09-11 13:57:07','2026-09-11T13:57:07.631Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1480,'ExponentPushToken[H6pE_-CmuxDG6xUsRnj5x4]','2026-09-11 13:57:07','2026-09-11T13:57:07.631Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1481,'ExponentPushToken[ugPJJcMr2-Y9kXus09ZzNG]','2026-09-11 13:57:46','2026-09-11T13:57:46.739Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1481,'ExponentPushToken[ugPJJcMr2-Y9kXus09ZzNG]','2026-09-11 13:57:46','2026-09-11T13:57:46.739Z');
|
||||||
|
|
@ -10495,7 +10437,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1502,'ExponentPushToken[AexCgqEhyVNTU2WxiuxyLp]','2026-09-11 14:13:41','2026-09-11T14:13:41.092Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1502,'ExponentPushToken[AexCgqEhyVNTU2WxiuxyLp]','2026-09-11 14:13:41','2026-09-11T14:13:41.092Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1505,'ExponentPushToken[hA50PzEd5g7L-rJQh2zzH-]','2026-09-11 14:15:13','2026-09-11T14:15:13.415Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1505,'ExponentPushToken[hA50PzEd5g7L-rJQh2zzH-]','2026-09-11 14:15:13','2026-09-11T14:15:13.415Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1506,'ExponentPushToken[1kYAfbBfg4jSE2ncjtUVON]','2026-09-11 14:15:18','2026-09-11T14:15:18.286Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1506,'ExponentPushToken[1kYAfbBfg4jSE2ncjtUVON]','2026-09-11 14:15:18','2026-09-11T14:15:18.286Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1507,'ExponentPushToken[XCgnPvEBiDwaR9sckWkX5J]','2026-09-11 14:15:35','2026-10-04T12:08:51.209Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1507,'ExponentPushToken[XCgnPvEBiDwaR9sckWkX5J]','2026-09-11 14:15:35','2026-09-23T02:09:48.132Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1508,'ExponentPushToken[3kuI7UGNIODSY-aYuDfbp1]','2026-09-11 14:16:43','2026-09-12T10:31:27.649Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1508,'ExponentPushToken[3kuI7UGNIODSY-aYuDfbp1]','2026-09-11 14:16:43','2026-09-12T10:31:27.649Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1510,'ExponentPushToken[GVdMgNE-drbaGxvLFmj8dR]','2026-09-11 14:18:11','2026-09-12T14:18:25.706Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1510,'ExponentPushToken[GVdMgNE-drbaGxvLFmj8dR]','2026-09-11 14:18:11','2026-09-12T14:18:25.706Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1514,'ExponentPushToken[x7xvYYL5V78E_DZXvCLU38]','2026-09-11 14:20:03','2026-09-11T14:20:03.840Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1514,'ExponentPushToken[x7xvYYL5V78E_DZXvCLU38]','2026-09-11 14:20:03','2026-09-11T14:20:03.840Z');
|
||||||
|
|
@ -10528,7 +10470,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1552,'ExponentPushToken[bn9Rw4FqKGS8LehNRq9xet]','2026-09-11 14:55:20','2026-09-30T03:16:10.705Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1552,'ExponentPushToken[bn9Rw4FqKGS8LehNRq9xet]','2026-09-11 14:55:20','2026-09-30T03:16:10.705Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1555,'ExponentPushToken[VjPQraHPQT4Jm1IlJnaefi]','2026-09-11 14:57:30','2026-09-13T00:09:17.147Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1555,'ExponentPushToken[VjPQraHPQT4Jm1IlJnaefi]','2026-09-11 14:57:30','2026-09-13T00:09:17.147Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1557,'ExponentPushToken[PyEPYgC1dZ5dgld6UGOcZU]','2026-09-11 14:59:45','2026-09-12T12:06:10.698Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1557,'ExponentPushToken[PyEPYgC1dZ5dgld6UGOcZU]','2026-09-11 14:59:45','2026-09-12T12:06:10.698Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1560,'ExponentPushToken[RQTyr7Dx_5PcVnMKvALDiC]','2026-09-11 15:00:50','2026-10-04T22:56:42.590Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1560,'ExponentPushToken[RQTyr7Dx_5PcVnMKvALDiC]','2026-09-11 15:00:50','2026-09-12T07:44:25.167Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1563,'ExponentPushToken[QY969jKkYwC3vZTQU0BbAl]','2026-09-11 15:06:07','2026-09-11T15:06:07.214Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1563,'ExponentPushToken[QY969jKkYwC3vZTQU0BbAl]','2026-09-11 15:06:07','2026-09-11T15:06:07.214Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1564,'ExponentPushToken[aPeGoICNLWzxqpxYdmtfQK]','2026-09-11 15:06:08','2026-09-11T15:06:08.672Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1564,'ExponentPushToken[aPeGoICNLWzxqpxYdmtfQK]','2026-09-11 15:06:08','2026-09-11T15:06:08.672Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1567,'ExponentPushToken[jnwkyWLYkVBF6xfUXB_FA_]','2026-09-11 15:09:14','2026-10-01T17:53:50.998Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1567,'ExponentPushToken[jnwkyWLYkVBF6xfUXB_FA_]','2026-09-11 15:09:14','2026-10-01T17:53:50.998Z');
|
||||||
|
|
@ -10595,7 +10537,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1660,'ExponentPushToken[s2s-BaMMzZB1YY0Ije6wb8]','2026-09-11 16:15:17','2026-09-11T16:15:17.160Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1660,'ExponentPushToken[s2s-BaMMzZB1YY0Ije6wb8]','2026-09-11 16:15:17','2026-09-11T16:15:17.160Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1662,'ExponentPushToken[fEGdU7JeVLoldNNgxH-nAz]','2026-09-11 16:22:31','2026-09-15T17:14:52.975Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1662,'ExponentPushToken[fEGdU7JeVLoldNNgxH-nAz]','2026-09-11 16:22:31','2026-09-15T17:14:52.975Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1663,'ExponentPushToken[B9i0lqK-Mk-RTcToodb9fc]','2026-09-11 16:24:21','2026-09-11T16:24:21.567Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1663,'ExponentPushToken[B9i0lqK-Mk-RTcToodb9fc]','2026-09-11 16:24:21','2026-09-11T16:24:21.567Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1665,'ExponentPushToken[uagQM5HEuWEwC1O4nfwy83]','2026-09-11 16:24:58','2026-10-04T12:50:10.994Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1665,'ExponentPushToken[uagQM5HEuWEwC1O4nfwy83]','2026-09-11 16:24:58','2026-09-16T06:21:19.260Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1667,'ExponentPushToken[P1tHb2OAAdjV152uk_C3iv]','2026-09-11 16:25:27','2026-09-11T16:25:27.364Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1667,'ExponentPushToken[P1tHb2OAAdjV152uk_C3iv]','2026-09-11 16:25:27','2026-09-11T16:25:27.364Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1668,'ExponentPushToken[oGV_dPBfI0pRbjvQjqFIw8]','2026-09-11 16:30:18','2026-09-11T16:36:40.298Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1668,'ExponentPushToken[oGV_dPBfI0pRbjvQjqFIw8]','2026-09-11 16:30:18','2026-09-11T16:36:40.298Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1669,'ExponentPushToken[MA93JkNs6wLgZh4Hne8kpw]','2026-09-11 16:34:14','2026-09-12T08:57:16.872Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1669,'ExponentPushToken[MA93JkNs6wLgZh4Hne8kpw]','2026-09-11 16:34:14','2026-09-12T08:57:16.872Z');
|
||||||
|
|
@ -10796,7 +10738,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1933,'ExponentPushToken[IIZlsyDWcIQtUi_jEj-myT]','2026-09-12 09:15:08','2026-09-26T08:24:34.152Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1933,'ExponentPushToken[IIZlsyDWcIQtUi_jEj-myT]','2026-09-12 09:15:08','2026-09-26T08:24:34.152Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1934,'ExponentPushToken[5PcRccOLXYBsQr8vgRg10P]','2026-09-12 09:15:25','2026-09-12T09:15:25.261Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1934,'ExponentPushToken[5PcRccOLXYBsQr8vgRg10P]','2026-09-12 09:15:25','2026-09-12T09:15:25.261Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1935,'ExponentPushToken[8HUWaKGdwMj6gyHn6Vfhao]','2026-09-12 09:17:50','2026-09-12T09:17:50.599Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1935,'ExponentPushToken[8HUWaKGdwMj6gyHn6Vfhao]','2026-09-12 09:17:50','2026-09-12T09:17:50.599Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1936,'ExponentPushToken[lWe3ZNJBWissM0ReHbTzg7]','2026-09-12 09:20:04','2026-10-05T03:55:42.799Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1936,'ExponentPushToken[lWe3ZNJBWissM0ReHbTzg7]','2026-09-12 09:20:04','2026-09-26T11:00:00.624Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1938,'ExponentPushToken[uo5mioA2THYhTnu4gskiPu]','2026-09-12 09:27:58','2026-09-12T09:27:58.655Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1938,'ExponentPushToken[uo5mioA2THYhTnu4gskiPu]','2026-09-12 09:27:58','2026-09-12T09:27:58.655Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1939,'ExponentPushToken[rbOcmbGd9wVfSKnZ6ViMho]','2026-09-12 09:30:24','2026-09-12T09:30:24.102Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1939,'ExponentPushToken[rbOcmbGd9wVfSKnZ6ViMho]','2026-09-12 09:30:24','2026-09-12T09:30:24.102Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1940,'ExponentPushToken[UC5pKNCXpLRUyextZ6CjZ9]','2026-09-12 09:31:39','2026-09-12T09:31:39.864Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1940,'ExponentPushToken[UC5pKNCXpLRUyextZ6CjZ9]','2026-09-12 09:31:39','2026-09-12T09:31:39.864Z');
|
||||||
|
|
@ -10808,7 +10750,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1948,'ExponentPushToken[3ayueIPludsSFs6MP3vu_e]','2026-09-12 10:27:53','2026-09-12T10:27:53.047Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1948,'ExponentPushToken[3ayueIPludsSFs6MP3vu_e]','2026-09-12 10:27:53','2026-09-12T10:27:53.047Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1950,'ExponentPushToken[FO9J0eA0OfyW2GLsAbpjsz]','2026-09-12 10:38:42','2026-09-12T10:38:42.980Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1950,'ExponentPushToken[FO9J0eA0OfyW2GLsAbpjsz]','2026-09-12 10:38:42','2026-09-12T10:38:42.980Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1951,'ExponentPushToken[yxXXOLF5Uv6-kMdbYm6dou]','2026-09-12 10:48:15','2026-09-25T13:25:17.967Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1951,'ExponentPushToken[yxXXOLF5Uv6-kMdbYm6dou]','2026-09-12 10:48:15','2026-09-25T13:25:17.967Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1953,'ExponentPushToken[AwxkMRCrXuLxLu2QUY9utE]','2026-09-12 10:51:39','2026-10-05T09:54:35.174Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1953,'ExponentPushToken[AwxkMRCrXuLxLu2QUY9utE]','2026-09-12 10:51:39','2026-09-17T10:08:49.297Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1954,'ExponentPushToken[Y_vK1dM2xdwuOtB1N74Hdj]','2026-09-12 10:54:35','2026-09-14T04:00:27.694Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1954,'ExponentPushToken[Y_vK1dM2xdwuOtB1N74Hdj]','2026-09-12 10:54:35','2026-09-14T04:00:27.694Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1955,'ExponentPushToken[5QC6XEBUi1-JWz5M9hP6BG]','2026-09-12 11:00:50','2026-09-19T03:34:24.644Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1955,'ExponentPushToken[5QC6XEBUi1-JWz5M9hP6BG]','2026-09-12 11:00:50','2026-09-19T03:34:24.644Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1956,'ExponentPushToken[e_KQv-GAc3Na8EYxds1PGG]','2026-09-12 11:03:13','2026-09-26T07:43:17.254Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(1956,'ExponentPushToken[e_KQv-GAc3Na8EYxds1PGG]','2026-09-12 11:03:13','2026-09-26T07:43:17.254Z');
|
||||||
|
|
@ -10848,12 +10790,12 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2000,'ExponentPushToken[6eTzrPN8sMV0CoAktO0cQ-]','2026-09-12 14:28:50','2026-09-12T14:28:50.329Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2000,'ExponentPushToken[6eTzrPN8sMV0CoAktO0cQ-]','2026-09-12 14:28:50','2026-09-12T14:28:50.329Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2001,'ExponentPushToken[ulyIyaAZnuxjCoQcHuTJy_]','2026-09-12 14:33:10','2026-09-27T09:41:42.340Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2001,'ExponentPushToken[ulyIyaAZnuxjCoQcHuTJy_]','2026-09-12 14:33:10','2026-09-27T09:41:42.340Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2003,'ExponentPushToken[XrECylN9Ltq7Mr7zY6wBn7]','2026-09-12 14:42:33','2026-09-12T14:42:33.678Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2003,'ExponentPushToken[XrECylN9Ltq7Mr7zY6wBn7]','2026-09-12 14:42:33','2026-09-12T14:42:33.678Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2004,'ExponentPushToken[XyhF5xM5uS-t-89ctgvlKs]','2026-09-12 14:57:21','2026-10-04T07:19:09.240Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2004,'ExponentPushToken[XyhF5xM5uS-t-89ctgvlKs]','2026-09-12 14:57:21','2026-09-27T04:32:36.272Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2007,'ExponentPushToken[C9X8ZcAFC6MWf7-Jh1fWNS]','2026-09-12 15:17:24','2026-09-12T15:17:24.606Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2007,'ExponentPushToken[C9X8ZcAFC6MWf7-Jh1fWNS]','2026-09-12 15:17:24','2026-09-12T15:17:24.606Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2008,'ExponentPushToken[A-vrf6Btsx6gDguAI3E4Ur]','2026-09-12 15:28:56','2026-09-12T15:28:56.761Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2008,'ExponentPushToken[A-vrf6Btsx6gDguAI3E4Ur]','2026-09-12 15:28:56','2026-09-12T15:28:56.761Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2009,'ExponentPushToken[dGxykkGmeVTjphtE10_qey]','2026-09-12 16:13:17','2026-09-13T04:45:29.508Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2009,'ExponentPushToken[dGxykkGmeVTjphtE10_qey]','2026-09-12 16:13:17','2026-09-13T04:45:29.508Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2011,'ExponentPushToken[w2ek1XK-VnDJGEq7He72FN]','2026-09-12 16:27:45','2026-09-13T06:42:41.331Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2011,'ExponentPushToken[w2ek1XK-VnDJGEq7He72FN]','2026-09-12 16:27:45','2026-09-13T06:42:41.331Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2012,'ExponentPushToken[F8wfVLObiNRrPGPXa-sQrJ]','2026-09-12 16:41:36','2026-10-04T07:36:30.514Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2012,'ExponentPushToken[F8wfVLObiNRrPGPXa-sQrJ]','2026-09-12 16:41:36','2026-09-12T16:41:36.942Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2013,'ExponentPushToken[7xnlJeBzT3mL5uBnNnatp4]','2026-09-12 16:46:00','2026-09-12T16:46:00.752Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2013,'ExponentPushToken[7xnlJeBzT3mL5uBnNnatp4]','2026-09-12 16:46:00','2026-09-12T16:46:00.752Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2014,'ExponentPushToken[JPkjDFGPq3bsyMJ274ZGO9]','2026-09-12 16:46:32','2026-09-12T16:46:32.878Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2014,'ExponentPushToken[JPkjDFGPq3bsyMJ274ZGO9]','2026-09-12 16:46:32','2026-09-12T16:46:32.878Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2015,'ExponentPushToken[YW2WQ_GgPT4VAy6b0zKQID]','2026-09-12 16:57:01','2026-09-12T16:57:01.213Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2015,'ExponentPushToken[YW2WQ_GgPT4VAy6b0zKQID]','2026-09-12 16:57:01','2026-09-12T16:57:01.213Z');
|
||||||
|
|
@ -10906,7 +10848,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2080,'ExponentPushToken[udMWIHB0-2cGdO9Jrbrol0]','2026-09-13 16:19:11','2026-09-13T16:19:11.241Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2080,'ExponentPushToken[udMWIHB0-2cGdO9Jrbrol0]','2026-09-13 16:19:11','2026-09-13T16:19:11.241Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2081,'ExponentPushToken[ClThYjOZnfRN2GGOyteMZ4]','2026-09-13 16:52:51','2026-09-19T14:13:59.450Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2081,'ExponentPushToken[ClThYjOZnfRN2GGOyteMZ4]','2026-09-13 16:52:51','2026-09-19T14:13:59.450Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2082,'ExponentPushToken[Bj3BZWLI-EFV5MYag1y7-B]','2026-09-13 16:53:35','2026-09-13T16:53:35.628Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2082,'ExponentPushToken[Bj3BZWLI-EFV5MYag1y7-B]','2026-09-13 16:53:35','2026-09-13T16:53:35.628Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2083,'ExponentPushToken[oJBbY6MO8dD-7c5I0d1-z1]','2026-09-13 17:36:33','2026-10-04T13:37:37.835Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2083,'ExponentPushToken[oJBbY6MO8dD-7c5I0d1-z1]','2026-09-13 17:36:33','2026-09-13T17:36:33.412Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2084,'ExponentPushToken[U3dnXuOJ8QGJ6oKH2ck1yj]','2026-09-13 17:48:25','2026-09-13T17:48:25.712Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2084,'ExponentPushToken[U3dnXuOJ8QGJ6oKH2ck1yj]','2026-09-13 17:48:25','2026-09-13T17:48:25.712Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2085,'ExponentPushToken[N9d_43B2zy7vdBssMcfCRB]','2026-09-13 17:53:07','2026-09-21T21:39:18.035Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2085,'ExponentPushToken[N9d_43B2zy7vdBssMcfCRB]','2026-09-13 17:53:07','2026-09-21T21:39:18.035Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2086,'ExponentPushToken[t2h8l7JmCHBk3ugm5C_0SP]','2026-09-13 18:28:10','2026-09-13T18:35:42.559Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2086,'ExponentPushToken[t2h8l7JmCHBk3ugm5C_0SP]','2026-09-13 18:28:10','2026-09-13T18:35:42.559Z');
|
||||||
|
|
@ -10935,14 +10877,14 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2113,'ExponentPushToken[-68nprA8qGi9-SHqVn27pT]','2026-09-15 03:26:57','2026-09-16T13:12:11.485Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2113,'ExponentPushToken[-68nprA8qGi9-SHqVn27pT]','2026-09-15 03:26:57','2026-09-16T13:12:11.485Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2116,'ExponentPushToken[FbxfkbFdWyFC8VBk61yS5K]','2026-09-15 04:41:45','2026-09-15T04:41:45.826Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2116,'ExponentPushToken[FbxfkbFdWyFC8VBk61yS5K]','2026-09-15 04:41:45','2026-09-15T04:41:45.826Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2117,'ExponentPushToken[i8-AvPF7n8ao39Fe4-57g3]','2026-09-15 06:03:28','2026-09-29T05:56:50.176Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2117,'ExponentPushToken[i8-AvPF7n8ao39Fe4-57g3]','2026-09-15 06:03:28','2026-09-29T05:56:50.176Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2118,'ExponentPushToken[1qlferBDyhQj2ostekPFkQ]','2026-09-15 06:05:34','2026-10-04T09:13:56.131Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2118,'ExponentPushToken[1qlferBDyhQj2ostekPFkQ]','2026-09-15 06:05:34','2026-09-30T09:26:41.469Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2119,'ExponentPushToken[jqhBotGOiWOJvIrs1PxCUD]','2026-09-15 08:50:32','2026-09-15T08:50:32.555Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2119,'ExponentPushToken[jqhBotGOiWOJvIrs1PxCUD]','2026-09-15 08:50:32','2026-09-15T08:50:32.555Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2120,'ExponentPushToken[1hEwecF0KBaFVG9KRrxwSt]','2026-09-15 10:00:18','2026-09-15T10:00:18.331Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2120,'ExponentPushToken[1hEwecF0KBaFVG9KRrxwSt]','2026-09-15 10:00:18','2026-09-15T10:00:18.331Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2121,'ExponentPushToken[pzcD2rJzTaF8LNcMrko3JO]','2026-09-15 10:27:30','2026-09-15T10:27:30.297Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2121,'ExponentPushToken[pzcD2rJzTaF8LNcMrko3JO]','2026-09-15 10:27:30','2026-09-15T10:27:30.297Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2122,'ExponentPushToken[W9bpGVAlCCDnpc45rGETov]','2026-09-15 11:11:31','2026-09-27T07:36:34.338Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2122,'ExponentPushToken[W9bpGVAlCCDnpc45rGETov]','2026-09-15 11:11:31','2026-09-27T07:36:34.338Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2123,'ExponentPushToken[fx5tY_Oj1w7d29qTo4SAZw]','2026-09-15 11:22:50','2026-09-15T11:22:50.409Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2123,'ExponentPushToken[fx5tY_Oj1w7d29qTo4SAZw]','2026-09-15 11:22:50','2026-09-15T11:22:50.409Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2125,'ExponentPushToken[uVX7-dBav9jQInx3edP4ai]','2026-09-15 11:24:11','2026-09-15T11:24:11.763Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2125,'ExponentPushToken[uVX7-dBav9jQInx3edP4ai]','2026-09-15 11:24:11','2026-09-15T11:24:11.763Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2126,'ExponentPushToken[Cw3-VnD1rVBlaPpEASXFwY]','2026-09-15 11:58:56','2026-10-04T11:51:47.342Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2126,'ExponentPushToken[Cw3-VnD1rVBlaPpEASXFwY]','2026-09-15 11:58:56','2026-09-29T01:29:53.553Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2127,'ExponentPushToken[GTOeZaEAwZW3zEe1ss8Nsc]','2026-09-15 15:54:42','2026-09-15T17:29:47.436Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2127,'ExponentPushToken[GTOeZaEAwZW3zEe1ss8Nsc]','2026-09-15 15:54:42','2026-09-15T17:29:47.436Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2128,'ExponentPushToken[JpP8UgN4KxLlT1x7fOC1Ff]','2026-09-15 16:18:49','2026-09-26T13:41:12.247Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2128,'ExponentPushToken[JpP8UgN4KxLlT1x7fOC1Ff]','2026-09-15 16:18:49','2026-09-26T13:41:12.247Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2130,'ExponentPushToken[ey9UKmBTJsytxHhjfNXXSR]','2026-09-15 18:55:22','2026-09-21T18:38:58.689Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2130,'ExponentPushToken[ey9UKmBTJsytxHhjfNXXSR]','2026-09-15 18:55:22','2026-09-21T18:38:58.689Z');
|
||||||
|
|
@ -10952,7 +10894,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2134,'ExponentPushToken[TpJmoXKMxMrLHmHNL51QIO]','2026-09-16 03:01:16','2026-09-16T03:01:16.878Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2134,'ExponentPushToken[TpJmoXKMxMrLHmHNL51QIO]','2026-09-16 03:01:16','2026-09-16T03:01:16.878Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2135,'ExponentPushToken[9vwfYuLHEzY23XuwWIoXlR]','2026-09-16 03:29:04','2026-09-16T03:29:04.298Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2135,'ExponentPushToken[9vwfYuLHEzY23XuwWIoXlR]','2026-09-16 03:29:04','2026-09-16T03:29:04.298Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2136,'ExponentPushToken[20r5coHu7lDXz6dyp5d2Xu]','2026-09-16 04:15:15','2026-09-17T11:23:38.198Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2136,'ExponentPushToken[20r5coHu7lDXz6dyp5d2Xu]','2026-09-16 04:15:15','2026-09-17T11:23:38.198Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2137,'ExponentPushToken[3CPgoSJ-MqGFk5_LHaOney]','2026-09-16 04:36:01','2026-10-04T08:15:15.765Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2137,'ExponentPushToken[3CPgoSJ-MqGFk5_LHaOney]','2026-09-16 04:36:01','2026-09-30T18:51:41.894Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2138,'ExponentPushToken[Pv76L4IQh8p4__Ch0-FWeB]','2026-09-16 04:46:27','2026-10-04T02:13:22.439Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2138,'ExponentPushToken[Pv76L4IQh8p4__Ch0-FWeB]','2026-09-16 04:46:27','2026-10-04T02:13:22.439Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2140,'ExponentPushToken[BQ3fJEAqm6OwKR3baluCmQ]','2026-09-16 05:58:52','2026-09-20T02:45:17.328Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2140,'ExponentPushToken[BQ3fJEAqm6OwKR3baluCmQ]','2026-09-16 05:58:52','2026-09-20T02:45:17.328Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2141,'ExponentPushToken[AtYs6TMVS6I0NBs2XCldWw]','2026-09-16 06:00:55','2026-09-16T06:00:55.101Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2141,'ExponentPushToken[AtYs6TMVS6I0NBs2XCldWw]','2026-09-16 06:00:55','2026-09-16T06:00:55.101Z');
|
||||||
|
|
@ -10962,7 +10904,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2146,'ExponentPushToken[Pr1ZagPe_QGAwpx19DvpJs]','2026-09-16 07:56:51','2026-09-16T07:57:01.609Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2146,'ExponentPushToken[Pr1ZagPe_QGAwpx19DvpJs]','2026-09-16 07:56:51','2026-09-16T07:57:01.609Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2147,'ExponentPushToken[TOC4eRO9XvePqeZBKTWeQ9]','2026-09-16 08:14:50','2026-09-28T05:06:42.306Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2147,'ExponentPushToken[TOC4eRO9XvePqeZBKTWeQ9]','2026-09-16 08:14:50','2026-09-28T05:06:42.306Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2149,'ExponentPushToken[fcFcDBH1xf3IBnhkAuOlqM]','2026-09-16 08:31:43','2026-09-16T08:31:43.149Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2149,'ExponentPushToken[fcFcDBH1xf3IBnhkAuOlqM]','2026-09-16 08:31:43','2026-09-16T08:31:43.149Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2150,'ExponentPushToken[9pAN83MJnMrWzkcdpD6lh8]','2026-09-16 09:40:10','2026-10-04T11:55:49.108Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2150,'ExponentPushToken[9pAN83MJnMrWzkcdpD6lh8]','2026-09-16 09:40:10','2026-09-18T04:18:19.469Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2151,'ExponentPushToken[ylrCi1BKKcD0iOQ6OIvraN]','2026-09-16 09:59:49','2026-09-19T14:36:02.376Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2151,'ExponentPushToken[ylrCi1BKKcD0iOQ6OIvraN]','2026-09-16 09:59:49','2026-09-19T14:36:02.376Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2152,'ExponentPushToken[H2coP-DIjQv9cEKaGQ9omE]','2026-09-16 10:09:04','2026-09-16T10:09:04.193Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2152,'ExponentPushToken[H2coP-DIjQv9cEKaGQ9omE]','2026-09-16 10:09:04','2026-09-16T10:09:04.193Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2153,'ExponentPushToken[hWMtkWKNbTLGbeMGBvS1cy]','2026-09-16 10:32:10','2026-09-22T02:33:43.454Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2153,'ExponentPushToken[hWMtkWKNbTLGbeMGBvS1cy]','2026-09-16 10:32:10','2026-09-22T02:33:43.454Z');
|
||||||
|
|
@ -10977,8 +10919,9 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2163,'ExponentPushToken[P_sVINOEh8c_VrmV-m9CXj]','2026-09-16 12:29:40','2026-09-16T12:29:40.140Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2163,'ExponentPushToken[P_sVINOEh8c_VrmV-m9CXj]','2026-09-16 12:29:40','2026-09-16T12:29:40.140Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2164,'ExponentPushToken[s2tl6UMyy9Q7ukuuTshs7e]','2026-09-16 12:58:33','2026-09-19T01:41:29.230Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2164,'ExponentPushToken[s2tl6UMyy9Q7ukuuTshs7e]','2026-09-16 12:58:33','2026-09-19T01:41:29.230Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2165,'ExponentPushToken[ejpZAXK_E9lLt3C67wPwzJ]','2026-09-16 13:47:20','2026-09-16T13:47:20.501Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2165,'ExponentPushToken[ejpZAXK_E9lLt3C67wPwzJ]','2026-09-16 13:47:20','2026-09-16T13:47:20.501Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2167,'ExponentPushToken[-B7sNENUcgsKe-w8BGORd9]','2026-09-16 15:00:43','2026-10-04T12:41:37.063Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2167,'ExponentPushToken[-B7sNENUcgsKe-w8BGORd9]','2026-09-16 15:00:43','2026-09-16T15:00:43.338Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2169,'ExponentPushToken[Q7I_71AUHg5MchLYrUC5h4]','2026-09-16 17:44:04','2026-09-18T08:42:05.782Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2169,'ExponentPushToken[Q7I_71AUHg5MchLYrUC5h4]','2026-09-16 17:44:04','2026-09-18T08:42:05.782Z');
|
||||||
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2170,'ExponentPushToken[V1pgxrA6_Vzd4WtffJ3TnY]','2026-09-17 02:52:33','2026-09-17T02:52:33.183Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2171,'ExponentPushToken[Xb-tJXPLrZbbSis3Q2h6Cu]','2026-09-17 03:49:17','2026-09-17T03:49:17.878Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2171,'ExponentPushToken[Xb-tJXPLrZbbSis3Q2h6Cu]','2026-09-17 03:49:17','2026-09-17T03:49:17.878Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2172,'ExponentPushToken[5BcjTIEu4SW8IQM0TvT1Wl]','2026-09-17 04:09:40','2026-09-17T11:28:05.152Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2172,'ExponentPushToken[5BcjTIEu4SW8IQM0TvT1Wl]','2026-09-17 04:09:40','2026-09-17T11:28:05.152Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2173,'ExponentPushToken[g6R3CqIt8qgm2xBy_2W3wv]','2026-09-17 04:48:17','2026-09-17T04:48:17.229Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2173,'ExponentPushToken[g6R3CqIt8qgm2xBy_2W3wv]','2026-09-17 04:48:17','2026-09-17T04:48:17.229Z');
|
||||||
|
|
@ -10988,7 +10931,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2178,'ExponentPushToken[es4AH7GMcwRBqMv5XSA9Vi]','2026-09-17 13:19:11','2026-10-01T08:24:15.000Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2178,'ExponentPushToken[es4AH7GMcwRBqMv5XSA9Vi]','2026-09-17 13:19:11','2026-10-01T08:24:15.000Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2179,'ExponentPushToken[lQkFiCCduLRNCbUt-reYUz]','2026-09-17 13:38:56','2026-09-17T13:38:56.038Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2179,'ExponentPushToken[lQkFiCCduLRNCbUt-reYUz]','2026-09-17 13:38:56','2026-09-17T13:38:56.038Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2180,'ExponentPushToken[0DFMAOG0DiFTawtgl8PCWl]','2026-09-17 18:00:37','2026-09-17T18:00:37.362Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2180,'ExponentPushToken[0DFMAOG0DiFTawtgl8PCWl]','2026-09-17 18:00:37','2026-09-17T18:00:37.362Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2182,'ExponentPushToken[ctwdtfMNK-iiyO4cJio7Sy]','2026-09-18 02:52:54','2026-10-04T13:28:03.137Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2182,'ExponentPushToken[ctwdtfMNK-iiyO4cJio7Sy]','2026-09-18 02:52:54','2026-10-02T18:03:34.881Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2183,'ExponentPushToken[L7hC8lJIUpconVN-8pasaD]','2026-09-18 03:15:16','2026-09-18T03:15:16.200Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2183,'ExponentPushToken[L7hC8lJIUpconVN-8pasaD]','2026-09-18 03:15:16','2026-09-18T03:15:16.200Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2184,'ExponentPushToken[yEwtHxNetgtib0xWs3FQ4v]','2026-09-18 05:05:10','2026-09-29T05:50:30.155Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2184,'ExponentPushToken[yEwtHxNetgtib0xWs3FQ4v]','2026-09-18 05:05:10','2026-09-29T05:50:30.155Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2185,'ExponentPushToken[vepz-zDuyb-BMjblT74v_H]','2026-09-18 05:53:58','2026-09-19T10:46:34.087Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2185,'ExponentPushToken[vepz-zDuyb-BMjblT74v_H]','2026-09-18 05:53:58','2026-09-19T10:46:34.087Z');
|
||||||
|
|
@ -11029,6 +10972,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2229,'ExponentPushToken[w94TRSOhRhx0QbK6DFvjIC]','2026-09-22 07:50:43','2026-09-22T07:50:43.648Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2229,'ExponentPushToken[w94TRSOhRhx0QbK6DFvjIC]','2026-09-22 07:50:43','2026-09-22T07:50:43.648Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2230,'ExponentPushToken[Bs2ZRvJUf3aQxIf6tVujTJ]','2026-09-22 07:58:01','2026-10-02T02:40:48.490Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2230,'ExponentPushToken[Bs2ZRvJUf3aQxIf6tVujTJ]','2026-09-22 07:58:01','2026-10-02T02:40:48.490Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2231,'ExponentPushToken[5esNLBPZIkXUfswUJWndMo]','2026-09-22 08:01:27','2026-10-01T05:41:30.109Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2231,'ExponentPushToken[5esNLBPZIkXUfswUJWndMo]','2026-09-22 08:01:27','2026-10-01T05:41:30.109Z');
|
||||||
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2232,'ExponentPushToken[QEHRtAMoZwGkBdPRNvcYHi]','2026-09-22 10:44:03','2026-10-03T10:12:44.947Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2234,'ExponentPushToken[w3FZaBHntxI5bwyrXtmgoS]','2026-09-23 01:38:09','2026-09-23T14:15:09.438Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2234,'ExponentPushToken[w3FZaBHntxI5bwyrXtmgoS]','2026-09-23 01:38:09','2026-09-23T14:15:09.438Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2235,'ExponentPushToken[u_RXJBL4051t8aoZeJx0Wd]','2026-09-23 03:53:10','2026-09-23T03:53:10.829Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2235,'ExponentPushToken[u_RXJBL4051t8aoZeJx0Wd]','2026-09-23 03:53:10','2026-09-23T03:53:10.829Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2236,'ExponentPushToken[1Z_OzxMXVfdEnTl9Oxc1l-]','2026-09-23 05:44:43','2026-09-23T05:44:43.828Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2236,'ExponentPushToken[1Z_OzxMXVfdEnTl9Oxc1l-]','2026-09-23 05:44:43','2026-09-23T05:44:43.828Z');
|
||||||
|
|
@ -11070,7 +11014,7 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2274,'ExponentPushToken[28Y-FYFnOozpYnM5Ajx51w]','2026-09-27 16:34:43','2026-09-27T16:34:43.303Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2274,'ExponentPushToken[28Y-FYFnOozpYnM5Ajx51w]','2026-09-27 16:34:43','2026-09-27T16:34:43.303Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2275,'ExponentPushToken[MlgWJeHfqX2OTAcBvqlOHa]','2026-09-28 02:29:13','2026-10-01T12:11:16.405Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2275,'ExponentPushToken[MlgWJeHfqX2OTAcBvqlOHa]','2026-09-28 02:29:13','2026-10-01T12:11:16.405Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2276,'ExponentPushToken[uAGt07L_nhAKAN6EM1aWmR]','2026-09-28 09:28:29','2026-09-28T09:28:29.923Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2276,'ExponentPushToken[uAGt07L_nhAKAN6EM1aWmR]','2026-09-28 09:28:29','2026-09-28T09:28:29.923Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2277,'ExponentPushToken[-YfZGcPDgLNSNjO42hMdwt]','2026-09-28 10:21:35','2026-10-04T14:27:21.835Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2277,'ExponentPushToken[-YfZGcPDgLNSNjO42hMdwt]','2026-09-28 10:21:35','2026-09-28T10:21:35.003Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2278,'ExponentPushToken[hPyq0CL19X5a4o8hhUHTPj]','2026-09-28 14:45:59','2026-10-02T16:03:49.642Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2278,'ExponentPushToken[hPyq0CL19X5a4o8hhUHTPj]','2026-09-28 14:45:59','2026-10-02T16:03:49.642Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2279,'ExponentPushToken[P5wBXdJpnMy9Ajb1p4YAZQ]','2026-09-28 19:53:53','2026-09-28T19:53:53.663Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2279,'ExponentPushToken[P5wBXdJpnMy9Ajb1p4YAZQ]','2026-09-28 19:53:53','2026-09-28T19:53:53.663Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2280,'ExponentPushToken[8Iu8HoNv0J0sQk8KwXtk7C]','2026-09-29 05:39:06','2026-09-29T05:39:06.438Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2280,'ExponentPushToken[8Iu8HoNv0J0sQk8KwXtk7C]','2026-09-29 05:39:06','2026-09-29T05:39:06.438Z');
|
||||||
|
|
@ -11088,30 +11032,25 @@ INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VAL
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2293,'ExponentPushToken[B_zTwpMsVF5ILampMfCked]','2026-09-30 20:41:17','2026-10-01T19:36:37.343Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2293,'ExponentPushToken[B_zTwpMsVF5ILampMfCked]','2026-09-30 20:41:17','2026-10-01T19:36:37.343Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2294,'ExponentPushToken[dCIjRdHKuNgSc_A25a1jdO]','2026-10-01 02:59:29','2026-10-01T02:59:29.244Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2294,'ExponentPushToken[dCIjRdHKuNgSc_A25a1jdO]','2026-10-01 02:59:29','2026-10-01T02:59:29.244Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2295,'ExponentPushToken[1SRWUsFouc9jcNsVoZVRtY]','2026-10-01 10:01:52','2026-10-01T10:01:52.069Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2295,'ExponentPushToken[1SRWUsFouc9jcNsVoZVRtY]','2026-10-01 10:01:52','2026-10-01T10:01:52.069Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2296,'ExponentPushToken[Ccz9ePBN6IrpMvAenflyNF]','2026-10-01 12:13:39','2026-10-04T12:24:18.658Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2296,'ExponentPushToken[Ccz9ePBN6IrpMvAenflyNF]','2026-10-01 12:13:39','2026-10-02T06:08:40.551Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2297,'ExponentPushToken[b8M825LHIOSPEED8JDpxCy]','2026-10-01 13:44:42','2026-10-04T09:17:19.193Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2297,'ExponentPushToken[b8M825LHIOSPEED8JDpxCy]','2026-10-01 13:44:42','2026-10-01T15:20:28.009Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2298,'ExponentPushToken[Nc5AF_GTrguvAipT7GWQIk]','2026-10-01 14:54:40','2026-10-01T14:54:40.912Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2298,'ExponentPushToken[Nc5AF_GTrguvAipT7GWQIk]','2026-10-01 14:54:40','2026-10-01T14:54:40.912Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2300,'ExponentPushToken[oHi6SHLrm6RkIe1GACFKJF]','2026-10-01 16:11:07','2026-10-01T16:11:07.404Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2300,'ExponentPushToken[oHi6SHLrm6RkIe1GACFKJF]','2026-10-01 16:11:07','2026-10-01T16:11:07.404Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2301,'ExponentPushToken[7zyB6yJ0dnVfS3otre-bhK]','2026-10-02 02:53:11','2026-10-02T02:53:11.478Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2301,'ExponentPushToken[7zyB6yJ0dnVfS3otre-bhK]','2026-10-02 02:53:11','2026-10-02T02:53:11.478Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2302,'ExponentPushToken[hX_VxoHirBIiz-9lgvZKlr]','2026-10-02 04:43:30','2026-10-02T04:43:30.182Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2302,'ExponentPushToken[hX_VxoHirBIiz-9lgvZKlr]','2026-10-02 04:43:30','2026-10-02T04:43:30.182Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2303,'ExponentPushToken[g75-4RM3-sFP9yzSZzdJl-]','2026-10-02 04:52:27','2026-10-04T04:44:03.807Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2303,'ExponentPushToken[g75-4RM3-sFP9yzSZzdJl-]','2026-10-02 04:52:27','2026-10-04T04:44:03.807Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2304,'ExponentPushToken[Xfr46LAH3l-LNNnDymaz3O]','2026-10-02 11:47:24','2026-10-04T12:09:42.502Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2304,'ExponentPushToken[Xfr46LAH3l-LNNnDymaz3O]','2026-10-02 11:47:24','2026-10-02T13:19:40.825Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2305,'ExponentPushToken[8WZcByJprBqGWjYdRfbDwt]','2026-10-02 11:52:10','2026-10-02T15:35:50.829Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2305,'ExponentPushToken[8WZcByJprBqGWjYdRfbDwt]','2026-10-02 11:52:10','2026-10-02T15:35:50.829Z');
|
||||||
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2306,'ExponentPushToken[OcutknHquFrN-BuPWTbgX8]','2026-10-02 17:43:08','2026-10-04T04:53:06.385Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2307,'ExponentPushToken[2xD62UFbcHRSjmKN_ocoEb]','2026-10-03 05:03:18','2026-10-03T05:03:18.737Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2307,'ExponentPushToken[2xD62UFbcHRSjmKN_ocoEb]','2026-10-03 05:03:18','2026-10-03T05:03:18.737Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2308,'ExponentPushToken[nLYwtpFq3SAzUAEEV1HTPu]','2026-10-03 09:33:22','2026-10-05T12:44:10.302Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2308,'ExponentPushToken[nLYwtpFq3SAzUAEEV1HTPu]','2026-10-03 09:33:22','2026-10-03T09:33:22.121Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2309,'ExponentPushToken[EB2-5yP35srbZxTYKeFocu]','2026-10-03 10:55:42','2026-10-03T10:55:42.401Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2309,'ExponentPushToken[EB2-5yP35srbZxTYKeFocu]','2026-10-03 10:55:42','2026-10-03T10:55:42.401Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2310,'ExponentPushToken[7KPbNKAohu08tsq5iyB1TH]','2026-10-03 12:44:41','2026-10-04T06:48:37.785Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2310,'ExponentPushToken[7KPbNKAohu08tsq5iyB1TH]','2026-10-03 12:44:41','2026-10-04T06:48:37.785Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2311,'ExponentPushToken[OrpgleH6mqmvKzUSrZUS1n]','2026-10-04 03:30:27','2026-10-04T14:22:26.346Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2311,'ExponentPushToken[OrpgleH6mqmvKzUSrZUS1n]','2026-10-04 03:30:27','2026-10-04T03:32:18.413Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2312,'ExponentPushToken[1OhVnHCvUAUFPL1F61o1xt]','2026-10-04 04:08:17','2026-10-05T13:26:30.613Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2312,'ExponentPushToken[1OhVnHCvUAUFPL1F61o1xt]','2026-10-04 04:08:17','2026-10-04T04:08:17.673Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2313,'ExponentPushToken[ihXBhUMTPbamC9mopJxYBZ]','2026-10-04 04:24:58','2026-10-04T05:10:33.486Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2313,'ExponentPushToken[ihXBhUMTPbamC9mopJxYBZ]','2026-10-04 04:24:58','2026-10-04T05:10:33.486Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2314,'ExponentPushToken[RYzNT5LUsHfpTNBU7WbkVy]','2026-10-04 04:37:48','2026-10-04T04:37:48.622Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2314,'ExponentPushToken[RYzNT5LUsHfpTNBU7WbkVy]','2026-10-04 04:37:48','2026-10-04T04:37:48.622Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2315,'ExponentPushToken[v0TP-kP_3IpUZNOw8po9eg]','2026-10-04 06:29:59','2026-10-04T14:47:25.021Z');
|
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2315,'ExponentPushToken[v0TP-kP_3IpUZNOw8po9eg]','2026-10-04 06:29:59','2026-10-04T06:29:59.348Z');
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2316,'ExponentPushToken[tioFveItRlA7fTirESkDg6]','2026-10-04 07:37:54','2026-10-04T07:37:54.807Z');
|
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2317,'ExponentPushToken[m-rZedKANpoAblO-z5MWKM]','2026-10-04 09:02:14','2026-10-04T09:02:14.175Z');
|
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2318,'ExponentPushToken[KvxN6FPLBMOZZgK0WC0di_]','2026-10-04 09:09:29','2026-10-04T09:09:29.221Z');
|
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2319,'ExponentPushToken[xmFkZxAksrc5RUoMLh7kT5]','2026-10-04 11:29:33','2026-10-04T11:29:33.121Z');
|
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2320,'ExponentPushToken[5fN-R6N13dCBxbFL53jOKy]','2026-10-05 03:36:07','2026-10-05T03:36:07.376Z');
|
|
||||||
INSERT INTO "unlogged_user_tokens" ("id","token","added_at","last_verified") VALUES(2321,'ExponentPushToken[r2wZZxFh-cerrnhoeljSHx]','2026-10-05 07:15:26','2026-10-05T07:15:26.179Z');
|
|
||||||
CREATE TABLE IF NOT EXISTS "upload_url_status" ("id" INTEGER PRIMARY KEY, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "key" TEXT NOT NULL, "status" TEXT NOT NULL DEFAULT 'pending');
|
CREATE TABLE IF NOT EXISTS "upload_url_status" ("id" INTEGER PRIMARY KEY, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "key" TEXT NOT NULL, "status" TEXT NOT NULL DEFAULT 'pending');
|
||||||
INSERT INTO "upload_url_status" ("id","created_at","key","status") VALUES(35,'2025-12-07T08:58:13.136Z','review-images/1765097892914.jpg','pending');
|
INSERT INTO "upload_url_status" ("id","created_at","key","status") VALUES(35,'2025-12-07T08:58:13.136Z','review-images/1765097892914.jpg','pending');
|
||||||
INSERT INTO "upload_url_status" ("id","created_at","key","status") VALUES(36,'2025-12-07T08:58:13.347Z','review-images/1765097893129.png','pending');
|
INSERT INTO "upload_url_status" ("id","created_at","key","status") VALUES(36,'2025-12-07T08:58:13.347Z','review-images/1765097893129.png','pending');
|
||||||
|
|
@ -12775,9 +12714,6 @@ INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1298,NULL
|
||||||
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1299,NULL,NULL,'8885480703','2026-10-04 03:50:01');
|
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1299,NULL,NULL,'8885480703','2026-10-04 03:50:01');
|
||||||
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1300,NULL,NULL,'8309983896','2026-10-04 05:47:20');
|
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1300,NULL,NULL,'8309983896','2026-10-04 05:47:20');
|
||||||
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1301,NULL,NULL,'6301658328','2026-10-04 06:02:24');
|
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1301,NULL,NULL,'6301658328','2026-10-04 06:02:24');
|
||||||
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1302,NULL,NULL,'7981554916','2026-10-04 11:37:03');
|
|
||||||
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1303,NULL,NULL,'8341340614','2026-10-05 04:43:16');
|
|
||||||
INSERT INTO "users" ("id","name","email","mobile","created_at") VALUES(1304,NULL,NULL,'8309640036','2026-10-05 13:21:07');
|
|
||||||
CREATE TABLE IF NOT EXISTS "vendor_snippets" ("id" INTEGER PRIMARY KEY, "snippet_code" TEXT NOT NULL, "slot_id" INTEGER, "sku_ids" TEXT NOT NULL, "valid_till" TEXT, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "is_permanent" INTEGER NOT NULL DEFAULT false);
|
CREATE TABLE IF NOT EXISTS "vendor_snippets" ("id" INTEGER PRIMARY KEY, "snippet_code" TEXT NOT NULL, "slot_id" INTEGER, "sku_ids" TEXT NOT NULL, "valid_till" TEXT, "created_at" TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, "is_permanent" INTEGER NOT NULL DEFAULT false);
|
||||||
INSERT INTO "vendor_snippets" ("id","snippet_code","slot_id","sku_ids","valid_till","created_at","is_permanent") VALUES(55,'Allvegetables1',NULL,'[88,66,70,64,91,19,71,27,79,32,5,65,45,77,74,17,16,72,33,13,89,29,78,30,69,31,76,90,18,68]','2027-01-27T17:56:00.000Z','2026-01-27T18:03:18.974Z',1);
|
INSERT INTO "vendor_snippets" ("id","snippet_code","slot_id","sku_ids","valid_till","created_at","is_permanent") VALUES(55,'Allvegetables1',NULL,'[88,66,70,64,91,19,71,27,79,32,5,65,45,77,74,17,16,72,33,13,89,29,78,30,69,31,76,90,18,68]','2027-01-27T17:56:00.000Z','2026-01-27T18:03:18.974Z',1);
|
||||||
INSERT INTO "vendor_snippets" ("id","snippet_code","slot_id","sku_ids","valid_till","created_at","is_permanent") VALUES(56,'AllMuttonitems',NULL,'[34,85,14,87,35,84,28,86,4,12,99,98,20]','2027-03-31T02:51:00.000Z','2026-01-28T02:52:14.560Z',1);
|
INSERT INTO "vendor_snippets" ("id","snippet_code","slot_id","sku_ids","valid_till","created_at","is_permanent") VALUES(56,'AllMuttonitems',NULL,'[34,85,14,87,35,84,28,86,4,12,99,98,20]','2027-03-31T02:51:00.000Z','2026-01-28T02:52:14.560Z',1);
|
||||||
|
|
@ -21311,53 +21247,12 @@ INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discount
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8104,2415,6,'1','109.0','109.0',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8104,2415,6,'1','109.0','109.0',1,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8105,2415,26,'1','78.0','78.0',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8105,2415,26,'1','78.0','78.0',1,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8106,2415,98,'1','429','429',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8106,2415,98,'1','429','429',1,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8107,2416,4,'1','859','859',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8107,2416,4,'1','859','859',0,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8108,2416,137,'1','305','305',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8108,2416,137,'1','305','305',1,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8109,2416,78,'2','15.0','15.0',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8109,2416,78,'2','15.0','15.0',0,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8110,2417,23,'2','152','152',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8110,2417,23,'2','152','152',1,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8111,2418,98,'1','429','429',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8111,2418,98,'1','429','429',0,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8112,2419,4,'1','859','859',1,0,NULL);
|
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8112,2419,4,'1','859','859',0,0,NULL);
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8113,2420,48,'1','79','79',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8114,2420,7,'1','69.0','69.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8115,2420,44,'1','159','159',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8116,2421,24,'2','235','235',0,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8117,2422,13,'1','79','79',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8118,2422,134,'1','169.0','169.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8119,2422,23,'1','152','152',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8120,2422,7,'1','69.0','69.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8121,2423,32,'1','19.0','19.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8122,2423,5,'1','15.0','15.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8123,2423,65,'1','16.0','16.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8124,2423,69,'1','15.0','15.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8125,2423,71,'1','15.0','15.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8126,2423,76,'1','29.0','29.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8127,2423,97,'1','19.0','19.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8128,2423,31,'1','19','19',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8129,2423,18,'1','69','69',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8130,2424,129,'1','249','249',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8131,2425,10,'1','299','299',0,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8132,2426,10,'1','299','299',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8133,2427,136,'1','199','199',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8134,2428,23,'2','152','152',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8135,2428,136,'1','199','199',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8136,2429,69,'2','15.0','15.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8137,2429,65,'2','16.0','16.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8138,2429,5,'2','15.0','15.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8139,2430,98,'1','429','429',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8140,2431,24,'2','235','235',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8141,2431,45,'2','25','25',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8142,2431,66,'1','30.0','30.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8143,2431,69,'1','19.0','19.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8144,2431,101,'1','20.0','20.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8145,2431,29,'1','29.0','29.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8146,2431,5,'1','15.0','15.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8147,2432,82,'1','399','399',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8148,2433,73,'5','59.0','59.0',0,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8149,2434,73,'4','59.0','59.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8150,2434,100,'1','109.0','109.0',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8151,2435,48,'2','79','79',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8152,2435,58,'1','89','89',1,0,NULL);
|
|
||||||
INSERT INTO "order_items" ("id","order_id","sku_id","quantity","price","discounted_price","is_packaged","is_package_verified","packaged_at") VALUES(8153,2436,81,'1','569','569',0,0,NULL);
|
|
||||||
CREATE TABLE IF NOT EXISTS "special_deals" (
|
CREATE TABLE IF NOT EXISTS "special_deals" (
|
||||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||||
`sku_id` integer NOT NULL,
|
`sku_id` integer NOT NULL,
|
||||||
|
|
@ -21795,21 +21690,20 @@ CREATE TABLE `staff_notif_creds` (
|
||||||
`last_verified` text,
|
`last_verified` text,
|
||||||
FOREIGN KEY (`staff_user_id`) REFERENCES `staff_users`(`id`) ON UPDATE no action ON DELETE no action
|
FOREIGN KEY (`staff_user_id`) REFERENCES `staff_users`(`id`) ON UPDATE no action ON DELETE no action
|
||||||
);
|
);
|
||||||
INSERT INTO "staff_notif_creds" ("id","token","added_at","staff_user_id","last_verified") VALUES(1,'ExponentPushToken[HyU1kPNunSJaasQweODhvH]','2026-10-02 10:49:17',6,'2026-10-04T07:19:37.555Z');
|
INSERT INTO "staff_notif_creds" ("id","token","added_at","staff_user_id","last_verified") VALUES(1,'ExponentPushToken[HyU1kPNunSJaasQweODhvH]','2026-10-02 10:49:17',6,'2026-10-04T05:28:42.377Z');
|
||||||
INSERT INTO "staff_notif_creds" ("id","token","added_at","staff_user_id","last_verified") VALUES(2,'ExponentPushToken[QydqxGMsUfzHuiqxel0nA9]','2026-10-02 10:49:27',4,'2026-10-05T13:25:57.740Z');
|
INSERT INTO "staff_notif_creds" ("id","token","added_at","staff_user_id","last_verified") VALUES(2,'ExponentPushToken[QydqxGMsUfzHuiqxel0nA9]','2026-10-02 10:49:27',4,'2026-10-04T05:59:14.246Z');
|
||||||
INSERT INTO "staff_notif_creds" ("id","token","added_at","staff_user_id","last_verified") VALUES(3,'ExponentPushToken[bqqW02IeK4XcC4iuzpkQIG]','2026-10-05 01:28:42',4,'2026-10-05T09:30:45.951Z');
|
|
||||||
DELETE FROM sqlite_sequence;
|
DELETE FROM sqlite_sequence;
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_skus',150);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_skus',150);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('sku_features',180);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('sku_features',180);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_market_stats',150);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_market_stats',150);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_info',150);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_info',150);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('cart_items',128);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('cart_items',128);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('order_items',8153);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('order_items',8112);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('special_deals',12);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('special_deals',12);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('coupon_applicable_products',1);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('coupon_applicable_products',1);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_tags',604);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_tags',604);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_combos',174);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('product_combos',174);
|
||||||
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('staff_notif_creds',3);
|
INSERT INTO "sqlite_sequence" ("name","seq") VALUES('staff_notif_creds',2);
|
||||||
CREATE UNIQUE INDEX `unique_sku_feature_name` ON `sku_features` (`sku_id`,`feature_name`);
|
CREATE UNIQUE INDEX `unique_sku_feature_name` ON `sku_features` (`sku_id`,`feature_name`);
|
||||||
CREATE UNIQUE INDEX `product_market_stats_sku_id_unique` ON `product_market_stats` (`sku_id`);
|
CREATE UNIQUE INDEX `product_market_stats_sku_id_unique` ON `product_market_stats` (`sku_id`);
|
||||||
CREATE UNIQUE INDEX `unique_user_sku` ON `cart_items` (`user_id`,`sku_id`);
|
CREATE UNIQUE INDEX `unique_user_sku` ON `cart_items` (`user_id`,`sku_id`);
|
||||||
|
|
@ -21817,4 +21711,3 @@ CREATE UNIQUE INDEX `unique_coupon_sku` ON `coupon_applicable_products` (`coupon
|
||||||
CREATE UNIQUE INDEX `unique_product_tag` ON `product_tags` (`product_id`,`tag_id`);
|
CREATE UNIQUE INDEX `unique_product_tag` ON `product_tags` (`product_id`,`tag_id`);
|
||||||
CREATE UNIQUE INDEX `unique_combo_sku_item` ON `product_combos` (`combo_sku_id`,`sku_id`);
|
CREATE UNIQUE INDEX `unique_combo_sku_item` ON `product_combos` (`combo_sku_id`,`sku_id`);
|
||||||
CREATE UNIQUE INDEX `staff_notif_creds_token_unique` ON `staff_notif_creds` (`token`);
|
CREATE UNIQUE INDEX `staff_notif_creds_token_unique` ON `staff_notif_creds` (`token`);
|
||||||
PRAGMA defer_foreign_keys=off;
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
||||||
-- ============================================================
|
|
||||||
-- delete-orders-before.sql
|
|
||||||
--
|
|
||||||
-- Deletes every order created BEFORE the cutoff below, together
|
|
||||||
-- with its dependent rows (coupon usage, complaints, incidents,
|
|
||||||
-- payments, refunds, status, items).
|
|
||||||
--
|
|
||||||
-- HOW TO USE
|
|
||||||
-- 1. Edit the cutoff date in the helper step below (single place).
|
|
||||||
-- 2. Run (remote):
|
|
||||||
-- bunx wrangler d1 execute <db-name> --remote --config <wrangler.toml> \
|
|
||||||
-- --file scripts/delete-orders-before.sql
|
|
||||||
-- (omit --remote for the local dev DB.)
|
|
||||||
--
|
|
||||||
-- DATE FORMAT — orders.created_at is stored as an ISO-8601 string,
|
|
||||||
-- e.g. '2025-12-24T02:50:33.284Z'. Accepted cutoff values:
|
|
||||||
-- * Date only : 'YYYY-MM-DD' e.g. '2026-01-01' <-- recommended
|
|
||||||
-- * Full timestamp : 'YYYY-MM-DDTHH:MM:SS.sssZ' e.g. '2026-01-01T00:00:00.000Z'
|
|
||||||
-- * Space format : 'YYYY-MM-DD HH:MM:SS' e.g. '2026-01-01 00:00:00'
|
|
||||||
-- Where the placeholders mean, in order left to right:
|
|
||||||
-- YYYY = year (2026-01-01 -> 2026)
|
|
||||||
-- MM = month (01-12) e.g. Jan = 01, Feb = 02, Mar = 03, Apr = 04,
|
|
||||||
-- DD = day of month (01-31)
|
|
||||||
-- HH = hour 00-23, MM = minutes, SS = seconds
|
|
||||||
-- Example: 25 March 2024 is written '2024-03-25'.
|
|
||||||
-- Rows strictly EARLIER than the value are removed.
|
|
||||||
--
|
|
||||||
-- WARNING: destructive and NOT reversible. Back up first:
|
|
||||||
-- bunx wrangler d1 export <db-name> --remote --output dumps/backup.sql
|
|
||||||
-- ============================================================
|
|
||||||
|
|
||||||
-- Helper: capture the targeted orders once, so the cutoff appears in ONE place.
|
|
||||||
-- (Dropped at the end; dropped first too, so a re-run never reuses stale ids.)
|
|
||||||
DROP TABLE IF EXISTS `_old_orders`;
|
|
||||||
CREATE TABLE `_old_orders` AS
|
|
||||||
SELECT `id`, `payment_info_id` FROM `orders`
|
|
||||||
WHERE `created_at` < '2026-08-28'; -- <<< EDIT THE CUTOFF DATE HERE
|
|
||||||
|
|
||||||
-- 1) coupon_usage references both orders and order_items -> delete first.
|
|
||||||
DELETE FROM `coupon_usage`
|
|
||||||
WHERE `order_id` IN (SELECT `id` FROM `_old_orders`)
|
|
||||||
OR `order_item_id` IN (
|
|
||||||
SELECT `id` FROM `order_items`
|
|
||||||
WHERE `order_id` IN (SELECT `id` FROM `_old_orders`)
|
|
||||||
);
|
|
||||||
--> statement-breakpoint
|
|
||||||
|
|
||||||
-- 2) remaining direct children of orders.
|
|
||||||
DELETE FROM `complaints` WHERE `order_id` IN (SELECT `id` FROM `_old_orders`);
|
|
||||||
--> statement-breakpoint
|
|
||||||
DELETE FROM `user_incidents` WHERE `order_id` IN (SELECT `id` FROM `_old_orders`);
|
|
||||||
--> statement-breakpoint
|
|
||||||
DELETE FROM `payments` WHERE `order_id` IN (SELECT `id` FROM `_old_orders`);
|
|
||||||
--> statement-breakpoint
|
|
||||||
DELETE FROM `refunds` WHERE `order_id` IN (SELECT `id` FROM `_old_orders`);
|
|
||||||
--> statement-breakpoint
|
|
||||||
DELETE FROM `order_status` WHERE `order_id` IN (SELECT `id` FROM `_old_orders`);
|
|
||||||
--> statement-breakpoint
|
|
||||||
|
|
||||||
-- 3) order_items (no longer referenced by coupon_usage).
|
|
||||||
DELETE FROM `order_items` WHERE `order_id` IN (SELECT `id` FROM `_old_orders`);
|
|
||||||
--> statement-breakpoint
|
|
||||||
|
|
||||||
-- 4) the orders.
|
|
||||||
DELETE FROM `orders` WHERE `id` IN (SELECT `id` FROM `_old_orders`);
|
|
||||||
--> statement-breakpoint
|
|
||||||
|
|
||||||
-- 5) OPTIONAL: remove now-orphaned payment_info rows. Comment out to keep them.
|
|
||||||
DELETE FROM `payment_info`
|
|
||||||
WHERE `id` IN (SELECT `payment_info_id` FROM `_old_orders` WHERE `payment_info_id` IS NOT NULL);
|
|
||||||
--> statement-breakpoint
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `_old_orders`;
|
|
||||||
|
|
@ -3,7 +3,7 @@ import type { Context } from 'hono'
|
||||||
import { cors } from 'hono/cors'
|
import { cors } from 'hono/cors'
|
||||||
import { logger } from 'hono/logger'
|
import { logger } from 'hono/logger'
|
||||||
import { trpcServer } from '@hono/trpc-server'
|
import { trpcServer } from '@hono/trpc-server'
|
||||||
import { getStaffUserById, getStaffRoleById, getSuperadminById, isUserSuspended } from '@/src/dbService'
|
import { getStaffUserById, getStaffRoleById, isUserSuspended } from '@/src/dbService'
|
||||||
import mainRouter from '@/src/main-router'
|
import mainRouter from '@/src/main-router'
|
||||||
import { appRouter } from '@/src/trpc/router'
|
import { appRouter } from '@/src/trpc/router'
|
||||||
import { TRPCError } from '@trpc/server'
|
import { TRPCError } from '@trpc/server'
|
||||||
|
|
@ -30,7 +30,6 @@ export const createApp = () => {
|
||||||
createContext: async ({ req }, c) => {
|
createContext: async ({ req }, c) => {
|
||||||
let user = null
|
let user = null
|
||||||
let staffUser = null
|
let staffUser = null
|
||||||
let superadmin = null
|
|
||||||
const authHeader = req.headers.get('authorization')
|
const authHeader = req.headers.get('authorization')
|
||||||
const callerInterface = req.headers.get('caller-interface')
|
const callerInterface = req.headers.get('caller-interface')
|
||||||
|
|
||||||
|
|
@ -58,17 +57,7 @@ export const createApp = () => {
|
||||||
const decoded = payload as any
|
const decoded = payload as any
|
||||||
|
|
||||||
// Check if this is a staff token (has staffId)
|
// Check if this is a staff token (has staffId)
|
||||||
if (decoded.superadminId) {
|
if (decoded.staffId) {
|
||||||
// This is a superadmin token, verify the row exists
|
|
||||||
const row = await getSuperadminById(decoded.superadminId)
|
|
||||||
|
|
||||||
if (row) {
|
|
||||||
superadmin = {
|
|
||||||
id: row.id,
|
|
||||||
name: row.name,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (decoded.staffId) {
|
|
||||||
// This is a staff token, verify staff exists
|
// This is a staff token, verify staff exists
|
||||||
const staff = await getStaffUserById(decoded.staffId)
|
const staff = await getStaffUserById(decoded.staffId)
|
||||||
|
|
||||||
|
|
@ -101,7 +90,7 @@ export const createApp = () => {
|
||||||
// Invalid token, both user and staffUser remain null
|
// Invalid token, both user and staffUser remain null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return { req, c, user, staffUser, superadmin, callerInterface }
|
return { req, c, user, staffUser, callerInterface }
|
||||||
},
|
},
|
||||||
onError({ error, path, type, ctx }) {
|
onError({ error, path, type, ctx }) {
|
||||||
console.error('🚨 tRPC Error :', {
|
console.error('🚨 tRPC Error :', {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ export type {
|
||||||
UserMiniInfo,
|
UserMiniInfo,
|
||||||
Store,
|
Store,
|
||||||
StaffUser,
|
StaffUser,
|
||||||
Superadmin,
|
|
||||||
StaffRole,
|
StaffRole,
|
||||||
AdminOrderRow,
|
AdminOrderRow,
|
||||||
AdminOrderDetails,
|
AdminOrderDetails,
|
||||||
|
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
{
|
|
||||||
"type": "FeatureCollection",
|
|
||||||
"features": [
|
|
||||||
{
|
|
||||||
"type": "Feature",
|
|
||||||
"properties": {
|
|
||||||
"name": "Jadcherla"
|
|
||||||
},
|
|
||||||
"geometry": {
|
|
||||||
"type": "Polygon",
|
|
||||||
"coordinates": [
|
|
||||||
[
|
|
||||||
[
|
|
||||||
78.1403916,
|
|
||||||
16.744066
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1548681,
|
|
||||||
16.7415277
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1593669,
|
|
||||||
16.7523755
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1621315,
|
|
||||||
16.7630654
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1620705,
|
|
||||||
16.7692272
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1564687,
|
|
||||||
16.7758419
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1513873,
|
|
||||||
16.7783785
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1455877,
|
|
||||||
16.7796921
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1326433,
|
|
||||||
16.781202
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.123043,
|
|
||||||
16.7805196
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.118775,
|
|
||||||
16.7757046
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1173809,
|
|
||||||
16.7685992
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1205895,
|
|
||||||
16.7633171
|
|
||||||
],
|
|
||||||
[
|
|
||||||
78.1403916,
|
|
||||||
16.744066
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -127,10 +127,10 @@ export const productRouter = router({
|
||||||
if (!currentProduct) {
|
if (!currentProduct) {
|
||||||
throw new ApiError('Product not found', 404)
|
throw new ApiError('Product not found', 404)
|
||||||
}
|
}
|
||||||
if (currentProduct.availableInAllRegions) {
|
|
||||||
throw new ApiError('All-region products can only be deleted from superadmin', 403)
|
|
||||||
}
|
|
||||||
if (!isSuperAdmin(ctx)) {
|
if (!isSuperAdmin(ctx)) {
|
||||||
|
if (currentProduct.availableInAllRegions) {
|
||||||
|
throw new ApiError('Only super admins can delete all-regions products', 403)
|
||||||
|
}
|
||||||
if (currentProduct.regionId !== ctx.staffUser?.regionId) {
|
if (currentProduct.regionId !== ctx.staffUser?.regionId) {
|
||||||
throw new ApiError('Product does not belong to your region', 403)
|
throw new ApiError('Product does not belong to your region', 403)
|
||||||
}
|
}
|
||||||
|
|
@ -212,11 +212,6 @@ export const productRouter = router({
|
||||||
.mutation(async ({ input, ctx }): Promise<{ product: AdminProductWithRelations; message: string }> => {
|
.mutation(async ({ input, ctx }): Promise<{ product: AdminProductWithRelations; message: string }> => {
|
||||||
const { name, shortDescription, longDescription, storeId, regionId, availableInAllRegions, storeIdsByRegion, incrementStep, productType, skus } = input
|
const { name, shortDescription, longDescription, storeId, regionId, availableInAllRegions, storeIdsByRegion, incrementStep, productType, skus } = input
|
||||||
|
|
||||||
// All-region products are managed from superadmin-ui only.
|
|
||||||
if (availableInAllRegions) {
|
|
||||||
throw new ApiError('All-region products can only be created from superadmin', 403)
|
|
||||||
}
|
|
||||||
|
|
||||||
const normalizedStoreIdsByRegion = storeIdsByRegion
|
const normalizedStoreIdsByRegion = storeIdsByRegion
|
||||||
? Object.fromEntries(Object.entries(storeIdsByRegion).map(([k, v]) => [Number(k), v]))
|
? Object.fromEntries(Object.entries(storeIdsByRegion).map(([k, v]) => [Number(k), v]))
|
||||||
: undefined
|
: undefined
|
||||||
|
|
@ -322,10 +317,11 @@ export const productRouter = router({
|
||||||
|
|
||||||
const currentProduct = await getProductByIdInDb(id, undefined)
|
const currentProduct = await getProductByIdInDb(id, undefined)
|
||||||
assertOwnRestrictedProduct(ctx, currentProduct)
|
assertOwnRestrictedProduct(ctx, currentProduct)
|
||||||
// All-region products are managed from superadmin-ui only.
|
if (!isSuperAdmin(ctx)) {
|
||||||
const nextAllRegions = availableInAllRegions ?? currentProduct!.availableInAllRegions
|
const nextAllRegions = availableInAllRegions ?? currentProduct!.availableInAllRegions
|
||||||
if (nextAllRegions !== currentProduct!.availableInAllRegions) {
|
if (nextAllRegions !== currentProduct!.availableInAllRegions) {
|
||||||
throw new ApiError('All-region availability can only be changed from superadmin', 403)
|
throw new ApiError('Only super admins can change all-regions availability', 403)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const normalizedStoreIdsByRegion = storeIdsByRegion
|
const normalizedStoreIdsByRegion = storeIdsByRegion
|
||||||
|
|
|
||||||
|
|
@ -84,16 +84,10 @@ export const storeRouter = router({
|
||||||
owner: z.number().min(1, "Owner is required"),
|
owner: z.number().min(1, "Owner is required"),
|
||||||
products: z.array(z.number()).optional(),
|
products: z.array(z.number()).optional(),
|
||||||
regionId: z.number().int().positive().optional(),
|
regionId: z.number().int().positive().optional(),
|
||||||
availableInAllRegions: z.boolean().optional(),
|
|
||||||
}))
|
}))
|
||||||
.mutation(async ({ input, ctx }): Promise<{ store: Store; message: string }> => {
|
.mutation(async ({ input, ctx }): Promise<{ store: Store; message: string }> => {
|
||||||
const { name, description, imageUrl, owner, products } = input;
|
const { name, description, imageUrl, owner, products } = input;
|
||||||
|
|
||||||
// All-region stores are managed from superadmin-ui only.
|
|
||||||
if (input.availableInAllRegions) {
|
|
||||||
throw new ApiError("All-region stores can only be created from superadmin", 403);
|
|
||||||
}
|
|
||||||
|
|
||||||
const imageKey = imageUrl ? extractKeyFromPresignedUrl(imageUrl) : undefined;
|
const imageKey = imageUrl ? extractKeyFromPresignedUrl(imageUrl) : undefined;
|
||||||
|
|
||||||
const newStore = await createStoreInDb(
|
const newStore = await createStoreInDb(
|
||||||
|
|
@ -125,7 +119,6 @@ export const storeRouter = router({
|
||||||
owner: z.number().min(1, "Owner is required"),
|
owner: z.number().min(1, "Owner is required"),
|
||||||
products: z.array(z.number()).optional(),
|
products: z.array(z.number()).optional(),
|
||||||
regionId: z.number().int().positive().optional(),
|
regionId: z.number().int().positive().optional(),
|
||||||
availableInAllRegions: z.boolean().optional(),
|
|
||||||
}))
|
}))
|
||||||
.mutation(async ({ input, ctx }): Promise<{ store: Store; message: string }> => {
|
.mutation(async ({ input, ctx }): Promise<{ store: Store; message: string }> => {
|
||||||
const { id, name, description, imageUrl, owner, products } = input;
|
const { id, name, description, imageUrl, owner, products } = input;
|
||||||
|
|
@ -135,10 +128,6 @@ export const storeRouter = router({
|
||||||
if (!existingStore) {
|
if (!existingStore) {
|
||||||
throw new ApiError("Store not found", 404);
|
throw new ApiError("Store not found", 404);
|
||||||
}
|
}
|
||||||
// All-region stores are managed from superadmin-ui only.
|
|
||||||
if (existingStore.regionId == null || input.availableInAllRegions) {
|
|
||||||
throw new ApiError("All-region stores can only be edited from superadmin", 403);
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
ctx.staffUser?.staffRoleName !== 'super_admin' &&
|
ctx.staffUser?.staffRoleName !== 'super_admin' &&
|
||||||
existingStore.regionId !== ctx.staffUser?.regionId
|
existingStore.regionId !== ctx.staffUser?.regionId
|
||||||
|
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
import { router, publicProcedure } from '@/src/trpc/trpc-index'
|
|
||||||
import { z } from 'zod';
|
|
||||||
import bcrypt from 'bcryptjs';
|
|
||||||
import { SignJWT } from 'jose';
|
|
||||||
import { getEncodedJwtSecret } from '@/src/lib/env-exporter';
|
|
||||||
import { ApiError } from '@/src/lib/api-error'
|
|
||||||
import { getSuperadminByName } from '@/src/dbService'
|
|
||||||
|
|
||||||
export const superadminAuthRouter = router({
|
|
||||||
login: publicProcedure
|
|
||||||
.input(z.object({
|
|
||||||
name: z.string(),
|
|
||||||
password: z.string(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }) => {
|
|
||||||
const { name, password } = input;
|
|
||||||
|
|
||||||
if (!name || !password) {
|
|
||||||
throw new ApiError('Name and password are required', 400);
|
|
||||||
}
|
|
||||||
|
|
||||||
const row = await getSuperadminByName(name);
|
|
||||||
|
|
||||||
if (!row) {
|
|
||||||
throw new ApiError('Invalid credentials', 401);
|
|
||||||
}
|
|
||||||
|
|
||||||
const isPasswordValid = await bcrypt.compare(password, row.password);
|
|
||||||
if (!isPasswordValid) {
|
|
||||||
throw new ApiError('Invalid credentials', 401);
|
|
||||||
}
|
|
||||||
|
|
||||||
const token = await new SignJWT({ superadminId: row.id, name: row.name })
|
|
||||||
.setProtectedHeader({ alg: 'HS256' })
|
|
||||||
.setExpirationTime('30d')
|
|
||||||
.sign(getEncodedJwtSecret());
|
|
||||||
|
|
||||||
return {
|
|
||||||
message: 'Login successful',
|
|
||||||
token,
|
|
||||||
superadmin: {
|
|
||||||
id: row.id,
|
|
||||||
name: row.name,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
@ -1,109 +0,0 @@
|
||||||
import { router, superadminProcedure } from '@/src/trpc/trpc-index'
|
|
||||||
import { z } from 'zod';
|
|
||||||
import { DEFAULT_REGION_ID } from '@packages/shared';
|
|
||||||
import { computeConstants } from '@/src/lib/const-store'
|
|
||||||
import { refreshGenKv } from '@/src/lib/gen-store'
|
|
||||||
import { CONST_KEYS, REGION_CONST_KEYS_ARRAY } from '@/src/lib/const-keys'
|
|
||||||
import { scheduleStoreInitialization } from '@/src/stores/store-initializer'
|
|
||||||
import {
|
|
||||||
getAllConstants as getAllConstantsFromDb,
|
|
||||||
upsertConstants as upsertConstantsInDb,
|
|
||||||
getRegionConstants as getRegionConstantsFromDb,
|
|
||||||
upsertRegionConstants as upsertRegionConstantsInDb,
|
|
||||||
getRegionById as getRegionByIdFromDb,
|
|
||||||
} from '@/src/dbService'
|
|
||||||
import type { Constant, ConstantUpdateResult } from '@packages/shared'
|
|
||||||
|
|
||||||
// Constants that are baked into the versioned cache files (products.json etc.)
|
|
||||||
// — changing them requires regenerating the cache so the user app picks it up.
|
|
||||||
const CACHE_AFFECTING_KEYS: string[] = [
|
|
||||||
CONST_KEYS.tagsOrder,
|
|
||||||
]
|
|
||||||
|
|
||||||
// Superadmins have no region of their own. Regional constant keys still need
|
|
||||||
// one, so the wrappers accept an explicit regionId and default to the legacy
|
|
||||||
// region (DEFAULT_REGION_ID) — matching what the admin.* scope did for the
|
|
||||||
// superadmin-ui's region-bound staff row.
|
|
||||||
export const superadminConstRouter = router({
|
|
||||||
getConstants: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
regionId: z.number().int().positive().optional(),
|
|
||||||
boundId: z.number().int().positive().optional(),
|
|
||||||
}).optional())
|
|
||||||
.query(async ({ input }): Promise<Constant[]> => {
|
|
||||||
const regionId = input?.regionId ?? DEFAULT_REGION_ID;
|
|
||||||
const boundId = input?.boundId ?? null;
|
|
||||||
if (boundId != null) {
|
|
||||||
const region = await getRegionByIdFromDb(regionId);
|
|
||||||
if (!region?.bounds?.some((b) => b.id === boundId)) {
|
|
||||||
throw new Error('Bound does not belong to the region');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const [globals, regional] = await Promise.all([
|
|
||||||
getAllConstantsFromDb(),
|
|
||||||
getRegionConstantsFromDb(regionId, boundId),
|
|
||||||
]);
|
|
||||||
|
|
||||||
return [...globals, ...regional];
|
|
||||||
}),
|
|
||||||
|
|
||||||
updateConstants: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
constants: z.array(z.object({
|
|
||||||
key: z.string(),
|
|
||||||
value: z.any(),
|
|
||||||
})),
|
|
||||||
regionId: z.number().int().positive().optional(),
|
|
||||||
boundId: z.number().int().positive().optional(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<ConstantUpdateResult> => {
|
|
||||||
const { constants } = input;
|
|
||||||
const regionId = input.regionId ?? DEFAULT_REGION_ID;
|
|
||||||
const boundId = input.boundId ?? null;
|
|
||||||
if (boundId != null) {
|
|
||||||
const region = await getRegionByIdFromDb(regionId);
|
|
||||||
if (!region?.bounds?.some((b) => b.id === boundId)) {
|
|
||||||
throw new Error('Bound does not belong to the region');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const validKeys = Object.values(CONST_KEYS) as string[];
|
|
||||||
const invalidKeys = constants
|
|
||||||
.filter(c => !validKeys.includes(c.key))
|
|
||||||
.map(c => c.key);
|
|
||||||
|
|
||||||
if (invalidKeys.length > 0) {
|
|
||||||
throw new Error(`Invalid constant keys: ${invalidKeys.join(', ')}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(input)
|
|
||||||
const regional = constants.filter((c) => REGION_CONST_KEYS_ARRAY.includes(c.key));
|
|
||||||
const global = constants.filter((c) => !REGION_CONST_KEYS_ARRAY.includes(c.key));
|
|
||||||
|
|
||||||
if (global.length > 0) {
|
|
||||||
await upsertConstantsInDb(global);
|
|
||||||
}
|
|
||||||
if (regional.length > 0) {
|
|
||||||
await upsertRegionConstantsInDb(regionId, boundId, regional);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh all constants in Redis after database update
|
|
||||||
await computeConstants();
|
|
||||||
|
|
||||||
// Mirror the full essentialConsts response into KV for client reads.
|
|
||||||
await refreshGenKv(regionId, boundId);
|
|
||||||
|
|
||||||
// Constants like tagsOrder are baked into the versioned cache files.
|
|
||||||
// Regenerate the cache (bumps cacheVersion) so the user app fetches the
|
|
||||||
// new data (e.g., the new tab order on the home page).
|
|
||||||
if (constants.some((c) => CACHE_AFFECTING_KEYS.includes(c.key))) {
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
success: true,
|
|
||||||
updatedCount: constants.length,
|
|
||||||
keys: constants.map(c => c.key),
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
@ -1,341 +0,0 @@
|
||||||
import { router, superadminProcedure } from '@/src/trpc/trpc-index'
|
|
||||||
import { z } from 'zod'
|
|
||||||
import { ApiError } from '@/src/lib/api-error'
|
|
||||||
import { scaffoldAssetUrl, claimUploadUrl, extractKeyFromPresignedUrl, deleteImageUtil } from '@/src/lib/s3-client'
|
|
||||||
import { scheduleStoreInitialization } from '@/src/stores/store-initializer'
|
|
||||||
import { createAvailabilityCacheFile } from '@/src/lib/cloud_cache'
|
|
||||||
import {
|
|
||||||
getAllProducts as getAllProductsInDb,
|
|
||||||
getProductById as getProductByIdInDb,
|
|
||||||
deleteProduct as deleteProductInDb,
|
|
||||||
toggleProductOutOfStock as toggleProductOutOfStockInDb,
|
|
||||||
getAllSkusSummary as getAllSkusSummaryInDb,
|
|
||||||
checkProductExistsByName,
|
|
||||||
createProduct as createProductInDb,
|
|
||||||
updateProduct as updateProductInDb,
|
|
||||||
} from '@/src/dbService'
|
|
||||||
import type {
|
|
||||||
AdminProductWithRelations,
|
|
||||||
AdminProductListResponse,
|
|
||||||
AdminProductResponse,
|
|
||||||
AdminDeleteProductResult,
|
|
||||||
AdminToggleOutOfStockResult,
|
|
||||||
} from '@packages/shared'
|
|
||||||
|
|
||||||
const regionStatsInput = z.record(
|
|
||||||
z.string(),
|
|
||||||
z.object({
|
|
||||||
price: z.number().positive().optional().nullable(),
|
|
||||||
marketPrice: z.number().optional().nullable(),
|
|
||||||
flashPrice: z.number().optional().nullable(),
|
|
||||||
isFlashAvailable: z.boolean().optional(),
|
|
||||||
isOffer: z.boolean().optional(),
|
|
||||||
isSuspended: z.boolean().optional(),
|
|
||||||
isOutOfStock: z.boolean().optional(),
|
|
||||||
storeId: z.number().int().positive().optional().nullable(),
|
|
||||||
}).optional()
|
|
||||||
).optional()
|
|
||||||
|
|
||||||
const skuInput = z.object({
|
|
||||||
id: z.number().optional(),
|
|
||||||
name: z.string().optional().nullable(),
|
|
||||||
price: z.number().positive('Price must be positive'),
|
|
||||||
marketPrice: z.number().optional().nullable(),
|
|
||||||
images: z.array(z.string()).optional().default([]),
|
|
||||||
isFlashAvailable: z.boolean().optional().default(false),
|
|
||||||
flashPrice: z.number().optional().nullable(),
|
|
||||||
isOutOfStock: z.boolean().optional().default(false),
|
|
||||||
isOffer: z.boolean().optional().default(false),
|
|
||||||
isComboOnly: z.boolean().optional().default(false),
|
|
||||||
isDeleted: z.boolean().optional().default(false),
|
|
||||||
isSuspended: z.boolean().optional().default(false),
|
|
||||||
features: z.array(z.object({
|
|
||||||
featureName: z.string().nullable().optional(),
|
|
||||||
featureValue: z.string().min(1, 'Value is required'),
|
|
||||||
})).min(1, 'At least one feature is required'),
|
|
||||||
comboItems: z.array(z.object({
|
|
||||||
skuId: z.number().int().positive(),
|
|
||||||
})).optional(),
|
|
||||||
regionStats: regionStatsInput,
|
|
||||||
})
|
|
||||||
|
|
||||||
export const superadminProductRouter = router({
|
|
||||||
getAllSkusSummary: superadminProcedure
|
|
||||||
.query(async () => {
|
|
||||||
const skus = await getAllSkusSummaryInDb(undefined)
|
|
||||||
return { skus }
|
|
||||||
}),
|
|
||||||
|
|
||||||
getProducts: superadminProcedure
|
|
||||||
.query(async (): Promise<AdminProductListResponse> => {
|
|
||||||
const products = await getAllProductsInDb(undefined)
|
|
||||||
|
|
||||||
const productsWithImageUrls = products.map((product) => ({
|
|
||||||
...product,
|
|
||||||
skus: product.skus.map((sku) => ({
|
|
||||||
...sku,
|
|
||||||
images: scaffoldAssetUrl((sku.images as string[]) || []),
|
|
||||||
})),
|
|
||||||
}))
|
|
||||||
|
|
||||||
return {
|
|
||||||
products: productsWithImageUrls,
|
|
||||||
count: productsWithImageUrls.length,
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
|
|
||||||
getProductById: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
id: z.number(),
|
|
||||||
}))
|
|
||||||
.query(async ({ input }): Promise<AdminProductResponse> => {
|
|
||||||
const { id } = input;
|
|
||||||
|
|
||||||
const product = await getProductByIdInDb(id, undefined)
|
|
||||||
|
|
||||||
if (!product) {
|
|
||||||
throw new ApiError('Product not found', 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
const productWithImageUrls = {
|
|
||||||
...product,
|
|
||||||
skus: product.skus.map((sku) => ({
|
|
||||||
...sku,
|
|
||||||
images: scaffoldAssetUrl((sku.images as string[]) || []),
|
|
||||||
})),
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
product: productWithImageUrls,
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
|
|
||||||
deleteProduct: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
id: z.number(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<AdminDeleteProductResult> => {
|
|
||||||
const { id } = input;
|
|
||||||
|
|
||||||
const currentProduct = await getProductByIdInDb(id, undefined)
|
|
||||||
if (!currentProduct) {
|
|
||||||
throw new ApiError('Product not found', 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
const deletedProduct = await deleteProductInDb(id)
|
|
||||||
|
|
||||||
if (!deletedProduct) {
|
|
||||||
throw new ApiError('Product not found', 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
|
|
||||||
return {
|
|
||||||
message: 'Product deleted successfully',
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
|
|
||||||
toggleOutOfStock: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
id: z.number(),
|
|
||||||
regionId: z.number().int().positive(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<AdminToggleOutOfStockResult> => {
|
|
||||||
const { id, regionId } = input;
|
|
||||||
|
|
||||||
const currentProduct = await getProductByIdInDb(id, undefined)
|
|
||||||
if (!currentProduct) {
|
|
||||||
throw new ApiError('Product not found', 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
const result = await toggleProductOutOfStockInDb(id, regionId)
|
|
||||||
|
|
||||||
if (!result) {
|
|
||||||
throw new ApiError('Product not found', 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only the availability cache needs regenerating for a stock flip.
|
|
||||||
await createAvailabilityCacheFile().catch((err) => {
|
|
||||||
console.error('Failed to regenerate availability cache after stock update:', err)
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
|
||||||
productId: result.id,
|
|
||||||
isOutOfStock: result.isOutOfStock,
|
|
||||||
message: `Product marked as ${result.isOutOfStock ? 'out of stock' : 'in stock'}`,
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
|
|
||||||
createProduct: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
name: z.string().min(1, 'Name is required'),
|
|
||||||
shortDescription: z.string().optional(),
|
|
||||||
longDescription: z.string().optional(),
|
|
||||||
storeId: z.number().min(1, 'Store is required').optional(),
|
|
||||||
// Creator/primary region. Required in both modes: for all-region
|
|
||||||
// products it decides initial stock/prices (other regions start OOS);
|
|
||||||
// product_info.region_id itself is still nulled by the flag.
|
|
||||||
regionId: z.number().int().positive('Region is required'),
|
|
||||||
availableInAllRegions: z.boolean().optional(),
|
|
||||||
storeIdsByRegion: z.record(z.string(), z.number()).optional(),
|
|
||||||
incrementStep: z.number().optional().default(1),
|
|
||||||
productType: z.enum(['item', 'combo']).optional().default('item'),
|
|
||||||
skus: z.array(skuInput.omit({ id: true })).min(1, 'At least one SKU is required'),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<{ product: AdminProductWithRelations; message: string }> => {
|
|
||||||
const { name, shortDescription, longDescription, storeId, regionId, availableInAllRegions, storeIdsByRegion, incrementStep, productType, skus } = input
|
|
||||||
|
|
||||||
const normalizedStoreIdsByRegion = storeIdsByRegion
|
|
||||||
? Object.fromEntries(Object.entries(storeIdsByRegion).map(([k, v]) => [Number(k), v]))
|
|
||||||
: undefined
|
|
||||||
|
|
||||||
const existingProduct = await checkProductExistsByName(name.trim())
|
|
||||||
if (existingProduct) {
|
|
||||||
throw new ApiError('A product with this name already exists', 400)
|
|
||||||
}
|
|
||||||
|
|
||||||
const allUploadUrls: string[] = skus.flatMap((sku) => sku.images)
|
|
||||||
|
|
||||||
const skuInputs = skus.map((sku) => ({
|
|
||||||
name: sku.name ?? null,
|
|
||||||
price: sku.price,
|
|
||||||
marketPrice: sku.marketPrice ?? null,
|
|
||||||
images: sku.images.map((url) => extractKeyFromPresignedUrl(url)),
|
|
||||||
isFlashAvailable: sku.isFlashAvailable,
|
|
||||||
flashPrice: sku.flashPrice ?? null,
|
|
||||||
isOutOfStock: sku.isOutOfStock,
|
|
||||||
isOffer: sku.isOffer,
|
|
||||||
isComboOnly: sku.isComboOnly,
|
|
||||||
isDeleted: sku.isDeleted ?? false,
|
|
||||||
isSuspended: sku.isSuspended,
|
|
||||||
features: sku.features.map((f) => ({
|
|
||||||
featureName: f.featureName?.trim() || null,
|
|
||||||
featureValue: f.featureValue,
|
|
||||||
})),
|
|
||||||
comboItems: (sku.comboItems || []).map((ci) => ({ skuId: ci.skuId })),
|
|
||||||
regionStats: sku.regionStats ?? undefined,
|
|
||||||
}))
|
|
||||||
|
|
||||||
const newProduct = await createProductInDb({
|
|
||||||
name,
|
|
||||||
shortDescription,
|
|
||||||
longDescription,
|
|
||||||
storeId,
|
|
||||||
regionId,
|
|
||||||
availableInAllRegions,
|
|
||||||
storeIdsByRegion: normalizedStoreIdsByRegion,
|
|
||||||
incrementStep,
|
|
||||||
productType,
|
|
||||||
skus: skuInputs,
|
|
||||||
} as any)
|
|
||||||
|
|
||||||
if (allUploadUrls.length > 0) {
|
|
||||||
await Promise.all(allUploadUrls.map((url) => claimUploadUrl(url)))
|
|
||||||
}
|
|
||||||
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
|
|
||||||
const productWithImageUrls = {
|
|
||||||
...newProduct,
|
|
||||||
skus: newProduct.skus.map((sku) => ({
|
|
||||||
...sku,
|
|
||||||
images: scaffoldAssetUrl((sku.images as string[]) || []),
|
|
||||||
})),
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
product: productWithImageUrls,
|
|
||||||
message: 'Product created successfully',
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
|
|
||||||
updateProduct: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
id: z.number(),
|
|
||||||
name: z.string().min(1, 'Name is required'),
|
|
||||||
shortDescription: z.string().optional(),
|
|
||||||
longDescription: z.string().optional(),
|
|
||||||
storeId: z.number().min(1, 'Store is required').optional(),
|
|
||||||
regionId: z.number().int().positive().optional(),
|
|
||||||
availableInAllRegions: z.boolean().optional(),
|
|
||||||
storeIdsByRegion: z.record(z.string(), z.number()).optional(),
|
|
||||||
incrementStep: z.number().optional().default(1),
|
|
||||||
productType: z.enum(['item', 'combo']).optional(),
|
|
||||||
skus: z.array(skuInput).min(1, 'At least one SKU is required'),
|
|
||||||
deletedImageKeys: z.array(z.string()).optional().default([]),
|
|
||||||
newImageUrls: z.array(z.string()).optional().default([]),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<{ product: AdminProductWithRelations; message: string }> => {
|
|
||||||
const { id, name, shortDescription, longDescription, storeId, regionId, availableInAllRegions, storeIdsByRegion, incrementStep, productType, skus, deletedImageKeys, newImageUrls } = input
|
|
||||||
|
|
||||||
const currentProduct = await getProductByIdInDb(id, undefined)
|
|
||||||
if (!currentProduct) {
|
|
||||||
throw new ApiError('Product not found', 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
const normalizedStoreIdsByRegion = storeIdsByRegion
|
|
||||||
? Object.fromEntries(Object.entries(storeIdsByRegion).map(([k, v]) => [Number(k), v]))
|
|
||||||
: undefined
|
|
||||||
|
|
||||||
if (deletedImageKeys.length > 0) {
|
|
||||||
await deleteImageUtil({ keys: deletedImageKeys })
|
|
||||||
}
|
|
||||||
|
|
||||||
const skuInputs = skus.map((sku) => ({
|
|
||||||
id: sku.id,
|
|
||||||
name: sku.name ?? null,
|
|
||||||
price: sku.price,
|
|
||||||
marketPrice: sku.marketPrice ?? null,
|
|
||||||
images: sku.images.map((url) => extractKeyFromPresignedUrl(url)),
|
|
||||||
isFlashAvailable: sku.isFlashAvailable,
|
|
||||||
flashPrice: sku.flashPrice ?? null,
|
|
||||||
isOutOfStock: sku.isOutOfStock,
|
|
||||||
isOffer: sku.isOffer,
|
|
||||||
isComboOnly: sku.isComboOnly,
|
|
||||||
isDeleted: sku.isDeleted ?? false,
|
|
||||||
isSuspended: sku.isSuspended,
|
|
||||||
features: sku.features.map((f) => ({
|
|
||||||
featureName: f.featureName?.trim() || null,
|
|
||||||
featureValue: f.featureValue,
|
|
||||||
})),
|
|
||||||
comboItems: (sku.comboItems || []).map((ci) => ({ skuId: ci.skuId })),
|
|
||||||
regionStats: sku.regionStats ?? undefined,
|
|
||||||
}))
|
|
||||||
|
|
||||||
const updatedProduct = await updateProductInDb(id, {
|
|
||||||
name,
|
|
||||||
shortDescription,
|
|
||||||
longDescription,
|
|
||||||
storeId,
|
|
||||||
regionId,
|
|
||||||
availableInAllRegions,
|
|
||||||
storeIdsByRegion: normalizedStoreIdsByRegion,
|
|
||||||
incrementStep,
|
|
||||||
productType,
|
|
||||||
skus: skuInputs,
|
|
||||||
} as any)
|
|
||||||
|
|
||||||
if (!updatedProduct) {
|
|
||||||
throw new ApiError('Product not found', 404)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (newImageUrls.length > 0) {
|
|
||||||
await Promise.all(newImageUrls.map((url) => claimUploadUrl(url)))
|
|
||||||
}
|
|
||||||
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
|
|
||||||
const productWithImageUrls = {
|
|
||||||
...updatedProduct,
|
|
||||||
skus: updatedProduct.skus.map((sku) => ({
|
|
||||||
...sku,
|
|
||||||
images: scaffoldAssetUrl((sku.images as string[]) || []),
|
|
||||||
})),
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
product: productWithImageUrls,
|
|
||||||
message: 'Product updated successfully',
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
@ -1,147 +0,0 @@
|
||||||
import { router, superadminProcedure } from '@/src/trpc/trpc-index'
|
|
||||||
import { z } from 'zod'
|
|
||||||
import { ApiError } from '@/src/lib/api-error'
|
|
||||||
import { scheduleStoreInitialization } from '@/src/stores/store-initializer'
|
|
||||||
import {
|
|
||||||
getRegions as getRegionsFromDb,
|
|
||||||
getRegionById as getRegionByIdFromDb,
|
|
||||||
createRegion as createRegionInDb,
|
|
||||||
updateRegion as updateRegionInDb,
|
|
||||||
addRegionBound as addRegionBoundInDb,
|
|
||||||
deleteRegionBound as deleteRegionBoundFromDb,
|
|
||||||
backfillMarketStatsForRegion as backfillMarketStatsForRegionInDb,
|
|
||||||
} from '@/src/dbService'
|
|
||||||
import type { Region } from '@packages/shared'
|
|
||||||
|
|
||||||
const boundInput = z.object({
|
|
||||||
id: z.number().int().positive().optional(),
|
|
||||||
geojson: z.string().min(1, 'GeoJSON is required'),
|
|
||||||
name: z.string().min(1, 'Bound name is required'),
|
|
||||||
description: z.string().min(1, 'Bound description is required'),
|
|
||||||
priority: z.number().int().min(0).optional(),
|
|
||||||
})
|
|
||||||
|
|
||||||
const telegramCredInput = z.object({
|
|
||||||
botToken: z.string().min(1, 'Bot token is required'),
|
|
||||||
chatId: z.string().min(1, 'Chat ID is required'),
|
|
||||||
})
|
|
||||||
|
|
||||||
/** Reject duplicate priorities within one bounds payload. */
|
|
||||||
function assertUniquePriorities(bounds: { priority?: number }[] | undefined): void {
|
|
||||||
if (!bounds) return
|
|
||||||
const seen = new Set<number>()
|
|
||||||
for (const bound of bounds) {
|
|
||||||
const priority = bound.priority ?? 0
|
|
||||||
if (seen.has(priority)) {
|
|
||||||
throw new ApiError(`Duplicate bound priority ${priority}: priorities must be unique within a region`, 400)
|
|
||||||
}
|
|
||||||
seen.add(priority)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const superadminRegionRouter = router({
|
|
||||||
getRegions: superadminProcedure.query(
|
|
||||||
async (): Promise<{ regions: Region[]; count: number }> => {
|
|
||||||
const regions = await getRegionsFromDb()
|
|
||||||
return { regions, count: regions.length }
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
getRegionById: superadminProcedure
|
|
||||||
.input(z.object({ id: z.number() }))
|
|
||||||
.query(async ({ input }): Promise<{ region: Region }> => {
|
|
||||||
const region = await getRegionByIdFromDb(input.id)
|
|
||||||
if (!region) {
|
|
||||||
throw new ApiError('Region not found', 404)
|
|
||||||
}
|
|
||||||
return { region }
|
|
||||||
}),
|
|
||||||
|
|
||||||
createRegion: superadminProcedure
|
|
||||||
.input(
|
|
||||||
z.object({
|
|
||||||
name: z.string().min(1, 'Name is required'),
|
|
||||||
description: z.string().nullish(),
|
|
||||||
bounds: z.array(boundInput).optional(),
|
|
||||||
creds: z.array(telegramCredInput).min(1, 'At least one Telegram cred is required'),
|
|
||||||
})
|
|
||||||
)
|
|
||||||
.mutation(async ({ input }): Promise<{ region: Region; message: string }> => {
|
|
||||||
assertUniquePriorities(input.bounds)
|
|
||||||
const region = await createRegionInDb({
|
|
||||||
name: input.name,
|
|
||||||
description: input.description ?? null,
|
|
||||||
bounds: input.bounds,
|
|
||||||
creds: input.creds,
|
|
||||||
})
|
|
||||||
|
|
||||||
// New region: give every existing SKU an (out-of-stock) market-stats row.
|
|
||||||
await backfillMarketStatsForRegionInDb(region.id)
|
|
||||||
|
|
||||||
// Regenerate cache files so the new region gets its own set.
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
|
|
||||||
return { region, message: 'Region created successfully' }
|
|
||||||
}),
|
|
||||||
|
|
||||||
updateRegion: superadminProcedure
|
|
||||||
.input(
|
|
||||||
z.object({
|
|
||||||
id: z.number(),
|
|
||||||
name: z.string().min(1, 'Name is required').optional(),
|
|
||||||
description: z.string().nullish(),
|
|
||||||
bounds: z.array(boundInput).optional(),
|
|
||||||
})
|
|
||||||
)
|
|
||||||
.mutation(async ({ input }): Promise<{ region: Region; message: string }> => {
|
|
||||||
assertUniquePriorities(input.bounds)
|
|
||||||
const region = await updateRegionInDb(input.id, {
|
|
||||||
name: input.name,
|
|
||||||
description: input.description,
|
|
||||||
bounds: input.bounds,
|
|
||||||
})
|
|
||||||
if (!region) {
|
|
||||||
throw new ApiError('Region not found', 404)
|
|
||||||
}
|
|
||||||
return { region, message: 'Region updated successfully' }
|
|
||||||
}),
|
|
||||||
|
|
||||||
// Regions are non-deletable: many tables reference region_id.
|
|
||||||
deleteRegion: superadminProcedure
|
|
||||||
.input(z.object({ id: z.number() }))
|
|
||||||
.mutation(async (): Promise<{ message: string }> => {
|
|
||||||
throw new ApiError('Regions cannot be deleted', 400)
|
|
||||||
}),
|
|
||||||
|
|
||||||
addRegionBound: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
regionId: z.number(),
|
|
||||||
geojson: z.string().min(1),
|
|
||||||
name: z.string().min(1, 'Bound name is required'),
|
|
||||||
description: z.string().min(1, 'Bound description is required'),
|
|
||||||
priority: z.number().int().min(0).optional(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }) => {
|
|
||||||
const region = await getRegionByIdFromDb(input.regionId)
|
|
||||||
if (!region) {
|
|
||||||
throw new ApiError('Region not found', 404)
|
|
||||||
}
|
|
||||||
if (region.bounds?.some((b) => (b.priority ?? 0) === (input.priority ?? 0))) {
|
|
||||||
throw new ApiError(`Duplicate bound priority ${input.priority ?? 0}: priorities must be unique within a region`, 400)
|
|
||||||
}
|
|
||||||
const bound = await addRegionBoundInDb(input.regionId, {
|
|
||||||
geojson: input.geojson,
|
|
||||||
name: input.name,
|
|
||||||
description: input.description,
|
|
||||||
priority: input.priority,
|
|
||||||
})
|
|
||||||
return { bound, message: 'Bound added successfully' }
|
|
||||||
}),
|
|
||||||
|
|
||||||
deleteRegionBound: superadminProcedure
|
|
||||||
.input(z.object({ id: z.number() }))
|
|
||||||
.mutation(async ({ input }): Promise<{ message: string }> => {
|
|
||||||
await deleteRegionBoundFromDb(input.id)
|
|
||||||
return { message: 'Bound deleted successfully' }
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
@ -1,173 +0,0 @@
|
||||||
import { router, superadminProcedure } from '@/src/trpc/trpc-index'
|
|
||||||
import { z } from 'zod';
|
|
||||||
import bcrypt from 'bcryptjs';
|
|
||||||
import { ApiError } from '@/src/lib/api-error'
|
|
||||||
import {
|
|
||||||
checkStaffUserExists,
|
|
||||||
checkStaffRoleExists,
|
|
||||||
createStaffUser,
|
|
||||||
getAllRoles,
|
|
||||||
getAllStaff,
|
|
||||||
getRegions as getRegionsFromDb,
|
|
||||||
getStaffUserById as getStaffUserByIdFromDb,
|
|
||||||
updateStaffUserInfo as updateStaffUserInfoInDb,
|
|
||||||
deleteStaffUser as deleteStaffUserFromDb,
|
|
||||||
} from '@/src/dbService'
|
|
||||||
import { notifyAllAdmins } from '@/src/lib/admin-notif'
|
|
||||||
|
|
||||||
export const superadminStaffRouter = router({
|
|
||||||
getStaff: superadminProcedure
|
|
||||||
.query(async () => {
|
|
||||||
const [staff, regions] = await Promise.all([getAllStaff(), getRegionsFromDb()]);
|
|
||||||
const regionById = new Map(regions.map((r: any) => [r.id, r.name]));
|
|
||||||
|
|
||||||
return {
|
|
||||||
staff: staff.map((user: any) => ({
|
|
||||||
id: user.id,
|
|
||||||
name: user.name,
|
|
||||||
regionId: user.regionId,
|
|
||||||
regionName: regionById.get(user.regionId) ?? null,
|
|
||||||
roleId: user.role?.id ?? null,
|
|
||||||
roleName: user.role?.roleName ?? null,
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
createStaffUser: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
name: z.string().min(1, 'Name is required'),
|
|
||||||
password: z.string().min(6, 'Password must be at least 6 characters'),
|
|
||||||
roleId: z.number().int().positive('Role is required'),
|
|
||||||
regionId: z.number().int().positive('Region is required'),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }) => {
|
|
||||||
const { name, password, roleId, regionId } = input;
|
|
||||||
|
|
||||||
// Check if staff user already exists
|
|
||||||
const existingUser = await checkStaffUserExists(name);
|
|
||||||
|
|
||||||
if (existingUser) {
|
|
||||||
throw new ApiError('Staff user with this name already exists', 409);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if role exists
|
|
||||||
const roleExists = await checkStaffRoleExists(roleId);
|
|
||||||
|
|
||||||
if (!roleExists) {
|
|
||||||
throw new ApiError('Invalid role selected', 400);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hash password
|
|
||||||
const hashedPassword = await bcrypt.hash(password, 12);
|
|
||||||
|
|
||||||
// Create staff user
|
|
||||||
const newUser = await createStaffUser(name, hashedPassword, roleId, regionId);
|
|
||||||
|
|
||||||
return { success: true, user: { id: newUser.id, name: newUser.name, regionId: newUser.regionId } };
|
|
||||||
}),
|
|
||||||
|
|
||||||
getRoles: superadminProcedure
|
|
||||||
.query(async () => {
|
|
||||||
const roles = await getAllRoles();
|
|
||||||
|
|
||||||
return {
|
|
||||||
roles: roles.map((role: any) => ({
|
|
||||||
id: role.id,
|
|
||||||
name: role.roleName,
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
|
|
||||||
updateStaffUser: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
id: z.number().int().positive(),
|
|
||||||
name: z.string().min(1, 'Name is required').optional(),
|
|
||||||
roleId: z.number().int().positive().optional(),
|
|
||||||
regionId: z.number().int().positive().optional(),
|
|
||||||
password: z.string().min(6, 'Password must be at least 6 characters').optional(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }) => {
|
|
||||||
const existing = await getStaffUserByIdFromDb(input.id);
|
|
||||||
if (!existing) {
|
|
||||||
throw new ApiError('Staff user not found', 404);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input.name !== undefined && input.name.trim() !== existing.name) {
|
|
||||||
const taken = await checkStaffUserExists(input.name.trim());
|
|
||||||
if (taken) {
|
|
||||||
throw new ApiError('Staff user with this name already exists', 409);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (input.roleId !== undefined) {
|
|
||||||
const roleExists = await checkStaffRoleExists(input.roleId);
|
|
||||||
if (!roleExists) {
|
|
||||||
throw new ApiError('Invalid role selected', 400);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const updated = await updateStaffUserInfoInDb(input.id, {
|
|
||||||
name: input.name,
|
|
||||||
roleId: input.roleId,
|
|
||||||
regionId: input.regionId,
|
|
||||||
password: input.password !== undefined ? await bcrypt.hash(input.password, 12) : undefined,
|
|
||||||
});
|
|
||||||
if (!updated) {
|
|
||||||
throw new ApiError('Staff user not found', 404);
|
|
||||||
}
|
|
||||||
|
|
||||||
return { success: true, user: { id: updated.id, name: updated.name, regionId: updated.regionId } };
|
|
||||||
}),
|
|
||||||
|
|
||||||
deleteStaffUser: superadminProcedure
|
|
||||||
.input(z.object({ id: z.number().int().positive() }))
|
|
||||||
.mutation(async ({ input }) => {
|
|
||||||
const existing = await getStaffUserByIdFromDb(input.id);
|
|
||||||
if (!existing) {
|
|
||||||
throw new ApiError('Staff user not found', 404);
|
|
||||||
}
|
|
||||||
|
|
||||||
const result = await deleteStaffUserFromDb(input.id);
|
|
||||||
if (!result.deleted) {
|
|
||||||
const { blocker } = result;
|
|
||||||
if (blocker.type === 'stores') {
|
|
||||||
throw new ApiError(
|
|
||||||
`Cannot delete ${existing.name}: they own ${blocker.count} store${blocker.count === 1 ? '' : 's'}. Reassign or remove those stores first.`,
|
|
||||||
409
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (blocker.type === 'coupons') {
|
|
||||||
throw new ApiError(
|
|
||||||
`Cannot delete ${existing.name}: they created ${blocker.count} coupon${blocker.count === 1 ? '' : 's'}. Those coupons keep them as creator.`,
|
|
||||||
409
|
|
||||||
);
|
|
||||||
}
|
|
||||||
throw new ApiError(
|
|
||||||
`Cannot delete ${existing.name}: they filed ${blocker.count} user incident report${blocker.count === 1 ? '' : 's'}.`,
|
|
||||||
409
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return { success: true, message: 'Staff user deleted successfully' };
|
|
||||||
}),
|
|
||||||
|
|
||||||
sendAdminNotification: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
title: z.string().min(1, 'Title is required'),
|
|
||||||
text: z.string().min(1, 'Message is required'),
|
|
||||||
imageUrl: z.string().optional(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }) => {
|
|
||||||
const { title, text, imageUrl } = input;
|
|
||||||
|
|
||||||
const queuedCount = await notifyAllAdmins({
|
|
||||||
title,
|
|
||||||
body: text,
|
|
||||||
imageUrl: imageUrl || null,
|
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
|
||||||
success: true,
|
|
||||||
message: `Notification queued for ${queuedCount} admins`,
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
@ -1,172 +0,0 @@
|
||||||
import { router, superadminProcedure } from '@/src/trpc/trpc-index'
|
|
||||||
import { z } from 'zod';
|
|
||||||
import { ApiError } from '@/src/lib/api-error'
|
|
||||||
import { extractKeyFromPresignedUrl, deleteImageUtil, scaffoldAssetUrl } from '@/src/lib/s3-client'
|
|
||||||
import { scheduleStoreInitialization } from '@/src/stores/store-initializer'
|
|
||||||
import {
|
|
||||||
getAllStores as getAllStoresFromDb,
|
|
||||||
getStoreById as getStoreByIdFromDb,
|
|
||||||
createStore as createStoreInDb,
|
|
||||||
updateStore as updateStoreInDb,
|
|
||||||
deleteStore as deleteStoreFromDb,
|
|
||||||
} from '@/src/dbService'
|
|
||||||
import type { Store } from '@packages/shared'
|
|
||||||
|
|
||||||
export const superadminStoreRouter = router({
|
|
||||||
getStores: superadminProcedure
|
|
||||||
.query(async (): Promise<{ stores: any[]; count: number }> => {
|
|
||||||
const stores = await getAllStoresFromDb(undefined);
|
|
||||||
|
|
||||||
await Promise.all(stores.map(async store => {
|
|
||||||
if(store.imageUrl)
|
|
||||||
store.imageUrl = scaffoldAssetUrl(store.imageUrl)
|
|
||||||
})).catch((e) => {
|
|
||||||
throw new ApiError("Unable to find store image urls")
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
|
||||||
stores,
|
|
||||||
count: stores.length,
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
|
|
||||||
getStoreById: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
id: z.number(),
|
|
||||||
}))
|
|
||||||
.query(async ({ input }): Promise<{ store: any }> => {
|
|
||||||
const { id } = input;
|
|
||||||
|
|
||||||
const store = await getStoreByIdFromDb(id);
|
|
||||||
|
|
||||||
if (!store) {
|
|
||||||
throw new ApiError("Store not found", 404);
|
|
||||||
}
|
|
||||||
store.imageUrl = scaffoldAssetUrl(store.imageUrl);
|
|
||||||
return {
|
|
||||||
store,
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
|
|
||||||
createStore: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
name: z.string().min(1, "Name is required"),
|
|
||||||
description: z.string().optional(),
|
|
||||||
imageUrl: z.string().optional(),
|
|
||||||
owner: z.number().min(1, "Owner is required"),
|
|
||||||
products: z.array(z.number()).optional(),
|
|
||||||
// Home region. Omitted (with availableInAllRegions) = all-region store.
|
|
||||||
regionId: z.number().int().positive().nullable().optional(),
|
|
||||||
availableInAllRegions: z.boolean().optional(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<{ store: Store; message: string }> => {
|
|
||||||
const { name, description, imageUrl, owner, products, availableInAllRegions } = input;
|
|
||||||
const regionId = availableInAllRegions ? null : (input.regionId ?? null);
|
|
||||||
|
|
||||||
if (!availableInAllRegions && regionId == null) {
|
|
||||||
throw new ApiError("Region is required for region-exclusive stores", 400);
|
|
||||||
}
|
|
||||||
|
|
||||||
const imageKey = imageUrl ? extractKeyFromPresignedUrl(imageUrl) : undefined;
|
|
||||||
|
|
||||||
const newStore = await createStoreInDb(
|
|
||||||
{
|
|
||||||
name,
|
|
||||||
description,
|
|
||||||
imageUrl: imageKey,
|
|
||||||
owner,
|
|
||||||
regionId,
|
|
||||||
availableInAllRegions: availableInAllRegions ?? false,
|
|
||||||
},
|
|
||||||
products
|
|
||||||
);
|
|
||||||
|
|
||||||
// Reinitialize stores to reflect changes
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
|
|
||||||
return {
|
|
||||||
store: newStore,
|
|
||||||
message: "Store created successfully",
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
|
|
||||||
updateStore: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
id: z.number(),
|
|
||||||
name: z.string().min(1, "Name is required"),
|
|
||||||
description: z.string().optional(),
|
|
||||||
imageUrl: z.string().optional(),
|
|
||||||
owner: z.number().min(1, "Owner is required"),
|
|
||||||
products: z.array(z.number()).optional(),
|
|
||||||
regionId: z.number().int().positive().nullable().optional(),
|
|
||||||
availableInAllRegions: z.boolean().optional(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<{ store: Store; message: string }> => {
|
|
||||||
const { id, name, description, imageUrl, owner, products, availableInAllRegions } = input;
|
|
||||||
|
|
||||||
const existingStore = await getStoreByIdFromDb(id);
|
|
||||||
|
|
||||||
if (!existingStore) {
|
|
||||||
throw new ApiError("Store not found", 404);
|
|
||||||
}
|
|
||||||
|
|
||||||
const regionId = availableInAllRegions ? null : (input.regionId ?? existingStore.regionId ?? null);
|
|
||||||
if (!availableInAllRegions && regionId == null) {
|
|
||||||
throw new ApiError("Region is required for region-exclusive stores", 400);
|
|
||||||
}
|
|
||||||
|
|
||||||
const oldImageKey = existingStore.imageUrl;
|
|
||||||
const newImageKey = imageUrl ? extractKeyFromPresignedUrl(imageUrl) : oldImageKey;
|
|
||||||
|
|
||||||
// Delete old image only if:
|
|
||||||
// 1. New image provided and keys are different, OR
|
|
||||||
// 2. No new image but old exists (clearing the image)
|
|
||||||
if (oldImageKey && (
|
|
||||||
(newImageKey && newImageKey !== oldImageKey) ||
|
|
||||||
(!newImageKey)
|
|
||||||
)) {
|
|
||||||
try {
|
|
||||||
await deleteImageUtil({keys: [oldImageKey]});
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Failed to delete old image:', error);
|
|
||||||
// Continue with update even if deletion fails
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const updatedStore = await updateStoreInDb(
|
|
||||||
id,
|
|
||||||
{
|
|
||||||
name,
|
|
||||||
description,
|
|
||||||
imageUrl: newImageKey,
|
|
||||||
owner,
|
|
||||||
regionId,
|
|
||||||
...(availableInAllRegions !== undefined ? { availableInAllRegions } : {}),
|
|
||||||
},
|
|
||||||
products
|
|
||||||
);
|
|
||||||
|
|
||||||
// Reinitialize stores to reflect changes
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
|
|
||||||
return {
|
|
||||||
store: updatedStore,
|
|
||||||
message: "Store updated successfully",
|
|
||||||
};
|
|
||||||
}),
|
|
||||||
|
|
||||||
deleteStore: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
storeId: z.number(),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<{ message: string }> => {
|
|
||||||
const { storeId } = input;
|
|
||||||
|
|
||||||
const result = await deleteStoreFromDb(storeId);
|
|
||||||
|
|
||||||
// Reinitialize stores to reflect changes (outside transaction)
|
|
||||||
await scheduleStoreInitialization()
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import { router } from '@/src/trpc/trpc-index'
|
|
||||||
import { superadminAuthRouter } from '@/src/trpc/apis/superadmin-apis/apis/auth'
|
|
||||||
import { superadminRegionRouter } from '@/src/trpc/apis/superadmin-apis/apis/region'
|
|
||||||
import { superadminStaffRouter } from '@/src/trpc/apis/superadmin-apis/apis/staff'
|
|
||||||
import { superadminConstRouter } from '@/src/trpc/apis/superadmin-apis/apis/const'
|
|
||||||
import { superadminStoreRouter } from '@/src/trpc/apis/superadmin-apis/apis/store'
|
|
||||||
import { superadminProductRouter } from '@/src/trpc/apis/superadmin-apis/apis/product'
|
|
||||||
import { superadminUploadRouter } from '@/src/trpc/apis/superadmin-apis/apis/upload'
|
|
||||||
|
|
||||||
export const superadminRouter = router({
|
|
||||||
auth: superadminAuthRouter,
|
|
||||||
region: superadminRegionRouter,
|
|
||||||
staffUser: superadminStaffRouter,
|
|
||||||
const: superadminConstRouter,
|
|
||||||
store: superadminStoreRouter,
|
|
||||||
product: superadminProductRouter,
|
|
||||||
upload: superadminUploadRouter,
|
|
||||||
});
|
|
||||||
|
|
||||||
export type SuperadminRouter = typeof superadminRouter;
|
|
||||||
|
|
@ -1,56 +0,0 @@
|
||||||
import { router, superadminProcedure } from '@/src/trpc/trpc-index'
|
|
||||||
import { z } from 'zod';
|
|
||||||
import { ApiError } from '@/src/lib/api-error'
|
|
||||||
import { generateUploadUrl } from '@/src/lib/s3-client'
|
|
||||||
|
|
||||||
export const superadminUploadRouter = router({
|
|
||||||
generateUploadUrls: superadminProcedure
|
|
||||||
.input(z.object({
|
|
||||||
contextString: z.enum(['review', 'review_response', 'product_info', 'notification', 'store', 'complaint', 'profile', 'tags']),
|
|
||||||
mimeTypes: z.array(z.string()),
|
|
||||||
}))
|
|
||||||
.mutation(async ({ input }): Promise<{ uploadUrls: string[] }> => {
|
|
||||||
const { contextString, mimeTypes } = input;
|
|
||||||
|
|
||||||
const uploadUrls: string[] = [];
|
|
||||||
const keys: string[] = [];
|
|
||||||
|
|
||||||
for (const mimeType of mimeTypes) {
|
|
||||||
// Generate key based on context and mime type
|
|
||||||
let folder: string;
|
|
||||||
if (contextString === 'review') {
|
|
||||||
folder = 'review-images';
|
|
||||||
} else if (contextString === 'product_info') {
|
|
||||||
folder = 'product-images';
|
|
||||||
} else if (contextString === 'store') {
|
|
||||||
folder = 'store-images';
|
|
||||||
} else if (contextString === 'review_response') {
|
|
||||||
folder = 'review-response-images';
|
|
||||||
} else if (contextString === 'complaint') {
|
|
||||||
folder = 'complaint-images';
|
|
||||||
} else if (contextString === 'profile') {
|
|
||||||
folder = 'profile-images';
|
|
||||||
} else if (contextString === 'tags') {
|
|
||||||
folder = 'tags';
|
|
||||||
} else {
|
|
||||||
folder = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
const extension = mimeType === 'image/jpeg' ? '.jpg' :
|
|
||||||
mimeType === 'image/png' ? '.png' :
|
|
||||||
mimeType === 'image/gif' ? '.gif' : '.jpg';
|
|
||||||
const key = `${folder}/${Date.now()}${extension}`;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const uploadUrl = await generateUploadUrl(key, mimeType);
|
|
||||||
uploadUrls.push(uploadUrl);
|
|
||||||
keys.push(key);
|
|
||||||
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error generating upload URL:', error);
|
|
||||||
throw new ApiError('Failed to generate upload URL', 500);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { uploadUrls };
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
|
|
@ -2,7 +2,6 @@ import { router } from '@/src/trpc/trpc-index'
|
||||||
import { adminRouter } from '@/src/trpc/apis/admin-apis/apis/admin-trpc-index'
|
import { adminRouter } from '@/src/trpc/apis/admin-apis/apis/admin-trpc-index'
|
||||||
import { userRouter } from '@/src/trpc/apis/user-apis/apis/user-trpc-index'
|
import { userRouter } from '@/src/trpc/apis/user-apis/apis/user-trpc-index'
|
||||||
import { commonApiRouter } from '@/src/trpc/apis/common-apis/common-trpc-index'
|
import { commonApiRouter } from '@/src/trpc/apis/common-apis/common-trpc-index'
|
||||||
import { superadminRouter } from '@/src/trpc/apis/superadmin-apis/apis/superadmin-trpc-index'
|
|
||||||
import { scaffoldProducts, scaffoldAvailability } from './apis/common-apis/common';
|
import { scaffoldProducts, scaffoldAvailability } from './apis/common-apis/common';
|
||||||
import { scaffoldStores, scaffoldStoreWithProducts } from './apis/user-apis/apis/stores';
|
import { scaffoldStores, scaffoldStoreWithProducts } from './apis/user-apis/apis/stores';
|
||||||
import { scaffoldSlotsWithProducts } from './apis/user-apis/apis/slots';
|
import { scaffoldSlotsWithProducts } from './apis/user-apis/apis/slots';
|
||||||
|
|
@ -14,7 +13,6 @@ export const appRouter = router({
|
||||||
admin: adminRouter,
|
admin: adminRouter,
|
||||||
user: userRouter,
|
user: userRouter,
|
||||||
common: commonApiRouter,
|
common: commonApiRouter,
|
||||||
superadmin: superadminRouter,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,6 @@ export interface Context {
|
||||||
staffRoleId: number | null;
|
staffRoleId: number | null;
|
||||||
staffRoleName: string | null;
|
staffRoleName: string | null;
|
||||||
} | null;
|
} | null;
|
||||||
superadmin?: {
|
|
||||||
id: number;
|
|
||||||
name: string;
|
|
||||||
} | null;
|
|
||||||
callerInterface?: string | null;
|
callerInterface?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,7 +45,7 @@ const errorLoggerMiddleware = middleware(async ({ path, type, next, ctx }) => {
|
||||||
path,
|
path,
|
||||||
type,
|
type,
|
||||||
duration: `${duration}ms`,
|
duration: `${duration}ms`,
|
||||||
userId: ctx?.user?.userId || ctx?.staffUser?.id || ctx?.superadmin?.id || 'anonymous',
|
userId: ctx?.user?.userId || ctx?.staffUser?.id || 'anonymous',
|
||||||
error: {
|
error: {
|
||||||
name: err.name,
|
name: err.name,
|
||||||
message: err.message,
|
message: err.message,
|
||||||
|
|
@ -95,23 +91,6 @@ export const adminProcedure = t.procedure.use(errorLoggerMiddleware).use(
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// Superadmin-only. Requires an authenticated superadmin (superadmins table,
|
|
||||||
// superadmin.* scope) — distinct from superAdminProcedure below, which gates
|
|
||||||
// the super_admin *role* on staff_users rows for the admin.* scope.
|
|
||||||
export const superadminProcedure = t.procedure.use(errorLoggerMiddleware).use(
|
|
||||||
middleware(async ({ ctx, next }) => {
|
|
||||||
if (!ctx.superadmin) {
|
|
||||||
throw new TRPCError({ code: 'UNAUTHORIZED', message: 'Superadmin authentication required' });
|
|
||||||
}
|
|
||||||
return next({
|
|
||||||
ctx: {
|
|
||||||
...ctx,
|
|
||||||
superadmin: ctx.superadmin,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
// Superadmin-only. Requires an authenticated staff user whose role is super_admin.
|
// Superadmin-only. Requires an authenticated staff user whose role is super_admin.
|
||||||
export const superAdminProcedure = t.procedure.use(errorLoggerMiddleware).use(
|
export const superAdminProcedure = t.procedure.use(errorLoggerMiddleware).use(
|
||||||
middleware(async ({ ctx, next }) => {
|
middleware(async ({ ctx, next }) => {
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ routes = [
|
||||||
|
|
||||||
[[d1_databases]]
|
[[d1_databases]]
|
||||||
binding = "DB"
|
binding = "DB"
|
||||||
database_name = "freshyo-backend-dev"
|
#database_name = "freshyo-backend-dev"
|
||||||
database_id = "b2528bdb-0ec0-478e-8765-b118918153c0"
|
#database_id = "b2528bdb-0ec0-478e-8765-b118918153c0"
|
||||||
#database_name = "freshyo-dev"
|
database_name = "freshyo-dev"
|
||||||
#database_id = "3cad440f-dc14-4baa-ab05-04eb08e206de"
|
database_id = "3cad440f-dc14-4baa-ab05-04eb08e206de"
|
||||||
migrations_dir="../../packages/db_helper_sqlite/drizzle"
|
migrations_dir="../../packages/db_helper_sqlite/drizzle"
|
||||||
migrations_pattern="migration.sql"
|
migrations_pattern="migration.sql"
|
||||||
[durable_objects]
|
[durable_objects]
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
import { Link } from '@tanstack/react-router'
|
import { Link } from '@tanstack/react-router'
|
||||||
import { LayoutDashboard, Send, Settings2, MapPin, UserPlus, Menu, X, LogOut, Store, Package } from 'lucide-react'
|
import { LayoutDashboard, Send, Settings2, MapPin, UserPlus, Menu, X, LogOut } from 'lucide-react'
|
||||||
import { useAuth } from '../lib/auth-context'
|
import { useAuth } from '../lib/auth-context'
|
||||||
|
|
||||||
const NAV = [
|
const NAV = [
|
||||||
{ to: '/dashboard', label: 'Dashboard', icon: LayoutDashboard },
|
{ to: '/dashboard', label: 'Dashboard', icon: LayoutDashboard },
|
||||||
{ to: '/admins', label: 'Admins', icon: UserPlus },
|
{ to: '/admins', label: 'Create Admin', icon: UserPlus },
|
||||||
{ to: '/regions', label: 'Regions', icon: MapPin },
|
{ to: '/regions', label: 'Regions', icon: MapPin },
|
||||||
{ to: '/stores', label: 'Stores', icon: Store },
|
|
||||||
{ to: '/products', label: 'Products', icon: Package },
|
|
||||||
{ to: '/send-notifications', label: 'Send Admin Notifications', icon: Send },
|
{ to: '/send-notifications', label: 'Send Admin Notifications', icon: Send },
|
||||||
{ to: '/constants', label: 'App Constants', icon: Settings2 },
|
{ to: '/constants', label: 'App Constants', icon: Settings2 },
|
||||||
] as const
|
] as const
|
||||||
|
|
|
||||||
|
|
@ -1,154 +0,0 @@
|
||||||
import { useMemo, useState } from 'react'
|
|
||||||
import { BottomDialog, Checkbox, SearchBar, p as P } from 'web-components'
|
|
||||||
import { Check, ChevronDown } from 'lucide-react'
|
|
||||||
|
|
||||||
export interface MultiSelectOption {
|
|
||||||
label: string
|
|
||||||
value: string | number
|
|
||||||
disabled?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
interface MultiSelectProps {
|
|
||||||
label?: string
|
|
||||||
topLabel?: string
|
|
||||||
options: MultiSelectOption[]
|
|
||||||
value: (string | number)[]
|
|
||||||
onValueChange: (v: (string | number)[]) => void
|
|
||||||
placeholder?: string
|
|
||||||
disabled?: boolean
|
|
||||||
onSearch?: (q: string) => void
|
|
||||||
error?: boolean
|
|
||||||
className?: string
|
|
||||||
testID?: string
|
|
||||||
// Tolerated for screen compatibility (RN BottomDropdown leftovers) — ignored on web
|
|
||||||
multiple?: boolean
|
|
||||||
triggerComponent?: any
|
|
||||||
}
|
|
||||||
|
|
||||||
export function MultiSelect({
|
|
||||||
label,
|
|
||||||
topLabel,
|
|
||||||
options,
|
|
||||||
value,
|
|
||||||
onValueChange,
|
|
||||||
placeholder,
|
|
||||||
disabled = false,
|
|
||||||
onSearch,
|
|
||||||
error = false,
|
|
||||||
className,
|
|
||||||
testID,
|
|
||||||
}: MultiSelectProps) {
|
|
||||||
const [open, setOpen] = useState(false)
|
|
||||||
const [query, setQuery] = useState('')
|
|
||||||
|
|
||||||
const selectedSet = useMemo(() => new Set(value.map((v) => String(v))), [value])
|
|
||||||
|
|
||||||
const displayText = useMemo(() => {
|
|
||||||
if (value.length === 0) return placeholder ?? label ?? 'Select...'
|
|
||||||
if (value.length === 1) {
|
|
||||||
const found = options.find((o) => String(o.value) === String(value[0]))
|
|
||||||
return found ? found.label : (placeholder ?? label ?? 'Select...')
|
|
||||||
}
|
|
||||||
return `${value.length} selected`
|
|
||||||
}, [value, options, placeholder, label])
|
|
||||||
|
|
||||||
const filtered = useMemo(() => {
|
|
||||||
const q = query.trim().toLowerCase()
|
|
||||||
if (!q) return options
|
|
||||||
return options.filter((o) => o.label.toLowerCase().includes(q))
|
|
||||||
}, [options, query])
|
|
||||||
|
|
||||||
const toggle = (optionValue: string | number) => {
|
|
||||||
const key = String(optionValue)
|
|
||||||
if (selectedSet.has(key)) {
|
|
||||||
onValueChange(value.filter((v) => String(v) !== key))
|
|
||||||
} else {
|
|
||||||
onValueChange([...value, optionValue])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const heading = topLabel ?? label
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className={className} data-testid={testID}>
|
|
||||||
{heading ? (
|
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">{heading}</P>
|
|
||||||
) : null}
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
disabled={disabled}
|
|
||||||
onClick={() => setOpen(true)}
|
|
||||||
className={`flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm text-left disabled:cursor-not-allowed disabled:opacity-50 ${error ? 'border-red-500' : 'border-gray-300'}`}
|
|
||||||
>
|
|
||||||
<span className={`truncate ${value.length === 0 ? 'text-gray-400' : 'text-gray-800'}`}>
|
|
||||||
{displayText}
|
|
||||||
</span>
|
|
||||||
<ChevronDown className="h-4 w-4 shrink-0 text-gray-400" />
|
|
||||||
</button>
|
|
||||||
<BottomDialog open={open} onClose={() => setOpen(false)}>
|
|
||||||
<div className="p-4">
|
|
||||||
<P className="text-lg font-semibold mb-4">{heading ?? placeholder ?? 'Select'}</P>
|
|
||||||
<SearchBar
|
|
||||||
placeholder="Search..."
|
|
||||||
value={query}
|
|
||||||
onChange={(q) => {
|
|
||||||
setQuery(q)
|
|
||||||
onSearch?.(q)
|
|
||||||
}}
|
|
||||||
onSearch={onSearch}
|
|
||||||
className="mb-3"
|
|
||||||
testID={testID ? `${testID}-search` : undefined}
|
|
||||||
/>
|
|
||||||
<div className="overflow-y-auto" style={{ maxHeight: 320 }}>
|
|
||||||
{filtered.map((option) => {
|
|
||||||
const checked = selectedSet.has(String(option.value))
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
key={String(option.value)}
|
|
||||||
data-testid={testID ? `${testID}-option-${option.value}` : undefined}
|
|
||||||
onClick={() => {
|
|
||||||
if (!option.disabled) toggle(option.value)
|
|
||||||
}}
|
|
||||||
className={`flex flex-row items-center p-3 border-b border-gray-100 ${option.disabled ? 'opacity-50' : 'cursor-pointer hover:bg-gray-50'}`}
|
|
||||||
>
|
|
||||||
<span onClick={(e) => e.stopPropagation()}>
|
|
||||||
<Checkbox
|
|
||||||
checked={checked}
|
|
||||||
onPress={() => {
|
|
||||||
if (!option.disabled) toggle(option.value)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
<span className="ml-3 text-sm text-gray-800 flex-1">{option.label}</span>
|
|
||||||
{checked ? <Check className="h-4 w-4 text-blue-600" /> : null}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
{filtered.length === 0 ? (
|
|
||||||
<P className="text-center text-gray-500 text-sm p-4">No options found</P>
|
|
||||||
) : null}
|
|
||||||
</div>
|
|
||||||
<div className="flex flex-row gap-2 mt-4">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() => onValueChange([])}
|
|
||||||
className="flex-1 p-3 rounded-lg bg-gray-100 text-gray-700 text-center font-semibold text-sm"
|
|
||||||
>
|
|
||||||
Clear
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() => setOpen(false)}
|
|
||||||
data-testid={testID ? `${testID}-done` : undefined}
|
|
||||||
className="flex-1 p-3 rounded-lg bg-blue-500 text-white text-center font-semibold text-sm"
|
|
||||||
>
|
|
||||||
Done
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</BottomDialog>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default MultiSelect
|
|
||||||
|
|
@ -1,181 +0,0 @@
|
||||||
import React, { useState, useMemo } from 'react'
|
|
||||||
import { trpc } from '@/lib/trpc-client'
|
|
||||||
import type { SkuSummary as SharedSkuSummary } from '@packages/shared'
|
|
||||||
import MultiSelect from './MultiSelect'
|
|
||||||
import SearchableSelect from './SearchableSelect'
|
|
||||||
|
|
||||||
// Selector works with skus that may not have images resolved yet
|
|
||||||
type SkuSummary = Omit<SharedSkuSummary, 'images'>
|
|
||||||
|
|
||||||
interface Group {
|
|
||||||
id: number
|
|
||||||
groupName: string
|
|
||||||
products: { id: number }[]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ProductsSelectorProps {
|
|
||||||
value: number | number[]
|
|
||||||
onChange: (value: number | number[]) => void
|
|
||||||
multiple?: boolean
|
|
||||||
label?: string
|
|
||||||
placeholder?: string
|
|
||||||
disabled?: boolean
|
|
||||||
error?: boolean
|
|
||||||
isDisabled?: (product: SkuSummary) => boolean
|
|
||||||
labelFormat?: (product: SkuSummary) => string
|
|
||||||
groups?: Group[]
|
|
||||||
selectedGroupIds?: number[]
|
|
||||||
onGroupChange?: (groupIds: number[]) => void
|
|
||||||
showGroups?: boolean
|
|
||||||
testID?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function ProductsSelector({
|
|
||||||
value,
|
|
||||||
onChange,
|
|
||||||
multiple = true,
|
|
||||||
label = 'Select Products',
|
|
||||||
placeholder = 'Select products',
|
|
||||||
disabled = false,
|
|
||||||
error = false,
|
|
||||||
isDisabled,
|
|
||||||
labelFormat,
|
|
||||||
groups = [],
|
|
||||||
showGroups = true,
|
|
||||||
selectedGroupIds = [],
|
|
||||||
onGroupChange,
|
|
||||||
testID,
|
|
||||||
}: ProductsSelectorProps) {
|
|
||||||
const { data: skusData } = trpc.superadmin.product.getAllSkusSummary.useQuery()
|
|
||||||
const allSkus: SkuSummary[] = skusData?.skus || []
|
|
||||||
const [searchQuery, setSearchQuery] = useState('')
|
|
||||||
|
|
||||||
// Handle group selection changes
|
|
||||||
const handleGroupChange = (newGroupIds: number[]) => {
|
|
||||||
if (!onGroupChange) return
|
|
||||||
|
|
||||||
const previousGroupIds = selectedGroupIds
|
|
||||||
|
|
||||||
const addedGroups = newGroupIds.filter(id => !previousGroupIds.includes(id))
|
|
||||||
const removedGroups = previousGroupIds.filter(id => !newGroupIds.includes(id))
|
|
||||||
|
|
||||||
let currentSkus = Array.isArray(value) ? [...value] : value ? [value] : []
|
|
||||||
|
|
||||||
const addedSkus = addedGroups.flatMap(groupId => {
|
|
||||||
const group = groups.find(g => g.id === groupId)
|
|
||||||
if (!group) return []
|
|
||||||
const productIds = new Set(group.products.map(p => p.id))
|
|
||||||
return allSkus.filter(s => productIds.has(s.productId)).map(s => s.id)
|
|
||||||
})
|
|
||||||
|
|
||||||
const removedSkus = removedGroups.flatMap(groupId => {
|
|
||||||
const group = groups.find(g => g.id === groupId)
|
|
||||||
if (!group) return []
|
|
||||||
const productIds = new Set(group.products.map(p => p.id))
|
|
||||||
return allSkus.filter(s => productIds.has(s.productId)).map(s => s.id)
|
|
||||||
})
|
|
||||||
|
|
||||||
currentSkus = [...new Set([...currentSkus, ...addedSkus])]
|
|
||||||
currentSkus = currentSkus.filter(id => !removedSkus.includes(id))
|
|
||||||
|
|
||||||
onGroupChange(newGroupIds)
|
|
||||||
if (multiple) {
|
|
||||||
onChange(currentSkus.length > 0 ? currentSkus : [])
|
|
||||||
} else {
|
|
||||||
onChange(currentSkus.length > 0 ? currentSkus[0] : 0)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Filter products based on search query
|
|
||||||
const filteredSkus = useMemo(() => {
|
|
||||||
if (!searchQuery.trim()) return allSkus
|
|
||||||
|
|
||||||
const query = searchQuery.toLowerCase()
|
|
||||||
return allSkus.filter(sku =>
|
|
||||||
sku.label.toLowerCase().includes(query) ||
|
|
||||||
sku.productName.toLowerCase().includes(query)
|
|
||||||
)
|
|
||||||
}, [allSkus, searchQuery])
|
|
||||||
|
|
||||||
// Build dropdown options
|
|
||||||
const productOptions = useMemo(() => {
|
|
||||||
return filteredSkus.map((sku) => {
|
|
||||||
const isFromGroup = selectedGroupIds.length > 0 && groups.some(group => {
|
|
||||||
if (!selectedGroupIds.includes(group.id)) return false
|
|
||||||
return group.products.some(p => p.id === sku.productId)
|
|
||||||
})
|
|
||||||
|
|
||||||
const isProductDisabled = isDisabled ? isDisabled(sku) : false
|
|
||||||
|
|
||||||
const displayLabel = labelFormat
|
|
||||||
? labelFormat(sku)
|
|
||||||
: sku.label
|
|
||||||
|
|
||||||
return {
|
|
||||||
label: `${displayLabel}${isFromGroup ? ' (from group)' : ''}`,
|
|
||||||
value: sku.id.toString(),
|
|
||||||
disabled: isProductDisabled,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}, [filteredSkus, selectedGroupIds, groups, isDisabled, labelFormat])
|
|
||||||
|
|
||||||
// Build group options if groups are provided
|
|
||||||
const groupOptions = useMemo(() => {
|
|
||||||
return groups.map(group => ({
|
|
||||||
label: group.groupName,
|
|
||||||
value: group.id.toString(),
|
|
||||||
}))
|
|
||||||
}, [groups])
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="w-full">
|
|
||||||
{showGroups && groups.length > 0 && (
|
|
||||||
<div className="mb-4">
|
|
||||||
<MultiSelect
|
|
||||||
testID="product-groups-dropdown"
|
|
||||||
label="Select Product Groups"
|
|
||||||
options={groupOptions}
|
|
||||||
value={selectedGroupIds.map(id => id.toString())}
|
|
||||||
onValueChange={(selectedValue) => {
|
|
||||||
const selectedValues = Array.isArray(selectedValue) ? selectedValue : typeof selectedValue === 'string' ? [selectedValue] : []
|
|
||||||
const newGroupIds = selectedValues.map(v => parseInt(v as string))
|
|
||||||
handleGroupChange(newGroupIds)
|
|
||||||
}}
|
|
||||||
placeholder="Select product groups (optional)"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{multiple ? (
|
|
||||||
<MultiSelect
|
|
||||||
label={label}
|
|
||||||
testID={testID}
|
|
||||||
options={productOptions}
|
|
||||||
value={Array.isArray(value) ? value.map(id => id.toString()) : []}
|
|
||||||
onValueChange={(selectedValue) => {
|
|
||||||
const selectedValues = Array.isArray(selectedValue) ? selectedValue : typeof selectedValue === 'string' ? [selectedValue] : []
|
|
||||||
onChange(selectedValues.map(v => Number(v)))
|
|
||||||
}}
|
|
||||||
placeholder={placeholder}
|
|
||||||
disabled={disabled}
|
|
||||||
error={error}
|
|
||||||
onSearch={setSearchQuery}
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<SearchableSelect
|
|
||||||
label={label}
|
|
||||||
testID={testID}
|
|
||||||
options={productOptions}
|
|
||||||
value={value ? value.toString() : ''}
|
|
||||||
onValueChange={(selectedValue) => {
|
|
||||||
onChange(Number(selectedValue))
|
|
||||||
}}
|
|
||||||
placeholder={placeholder}
|
|
||||||
disabled={disabled}
|
|
||||||
error={error}
|
|
||||||
onSearch={setSearchQuery}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,116 +0,0 @@
|
||||||
import { useMemo, useState } from 'react'
|
|
||||||
import { BottomDialog, SearchBar, p as P } from 'web-components'
|
|
||||||
import { Check, ChevronDown } from 'lucide-react'
|
|
||||||
|
|
||||||
export interface SearchableSelectOption {
|
|
||||||
label: string
|
|
||||||
value: string | number
|
|
||||||
disabled?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
interface SearchableSelectProps {
|
|
||||||
label: string
|
|
||||||
options: SearchableSelectOption[]
|
|
||||||
value: string | number
|
|
||||||
onValueChange: (v: string | number) => void
|
|
||||||
onSearch?: (q: string) => void
|
|
||||||
placeholder?: string
|
|
||||||
disabled?: boolean
|
|
||||||
error?: boolean
|
|
||||||
className?: string
|
|
||||||
testID?: string
|
|
||||||
// Tolerated for screen compatibility (RN BottomDropdown leftover) — ignored on web
|
|
||||||
triggerComponent?: any
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SearchableSelect({
|
|
||||||
label,
|
|
||||||
options,
|
|
||||||
value,
|
|
||||||
onValueChange,
|
|
||||||
onSearch,
|
|
||||||
placeholder,
|
|
||||||
disabled = false,
|
|
||||||
error = false,
|
|
||||||
className,
|
|
||||||
testID,
|
|
||||||
}: SearchableSelectProps) {
|
|
||||||
const [open, setOpen] = useState(false)
|
|
||||||
const [query, setQuery] = useState('')
|
|
||||||
|
|
||||||
const selectedLabel = useMemo(() => {
|
|
||||||
const found = options.find((o) => String(o.value) === String(value))
|
|
||||||
return found ? found.label : null
|
|
||||||
}, [options, value])
|
|
||||||
|
|
||||||
const displayText = selectedLabel ?? placeholder ?? label
|
|
||||||
|
|
||||||
const filtered = useMemo(() => {
|
|
||||||
const q = query.trim().toLowerCase()
|
|
||||||
if (!q) return options
|
|
||||||
return options.filter((o) => o.label.toLowerCase().includes(q))
|
|
||||||
}, [options, query])
|
|
||||||
|
|
||||||
const handleSelect = (optionValue: string | number) => {
|
|
||||||
onValueChange(optionValue)
|
|
||||||
setOpen(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className={className} data-testid={testID}>
|
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">{label}</P>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
disabled={disabled}
|
|
||||||
onClick={() => setOpen(true)}
|
|
||||||
className={`flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm text-left disabled:cursor-not-allowed disabled:opacity-50 ${error ? 'border-red-500' : 'border-gray-300'}`}
|
|
||||||
>
|
|
||||||
<span className={`truncate ${selectedLabel ? 'text-gray-800' : 'text-gray-400'}`}>
|
|
||||||
{displayText}
|
|
||||||
</span>
|
|
||||||
<ChevronDown className="h-4 w-4 shrink-0 text-gray-400" />
|
|
||||||
</button>
|
|
||||||
<BottomDialog open={open} onClose={() => setOpen(false)}>
|
|
||||||
<div className="p-4">
|
|
||||||
<P className="text-lg font-semibold mb-4">{label}</P>
|
|
||||||
<SearchBar
|
|
||||||
placeholder="Search..."
|
|
||||||
value={query}
|
|
||||||
onChange={(q) => {
|
|
||||||
setQuery(q)
|
|
||||||
onSearch?.(q)
|
|
||||||
}}
|
|
||||||
onSearch={onSearch}
|
|
||||||
className="mb-3"
|
|
||||||
testID={testID ? `${testID}-search` : undefined}
|
|
||||||
/>
|
|
||||||
<div className="overflow-y-auto" style={{ maxHeight: 320 }}>
|
|
||||||
{filtered.map((option) => {
|
|
||||||
const selected = String(option.value) === String(value)
|
|
||||||
return (
|
|
||||||
<button
|
|
||||||
key={String(option.value)}
|
|
||||||
type="button"
|
|
||||||
disabled={option.disabled}
|
|
||||||
onClick={() => handleSelect(option.value)}
|
|
||||||
data-testid={testID ? `${testID}-option-${option.value}` : undefined}
|
|
||||||
className={`flex flex-row items-center w-full p-3 border-b border-gray-100 text-left ${option.disabled ? 'opacity-50' : 'cursor-pointer hover:bg-gray-50'} ${selected ? 'bg-blue-50' : ''}`}
|
|
||||||
>
|
|
||||||
<span className={`text-sm flex-1 ${selected ? 'font-semibold text-blue-700' : 'text-gray-800'}`}>
|
|
||||||
{option.label}
|
|
||||||
</span>
|
|
||||||
{selected ? <Check className="h-4 w-4 text-blue-600" /> : null}
|
|
||||||
</button>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
{filtered.length === 0 ? (
|
|
||||||
<P className="text-center text-gray-500 text-sm p-4">No options found</P>
|
|
||||||
) : null}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</BottomDialog>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default SearchableSelect
|
|
||||||
|
|
@ -1,235 +0,0 @@
|
||||||
import { useState, useEffect, useMemo, useRef, type ChangeEvent } from 'react'
|
|
||||||
import { Formik } from 'formik'
|
|
||||||
import * as Yup from 'yup'
|
|
||||||
import { pInput as PInput, Dropdown, p as P, ImageUploader, Checkbox } from 'web-components'
|
|
||||||
import ProductsSelector from './ProductsSelector'
|
|
||||||
import { trpc } from '@/lib/trpc-client'
|
|
||||||
import { useUploadToObjectStorage } from '../hooks/useUploadToObjectStorage'
|
|
||||||
import type { CreateStoreInput } from '@packages/shared'
|
|
||||||
|
|
||||||
// Store form values — required description + product selection on top of CreateStoreInput
|
|
||||||
export type StoreFormData = Omit<CreateStoreInput, 'description'> & {
|
|
||||||
description: string
|
|
||||||
products: number[]
|
|
||||||
regionId?: number | null
|
|
||||||
}
|
|
||||||
|
|
||||||
interface StoreFormProps {
|
|
||||||
mode: 'create' | 'edit'
|
|
||||||
initialValues: StoreFormData
|
|
||||||
onSubmit: (values: StoreFormData) => void
|
|
||||||
isLoading: boolean
|
|
||||||
storeId?: number
|
|
||||||
}
|
|
||||||
|
|
||||||
const validationSchema = Yup.object().shape({
|
|
||||||
name: Yup.string().required('Name is required'),
|
|
||||||
description: Yup.string(),
|
|
||||||
imageUrl: Yup.string(),
|
|
||||||
owner: Yup.number().required('Owner is required'),
|
|
||||||
products: Yup.array().of(Yup.number()),
|
|
||||||
regionId: Yup.number().when('availableInAllRegions', {
|
|
||||||
is: false,
|
|
||||||
then: (schema) => schema.required('Region is required').min(1, 'Region is required'),
|
|
||||||
otherwise: (schema) => schema.notRequired().nullable(),
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
function StoreForm({ mode, initialValues, onSubmit, isLoading, storeId }: StoreFormProps) {
|
|
||||||
const { data: staffData } = trpc.superadmin.staffUser.getStaff.useQuery()
|
|
||||||
const { data: productsData } = trpc.superadmin.product.getProducts.useQuery()
|
|
||||||
const { data: regionsData } = trpc.superadmin.region.getRegions.useQuery(undefined, { staleTime: Infinity })
|
|
||||||
const regions = (regionsData as any)?.regions ?? []
|
|
||||||
|
|
||||||
const [formInitialValues, setFormInitialValues] = useState<StoreFormData>(initialValues)
|
|
||||||
const [selectedImages, setSelectedImages] = useState<{ blob: Blob; mimeType: string }[]>([])
|
|
||||||
const [displayImages, setDisplayImages] = useState<{ uri?: string }[]>([])
|
|
||||||
const fileInputRef = useRef<HTMLInputElement>(null)
|
|
||||||
|
|
||||||
// For edit mode, pre-select SKUs belonging to this store's products
|
|
||||||
const initialSelectedProducts = useMemo(() => {
|
|
||||||
if (mode !== 'edit' || !productsData?.products) return []
|
|
||||||
return productsData.products
|
|
||||||
.filter(p => p.store?.id === storeId)
|
|
||||||
.flatMap(p => (p.skus || []).map(sku => sku.id))
|
|
||||||
}, [mode, productsData?.products, storeId])
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setFormInitialValues({
|
|
||||||
...initialValues,
|
|
||||||
products: initialSelectedProducts,
|
|
||||||
})
|
|
||||||
}, [initialValues, initialSelectedProducts])
|
|
||||||
|
|
||||||
const existingImageUrls = useMemo(
|
|
||||||
() => (formInitialValues.imageUrl ? [formInitialValues.imageUrl] : []),
|
|
||||||
[formInitialValues.imageUrl]
|
|
||||||
)
|
|
||||||
|
|
||||||
const staffOptions = staffData?.staff.map((staff: { id: number; name: string }) => ({
|
|
||||||
label: staff.name,
|
|
||||||
value: staff.id,
|
|
||||||
})) || []
|
|
||||||
|
|
||||||
const { uploadSingle, isUploading } = useUploadToObjectStorage()
|
|
||||||
|
|
||||||
const handleImagePick = () => {
|
|
||||||
fileInputRef.current?.click()
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleFileChange = (e: ChangeEvent<HTMLInputElement>) => {
|
|
||||||
const files = Array.from(e.target.files || [])
|
|
||||||
if (files.length === 0) {
|
|
||||||
setSelectedImages([])
|
|
||||||
setDisplayImages([])
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const file = files[0]
|
|
||||||
setSelectedImages([{ blob: file, mimeType: file.type || 'image/jpeg' }])
|
|
||||||
setDisplayImages([{ uri: URL.createObjectURL(file) }])
|
|
||||||
e.target.value = ''
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleRemoveImage = (uri: string) => {
|
|
||||||
const index = displayImages.findIndex(img => img.uri === uri)
|
|
||||||
if (index !== -1) {
|
|
||||||
const newDisplay = displayImages.filter((_, i) => i !== index)
|
|
||||||
const newFiles = selectedImages.filter((_, i) => i !== index)
|
|
||||||
setDisplayImages(newDisplay)
|
|
||||||
setSelectedImages(newFiles)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Formik
|
|
||||||
initialValues={formInitialValues}
|
|
||||||
validationSchema={validationSchema}
|
|
||||||
onSubmit={onSubmit}
|
|
||||||
enableReinitialize
|
|
||||||
>
|
|
||||||
{({ handleChange, handleSubmit, values, setFieldValue, errors, touched }) => {
|
|
||||||
const submit = async () => {
|
|
||||||
try {
|
|
||||||
let imageUrl: string | undefined
|
|
||||||
|
|
||||||
if (selectedImages.length > 0) {
|
|
||||||
const { blob, mimeType } = selectedImages[0]
|
|
||||||
const { presignedUrl } = await uploadSingle(blob, mimeType, 'store')
|
|
||||||
imageUrl = presignedUrl
|
|
||||||
}
|
|
||||||
|
|
||||||
onSubmit({ ...values, imageUrl })
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Upload error:', error)
|
|
||||||
window.alert('Error: Failed to upload image')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<input
|
|
||||||
ref={fileInputRef}
|
|
||||||
type="file"
|
|
||||||
accept="image/*"
|
|
||||||
onChange={handleFileChange}
|
|
||||||
className="hidden"
|
|
||||||
/>
|
|
||||||
<PInput
|
|
||||||
topLabel="Store Name"
|
|
||||||
placeholder="Enter store name"
|
|
||||||
value={values.name}
|
|
||||||
onChange={handleChange('name')}
|
|
||||||
error={!!(touched.name && errors.name)}
|
|
||||||
style={{ marginBottom: 16 }}
|
|
||||||
data-testid="store-name-input"
|
|
||||||
/>
|
|
||||||
<PInput
|
|
||||||
topLabel="Description"
|
|
||||||
placeholder="Enter store description"
|
|
||||||
multiline
|
|
||||||
numberOfLines={3}
|
|
||||||
value={values.description}
|
|
||||||
onChange={handleChange('description')}
|
|
||||||
error={!!(touched.description && errors.description)}
|
|
||||||
style={{ marginBottom: 16 }}
|
|
||||||
data-testid="store-description-input"
|
|
||||||
/>
|
|
||||||
<div className="mb-4">
|
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">Owner</P>
|
|
||||||
<Dropdown
|
|
||||||
label="Select owner"
|
|
||||||
value={values.owner}
|
|
||||||
options={staffOptions}
|
|
||||||
onValueChange={(value) => setFieldValue('owner', Number(value))}
|
|
||||||
className="mb-4"
|
|
||||||
testID="store-owner-dropdown"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div className="flex flex-row items-center mb-4">
|
|
||||||
<Checkbox
|
|
||||||
checked={!!values.availableInAllRegions}
|
|
||||||
onPress={() => {
|
|
||||||
const next = !values.availableInAllRegions
|
|
||||||
setFieldValue('availableInAllRegions', next)
|
|
||||||
if (next) setFieldValue('regionId', null)
|
|
||||||
}}
|
|
||||||
testID="store-all-regions-checkbox"
|
|
||||||
/>
|
|
||||||
<P className="text-gray-700 font-medium ml-3">Available in all regions</P>
|
|
||||||
</div>
|
|
||||||
{!values.availableInAllRegions && (
|
|
||||||
<div className="mb-4">
|
|
||||||
<P className="mb-1 text-sm text-gray-500 font-medium">Home Region</P>
|
|
||||||
<Dropdown
|
|
||||||
label="Select home region"
|
|
||||||
value={(values as StoreFormData).regionId ?? ''}
|
|
||||||
options={regions.map((r: any) => ({ label: r.name, value: r.id }))}
|
|
||||||
onValueChange={(value) => setFieldValue('regionId', Number(value))}
|
|
||||||
className="mb-4"
|
|
||||||
testID="store-region-dropdown"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<ProductsSelector
|
|
||||||
value={values.products || []}
|
|
||||||
onChange={(value) => setFieldValue('products', value)}
|
|
||||||
multiple={true}
|
|
||||||
label="Products"
|
|
||||||
placeholder="Select products"
|
|
||||||
isDisabled={(sku) => sku.storeId !== null && sku.storeId !== storeId}
|
|
||||||
labelFormat={(sku) => `${sku.productName} - ₹${sku.price}`}
|
|
||||||
testID="store-products-selector"
|
|
||||||
/>
|
|
||||||
<div className="mb-6">
|
|
||||||
<P className="text-sm font-bold text-gray-700 mb-3 uppercase tracking-wider block">Store Image</P>
|
|
||||||
<ImageUploader
|
|
||||||
images={displayImages}
|
|
||||||
existingImageUrls={existingImageUrls}
|
|
||||||
onAddImage={handleImagePick}
|
|
||||||
onRemoveImage={handleRemoveImage}
|
|
||||||
onRemoveExistingImage={() =>
|
|
||||||
setFormInitialValues((prev) => ({
|
|
||||||
...prev,
|
|
||||||
imageUrl: undefined,
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
allowMultiple={false}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={submit}
|
|
||||||
disabled={isLoading || isUploading}
|
|
||||||
data-testid="store-submit-button"
|
|
||||||
className={`px-4 py-2 rounded-lg shadow-lg items-center mt-2 text-white text-lg font-bold w-full disabled:opacity-70 ${isLoading || isUploading ? 'bg-gray-400' : 'bg-blue-500'}`}
|
|
||||||
>
|
|
||||||
{isUploading ? 'Uploading...' : isLoading ? (mode === 'create' ? 'Creating...' : 'Updating...') : (mode === 'create' ? 'Create Store' : 'Update Store')}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}}
|
|
||||||
</Formik>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default StoreForm
|
|
||||||
|
|
@ -1,105 +0,0 @@
|
||||||
import { useState } from 'react'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
import type { ContextString, UploadInput, UploadBatchInput, UploadResult } from '@packages/shared'
|
|
||||||
|
|
||||||
// Verbatim port of admin-ui useUploadToObjectStore (trpc import path only).
|
|
||||||
export function useUploadToObjectStorage() {
|
|
||||||
const [isUploading, setIsUploading] = useState(false)
|
|
||||||
const [error, setError] = useState<Error | null>(null)
|
|
||||||
const [progress, setProgress] = useState<{ completed: number; total: number } | null>(null)
|
|
||||||
|
|
||||||
const generateUploadUrls = trpc.superadmin.upload.generateUploadUrls.useMutation()
|
|
||||||
|
|
||||||
const upload = async (input: UploadBatchInput): Promise<UploadResult> => {
|
|
||||||
setIsUploading(true)
|
|
||||||
setError(null)
|
|
||||||
setProgress({ completed: 0, total: input.images.length })
|
|
||||||
|
|
||||||
try {
|
|
||||||
const { images, contextString } = input
|
|
||||||
|
|
||||||
if (images.length === 0) {
|
|
||||||
return { keys: [], presignedUrls: [] }
|
|
||||||
}
|
|
||||||
|
|
||||||
const mimeTypes = images.map((img) => img.mimeType)
|
|
||||||
const { uploadUrls } = await generateUploadUrls.mutateAsync({
|
|
||||||
contextString,
|
|
||||||
mimeTypes,
|
|
||||||
})
|
|
||||||
|
|
||||||
if (uploadUrls.length !== images.length) {
|
|
||||||
throw new Error(`Expected ${images.length} URLs, got ${uploadUrls.length}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
const uploadPromises = images.map(async (image, index) => {
|
|
||||||
const presignedUrl = uploadUrls[index]
|
|
||||||
const { blob, mimeType } = image
|
|
||||||
|
|
||||||
const response = await fetch(presignedUrl, {
|
|
||||||
method: 'PUT',
|
|
||||||
body: blob,
|
|
||||||
headers: { 'Content-Type': mimeType },
|
|
||||||
})
|
|
||||||
|
|
||||||
if (!response.ok) {
|
|
||||||
throw new Error(`Upload ${index + 1} failed with status ${response.status}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
setProgress((prev) => (prev ? { ...prev, completed: prev.completed + 1 } : null))
|
|
||||||
|
|
||||||
return {
|
|
||||||
key: extractKeyFromPresignedUrl(presignedUrl),
|
|
||||||
presignedUrl,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
const results = await Promise.all(uploadPromises)
|
|
||||||
|
|
||||||
return {
|
|
||||||
keys: results.map((r) => r.key),
|
|
||||||
presignedUrls: results.map((r) => r.presignedUrl),
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
const uploadError = err instanceof Error ? err : new Error('Upload failed')
|
|
||||||
setError(uploadError)
|
|
||||||
throw uploadError
|
|
||||||
} finally {
|
|
||||||
setIsUploading(false)
|
|
||||||
setProgress(null)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const uploadSingle = async (
|
|
||||||
blob: Blob,
|
|
||||||
mimeType: string,
|
|
||||||
contextString: ContextString,
|
|
||||||
): Promise<{ key: string; presignedUrl: string }> => {
|
|
||||||
const result = await upload({
|
|
||||||
images: [{ blob, mimeType }],
|
|
||||||
contextString,
|
|
||||||
})
|
|
||||||
return {
|
|
||||||
key: result.keys[0],
|
|
||||||
presignedUrl: result.presignedUrls[0],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
upload,
|
|
||||||
uploadSingle,
|
|
||||||
isUploading,
|
|
||||||
error,
|
|
||||||
progress,
|
|
||||||
isPending: generateUploadUrls.isPending,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function extractKeyFromPresignedUrl(url: string): string {
|
|
||||||
const u = new URL(url)
|
|
||||||
let rawKey = u.pathname.replace(/^\/+/, '')
|
|
||||||
rawKey = rawKey.split('/').slice(1).join('/')
|
|
||||||
return decodeURIComponent(rawKey)
|
|
||||||
}
|
|
||||||
|
|
||||||
export type { UploadInput }
|
|
||||||
|
|
@ -2,13 +2,13 @@ import React, { createContext, useContext, useState, useEffect, useCallback } fr
|
||||||
import { trpc } from './trpc-client'
|
import { trpc } from './trpc-client'
|
||||||
import { useNavigate } from '@tanstack/react-router'
|
import { useNavigate } from '@tanstack/react-router'
|
||||||
|
|
||||||
interface Superadmin {
|
interface Staff {
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AuthState {
|
interface AuthState {
|
||||||
staff: Superadmin | null
|
staff: Staff | null
|
||||||
isAuthenticated: boolean
|
isAuthenticated: boolean
|
||||||
isLoading: boolean
|
isLoading: boolean
|
||||||
token: string | null
|
token: string | null
|
||||||
|
|
@ -32,7 +32,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
||||||
})
|
})
|
||||||
const [loginError, setLoginError] = useState<string | null>(null)
|
const [loginError, setLoginError] = useState<string | null>(null)
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const loginMutation = trpc.superadmin.auth.login.useMutation()
|
const loginMutation = trpc.admin.staffUser.login.useMutation()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const storedToken = localStorage.getItem('auth_token')
|
const storedToken = localStorage.getItem('auth_token')
|
||||||
|
|
@ -55,7 +55,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
||||||
const data = await loginMutation.mutateAsync({ name, password })
|
const data = await loginMutation.mutateAsync({ name, password })
|
||||||
localStorage.setItem('auth_token', data.token)
|
localStorage.setItem('auth_token', data.token)
|
||||||
setState({
|
setState({
|
||||||
staff: data.superadmin,
|
staff: data.staff,
|
||||||
token: data.token,
|
token: data.token,
|
||||||
isAuthenticated: true,
|
isAuthenticated: true,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
|
|
|
||||||
|
|
@ -14,18 +14,10 @@ import { Route as AdminsRouteImport } from './routes/admins'
|
||||||
import { Route as ConstantsRouteImport } from './routes/constants'
|
import { Route as ConstantsRouteImport } from './routes/constants'
|
||||||
import { Route as DashboardRouteImport } from './routes/dashboard'
|
import { Route as DashboardRouteImport } from './routes/dashboard'
|
||||||
import { Route as LoginRouteImport } from './routes/login'
|
import { Route as LoginRouteImport } from './routes/login'
|
||||||
import { Route as ProductsRouteImport } from './routes/products'
|
|
||||||
import { Route as RegionsRouteImport } from './routes/regions'
|
import { Route as RegionsRouteImport } from './routes/regions'
|
||||||
import { Route as SendNotificationsRouteImport } from './routes/send-notifications'
|
import { Route as SendNotificationsRouteImport } from './routes/send-notifications'
|
||||||
import { Route as StoresRouteImport } from './routes/stores'
|
|
||||||
import { Route as AdminsNewRouteImport } from './routes/admins.new'
|
|
||||||
import { Route as ProductsNewRouteImport } from './routes/products.new'
|
|
||||||
import { Route as RegionsNewRouteImport } from './routes/regions.new'
|
import { Route as RegionsNewRouteImport } from './routes/regions.new'
|
||||||
import { Route as StoresNewRouteImport } from './routes/stores.new'
|
|
||||||
import { Route as AdminsIdEditRouteImport } from './routes/admins.$id.edit'
|
|
||||||
import { Route as ProductsIdEditRouteImport } from './routes/products.$id.edit'
|
|
||||||
import { Route as RegionsIdEditRouteImport } from './routes/regions.$id.edit'
|
import { Route as RegionsIdEditRouteImport } from './routes/regions.$id.edit'
|
||||||
import { Route as StoresIdEditRouteImport } from './routes/stores.$id.edit'
|
|
||||||
|
|
||||||
const IndexRoute = IndexRouteImport.update({
|
const IndexRoute = IndexRouteImport.update({
|
||||||
id: '/',
|
id: '/',
|
||||||
|
|
@ -52,11 +44,6 @@ const LoginRoute = LoginRouteImport.update({
|
||||||
path: '/login',
|
path: '/login',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
const ProductsRoute = ProductsRouteImport.update({
|
|
||||||
id: '/products',
|
|
||||||
path: '/products',
|
|
||||||
getParentRoute: () => rootRouteImport,
|
|
||||||
} as any)
|
|
||||||
const RegionsRoute = RegionsRouteImport.update({
|
const RegionsRoute = RegionsRouteImport.update({
|
||||||
id: '/regions',
|
id: '/regions',
|
||||||
path: '/regions',
|
path: '/regions',
|
||||||
|
|
@ -67,109 +54,50 @@ const SendNotificationsRoute = SendNotificationsRouteImport.update({
|
||||||
path: '/send-notifications',
|
path: '/send-notifications',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
const StoresRoute = StoresRouteImport.update({
|
|
||||||
id: '/stores',
|
|
||||||
path: '/stores',
|
|
||||||
getParentRoute: () => rootRouteImport,
|
|
||||||
} as any)
|
|
||||||
const AdminsNewRoute = AdminsNewRouteImport.update({
|
|
||||||
id: '/new',
|
|
||||||
path: '/new',
|
|
||||||
getParentRoute: () => AdminsRoute,
|
|
||||||
} as any)
|
|
||||||
const ProductsNewRoute = ProductsNewRouteImport.update({
|
|
||||||
id: '/new',
|
|
||||||
path: '/new',
|
|
||||||
getParentRoute: () => ProductsRoute,
|
|
||||||
} as any)
|
|
||||||
const RegionsNewRoute = RegionsNewRouteImport.update({
|
const RegionsNewRoute = RegionsNewRouteImport.update({
|
||||||
id: '/new',
|
id: '/new',
|
||||||
path: '/new',
|
path: '/new',
|
||||||
getParentRoute: () => RegionsRoute,
|
getParentRoute: () => RegionsRoute,
|
||||||
} as any)
|
} as any)
|
||||||
const StoresNewRoute = StoresNewRouteImport.update({
|
|
||||||
id: '/new',
|
|
||||||
path: '/new',
|
|
||||||
getParentRoute: () => StoresRoute,
|
|
||||||
} as any)
|
|
||||||
const AdminsIdEditRoute = AdminsIdEditRouteImport.update({
|
|
||||||
id: '/$id/edit',
|
|
||||||
path: '/$id/edit',
|
|
||||||
getParentRoute: () => AdminsRoute,
|
|
||||||
} as any)
|
|
||||||
const ProductsIdEditRoute = ProductsIdEditRouteImport.update({
|
|
||||||
id: '/$id/edit',
|
|
||||||
path: '/$id/edit',
|
|
||||||
getParentRoute: () => ProductsRoute,
|
|
||||||
} as any)
|
|
||||||
const RegionsIdEditRoute = RegionsIdEditRouteImport.update({
|
const RegionsIdEditRoute = RegionsIdEditRouteImport.update({
|
||||||
id: '/$id/edit',
|
id: '/$id/edit',
|
||||||
path: '/$id/edit',
|
path: '/$id/edit',
|
||||||
getParentRoute: () => RegionsRoute,
|
getParentRoute: () => RegionsRoute,
|
||||||
} as any)
|
} as any)
|
||||||
const StoresIdEditRoute = StoresIdEditRouteImport.update({
|
|
||||||
id: '/$id/edit',
|
|
||||||
path: '/$id/edit',
|
|
||||||
getParentRoute: () => StoresRoute,
|
|
||||||
} as any)
|
|
||||||
|
|
||||||
export interface FileRoutesByFullPath {
|
export interface FileRoutesByFullPath {
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
'/admins': typeof AdminsRouteWithChildren
|
'/admins': typeof AdminsRoute
|
||||||
'/constants': typeof ConstantsRoute
|
'/constants': typeof ConstantsRoute
|
||||||
'/dashboard': typeof DashboardRoute
|
'/dashboard': typeof DashboardRoute
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/products': typeof ProductsRouteWithChildren
|
|
||||||
'/regions': typeof RegionsRouteWithChildren
|
'/regions': typeof RegionsRouteWithChildren
|
||||||
'/send-notifications': typeof SendNotificationsRoute
|
'/send-notifications': typeof SendNotificationsRoute
|
||||||
'/stores': typeof StoresRouteWithChildren
|
|
||||||
'/admins/new': typeof AdminsNewRoute
|
|
||||||
'/products/new': typeof ProductsNewRoute
|
|
||||||
'/regions/new': typeof RegionsNewRoute
|
'/regions/new': typeof RegionsNewRoute
|
||||||
'/stores/new': typeof StoresNewRoute
|
|
||||||
'/admins/$id/edit': typeof AdminsIdEditRoute
|
|
||||||
'/products/$id/edit': typeof ProductsIdEditRoute
|
|
||||||
'/regions/$id/edit': typeof RegionsIdEditRoute
|
'/regions/$id/edit': typeof RegionsIdEditRoute
|
||||||
'/stores/$id/edit': typeof StoresIdEditRoute
|
|
||||||
}
|
}
|
||||||
export interface FileRoutesByTo {
|
export interface FileRoutesByTo {
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
'/admins': typeof AdminsRouteWithChildren
|
'/admins': typeof AdminsRoute
|
||||||
'/constants': typeof ConstantsRoute
|
'/constants': typeof ConstantsRoute
|
||||||
'/dashboard': typeof DashboardRoute
|
'/dashboard': typeof DashboardRoute
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/products': typeof ProductsRouteWithChildren
|
|
||||||
'/regions': typeof RegionsRouteWithChildren
|
'/regions': typeof RegionsRouteWithChildren
|
||||||
'/send-notifications': typeof SendNotificationsRoute
|
'/send-notifications': typeof SendNotificationsRoute
|
||||||
'/stores': typeof StoresRouteWithChildren
|
|
||||||
'/admins/new': typeof AdminsNewRoute
|
|
||||||
'/products/new': typeof ProductsNewRoute
|
|
||||||
'/regions/new': typeof RegionsNewRoute
|
'/regions/new': typeof RegionsNewRoute
|
||||||
'/stores/new': typeof StoresNewRoute
|
|
||||||
'/admins/$id/edit': typeof AdminsIdEditRoute
|
|
||||||
'/products/$id/edit': typeof ProductsIdEditRoute
|
|
||||||
'/regions/$id/edit': typeof RegionsIdEditRoute
|
'/regions/$id/edit': typeof RegionsIdEditRoute
|
||||||
'/stores/$id/edit': typeof StoresIdEditRoute
|
|
||||||
}
|
}
|
||||||
export interface FileRoutesById {
|
export interface FileRoutesById {
|
||||||
__root__: typeof rootRouteImport
|
__root__: typeof rootRouteImport
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
'/admins': typeof AdminsRouteWithChildren
|
'/admins': typeof AdminsRoute
|
||||||
'/constants': typeof ConstantsRoute
|
'/constants': typeof ConstantsRoute
|
||||||
'/dashboard': typeof DashboardRoute
|
'/dashboard': typeof DashboardRoute
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/products': typeof ProductsRouteWithChildren
|
|
||||||
'/regions': typeof RegionsRouteWithChildren
|
'/regions': typeof RegionsRouteWithChildren
|
||||||
'/send-notifications': typeof SendNotificationsRoute
|
'/send-notifications': typeof SendNotificationsRoute
|
||||||
'/stores': typeof StoresRouteWithChildren
|
|
||||||
'/admins/new': typeof AdminsNewRoute
|
|
||||||
'/products/new': typeof ProductsNewRoute
|
|
||||||
'/regions/new': typeof RegionsNewRoute
|
'/regions/new': typeof RegionsNewRoute
|
||||||
'/stores/new': typeof StoresNewRoute
|
|
||||||
'/admins/$id/edit': typeof AdminsIdEditRoute
|
|
||||||
'/products/$id/edit': typeof ProductsIdEditRoute
|
|
||||||
'/regions/$id/edit': typeof RegionsIdEditRoute
|
'/regions/$id/edit': typeof RegionsIdEditRoute
|
||||||
'/stores/$id/edit': typeof StoresIdEditRoute
|
|
||||||
}
|
}
|
||||||
export interface FileRouteTypes {
|
export interface FileRouteTypes {
|
||||||
fileRoutesByFullPath: FileRoutesByFullPath
|
fileRoutesByFullPath: FileRoutesByFullPath
|
||||||
|
|
@ -179,18 +107,10 @@ export interface FileRouteTypes {
|
||||||
| '/constants'
|
| '/constants'
|
||||||
| '/dashboard'
|
| '/dashboard'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/products'
|
|
||||||
| '/regions'
|
| '/regions'
|
||||||
| '/send-notifications'
|
| '/send-notifications'
|
||||||
| '/stores'
|
|
||||||
| '/admins/new'
|
|
||||||
| '/products/new'
|
|
||||||
| '/regions/new'
|
| '/regions/new'
|
||||||
| '/stores/new'
|
|
||||||
| '/admins/$id/edit'
|
|
||||||
| '/products/$id/edit'
|
|
||||||
| '/regions/$id/edit'
|
| '/regions/$id/edit'
|
||||||
| '/stores/$id/edit'
|
|
||||||
fileRoutesByTo: FileRoutesByTo
|
fileRoutesByTo: FileRoutesByTo
|
||||||
to:
|
to:
|
||||||
| '/'
|
| '/'
|
||||||
|
|
@ -198,18 +118,10 @@ export interface FileRouteTypes {
|
||||||
| '/constants'
|
| '/constants'
|
||||||
| '/dashboard'
|
| '/dashboard'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/products'
|
|
||||||
| '/regions'
|
| '/regions'
|
||||||
| '/send-notifications'
|
| '/send-notifications'
|
||||||
| '/stores'
|
|
||||||
| '/admins/new'
|
|
||||||
| '/products/new'
|
|
||||||
| '/regions/new'
|
| '/regions/new'
|
||||||
| '/stores/new'
|
|
||||||
| '/admins/$id/edit'
|
|
||||||
| '/products/$id/edit'
|
|
||||||
| '/regions/$id/edit'
|
| '/regions/$id/edit'
|
||||||
| '/stores/$id/edit'
|
|
||||||
id:
|
id:
|
||||||
| '__root__'
|
| '__root__'
|
||||||
| '/'
|
| '/'
|
||||||
|
|
@ -217,30 +129,20 @@ export interface FileRouteTypes {
|
||||||
| '/constants'
|
| '/constants'
|
||||||
| '/dashboard'
|
| '/dashboard'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/products'
|
|
||||||
| '/regions'
|
| '/regions'
|
||||||
| '/send-notifications'
|
| '/send-notifications'
|
||||||
| '/stores'
|
|
||||||
| '/admins/new'
|
|
||||||
| '/products/new'
|
|
||||||
| '/regions/new'
|
| '/regions/new'
|
||||||
| '/stores/new'
|
|
||||||
| '/admins/$id/edit'
|
|
||||||
| '/products/$id/edit'
|
|
||||||
| '/regions/$id/edit'
|
| '/regions/$id/edit'
|
||||||
| '/stores/$id/edit'
|
|
||||||
fileRoutesById: FileRoutesById
|
fileRoutesById: FileRoutesById
|
||||||
}
|
}
|
||||||
export interface RootRouteChildren {
|
export interface RootRouteChildren {
|
||||||
IndexRoute: typeof IndexRoute
|
IndexRoute: typeof IndexRoute
|
||||||
AdminsRoute: typeof AdminsRouteWithChildren
|
AdminsRoute: typeof AdminsRoute
|
||||||
ConstantsRoute: typeof ConstantsRoute
|
ConstantsRoute: typeof ConstantsRoute
|
||||||
DashboardRoute: typeof DashboardRoute
|
DashboardRoute: typeof DashboardRoute
|
||||||
LoginRoute: typeof LoginRoute
|
LoginRoute: typeof LoginRoute
|
||||||
ProductsRoute: typeof ProductsRouteWithChildren
|
|
||||||
RegionsRoute: typeof RegionsRouteWithChildren
|
RegionsRoute: typeof RegionsRouteWithChildren
|
||||||
SendNotificationsRoute: typeof SendNotificationsRoute
|
SendNotificationsRoute: typeof SendNotificationsRoute
|
||||||
StoresRoute: typeof StoresRouteWithChildren
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module '@tanstack/react-router' {
|
declare module '@tanstack/react-router' {
|
||||||
|
|
@ -280,13 +182,6 @@ declare module '@tanstack/react-router' {
|
||||||
preLoaderRoute: typeof LoginRouteImport
|
preLoaderRoute: typeof LoginRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
'/products': {
|
|
||||||
id: '/products'
|
|
||||||
path: '/products'
|
|
||||||
fullPath: '/products'
|
|
||||||
preLoaderRoute: typeof ProductsRouteImport
|
|
||||||
parentRoute: typeof rootRouteImport
|
|
||||||
}
|
|
||||||
'/regions': {
|
'/regions': {
|
||||||
id: '/regions'
|
id: '/regions'
|
||||||
path: '/regions'
|
path: '/regions'
|
||||||
|
|
@ -301,27 +196,6 @@ declare module '@tanstack/react-router' {
|
||||||
preLoaderRoute: typeof SendNotificationsRouteImport
|
preLoaderRoute: typeof SendNotificationsRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
'/stores': {
|
|
||||||
id: '/stores'
|
|
||||||
path: '/stores'
|
|
||||||
fullPath: '/stores'
|
|
||||||
preLoaderRoute: typeof StoresRouteImport
|
|
||||||
parentRoute: typeof rootRouteImport
|
|
||||||
}
|
|
||||||
'/admins/new': {
|
|
||||||
id: '/admins/new'
|
|
||||||
path: '/new'
|
|
||||||
fullPath: '/admins/new'
|
|
||||||
preLoaderRoute: typeof AdminsNewRouteImport
|
|
||||||
parentRoute: typeof AdminsRoute
|
|
||||||
}
|
|
||||||
'/products/new': {
|
|
||||||
id: '/products/new'
|
|
||||||
path: '/new'
|
|
||||||
fullPath: '/products/new'
|
|
||||||
preLoaderRoute: typeof ProductsNewRouteImport
|
|
||||||
parentRoute: typeof ProductsRoute
|
|
||||||
}
|
|
||||||
'/regions/new': {
|
'/regions/new': {
|
||||||
id: '/regions/new'
|
id: '/regions/new'
|
||||||
path: '/new'
|
path: '/new'
|
||||||
|
|
@ -329,27 +203,6 @@ declare module '@tanstack/react-router' {
|
||||||
preLoaderRoute: typeof RegionsNewRouteImport
|
preLoaderRoute: typeof RegionsNewRouteImport
|
||||||
parentRoute: typeof RegionsRoute
|
parentRoute: typeof RegionsRoute
|
||||||
}
|
}
|
||||||
'/stores/new': {
|
|
||||||
id: '/stores/new'
|
|
||||||
path: '/new'
|
|
||||||
fullPath: '/stores/new'
|
|
||||||
preLoaderRoute: typeof StoresNewRouteImport
|
|
||||||
parentRoute: typeof StoresRoute
|
|
||||||
}
|
|
||||||
'/admins/$id/edit': {
|
|
||||||
id: '/admins/$id/edit'
|
|
||||||
path: '/$id/edit'
|
|
||||||
fullPath: '/admins/$id/edit'
|
|
||||||
preLoaderRoute: typeof AdminsIdEditRouteImport
|
|
||||||
parentRoute: typeof AdminsRoute
|
|
||||||
}
|
|
||||||
'/products/$id/edit': {
|
|
||||||
id: '/products/$id/edit'
|
|
||||||
path: '/$id/edit'
|
|
||||||
fullPath: '/products/$id/edit'
|
|
||||||
preLoaderRoute: typeof ProductsIdEditRouteImport
|
|
||||||
parentRoute: typeof ProductsRoute
|
|
||||||
}
|
|
||||||
'/regions/$id/edit': {
|
'/regions/$id/edit': {
|
||||||
id: '/regions/$id/edit'
|
id: '/regions/$id/edit'
|
||||||
path: '/$id/edit'
|
path: '/$id/edit'
|
||||||
|
|
@ -357,42 +210,8 @@ declare module '@tanstack/react-router' {
|
||||||
preLoaderRoute: typeof RegionsIdEditRouteImport
|
preLoaderRoute: typeof RegionsIdEditRouteImport
|
||||||
parentRoute: typeof RegionsRoute
|
parentRoute: typeof RegionsRoute
|
||||||
}
|
}
|
||||||
'/stores/$id/edit': {
|
|
||||||
id: '/stores/$id/edit'
|
|
||||||
path: '/$id/edit'
|
|
||||||
fullPath: '/stores/$id/edit'
|
|
||||||
preLoaderRoute: typeof StoresIdEditRouteImport
|
|
||||||
parentRoute: typeof StoresRoute
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
interface AdminsRouteChildren {
|
|
||||||
AdminsNewRoute: typeof AdminsNewRoute
|
|
||||||
AdminsIdEditRoute: typeof AdminsIdEditRoute
|
|
||||||
}
|
|
||||||
|
|
||||||
const AdminsRouteChildren: AdminsRouteChildren = {
|
|
||||||
AdminsNewRoute: AdminsNewRoute,
|
|
||||||
AdminsIdEditRoute: AdminsIdEditRoute,
|
|
||||||
}
|
|
||||||
|
|
||||||
const AdminsRouteWithChildren =
|
|
||||||
AdminsRoute._addFileChildren(AdminsRouteChildren)
|
|
||||||
|
|
||||||
interface ProductsRouteChildren {
|
|
||||||
ProductsNewRoute: typeof ProductsNewRoute
|
|
||||||
ProductsIdEditRoute: typeof ProductsIdEditRoute
|
|
||||||
}
|
|
||||||
|
|
||||||
const ProductsRouteChildren: ProductsRouteChildren = {
|
|
||||||
ProductsNewRoute: ProductsNewRoute,
|
|
||||||
ProductsIdEditRoute: ProductsIdEditRoute,
|
|
||||||
}
|
|
||||||
|
|
||||||
const ProductsRouteWithChildren = ProductsRoute._addFileChildren(
|
|
||||||
ProductsRouteChildren,
|
|
||||||
)
|
|
||||||
|
|
||||||
interface RegionsRouteChildren {
|
interface RegionsRouteChildren {
|
||||||
RegionsNewRoute: typeof RegionsNewRoute
|
RegionsNewRoute: typeof RegionsNewRoute
|
||||||
|
|
@ -407,29 +226,14 @@ const RegionsRouteChildren: RegionsRouteChildren = {
|
||||||
const RegionsRouteWithChildren =
|
const RegionsRouteWithChildren =
|
||||||
RegionsRoute._addFileChildren(RegionsRouteChildren)
|
RegionsRoute._addFileChildren(RegionsRouteChildren)
|
||||||
|
|
||||||
interface StoresRouteChildren {
|
|
||||||
StoresNewRoute: typeof StoresNewRoute
|
|
||||||
StoresIdEditRoute: typeof StoresIdEditRoute
|
|
||||||
}
|
|
||||||
|
|
||||||
const StoresRouteChildren: StoresRouteChildren = {
|
|
||||||
StoresNewRoute: StoresNewRoute,
|
|
||||||
StoresIdEditRoute: StoresIdEditRoute,
|
|
||||||
}
|
|
||||||
|
|
||||||
const StoresRouteWithChildren =
|
|
||||||
StoresRoute._addFileChildren(StoresRouteChildren)
|
|
||||||
|
|
||||||
const rootRouteChildren: RootRouteChildren = {
|
const rootRouteChildren: RootRouteChildren = {
|
||||||
IndexRoute: IndexRoute,
|
IndexRoute: IndexRoute,
|
||||||
AdminsRoute: AdminsRouteWithChildren,
|
AdminsRoute: AdminsRoute,
|
||||||
ConstantsRoute: ConstantsRoute,
|
ConstantsRoute: ConstantsRoute,
|
||||||
DashboardRoute: DashboardRoute,
|
DashboardRoute: DashboardRoute,
|
||||||
LoginRoute: LoginRoute,
|
LoginRoute: LoginRoute,
|
||||||
ProductsRoute: ProductsRouteWithChildren,
|
|
||||||
RegionsRoute: RegionsRouteWithChildren,
|
RegionsRoute: RegionsRouteWithChildren,
|
||||||
SendNotificationsRoute: SendNotificationsRoute,
|
SendNotificationsRoute: SendNotificationsRoute,
|
||||||
StoresRoute: StoresRouteWithChildren,
|
|
||||||
}
|
}
|
||||||
export const routeTree = rootRouteImport
|
export const routeTree = rootRouteImport
|
||||||
._addFileChildren(rootRouteChildren)
|
._addFileChildren(rootRouteChildren)
|
||||||
|
|
|
||||||
|
|
@ -1,177 +0,0 @@
|
||||||
import { useEffect, useState } from 'react'
|
|
||||||
import { createFileRoute, useNavigate, useParams } from '@tanstack/react-router'
|
|
||||||
import { ArrowLeft } from 'lucide-react'
|
|
||||||
import { AppContainer, MyButton, p as MyText, pInput as PInput } from 'web-components'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/admins/$id/edit')({
|
|
||||||
component: EditAdmin,
|
|
||||||
})
|
|
||||||
|
|
||||||
function EditAdmin() {
|
|
||||||
const navigate = useNavigate()
|
|
||||||
const { id } = useParams({ from: '/admins/$id/edit' })
|
|
||||||
const staffId = Number(id)
|
|
||||||
|
|
||||||
const [name, setName] = useState('')
|
|
||||||
const [password, setPassword] = useState('')
|
|
||||||
const [roleId, setRoleId] = useState<number | ''>('')
|
|
||||||
const [regionId, setRegionId] = useState<number | ''>('')
|
|
||||||
const [hydrated, setHydrated] = useState(false)
|
|
||||||
|
|
||||||
const { data, isLoading, error } = trpc.superadmin.staffUser.getStaff.useQuery()
|
|
||||||
const { data: rolesData } = trpc.superadmin.staffUser.getRoles.useQuery()
|
|
||||||
const { data: regionsData } = trpc.superadmin.region.getRegions.useQuery()
|
|
||||||
|
|
||||||
const roles = rolesData?.roles ?? []
|
|
||||||
const regions = regionsData?.regions ?? []
|
|
||||||
const member = data?.staff.find((s) => s.id === staffId)
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (member && !hydrated) {
|
|
||||||
setName(member.name)
|
|
||||||
setRoleId(member.roleId ?? '')
|
|
||||||
setRegionId(member.regionId ?? '')
|
|
||||||
setHydrated(true)
|
|
||||||
}
|
|
||||||
}, [member, hydrated])
|
|
||||||
|
|
||||||
const updateStaffUser = trpc.superadmin.staffUser.updateStaffUser.useMutation({
|
|
||||||
onSuccess: () => {
|
|
||||||
navigate({ to: '/admins' })
|
|
||||||
},
|
|
||||||
onError: (err) => {
|
|
||||||
window.alert(`Error\n\n${err.message || 'Failed to update admin'}`)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
const handleSubmit = () => {
|
|
||||||
if (!name.trim()) {
|
|
||||||
window.alert('Validation\n\nName is required.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (password.length > 0 && password.length < 6) {
|
|
||||||
window.alert('Validation\n\nNew password must be at least 6 characters.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!roleId) {
|
|
||||||
window.alert('Validation\n\nRole is required.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!regionId) {
|
|
||||||
window.alert('Validation\n\nRegion is required.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
updateStaffUser.mutate({
|
|
||||||
id: staffId,
|
|
||||||
name: name.trim(),
|
|
||||||
roleId: Number(roleId),
|
|
||||||
regionId: Number(regionId),
|
|
||||||
...(password.length > 0 ? { password } : {}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isLoading) {
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<MyText className="block py-8 text-center text-gray-500">Loading admin...</MyText>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error || !member) {
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<MyText className="block py-8 text-center text-red-600">
|
|
||||||
{error ? 'Error loading admin' : 'Admin not found'}
|
|
||||||
</MyText>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="bg-gray-50 p-4">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() => navigate({ to: '/admins' })}
|
|
||||||
className="mb-4 flex items-center gap-1.5 text-sm font-medium text-gray-600 hover:text-gray-900"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" />
|
|
||||||
Back to Admins
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<MyText className="mb-1 block text-2xl font-bold text-gray-900">Edit Admin</MyText>
|
|
||||||
<MyText className="mb-6 block text-gray-600">
|
|
||||||
Update {member.name}'s details. Leave the password blank to keep it unchanged.
|
|
||||||
</MyText>
|
|
||||||
|
|
||||||
<div className="mb-4">
|
|
||||||
<PInput
|
|
||||||
id="admin-edit-name"
|
|
||||||
topLabel="Name"
|
|
||||||
placeholder="e.g. ravi"
|
|
||||||
value={name}
|
|
||||||
onChange={(e) => setName(e.target.value)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-4">
|
|
||||||
<PInput
|
|
||||||
id="admin-edit-password"
|
|
||||||
topLabel="New Password (optional)"
|
|
||||||
placeholder="Leave blank to keep current password"
|
|
||||||
value={password}
|
|
||||||
type="password"
|
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-4">
|
|
||||||
<MyText className="mb-1 block text-sm font-medium text-gray-700">Role</MyText>
|
|
||||||
<select
|
|
||||||
id="admin-edit-role"
|
|
||||||
value={roleId}
|
|
||||||
onChange={(e) => setRoleId(e.target.value ? Number(e.target.value) : '')}
|
|
||||||
className="w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900"
|
|
||||||
>
|
|
||||||
<option value="">Select a role</option>
|
|
||||||
{roles.map((role) => (
|
|
||||||
<option key={role.id} value={role.id}>
|
|
||||||
{role.name}
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-6">
|
|
||||||
<MyText className="mb-1 block text-sm font-medium text-gray-700">Region</MyText>
|
|
||||||
<select
|
|
||||||
id="admin-edit-region"
|
|
||||||
value={regionId}
|
|
||||||
onChange={(e) => setRegionId(e.target.value ? Number(e.target.value) : '')}
|
|
||||||
className="w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900"
|
|
||||||
>
|
|
||||||
<option value="">Select a region</option>
|
|
||||||
{regions.map((region) => (
|
|
||||||
<option key={region.id} value={region.id}>
|
|
||||||
{region.name}
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<MyButton
|
|
||||||
onClick={handleSubmit}
|
|
||||||
disabled={updateStaffUser.isPending}
|
|
||||||
fullWidth
|
|
||||||
className={`rounded-lg bg-blue-600 p-4 text-base text-white hover:bg-blue-700 ${
|
|
||||||
updateStaffUser.isPending ? 'opacity-50' : ''
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
{updateStaffUser.isPending ? 'Saving...' : 'Save Changes'}
|
|
||||||
</MyButton>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,145 +0,0 @@
|
||||||
import { useState } from 'react'
|
|
||||||
import { createFileRoute, useNavigate } from '@tanstack/react-router'
|
|
||||||
import { UserPlus, ArrowLeft } from 'lucide-react'
|
|
||||||
import { AppContainer, MyButton, p as MyText, pInput as PInput } from 'web-components'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/admins/new')({
|
|
||||||
component: NewAdmin,
|
|
||||||
})
|
|
||||||
|
|
||||||
function NewAdmin() {
|
|
||||||
const navigate = useNavigate()
|
|
||||||
const [name, setName] = useState('')
|
|
||||||
const [password, setPassword] = useState('')
|
|
||||||
const [roleId, setRoleId] = useState<number | ''>('')
|
|
||||||
const [regionId, setRegionId] = useState<number | ''>('')
|
|
||||||
|
|
||||||
const { data: rolesData } = trpc.superadmin.staffUser.getRoles.useQuery()
|
|
||||||
const { data: regionsData } = trpc.superadmin.region.getRegions.useQuery()
|
|
||||||
|
|
||||||
const roles = rolesData?.roles ?? []
|
|
||||||
const regions = regionsData?.regions ?? []
|
|
||||||
|
|
||||||
const createStaffUser = trpc.superadmin.staffUser.createStaffUser.useMutation({
|
|
||||||
onSuccess: () => {
|
|
||||||
navigate({ to: '/admins' })
|
|
||||||
},
|
|
||||||
onError: (err) => {
|
|
||||||
window.alert(`Error\n\n${err.message || 'Failed to create admin'}`)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
const handleSubmit = () => {
|
|
||||||
if (!name.trim()) {
|
|
||||||
window.alert('Validation\n\nName is required.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (password.length < 6) {
|
|
||||||
window.alert('Validation\n\nPassword must be at least 6 characters.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!roleId) {
|
|
||||||
window.alert('Validation\n\nRole is required.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!regionId) {
|
|
||||||
window.alert('Validation\n\nRegion is required.')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
createStaffUser.mutate({
|
|
||||||
name: name.trim(),
|
|
||||||
password,
|
|
||||||
roleId: Number(roleId),
|
|
||||||
regionId: Number(regionId),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="bg-gray-50 p-4">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() => navigate({ to: '/admins' })}
|
|
||||||
className="mb-4 flex items-center gap-1.5 text-sm font-medium text-gray-600 hover:text-gray-900"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" />
|
|
||||||
Back to Admins
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<MyText className="mb-1 block text-2xl font-bold text-gray-900">Add Admin</MyText>
|
|
||||||
<MyText className="mb-6 block text-gray-600">
|
|
||||||
Create a staff user and assign them to a region.
|
|
||||||
</MyText>
|
|
||||||
|
|
||||||
<div className="mb-4">
|
|
||||||
<PInput
|
|
||||||
id="admin-name"
|
|
||||||
topLabel="Name"
|
|
||||||
placeholder="e.g. ravi"
|
|
||||||
value={name}
|
|
||||||
onChange={(e) => setName(e.target.value)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-4">
|
|
||||||
<PInput
|
|
||||||
id="admin-password"
|
|
||||||
topLabel="Password"
|
|
||||||
placeholder="At least 6 characters"
|
|
||||||
value={password}
|
|
||||||
type="password"
|
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-4">
|
|
||||||
<MyText className="mb-1 block text-sm font-medium text-gray-700">Role</MyText>
|
|
||||||
<select
|
|
||||||
id="admin-role"
|
|
||||||
value={roleId}
|
|
||||||
onChange={(e) => setRoleId(e.target.value ? Number(e.target.value) : '')}
|
|
||||||
className="w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900"
|
|
||||||
>
|
|
||||||
<option value="">Select a role</option>
|
|
||||||
{roles.map((role) => (
|
|
||||||
<option key={role.id} value={role.id}>
|
|
||||||
{role.name}
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-6">
|
|
||||||
<MyText className="mb-1 block text-sm font-medium text-gray-700">Region</MyText>
|
|
||||||
<select
|
|
||||||
id="admin-region"
|
|
||||||
value={regionId}
|
|
||||||
onChange={(e) => setRegionId(e.target.value ? Number(e.target.value) : '')}
|
|
||||||
className="w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900"
|
|
||||||
>
|
|
||||||
<option value="">Select a region</option>
|
|
||||||
{regions.map((region) => (
|
|
||||||
<option key={region.id} value={region.id}>
|
|
||||||
{region.name}
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<MyButton
|
|
||||||
id="create-admin-submit"
|
|
||||||
onClick={handleSubmit}
|
|
||||||
disabled={createStaffUser.isPending}
|
|
||||||
fullWidth
|
|
||||||
className={`flex items-center justify-center gap-2 rounded-lg bg-blue-600 p-4 text-base text-white hover:bg-blue-700 ${
|
|
||||||
createStaffUser.isPending ? 'opacity-50' : ''
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
<UserPlus className="h-4 w-4" />
|
|
||||||
{createStaffUser.isPending ? 'Creating...' : 'Create Admin'}
|
|
||||||
</MyButton>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { createFileRoute, Link, Outlet, useLocation, useNavigate } from '@tanstack/react-router'
|
import { useState } from 'react'
|
||||||
import { Pencil, Plus, Trash2, UserCog } from 'lucide-react'
|
import { createFileRoute } from '@tanstack/react-router'
|
||||||
import { AppContainer, MyButton, p as MyText } from 'web-components'
|
import { UserPlus } from 'lucide-react'
|
||||||
|
import { AppContainer, MyButton, p as MyText, pInput as PInput } from 'web-components'
|
||||||
import { trpc } from '../lib/trpc-client'
|
import { trpc } from '../lib/trpc-client'
|
||||||
import { ProtectedRoute } from '../components/ProtectedRoute'
|
import { ProtectedRoute } from '../components/ProtectedRoute'
|
||||||
import { AppShell } from '../components/AppShell'
|
import { AppShell } from '../components/AppShell'
|
||||||
|
|
@ -9,134 +10,132 @@ export const Route = createFileRoute('/admins')({
|
||||||
component: () => (
|
component: () => (
|
||||||
<ProtectedRoute>
|
<ProtectedRoute>
|
||||||
<AppShell>
|
<AppShell>
|
||||||
<Admins />
|
<CreateAdmin />
|
||||||
</AppShell>
|
</AppShell>
|
||||||
</ProtectedRoute>
|
</ProtectedRoute>
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
|
|
||||||
// This route is the layout for /admins plus its children
|
function CreateAdmin() {
|
||||||
// (/admins/new and /admins/$id/edit). Render the list only on the exact
|
const [name, setName] = useState('')
|
||||||
// /admins path; otherwise hand off to the child route.
|
const [password, setPassword] = useState('')
|
||||||
function Admins() {
|
const [roleId, setRoleId] = useState<number | ''>('')
|
||||||
const location = useLocation()
|
const [regionId, setRegionId] = useState<number | ''>('')
|
||||||
|
|
||||||
if (location.pathname !== '/admins') {
|
const { data: rolesData } = trpc.admin.staffUser.getRoles.useQuery()
|
||||||
return <Outlet />
|
const { data: regionsData } = trpc.admin.region.getRegions.useQuery()
|
||||||
}
|
|
||||||
|
|
||||||
return <AdminsList />
|
const roles = rolesData?.roles ?? []
|
||||||
}
|
const regions = regionsData?.regions ?? []
|
||||||
|
|
||||||
function AdminsList() {
|
const createStaffUser = trpc.admin.staffUser.createStaffUser.useMutation({
|
||||||
const navigate = useNavigate()
|
onSuccess: (res) => {
|
||||||
const utils = trpc.useUtils()
|
window.alert('Success\n\nAdmin created successfully.')
|
||||||
|
setName('')
|
||||||
const { data, isLoading, error, refetch } = trpc.superadmin.staffUser.getStaff.useQuery()
|
setPassword('')
|
||||||
|
setRoleId('')
|
||||||
const deleteStaffUser = trpc.superadmin.staffUser.deleteStaffUser.useMutation({
|
setRegionId('')
|
||||||
onSuccess: () => {
|
|
||||||
void utils.superadmin.staffUser.getStaff.invalidate()
|
|
||||||
},
|
},
|
||||||
onError: (err) => {
|
onError: (err) => {
|
||||||
window.alert(`Error\n\n${err.message || 'Failed to delete admin'}`)
|
window.alert(`Error\n\n${err.message || 'Failed to create admin'}`)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const staff = data?.staff ?? []
|
const handleSubmit = () => {
|
||||||
|
if (!name.trim()) {
|
||||||
const handleDelete = (id: number, name: string) => {
|
window.alert('Validation\n\nName is required.')
|
||||||
if (!window.confirm(`Delete admin "${name}"? This cannot be undone.`)) return
|
return
|
||||||
deleteStaffUser.mutate({ id })
|
}
|
||||||
|
if (password.length < 6) {
|
||||||
|
window.alert('Validation\n\nPassword must be at least 6 characters.')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!roleId) {
|
||||||
|
window.alert('Validation\n\nRole is required.')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!regionId) {
|
||||||
|
window.alert('Validation\n\nRegion is required.')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
createStaffUser.mutate({
|
||||||
|
name: name.trim(),
|
||||||
|
password,
|
||||||
|
roleId: Number(roleId),
|
||||||
|
regionId: Number(regionId),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
<div className="bg-gray-50 p-4">
|
<div className="bg-gray-50 p-4">
|
||||||
<div className="mb-6 flex items-center justify-between">
|
<MyText className="mb-1 block text-2xl font-bold text-gray-900">Create Admin</MyText>
|
||||||
<div>
|
<MyText className="mb-6 block text-gray-600">
|
||||||
<MyText className="mb-1 block text-2xl font-bold text-gray-900">Admins</MyText>
|
Create a staff user and assign them to a region.
|
||||||
<MyText className="block text-gray-600">
|
|
||||||
Staff users and the region each one manages.
|
|
||||||
</MyText>
|
</MyText>
|
||||||
</div>
|
|
||||||
<MyButton
|
<div className="mb-4">
|
||||||
onClick={() => navigate({ to: '/admins/new' })}
|
<PInput
|
||||||
className="flex items-center gap-2 rounded-lg bg-blue-600 px-4 py-2.5 text-white hover:bg-blue-700"
|
topLabel="Name"
|
||||||
>
|
placeholder="e.g. ravi"
|
||||||
<Plus className="h-4 w-4" />
|
value={name}
|
||||||
Add Admin
|
onChange={(e) => setName(e.target.value)}
|
||||||
</MyButton>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isLoading && (
|
<div className="mb-4">
|
||||||
<MyText className="block py-8 text-center text-gray-500">Loading admins...</MyText>
|
<PInput
|
||||||
)}
|
topLabel="Password"
|
||||||
|
placeholder="At least 6 characters"
|
||||||
{error && (
|
value={password}
|
||||||
<div className="flex flex-col items-center py-8">
|
type="password"
|
||||||
<MyText className="mb-4 block text-red-600">Error loading admins</MyText>
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
<MyButton
|
/>
|
||||||
onClick={() => refetch()}
|
|
||||||
className="rounded-lg bg-blue-500 px-4 py-2 text-white"
|
|
||||||
>
|
|
||||||
Retry
|
|
||||||
</MyButton>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{!isLoading && !error && staff.length === 0 && (
|
|
||||||
<div className="flex flex-col items-center rounded-xl border border-dashed border-gray-300 bg-white py-12">
|
|
||||||
<UserCog className="mb-3 h-8 w-8 text-gray-400" />
|
|
||||||
<MyText className="block text-gray-600">No admins yet.</MyText>
|
|
||||||
<MyText className="block text-sm text-gray-400">
|
|
||||||
Click "Add Admin" to create the first one.
|
|
||||||
</MyText>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="grid gap-4 sm:grid-cols-2">
|
|
||||||
{staff.map((member) => (
|
|
||||||
<div
|
|
||||||
key={member.id}
|
|
||||||
className="flex flex-col rounded-xl border border-gray-200 bg-white p-5 shadow-sm"
|
|
||||||
>
|
|
||||||
<div className="mb-1 flex items-start gap-3">
|
|
||||||
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-blue-50">
|
|
||||||
<UserCog className="h-5 w-5 text-blue-600" />
|
|
||||||
</div>
|
|
||||||
<div className="min-w-0">
|
|
||||||
<MyText className="block truncate font-semibold text-gray-900">
|
|
||||||
{member.name}
|
|
||||||
</MyText>
|
|
||||||
<MyText className="block text-sm text-gray-500">
|
|
||||||
{member.roleName || 'No role'} · {member.regionName || 'No region'}
|
|
||||||
</MyText>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-auto flex gap-2 pt-4">
|
<div className="mb-4">
|
||||||
<Link
|
<MyText className="mb-1 block text-sm font-medium text-gray-700">Role</MyText>
|
||||||
to="/admins/$id/edit"
|
<select
|
||||||
params={{ id: String(member.id) }}
|
value={roleId}
|
||||||
className="flex flex-1 items-center justify-center gap-2 rounded-lg border border-gray-200 px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50"
|
onChange={(e) => setRoleId(e.target.value ? Number(e.target.value) : '')}
|
||||||
|
className="w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900"
|
||||||
>
|
>
|
||||||
<Pencil className="h-4 w-4" />
|
<option value="">Select a role</option>
|
||||||
Edit
|
{roles.map((role) => (
|
||||||
</Link>
|
<option key={role.id} value={role.id}>
|
||||||
<button
|
{role.name}
|
||||||
type="button"
|
</option>
|
||||||
onClick={() => handleDelete(member.id, member.name)}
|
|
||||||
disabled={deleteStaffUser.isPending}
|
|
||||||
className="flex flex-1 items-center justify-center gap-2 rounded-lg border border-red-200 px-3 py-2 text-sm font-medium text-red-600 hover:bg-red-50 disabled:opacity-50"
|
|
||||||
>
|
|
||||||
<Trash2 className="h-4 w-4" />
|
|
||||||
Delete
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
))}
|
))}
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="mb-6">
|
||||||
|
<MyText className="mb-1 block text-sm font-medium text-gray-700">Region</MyText>
|
||||||
|
<select
|
||||||
|
value={regionId}
|
||||||
|
onChange={(e) => setRegionId(e.target.value ? Number(e.target.value) : '')}
|
||||||
|
className="w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900"
|
||||||
|
>
|
||||||
|
<option value="">Select a region</option>
|
||||||
|
{regions.map((region) => (
|
||||||
|
<option key={region.id} value={region.id}>
|
||||||
|
{region.name}
|
||||||
|
</option>
|
||||||
|
))}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<MyButton
|
||||||
|
onClick={handleSubmit}
|
||||||
|
disabled={createStaffUser.isPending}
|
||||||
|
fullWidth
|
||||||
|
className={`flex items-center justify-center gap-2 rounded-lg bg-blue-600 p-4 text-base text-white hover:bg-blue-700 ${
|
||||||
|
createStaffUser.isPending ? 'opacity-50' : ''
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
<UserPlus className="h-4 w-4" />
|
||||||
|
{createStaffUser.isPending ? 'Creating...' : 'Create Admin'}
|
||||||
|
</MyButton>
|
||||||
</div>
|
</div>
|
||||||
</AppContainer>
|
</AppContainer>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,8 @@ const ConstantInput: React.FC<ConstantInputProps> = ({ constantKey, value, setFi
|
||||||
}
|
}
|
||||||
|
|
||||||
function CustomizeApp() {
|
function CustomizeApp() {
|
||||||
const { data: constants, isLoading: isLoadingConstants, refetch } = trpc.superadmin.const.getConstants.useQuery()
|
const { data: constants, isLoading: isLoadingConstants, refetch } = trpc.admin.const.getConstants.useQuery()
|
||||||
const { mutate: updateConstants, isPending: isUpdating } = trpc.superadmin.const.updateConstants.useMutation()
|
const { mutate: updateConstants, isPending: isUpdating } = trpc.admin.const.updateConstants.useMutation()
|
||||||
|
|
||||||
const handleSubmit = (values: ConstantFormData) => {
|
const handleSubmit = (values: ConstantFormData) => {
|
||||||
const changedConstants = (constants || [])
|
const changedConstants = (constants || [])
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ export const Route = createFileRoute('/dashboard')({
|
||||||
const CARDS = [
|
const CARDS = [
|
||||||
{
|
{
|
||||||
to: '/admins',
|
to: '/admins',
|
||||||
title: 'Admins',
|
title: 'Create Admin',
|
||||||
description: 'View, create, edit and delete staff users.',
|
description: 'Create a staff user and assign them to a region.',
|
||||||
icon: UserPlus,
|
icon: UserPlus,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,301 +0,0 @@
|
||||||
import React, { useRef, useMemo } from 'react'
|
|
||||||
import { createFileRoute, useParams } from '@tanstack/react-router'
|
|
||||||
import { AppContainer, p as MyText, type ImageUploaderNeoItem, type ImageUploaderNeoPayload } from 'web-components'
|
|
||||||
import ProductForm, { type ProductFormRef } from '../components/ProductForm'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
import { useUploadToObjectStorage } from '../hooks/useUploadToObjectStorage'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/products/$id/edit')({
|
|
||||||
component: EditProduct,
|
|
||||||
})
|
|
||||||
|
|
||||||
function EditProduct() {
|
|
||||||
const { id } = useParams({ from: '/products/$id/edit' })
|
|
||||||
const productId = Number(id)
|
|
||||||
const productFormRef = useRef<ProductFormRef>(null)
|
|
||||||
|
|
||||||
const { data: productResponse, isLoading: isFetching, refetch } = trpc.superadmin.product.getProductById.useQuery(
|
|
||||||
{ id: productId },
|
|
||||||
{ enabled: !!productId }
|
|
||||||
)
|
|
||||||
const { refetch: refetchProducts } = trpc.superadmin.product.getProducts.useQuery(undefined, {
|
|
||||||
enabled: false,
|
|
||||||
})
|
|
||||||
const { data: regionsData } = trpc.superadmin.region.getRegions.useQuery(undefined, { staleTime: Infinity })
|
|
||||||
|
|
||||||
const updateProduct = trpc.superadmin.product.updateProduct.useMutation()
|
|
||||||
const { upload, isUploading } = useUploadToObjectStorage()
|
|
||||||
|
|
||||||
const productData = productResponse?.product
|
|
||||||
|
|
||||||
const initialValues = useMemo(() => {
|
|
||||||
if (!productData) {
|
|
||||||
return {
|
|
||||||
name: '',
|
|
||||||
shortDescription: '',
|
|
||||||
longDescription: '',
|
|
||||||
regionId: undefined as number | undefined,
|
|
||||||
availableInAllRegions: false,
|
|
||||||
storeIdsByRegion: {} as Record<number, number>,
|
|
||||||
storeId: 0,
|
|
||||||
productType: 'item' as const,
|
|
||||||
matchForAll: false,
|
|
||||||
regionStats: {} as Record<string, any[]>,
|
|
||||||
variants: [],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Per-region stats init, aligned with variants by index. Missing rows
|
|
||||||
// fall back to blanks (the form fills from the primary tab on save).
|
|
||||||
const regionStats: Record<string, any[]> = {}
|
|
||||||
for (const sku of (productData.skus || []) as any[]) {
|
|
||||||
for (const row of (sku.marketStats || []) as any[]) {
|
|
||||||
const key = String(row.regionId)
|
|
||||||
if (!regionStats[key]) regionStats[key] = []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
;(productData.skus || []).forEach((sku: any, i: number) => {
|
|
||||||
for (const key of Object.keys(regionStats)) {
|
|
||||||
const row = ((sku as any).marketStats || []).find((r: any) => String(r.regionId) === key)
|
|
||||||
regionStats[key][i] = row
|
|
||||||
? {
|
|
||||||
price: row.ourPrice != null ? Number(row.ourPrice) : '',
|
|
||||||
marketPrice: row.marketPrice != null ? Number(row.marketPrice) : '',
|
|
||||||
flashPrice: row.flashPrice != null ? Number(row.flashPrice) : '',
|
|
||||||
isFlashAvailable: !!row.isFlashAvailable,
|
|
||||||
isOffer: !!row.isOffer,
|
|
||||||
isSuspended: !!row.isSuspended,
|
|
||||||
isOutOfStock: !!row.isOutOfStock,
|
|
||||||
}
|
|
||||||
: { price: '', marketPrice: '', flashPrice: '', isFlashAvailable: false, isOffer: false, isSuspended: false, isOutOfStock: false }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return {
|
|
||||||
name: productData.name,
|
|
||||||
shortDescription: productData.shortDescription || '',
|
|
||||||
longDescription: productData.longDescription || '',
|
|
||||||
regionId: productData.regionId,
|
|
||||||
availableInAllRegions: productData.availableInAllRegions ?? false,
|
|
||||||
storeIdsByRegion: {} as Record<number, number>,
|
|
||||||
storeId: productData.store?.id ?? 1,
|
|
||||||
productType: (productData.productType as 'item' | 'combo') || 'item',
|
|
||||||
matchForAll: false,
|
|
||||||
regionStats,
|
|
||||||
variants: (productData.skus || []).map((sku) => ({
|
|
||||||
id: sku.id,
|
|
||||||
name: sku.name || '',
|
|
||||||
price: sku.price ? parseFloat(sku.price) : undefined,
|
|
||||||
marketPrice: sku.marketPrice ? parseFloat(sku.marketPrice) : null,
|
|
||||||
isFlashAvailable: sku.isFlashAvailable || false,
|
|
||||||
flashPrice: sku.flashPrice ? parseFloat(sku.flashPrice) : null,
|
|
||||||
isOffer: sku.isOffer || false,
|
|
||||||
isComboOnly: sku.isComboOnly || false,
|
|
||||||
isDeleted: sku.isDeleted || false,
|
|
||||||
isSuspended: sku.isSuspended || false,
|
|
||||||
features: (sku.features || []).map((f) => ({
|
|
||||||
featureName: f.featureName,
|
|
||||||
featureValue: f.featureValue,
|
|
||||||
})),
|
|
||||||
comboItems: (sku.comboItems || []).map((ci: any) => ({
|
|
||||||
skuId: ci.skuId,
|
|
||||||
})),
|
|
||||||
})),
|
|
||||||
}
|
|
||||||
}, [productData])
|
|
||||||
|
|
||||||
const existingVariantImages = useMemo(() => {
|
|
||||||
if (!productData) return []
|
|
||||||
return (productData.skus || []).map((sku) =>
|
|
||||||
(sku.images || []).map((url) => ({ imgUrl: url, mimeType: null } as ImageUploaderNeoItem))
|
|
||||||
)
|
|
||||||
}, [productData])
|
|
||||||
|
|
||||||
const existingVariantImageKeys = useMemo(() => {
|
|
||||||
if (!productData) return []
|
|
||||||
return (productData.skus || []).map((sku) =>
|
|
||||||
(sku.imageKeys || []).map(String)
|
|
||||||
)
|
|
||||||
}, [productData])
|
|
||||||
|
|
||||||
const handleSubmit = async (values: any, variantImages: ImageUploaderNeoPayload[][], deletedImageKeys: string[]) => {
|
|
||||||
try {
|
|
||||||
const firstRegionId = regionsData?.regions?.[0]?.id
|
|
||||||
const primaryRegionId = values.availableInAllRegions
|
|
||||||
? firstRegionId
|
|
||||||
: values.regionId
|
|
||||||
const primaryStats: any[] = (values.regionStats ?? {})[String(primaryRegionId)] ?? []
|
|
||||||
|
|
||||||
for (const entry of primaryStats) {
|
|
||||||
const price = Number(entry?.price)
|
|
||||||
if (entry == null || !Number.isFinite(price) || price <= 0) {
|
|
||||||
window.alert('Please enter a valid price for every variant')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const seenSignatures = new Set<string>()
|
|
||||||
for (const variant of values.variants) {
|
|
||||||
const features = variant.features || []
|
|
||||||
const hasQuantity = features.some(
|
|
||||||
(a: any) => (a.featureName ?? '').trim().toLowerCase() === 'quantity'
|
|
||||||
)
|
|
||||||
if (!hasQuantity) {
|
|
||||||
window.alert('Every SKU must have a quantity feature')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const signature = features
|
|
||||||
.map((a: any) => `${(a.featureName ?? '').trim().toLowerCase()}::${a.featureValue.trim().toLowerCase()}`)
|
|
||||||
.sort()
|
|
||||||
.join('|')
|
|
||||||
if (seenSignatures.has(signature)) {
|
|
||||||
window.alert('Two variants have the same attributes')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
seenSignatures.add(signature)
|
|
||||||
}
|
|
||||||
|
|
||||||
const allBlobs: { blob: Blob, mimeType: string }[] = []
|
|
||||||
const imageCounts: number[] = variantImages.map((imgs) =>
|
|
||||||
imgs.filter((img) => img.mimeType !== null).length
|
|
||||||
)
|
|
||||||
|
|
||||||
for (const imgs of variantImages) {
|
|
||||||
for (const img of imgs) {
|
|
||||||
if (img.mimeType === null) continue
|
|
||||||
const response = await fetch(img.url)
|
|
||||||
const blob = await response.blob()
|
|
||||||
allBlobs.push({ blob, mimeType: img.mimeType || 'image/jpeg' })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let allUploadUrls: string[] = []
|
|
||||||
if (allBlobs.length > 0) {
|
|
||||||
const result = await upload({ images: allBlobs, contextString: 'product_info' })
|
|
||||||
allUploadUrls = result.presignedUrls
|
|
||||||
}
|
|
||||||
|
|
||||||
let urlCursor = 0
|
|
||||||
const skus = values.variants.map((variant: any, vIndex: number) => {
|
|
||||||
const count = imageCounts[vIndex]
|
|
||||||
const newUrls = allUploadUrls.slice(urlCursor, urlCursor + count)
|
|
||||||
urlCursor += count
|
|
||||||
|
|
||||||
const existingUrls = variantImages[vIndex]
|
|
||||||
?.filter((img) => img.mimeType === null)
|
|
||||||
.map((img) => img.url) || []
|
|
||||||
|
|
||||||
const allUrls = [...existingUrls, ...newUrls]
|
|
||||||
const stats = primaryStats[vIndex] ?? {}
|
|
||||||
|
|
||||||
const applicableRegionIds: number[] = values.availableInAllRegions
|
|
||||||
? (regionsData?.regions ?? []).map((r: any) => r.id)
|
|
||||||
: (primaryRegionId != null ? [primaryRegionId] : [])
|
|
||||||
const perRegion: Record<number, any> = {}
|
|
||||||
for (const rid of applicableRegionIds) {
|
|
||||||
if (rid === primaryRegionId) continue
|
|
||||||
const entry = ((values.regionStats ?? {})[String(rid)] ?? [])[vIndex]
|
|
||||||
if (entry) {
|
|
||||||
perRegion[rid] = {
|
|
||||||
price: Number(entry.price),
|
|
||||||
marketPrice: entry.marketPrice ?? undefined,
|
|
||||||
flashPrice: entry.flashPrice ?? undefined,
|
|
||||||
isFlashAvailable: !!entry.isFlashAvailable,
|
|
||||||
isOffer: !!entry.isOffer,
|
|
||||||
isSuspended: !!entry.isSuspended,
|
|
||||||
isOutOfStock: !!entry.isOutOfStock,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: variant.id,
|
|
||||||
name: variant.name || null,
|
|
||||||
price: Number(stats.price) as number,
|
|
||||||
marketPrice: stats.marketPrice ?? undefined,
|
|
||||||
images: allUrls,
|
|
||||||
isFlashAvailable: stats.isFlashAvailable || false,
|
|
||||||
flashPrice: stats.flashPrice ?? undefined,
|
|
||||||
isOffer: stats.isOffer || false,
|
|
||||||
isComboOnly: variant.isComboOnly || false,
|
|
||||||
isDeleted: variant.isDeleted || false,
|
|
||||||
isSuspended: stats.isSuspended || false,
|
|
||||||
regionStats: Object.keys(perRegion).length > 0 ? perRegion : undefined,
|
|
||||||
features: variant.features.map((attr: any) => ({
|
|
||||||
featureName: attr.featureName,
|
|
||||||
featureValue: attr.featureValue,
|
|
||||||
})),
|
|
||||||
comboItems: (variant.comboItems || []).map((ci: any) => ({
|
|
||||||
skuId: ci.skuId,
|
|
||||||
})),
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
const storeIdsByRegion = Object.entries(values.storeIdsByRegion || {}).reduce(
|
|
||||||
(acc, [regionId, storeId]) => {
|
|
||||||
const sid = Number(storeId)
|
|
||||||
if (Number.isFinite(sid) && sid > 0) acc[Number(regionId)] = sid
|
|
||||||
return acc
|
|
||||||
},
|
|
||||||
{} as Record<number, number>
|
|
||||||
)
|
|
||||||
|
|
||||||
await updateProduct.mutateAsync({
|
|
||||||
id: productId,
|
|
||||||
name: values.name,
|
|
||||||
shortDescription: values.shortDescription || undefined,
|
|
||||||
longDescription: values.longDescription || undefined,
|
|
||||||
// Creator region scopes price/stock writes. A global product has no
|
|
||||||
// region of its own, so fall back to the first region (same rule as
|
|
||||||
// product creation); other regions' rows are left untouched.
|
|
||||||
regionId: values.regionId ?? regionsData?.regions?.[0]?.id,
|
|
||||||
productType: values.productType,
|
|
||||||
incrementStep: 1,
|
|
||||||
skus,
|
|
||||||
deletedImageKeys,
|
|
||||||
newImageUrls: allUploadUrls,
|
|
||||||
availableInAllRegions: !!values.availableInAllRegions,
|
|
||||||
storeIdsByRegion,
|
|
||||||
} as any)
|
|
||||||
|
|
||||||
await refetch()
|
|
||||||
await refetchProducts()
|
|
||||||
window.alert('Product updated successfully!')
|
|
||||||
productFormRef.current?.clearImages()
|
|
||||||
} catch (error: any) {
|
|
||||||
window.alert(error.message || 'Failed to update product')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isFetching) {
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="flex flex-1 items-center justify-center">
|
|
||||||
<MyText className="text-gray-600">Loading product...</MyText>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!productData) {
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="flex flex-1 items-center justify-center">
|
|
||||||
<MyText className="text-red-600">Product not found</MyText>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<ProductForm
|
|
||||||
ref={productFormRef}
|
|
||||||
mode="edit"
|
|
||||||
initialValues={initialValues}
|
|
||||||
onSubmit={handleSubmit}
|
|
||||||
isLoading={updateProduct.isPending || isUploading}
|
|
||||||
existingVariantImages={existingVariantImages}
|
|
||||||
existingVariantImageKeys={existingVariantImageKeys}
|
|
||||||
/>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,201 +0,0 @@
|
||||||
import { createFileRoute, useNavigate } from '@tanstack/react-router'
|
|
||||||
import { AppContainer, p as MyText } from 'web-components'
|
|
||||||
import ProductForm from '../components/ProductForm'
|
|
||||||
import type { ImageUploaderNeoPayload } from 'web-components'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
import { useUploadToObjectStorage } from '../hooks/useUploadToObjectStorage'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/products/new')({
|
|
||||||
component: AddProduct,
|
|
||||||
})
|
|
||||||
|
|
||||||
function AddProduct() {
|
|
||||||
const navigate = useNavigate()
|
|
||||||
|
|
||||||
const createProduct = trpc.superadmin.product.createProduct.useMutation()
|
|
||||||
const { data: regionsData } = trpc.superadmin.region.getRegions.useQuery()
|
|
||||||
const { refetch: refetchProducts } = trpc.superadmin.product.getProducts.useQuery(undefined, {
|
|
||||||
enabled: false,
|
|
||||||
})
|
|
||||||
const { upload, isUploading } = useUploadToObjectStorage()
|
|
||||||
|
|
||||||
const handleSubmit = async (values: any, variantImages: ImageUploaderNeoPayload[][], _deletedImageKeys?: string[]) => {
|
|
||||||
try {
|
|
||||||
// Creator/primary region: the picked region in single mode; the first
|
|
||||||
// region in all-regions mode (it gets the initial stock/prices).
|
|
||||||
const firstRegionId = regionsData?.regions?.[0]?.id
|
|
||||||
const primaryRegionId = values.availableInAllRegions
|
|
||||||
? firstRegionId
|
|
||||||
: values.regionId
|
|
||||||
const primaryStats: any[] = (values.regionStats ?? {})[String(primaryRegionId)] ?? []
|
|
||||||
|
|
||||||
for (const entry of primaryStats) {
|
|
||||||
const price = Number(entry?.price)
|
|
||||||
if (entry == null || !Number.isFinite(price) || price <= 0) {
|
|
||||||
window.alert('Please enter a valid price for every variant')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const seenSignatures = new Set<string>()
|
|
||||||
for (const variant of values.variants) {
|
|
||||||
const features = variant.features || []
|
|
||||||
const hasQuantity = features.some(
|
|
||||||
(a: any) => (a.featureName ?? '').trim().toLowerCase() === 'quantity'
|
|
||||||
)
|
|
||||||
if (!hasQuantity) {
|
|
||||||
window.alert('Every SKU must have a quantity feature')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const signature = features
|
|
||||||
.map((a: any) => `${(a.featureName ?? '').trim().toLowerCase()}::${a.featureValue.trim().toLowerCase()}`)
|
|
||||||
.sort()
|
|
||||||
.join('|')
|
|
||||||
if (seenSignatures.has(signature)) {
|
|
||||||
window.alert('Two variants have the same attributes')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
seenSignatures.add(signature)
|
|
||||||
}
|
|
||||||
|
|
||||||
const allBlobs: { blob: Blob, mimeType: string }[] = []
|
|
||||||
const imageCounts: number[] = variantImages.map((imgs) => imgs.length)
|
|
||||||
|
|
||||||
for (const imgs of variantImages) {
|
|
||||||
for (const img of imgs) {
|
|
||||||
const response = await fetch(img.url)
|
|
||||||
const blob = await response.blob()
|
|
||||||
allBlobs.push({ blob, mimeType: img.mimeType || 'image/jpeg' })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let allUploadUrls: string[] = []
|
|
||||||
if (allBlobs.length > 0) {
|
|
||||||
const result = await upload({ images: allBlobs, contextString: 'product_info' })
|
|
||||||
allUploadUrls = result.presignedUrls
|
|
||||||
}
|
|
||||||
|
|
||||||
let urlCursor = 0
|
|
||||||
const skus = values.variants.map((variant: any, vIndex: number) => {
|
|
||||||
const count = imageCounts[vIndex]
|
|
||||||
const variantUrls = allUploadUrls.slice(urlCursor, urlCursor + count)
|
|
||||||
urlCursor += count
|
|
||||||
const stats = primaryStats[vIndex] ?? {}
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: variant.name || null,
|
|
||||||
price: Number(stats.price) as number,
|
|
||||||
marketPrice: stats.marketPrice ?? undefined,
|
|
||||||
images: variantUrls,
|
|
||||||
isFlashAvailable: stats.isFlashAvailable || false,
|
|
||||||
flashPrice: stats.flashPrice ?? undefined,
|
|
||||||
isOffer: stats.isOffer || false,
|
|
||||||
isComboOnly: variant.isComboOnly || false,
|
|
||||||
isDeleted: variant.isDeleted || false,
|
|
||||||
isSuspended: stats.isSuspended || false,
|
|
||||||
features: variant.features.map((attr: any) => ({
|
|
||||||
featureName: attr.featureName,
|
|
||||||
featureValue: attr.featureValue,
|
|
||||||
})),
|
|
||||||
comboItems: (variant.comboItems || []).map((ci: any) => ({
|
|
||||||
skuId: ci.skuId,
|
|
||||||
})),
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
const storeIdsByRegion = Object.entries(values.storeIdsByRegion || {}).reduce(
|
|
||||||
(acc, [regionId, storeId]) => {
|
|
||||||
const sid = Number(storeId)
|
|
||||||
if (Number.isFinite(sid) && sid > 0) acc[Number(regionId)] = sid
|
|
||||||
return acc
|
|
||||||
},
|
|
||||||
{} as Record<number, number>
|
|
||||||
)
|
|
||||||
|
|
||||||
// Per-region overrides for every applicable region except the primary
|
|
||||||
// (whose values travel as the base SKU fields above).
|
|
||||||
const applicableRegionIds: number[] = values.availableInAllRegions
|
|
||||||
? (regionsData?.regions ?? []).map((r: any) => r.id)
|
|
||||||
: (primaryRegionId != null ? [primaryRegionId] : [])
|
|
||||||
const toBackendEntry = (entry: any) => ({
|
|
||||||
price: Number(entry.price),
|
|
||||||
marketPrice: entry.marketPrice ?? undefined,
|
|
||||||
flashPrice: entry.flashPrice ?? undefined,
|
|
||||||
isFlashAvailable: !!entry.isFlashAvailable,
|
|
||||||
isOffer: !!entry.isOffer,
|
|
||||||
isSuspended: !!entry.isSuspended,
|
|
||||||
isOutOfStock: !!entry.isOutOfStock,
|
|
||||||
})
|
|
||||||
const skusWithStats = skus.map((sku: any, vIndex: number) => {
|
|
||||||
const perRegion: Record<number, any> = {}
|
|
||||||
for (const rid of applicableRegionIds) {
|
|
||||||
if (rid === primaryRegionId) continue
|
|
||||||
const entry = ((values.regionStats ?? {})[String(rid)] ?? [])[vIndex]
|
|
||||||
if (entry) perRegion[rid] = toBackendEntry(entry)
|
|
||||||
}
|
|
||||||
return { ...sku, regionStats: Object.keys(perRegion).length > 0 ? perRegion : undefined }
|
|
||||||
})
|
|
||||||
|
|
||||||
await createProduct.mutateAsync({
|
|
||||||
name: values.name,
|
|
||||||
shortDescription: values.shortDescription || undefined,
|
|
||||||
longDescription: values.longDescription || undefined,
|
|
||||||
productType: values.productType,
|
|
||||||
incrementStep: 1,
|
|
||||||
skus: skusWithStats,
|
|
||||||
regionId: primaryRegionId,
|
|
||||||
availableInAllRegions: !!values.availableInAllRegions,
|
|
||||||
storeIdsByRegion,
|
|
||||||
})
|
|
||||||
|
|
||||||
await refetchProducts()
|
|
||||||
window.alert('Product created successfully!')
|
|
||||||
navigate({ to: '/products' })
|
|
||||||
} catch (error: any) {
|
|
||||||
window.alert(error.message || 'Failed to create product')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const initialValues = {
|
|
||||||
name: '',
|
|
||||||
shortDescription: '',
|
|
||||||
longDescription: '',
|
|
||||||
regionId: undefined as number | undefined,
|
|
||||||
availableInAllRegions: false,
|
|
||||||
storeIdsByRegion: {} as Record<number, number>,
|
|
||||||
storeId: 1,
|
|
||||||
productType: 'item' as const,
|
|
||||||
matchForAll: true,
|
|
||||||
regionStats: {} as Record<string, any[]>,
|
|
||||||
variants: [
|
|
||||||
{
|
|
||||||
id: undefined as number | undefined,
|
|
||||||
name: '',
|
|
||||||
price: undefined,
|
|
||||||
marketPrice: null,
|
|
||||||
isFlashAvailable: false,
|
|
||||||
flashPrice: null,
|
|
||||||
isOffer: false,
|
|
||||||
isComboOnly: false,
|
|
||||||
isDeleted: false,
|
|
||||||
isSuspended: false,
|
|
||||||
features: [{ featureName: 'quantity', featureValue: '' }],
|
|
||||||
comboItems: [],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div>
|
|
||||||
<MyText className="mb-6 block text-2xl font-bold text-gray-800">Add New Product</MyText>
|
|
||||||
<ProductForm
|
|
||||||
mode="create"
|
|
||||||
initialValues={initialValues}
|
|
||||||
onSubmit={handleSubmit}
|
|
||||||
isLoading={createProduct.isPending || isUploading}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,152 +0,0 @@
|
||||||
import { createFileRoute, Link, Outlet, useLocation, useNavigate } from '@tanstack/react-router'
|
|
||||||
import { useState } from 'react'
|
|
||||||
import { Package, Pencil, Plus } from 'lucide-react'
|
|
||||||
import { AppContainer, MyButton, p as MyText } from 'web-components'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
import { ProtectedRoute } from '../components/ProtectedRoute'
|
|
||||||
import { AppShell } from '../components/AppShell'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/products')({
|
|
||||||
component: () => (
|
|
||||||
<ProtectedRoute>
|
|
||||||
<AppShell>
|
|
||||||
<Products />
|
|
||||||
</AppShell>
|
|
||||||
</ProtectedRoute>
|
|
||||||
),
|
|
||||||
})
|
|
||||||
|
|
||||||
// This route is the layout for /products plus its children
|
|
||||||
// (/products/new and /products/$id/edit). Render the list only on the exact
|
|
||||||
// /products path; otherwise hand off to the child route.
|
|
||||||
function Products() {
|
|
||||||
const location = useLocation()
|
|
||||||
|
|
||||||
if (location.pathname !== '/products') {
|
|
||||||
return <Outlet />
|
|
||||||
}
|
|
||||||
|
|
||||||
return <ProductsList />
|
|
||||||
}
|
|
||||||
|
|
||||||
function ProductsList() {
|
|
||||||
const navigate = useNavigate()
|
|
||||||
const [activeTab, setActiveTab] = useState<number | 'global'>('global')
|
|
||||||
|
|
||||||
const { data, isLoading, error, refetch } = trpc.superadmin.product.getProducts.useQuery()
|
|
||||||
const { data: regionsData } = trpc.superadmin.region.getRegions.useQuery(undefined, { staleTime: Infinity })
|
|
||||||
|
|
||||||
const products = (data as any)?.products ?? []
|
|
||||||
const regions = (regionsData as any)?.regions ?? []
|
|
||||||
|
|
||||||
const globalProducts = products.filter((p: any) => p.availableInAllRegions === true)
|
|
||||||
const productsByRegion = (regionId: number) =>
|
|
||||||
products.filter((p: any) => !p.availableInAllRegions && p.regionId === regionId)
|
|
||||||
const visibleProducts = activeTab === 'global' ? globalProducts : productsByRegion(activeTab)
|
|
||||||
const countFor = (tab: number | 'global') =>
|
|
||||||
tab === 'global' ? globalProducts.length : productsByRegion(tab).length
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="bg-gray-50 p-4">
|
|
||||||
<div className="mb-6 flex items-center justify-between">
|
|
||||||
<div>
|
|
||||||
<MyText className="mb-1 block text-2xl font-bold text-gray-900">Products</MyText>
|
|
||||||
<MyText className="block text-gray-600">
|
|
||||||
Products with no region serve all regions.
|
|
||||||
</MyText>
|
|
||||||
</div>
|
|
||||||
<MyButton
|
|
||||||
onClick={() => navigate({ to: '/products/new' })}
|
|
||||||
className="flex items-center gap-2 rounded-lg bg-blue-600 px-4 py-2.5 text-white hover:bg-blue-700"
|
|
||||||
>
|
|
||||||
<Plus className="h-4 w-4" />
|
|
||||||
Add Product
|
|
||||||
</MyButton>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{isLoading && (
|
|
||||||
<MyText className="block py-8 text-center text-gray-500">Loading products...</MyText>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{error && (
|
|
||||||
<div className="flex flex-col items-center py-8">
|
|
||||||
<MyText className="mb-4 block text-red-600">Error loading products</MyText>
|
|
||||||
<MyButton
|
|
||||||
onClick={() => refetch()}
|
|
||||||
className="rounded-lg bg-blue-500 px-4 py-2 text-white"
|
|
||||||
>
|
|
||||||
Retry
|
|
||||||
</MyButton>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{!isLoading && !error && (
|
|
||||||
<div className="mb-5 flex gap-1 overflow-x-auto" data-testid="product-tabs">
|
|
||||||
<button
|
|
||||||
key="global"
|
|
||||||
type="button"
|
|
||||||
data-testid="product-tab-global"
|
|
||||||
onClick={() => setActiveTab('global')}
|
|
||||||
className={`shrink-0 rounded-full px-4 py-2 text-sm font-bold ${activeTab === 'global' ? 'bg-blue-600 text-white' : 'bg-white text-gray-600 border border-gray-200'}`}
|
|
||||||
>
|
|
||||||
Global ({countFor('global')})
|
|
||||||
</button>
|
|
||||||
{regions.map((region: any) => (
|
|
||||||
<button
|
|
||||||
key={region.id}
|
|
||||||
type="button"
|
|
||||||
data-testid={`product-tab-${region.id}`}
|
|
||||||
onClick={() => setActiveTab(region.id)}
|
|
||||||
className={`shrink-0 rounded-full px-4 py-2 text-sm font-bold ${activeTab === region.id ? 'bg-blue-600 text-white' : 'bg-white text-gray-600 border border-gray-200'}`}
|
|
||||||
>
|
|
||||||
{region.name} ({countFor(region.id)})
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{!isLoading && !error && visibleProducts.length === 0 && (
|
|
||||||
<div className="flex flex-col items-center rounded-xl border border-dashed border-gray-300 bg-white py-12">
|
|
||||||
<Package className="mb-3 h-8 w-8 text-gray-400" />
|
|
||||||
<MyText className="block text-gray-600">
|
|
||||||
{activeTab === 'global'
|
|
||||||
? 'No global products yet.'
|
|
||||||
: `No products in ${regions.find((r: any) => r.id === activeTab)?.name ?? 'this region'} yet.`}
|
|
||||||
</MyText>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="grid gap-4 sm:grid-cols-2" data-testid={`product-grid-${activeTab}`}>
|
|
||||||
{visibleProducts.map((product: any) => (
|
|
||||||
<div
|
|
||||||
key={product.id}
|
|
||||||
className="flex flex-col rounded-xl border border-gray-200 bg-white p-5 shadow-sm"
|
|
||||||
>
|
|
||||||
<MyText className="block truncate font-semibold text-gray-900">
|
|
||||||
{product.name}
|
|
||||||
</MyText>
|
|
||||||
<MyText className="mt-1 block text-sm text-gray-500">
|
|
||||||
{product.availableInAllRegions
|
|
||||||
? 'All regions'
|
|
||||||
: `Region #${product.regionId ?? '—'}`}
|
|
||||||
{' · '}
|
|
||||||
{(product.skus || []).length} variant{(product.skus || []).length === 1 ? '' : 's'}
|
|
||||||
</MyText>
|
|
||||||
<div className="mt-4 flex gap-2">
|
|
||||||
<Link
|
|
||||||
to="/products/$id/edit"
|
|
||||||
params={{ id: String(product.id) }}
|
|
||||||
className="flex flex-1 items-center justify-center gap-2 rounded-lg border border-gray-200 px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50"
|
|
||||||
>
|
|
||||||
<Pencil className="h-4 w-4" />
|
|
||||||
Edit
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -20,12 +20,12 @@ function EditRegion() {
|
||||||
>([])
|
>([])
|
||||||
const [hydrated, setHydrated] = useState(false)
|
const [hydrated, setHydrated] = useState(false)
|
||||||
|
|
||||||
const { data, isLoading, error } = trpc.superadmin.region.getRegionById.useQuery(
|
const { data, isLoading, error } = trpc.admin.region.getRegionById.useQuery(
|
||||||
{ id: regionId },
|
{ id: regionId },
|
||||||
{ enabled: Number.isFinite(regionId) }
|
{ enabled: Number.isFinite(regionId) }
|
||||||
)
|
)
|
||||||
|
|
||||||
const updateRegion = trpc.superadmin.region.updateRegion.useMutation({
|
const updateRegion = trpc.admin.region.updateRegion.useMutation({
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
navigate({ to: '/regions' })
|
navigate({ to: '/regions' })
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ function NewRegion() {
|
||||||
{ botToken: '', chatId: '' },
|
{ botToken: '', chatId: '' },
|
||||||
])
|
])
|
||||||
|
|
||||||
const createRegion = trpc.superadmin.region.createRegion.useMutation({
|
const createRegion = trpc.admin.region.createRegion.useMutation({
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
navigate({ to: '/regions' })
|
navigate({ to: '/regions' })
|
||||||
},
|
},
|
||||||
|
|
@ -116,7 +116,6 @@ function NewRegion() {
|
||||||
|
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<PInput
|
<PInput
|
||||||
id="region-name"
|
|
||||||
topLabel="Name"
|
topLabel="Name"
|
||||||
placeholder="e.g. Mahabubnagar Town"
|
placeholder="e.g. Mahabubnagar Town"
|
||||||
value={name}
|
value={name}
|
||||||
|
|
@ -126,7 +125,6 @@ function NewRegion() {
|
||||||
|
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
<PInput
|
<PInput
|
||||||
id="region-description"
|
|
||||||
topLabel="Description"
|
topLabel="Description"
|
||||||
placeholder="Optional description"
|
placeholder="Optional description"
|
||||||
value={description}
|
value={description}
|
||||||
|
|
@ -141,7 +139,6 @@ function NewRegion() {
|
||||||
Bounds (GeoJSON)
|
Bounds (GeoJSON)
|
||||||
</MyText>
|
</MyText>
|
||||||
<MyButton
|
<MyButton
|
||||||
id="add-bound-button"
|
|
||||||
onClick={addBound}
|
onClick={addBound}
|
||||||
className="flex items-center gap-1.5 rounded-lg border border-gray-200 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-50"
|
className="flex items-center gap-1.5 rounded-lg border border-gray-200 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-50"
|
||||||
>
|
>
|
||||||
|
|
@ -169,14 +166,12 @@ function NewRegion() {
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-2 grid grid-cols-2 gap-2">
|
<div className="mb-2 grid grid-cols-2 gap-2">
|
||||||
<PInput
|
<PInput
|
||||||
id={`bound-${index}-name`}
|
|
||||||
topLabel="Name (required)"
|
topLabel="Name (required)"
|
||||||
placeholder="e.g. Mbnr-1"
|
placeholder="e.g. Mbnr-1"
|
||||||
value={bound.name}
|
value={bound.name}
|
||||||
onChange={(e) => updateBound(index, 'name', e.target.value)}
|
onChange={(e) => updateBound(index, 'name', e.target.value)}
|
||||||
/>
|
/>
|
||||||
<PInput
|
<PInput
|
||||||
id={`bound-${index}-priority`}
|
|
||||||
topLabel="Priority"
|
topLabel="Priority"
|
||||||
placeholder="e.g. 1"
|
placeholder="e.g. 1"
|
||||||
value={String(bound.priority)}
|
value={String(bound.priority)}
|
||||||
|
|
@ -185,7 +180,6 @@ function NewRegion() {
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
<PInput
|
<PInput
|
||||||
id={`bound-${index}-description`}
|
|
||||||
topLabel="Description (required)"
|
topLabel="Description (required)"
|
||||||
placeholder="e.g. Town core coverage area"
|
placeholder="e.g. Town core coverage area"
|
||||||
value={bound.description}
|
value={bound.description}
|
||||||
|
|
@ -193,7 +187,6 @@ function NewRegion() {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<PInput
|
<PInput
|
||||||
id={`bound-${index}-geojson`}
|
|
||||||
placeholder='Paste GeoJSON, e.g. {"type":"Polygon","coordinates":[...]}'
|
placeholder='Paste GeoJSON, e.g. {"type":"Polygon","coordinates":[...]}'
|
||||||
value={bound.geojson}
|
value={bound.geojson}
|
||||||
multiline
|
multiline
|
||||||
|
|
@ -235,7 +228,6 @@ function NewRegion() {
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
<PInput
|
<PInput
|
||||||
id={`cred-${index}-bot-token`}
|
|
||||||
topLabel="Bot Token"
|
topLabel="Bot Token"
|
||||||
placeholder="e.g. 123456:ABC-DEF..."
|
placeholder="e.g. 123456:ABC-DEF..."
|
||||||
value={cred.botToken}
|
value={cred.botToken}
|
||||||
|
|
@ -243,7 +235,6 @@ function NewRegion() {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<PInput
|
<PInput
|
||||||
id={`cred-${index}-chat-id`}
|
|
||||||
topLabel="Chat ID"
|
topLabel="Chat ID"
|
||||||
placeholder="e.g. 5147760058 or -1001234567890"
|
placeholder="e.g. 5147760058 or -1001234567890"
|
||||||
value={cred.chatId}
|
value={cred.chatId}
|
||||||
|
|
@ -253,7 +244,6 @@ function NewRegion() {
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<MyButton
|
<MyButton
|
||||||
id="create-region-submit"
|
|
||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
disabled={createRegion.isPending}
|
disabled={createRegion.isPending}
|
||||||
fullWidth
|
fullWidth
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ function Regions() {
|
||||||
function RegionsList() {
|
function RegionsList() {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
|
|
||||||
const { data, isLoading, error, refetch } = trpc.superadmin.region.getRegions.useQuery()
|
const { data, isLoading, error, refetch } = trpc.admin.region.getRegions.useQuery()
|
||||||
|
|
||||||
const regions = data?.regions ?? []
|
const regions = data?.regions ?? []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ function SendAdminNotifications() {
|
||||||
const [text, setText] = useState('')
|
const [text, setText] = useState('')
|
||||||
const [imageUrl, setImageUrl] = useState('')
|
const [imageUrl, setImageUrl] = useState('')
|
||||||
|
|
||||||
const { mutate, isPending } = trpc.superadmin.staffUser.sendAdminNotification.useMutation({
|
const { mutate, isPending } = trpc.admin.staffUser.sendAdminNotification.useMutation({
|
||||||
onSuccess: (response) => {
|
onSuccess: (response) => {
|
||||||
window.alert(`Success\n\n${response.message}`)
|
window.alert(`Success\n\n${response.message}`)
|
||||||
setTitle('')
|
setTitle('')
|
||||||
|
|
|
||||||
|
|
@ -1,91 +0,0 @@
|
||||||
import { createFileRoute, useNavigate, useParams } from '@tanstack/react-router'
|
|
||||||
import { AppContainer, p as MyText } from 'web-components'
|
|
||||||
import StoreForm, { type StoreFormData } from '../components/StoreForm'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/stores/$id/edit')({
|
|
||||||
component: EditStore,
|
|
||||||
})
|
|
||||||
|
|
||||||
function EditStore() {
|
|
||||||
const navigate = useNavigate()
|
|
||||||
const { id } = useParams({ from: '/stores/$id/edit' })
|
|
||||||
|
|
||||||
const storeId = parseInt(id as string)
|
|
||||||
|
|
||||||
const { data: storeData, isLoading: isLoadingStore, refetch } = trpc.superadmin.store.getStoreById.useQuery(
|
|
||||||
{ id: storeId },
|
|
||||||
{ enabled: !!storeId }
|
|
||||||
)
|
|
||||||
|
|
||||||
const updateStoreMutation = trpc.superadmin.store.updateStore.useMutation()
|
|
||||||
|
|
||||||
const handleSubmit = (values: StoreFormData) => {
|
|
||||||
updateStoreMutation.mutate(
|
|
||||||
{
|
|
||||||
id: storeId,
|
|
||||||
name: values.name,
|
|
||||||
description: values.description || undefined,
|
|
||||||
owner: values.owner,
|
|
||||||
products: values.products,
|
|
||||||
regionId: values.availableInAllRegions ? null : (values.regionId ?? undefined),
|
|
||||||
availableInAllRegions: values.availableInAllRegions,
|
|
||||||
} as any,
|
|
||||||
{
|
|
||||||
onSuccess: (data) => {
|
|
||||||
refetch()
|
|
||||||
window.alert(`Success: ${data.message}`)
|
|
||||||
navigate({ to: '/stores' })
|
|
||||||
},
|
|
||||||
onError: (error: any) => {
|
|
||||||
window.alert(error.message || 'Failed to update store')
|
|
||||||
},
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isLoadingStore) {
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="flex flex-1 flex-col items-center justify-center">
|
|
||||||
<MyText>Loading store...</MyText>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const store = (storeData as any)?.store
|
|
||||||
if (!store) {
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="flex flex-1 flex-col items-center justify-center">
|
|
||||||
<MyText>Store not found</MyText>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const initialValues: StoreFormData = {
|
|
||||||
name: store.name,
|
|
||||||
description: store.description || '',
|
|
||||||
owner: store.owner?.id ?? store.owner,
|
|
||||||
products: [],
|
|
||||||
regionId: store.regionId ?? null,
|
|
||||||
availableInAllRegions: !!store.availableInAllRegions,
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div>
|
|
||||||
<MyText className="mb-6 block text-2xl font-bold text-gray-800">Edit Store</MyText>
|
|
||||||
<StoreForm
|
|
||||||
mode="edit"
|
|
||||||
initialValues={initialValues}
|
|
||||||
onSubmit={handleSubmit}
|
|
||||||
isLoading={updateStoreMutation.isPending}
|
|
||||||
storeId={storeId}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
import { createFileRoute, useNavigate } from '@tanstack/react-router'
|
|
||||||
import { AppContainer, p as MyText } from 'web-components'
|
|
||||||
import StoreForm, { type StoreFormData } from '../components/StoreForm'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/stores/new')({
|
|
||||||
component: AddStore,
|
|
||||||
})
|
|
||||||
|
|
||||||
function AddStore() {
|
|
||||||
const navigate = useNavigate()
|
|
||||||
|
|
||||||
const createStoreMutation = trpc.superadmin.store.createStore.useMutation()
|
|
||||||
const { refetch: refetchStores } = trpc.superadmin.store.getStores.useQuery(undefined, {
|
|
||||||
enabled: false,
|
|
||||||
})
|
|
||||||
|
|
||||||
const handleSubmit = (values: StoreFormData) => {
|
|
||||||
createStoreMutation.mutate(
|
|
||||||
{
|
|
||||||
name: values.name,
|
|
||||||
description: values.description || undefined,
|
|
||||||
products: values.products,
|
|
||||||
owner: values.owner,
|
|
||||||
regionId: values.availableInAllRegions ? null : (values.regionId ?? null),
|
|
||||||
availableInAllRegions: !!values.availableInAllRegions,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
onSuccess: async (data) => {
|
|
||||||
await refetchStores()
|
|
||||||
window.alert(`Success: ${data.message}`)
|
|
||||||
navigate({ to: '/stores' })
|
|
||||||
},
|
|
||||||
onError: (error: any) => {
|
|
||||||
window.alert(error.message || 'Failed to create store')
|
|
||||||
},
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div>
|
|
||||||
<MyText className="mb-6 block text-2xl font-bold text-gray-800">Add New Store</MyText>
|
|
||||||
<StoreForm
|
|
||||||
mode="create"
|
|
||||||
initialValues={{ name: '', description: '', owner: 0, products: [], regionId: null, availableInAllRegions: false }}
|
|
||||||
onSubmit={handleSubmit}
|
|
||||||
isLoading={createStoreMutation.isPending}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,150 +0,0 @@
|
||||||
import { createFileRoute, Link, Outlet, useLocation, useNavigate } from '@tanstack/react-router'
|
|
||||||
import { useState } from 'react'
|
|
||||||
import { Store, Pencil, Plus } from 'lucide-react'
|
|
||||||
import { AppContainer, MyButton, p as MyText } from 'web-components'
|
|
||||||
import { trpc } from '../lib/trpc-client'
|
|
||||||
import { ProtectedRoute } from '../components/ProtectedRoute'
|
|
||||||
import { AppShell } from '../components/AppShell'
|
|
||||||
|
|
||||||
export const Route = createFileRoute('/stores')({
|
|
||||||
component: () => (
|
|
||||||
<ProtectedRoute>
|
|
||||||
<AppShell>
|
|
||||||
<Stores />
|
|
||||||
</AppShell>
|
|
||||||
</ProtectedRoute>
|
|
||||||
),
|
|
||||||
})
|
|
||||||
|
|
||||||
// This route is the layout for /stores plus its children
|
|
||||||
// (/stores/new and /stores/$id/edit). Render the list only on the exact
|
|
||||||
// /stores path; otherwise hand off to the child route.
|
|
||||||
function Stores() {
|
|
||||||
const location = useLocation()
|
|
||||||
|
|
||||||
if (location.pathname !== '/stores') {
|
|
||||||
return <Outlet />
|
|
||||||
}
|
|
||||||
|
|
||||||
return <StoresList />
|
|
||||||
}
|
|
||||||
|
|
||||||
function StoresList() {
|
|
||||||
const navigate = useNavigate()
|
|
||||||
const [activeTab, setActiveTab] = useState<number | 'global'>('global')
|
|
||||||
|
|
||||||
const { data, isLoading, error, refetch } = trpc.superadmin.store.getStores.useQuery()
|
|
||||||
const { data: regionsData } = trpc.superadmin.region.getRegions.useQuery(undefined, { staleTime: Infinity })
|
|
||||||
|
|
||||||
const stores = (data as any)?.stores ?? []
|
|
||||||
const regions = (regionsData as any)?.regions ?? []
|
|
||||||
|
|
||||||
const globalStores = stores.filter((s: any) => s.availableInAllRegions === true)
|
|
||||||
const storesByRegion = (regionId: number) =>
|
|
||||||
stores.filter((s: any) => !s.availableInAllRegions && s.regionId === regionId)
|
|
||||||
const visibleStores = activeTab === 'global' ? globalStores : storesByRegion(activeTab)
|
|
||||||
const countFor = (tab: number | 'global') =>
|
|
||||||
tab === 'global' ? globalStores.length : storesByRegion(tab).length
|
|
||||||
|
|
||||||
return (
|
|
||||||
<AppContainer>
|
|
||||||
<div className="bg-gray-50 p-4">
|
|
||||||
<div className="mb-6 flex items-center justify-between">
|
|
||||||
<div>
|
|
||||||
<MyText className="mb-1 block text-2xl font-bold text-gray-900">Stores</MyText>
|
|
||||||
<MyText className="block text-gray-600">
|
|
||||||
Stores with no home region serve all regions.
|
|
||||||
</MyText>
|
|
||||||
</div>
|
|
||||||
<MyButton
|
|
||||||
onClick={() => navigate({ to: '/stores/new' })}
|
|
||||||
className="flex items-center gap-2 rounded-lg bg-blue-600 px-4 py-2.5 text-white hover:bg-blue-700"
|
|
||||||
>
|
|
||||||
<Plus className="h-4 w-4" />
|
|
||||||
Add Store
|
|
||||||
</MyButton>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{isLoading && (
|
|
||||||
<MyText className="block py-8 text-center text-gray-500">Loading stores...</MyText>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{error && (
|
|
||||||
<div className="flex flex-col items-center py-8">
|
|
||||||
<MyText className="mb-4 block text-red-600">Error loading stores</MyText>
|
|
||||||
<MyButton
|
|
||||||
onClick={() => refetch()}
|
|
||||||
className="rounded-lg bg-blue-500 px-4 py-2 text-white"
|
|
||||||
>
|
|
||||||
Retry
|
|
||||||
</MyButton>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{!isLoading && !error && (
|
|
||||||
<div className="mb-5 flex gap-1 overflow-x-auto" data-testid="store-tabs">
|
|
||||||
<button
|
|
||||||
key="global"
|
|
||||||
type="button"
|
|
||||||
data-testid="store-tab-global"
|
|
||||||
onClick={() => setActiveTab('global')}
|
|
||||||
className={`shrink-0 rounded-full px-4 py-2 text-sm font-bold ${activeTab === 'global' ? 'bg-blue-600 text-white' : 'bg-white text-gray-600 border border-gray-200'}`}
|
|
||||||
>
|
|
||||||
Global ({countFor('global')})
|
|
||||||
</button>
|
|
||||||
{regions.map((region: any) => (
|
|
||||||
<button
|
|
||||||
key={region.id}
|
|
||||||
type="button"
|
|
||||||
data-testid={`store-tab-${region.id}`}
|
|
||||||
onClick={() => setActiveTab(region.id)}
|
|
||||||
className={`shrink-0 rounded-full px-4 py-2 text-sm font-bold ${activeTab === region.id ? 'bg-blue-600 text-white' : 'bg-white text-gray-600 border border-gray-200'}`}
|
|
||||||
>
|
|
||||||
{region.name} ({countFor(region.id)})
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{!isLoading && !error && visibleStores.length === 0 && (
|
|
||||||
<div className="flex flex-col items-center rounded-xl border border-dashed border-gray-300 bg-white py-12">
|
|
||||||
<Store className="mb-3 h-8 w-8 text-gray-400" />
|
|
||||||
<MyText className="block text-gray-600">
|
|
||||||
{activeTab === 'global'
|
|
||||||
? 'No global stores yet.'
|
|
||||||
: `No stores in ${regions.find((r: any) => r.id === activeTab)?.name ?? 'this region'} yet.`}
|
|
||||||
</MyText>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="grid gap-4 sm:grid-cols-2" data-testid={`store-grid-${activeTab}`}>
|
|
||||||
{visibleStores.map((store: any) => (
|
|
||||||
<div
|
|
||||||
key={store.id}
|
|
||||||
className="flex flex-col rounded-xl border border-gray-200 bg-white p-5 shadow-sm"
|
|
||||||
>
|
|
||||||
<MyText className="block truncate font-semibold text-gray-900">
|
|
||||||
{store.name}
|
|
||||||
</MyText>
|
|
||||||
<MyText className="mt-1 block text-sm text-gray-500">
|
|
||||||
{store.availableInAllRegions ? 'All regions' : `Region #${store.regionId ?? '—'}`}
|
|
||||||
{' · '}
|
|
||||||
Owner: {store.owner?.name ?? `#${store.ownerId ?? store.owner}`}
|
|
||||||
</MyText>
|
|
||||||
<div className="mt-4 flex gap-2">
|
|
||||||
<Link
|
|
||||||
to="/stores/$id/edit"
|
|
||||||
params={{ id: String(store.id) }}
|
|
||||||
className="flex flex-1 items-center justify-center gap-2 rounded-lg border border-gray-200 px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50"
|
|
||||||
>
|
|
||||||
<Pencil className="h-4 w-4" />
|
|
||||||
Edit
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</AppContainer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -21,24 +21,14 @@ const RegionGate: React.FC<ReactParentComponent> = ({ children }) => {
|
||||||
const [attempt, setAttempt] = useState(0);
|
const [attempt, setAttempt] = useState(0);
|
||||||
const passedRef = useRef(false);
|
const passedRef = useRef(false);
|
||||||
const appState = useRef(AppState.currentState);
|
const appState = useRef(AppState.currentState);
|
||||||
// Set once the first detection completes: later re-runs refresh silently
|
|
||||||
// behind the settled screen instead of flashing the full loading view.
|
|
||||||
const settledRef = useRef(false);
|
|
||||||
const lastRunRef = useRef(0);
|
|
||||||
// True while the user is in OS Settings (via the primary action): the
|
|
||||||
// return re-check must bypass the flapping cooldown below.
|
|
||||||
const expectReturnRef = useRef(false);
|
|
||||||
|
|
||||||
const runDetection = async () => {
|
const runDetection = async () => {
|
||||||
if (passedRef.current) return;
|
if (passedRef.current) return;
|
||||||
lastRunRef.current = Date.now();
|
|
||||||
setDetecting(true);
|
setDetecting(true);
|
||||||
if (!settledRef.current) {
|
|
||||||
setDenied(false);
|
setDenied(false);
|
||||||
setServicesOff(false);
|
setServicesOff(false);
|
||||||
setDetectError(false);
|
setDetectError(false);
|
||||||
setCoords(null);
|
setCoords(null);
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
const { status } = await Location.requestForegroundPermissionsAsync();
|
const { status } = await Location.requestForegroundPermissionsAsync();
|
||||||
if (passedRef.current) return;
|
if (passedRef.current) return;
|
||||||
|
|
@ -58,10 +48,7 @@ const RegionGate: React.FC<ReactParentComponent> = ({ children }) => {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!passedRef.current) setDetectError(true);
|
if (!passedRef.current) setDetectError(true);
|
||||||
} finally {
|
} finally {
|
||||||
if (!passedRef.current) {
|
if (!passedRef.current) setDetecting(false);
|
||||||
setDetecting(false);
|
|
||||||
settledRef.current = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -70,17 +57,12 @@ const RegionGate: React.FC<ReactParentComponent> = ({ children }) => {
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [attempt]);
|
}, [attempt]);
|
||||||
|
|
||||||
// Re-check when returning from OS/app Settings. Cooldown guards against
|
// Re-check when returning from OS/app Settings.
|
||||||
// AppState flapping: a background re-run must never flash loading anyway
|
|
||||||
// (see settledRef), but there is no reason to spam the OS location stack.
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const sub = AppState.addEventListener('change', (next) => {
|
const sub = AppState.addEventListener('change', (next) => {
|
||||||
if (appState.current.match(/inactive|background/) && next === 'active') {
|
if (appState.current.match(/inactive|background/) && next === 'active') {
|
||||||
if (expectReturnRef.current || Date.now() - lastRunRef.current > 15000) {
|
|
||||||
setAttempt((a) => a + 1);
|
setAttempt((a) => a + 1);
|
||||||
}
|
}
|
||||||
expectReturnRef.current = false;
|
|
||||||
}
|
|
||||||
appState.current = next;
|
appState.current = next;
|
||||||
});
|
});
|
||||||
return () => sub.remove();
|
return () => sub.remove();
|
||||||
|
|
@ -122,7 +104,6 @@ const RegionGate: React.FC<ReactParentComponent> = ({ children }) => {
|
||||||
setAttempt((a) => a + 1);
|
setAttempt((a) => a + 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
expectReturnRef.current = true;
|
|
||||||
await Linking.openSettings();
|
await Linking.openSettings();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -131,7 +112,7 @@ const RegionGate: React.FC<ReactParentComponent> = ({ children }) => {
|
||||||
return <>{children}</>;
|
return <>{children}</>;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((detecting && !settledRef.current) || regionLoading || (!!coords && !resolved && !resolveFailed)) {
|
if (detecting || regionLoading || (!!coords && !resolved && !resolveFailed)) {
|
||||||
return (
|
return (
|
||||||
<View style={tw`flex-1 items-center justify-center bg-white`} testID="region-gate-loading">
|
<View style={tw`flex-1 items-center justify-center bg-white`} testID="region-gate-loading">
|
||||||
<ActivityIndicator size="large" />
|
<ActivityIndicator size="large" />
|
||||||
|
|
|
||||||
30
apps/user-ui/ios/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# OSX
|
||||||
|
#
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Xcode
|
||||||
|
#
|
||||||
|
build/
|
||||||
|
*.pbxuser
|
||||||
|
!default.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
!default.mode1v3
|
||||||
|
*.mode2v3
|
||||||
|
!default.mode2v3
|
||||||
|
*.perspectivev3
|
||||||
|
!default.perspectivev3
|
||||||
|
xcuserdata
|
||||||
|
*.xccheckout
|
||||||
|
*.moved-aside
|
||||||
|
DerivedData
|
||||||
|
*.hmap
|
||||||
|
*.ipa
|
||||||
|
*.xcuserstate
|
||||||
|
project.xcworkspace
|
||||||
|
.xcode.env.local
|
||||||
|
|
||||||
|
# Bundle artifacts
|
||||||
|
*.jsbundle
|
||||||
|
|
||||||
|
# CocoaPods
|
||||||
|
/Pods/
|
||||||
11
apps/user-ui/ios/.xcode.env
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
# This `.xcode.env` file is versioned and is used to source the environment
|
||||||
|
# used when running script phases inside Xcode.
|
||||||
|
# To customize your local environment, you can create an `.xcode.env.local`
|
||||||
|
# file that is not versioned.
|
||||||
|
|
||||||
|
# NODE_BINARY variable contains the PATH to the node executable.
|
||||||
|
#
|
||||||
|
# Customize the NODE_BINARY variable here.
|
||||||
|
# For example, to use nvm with brew, add the following line
|
||||||
|
# . "$(brew --prefix nvm)/nvm.sh" --no-use
|
||||||
|
export NODE_BINARY=$(command -v node)
|
||||||
575
apps/user-ui/ios/Freshyo.xcodeproj/project.pbxproj
Normal file
|
|
@ -0,0 +1,575 @@
|
||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 54;
|
||||||
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
|
||||||
|
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
|
||||||
|
4C78A53D099CA817B9739B5A /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = D49724E4731B77CE782B9D81 /* ExpoModulesProvider.swift */; };
|
||||||
|
60907876F4D8EEA1F7B4FB18 /* libPods-Freshyo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FD28BC75242BABD2349B3BF0 /* libPods-Freshyo.a */; };
|
||||||
|
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
|
||||||
|
C88CC235C178B281F2A44EF4 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 534BC232B69F114146E157C3 /* PrivacyInfo.xcprivacy */; };
|
||||||
|
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F11748412D0307B40044C1D9 /* AppDelegate.swift */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXFileReference section */
|
||||||
|
13B07F961A680F5B00A75B9A /* Freshyo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Freshyo.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Freshyo/Images.xcassets; sourceTree = "<group>"; };
|
||||||
|
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Freshyo/Info.plist; sourceTree = "<group>"; };
|
||||||
|
534BC232B69F114146E157C3 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = Freshyo/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
|
||||||
|
90A2C7B37415481C40F31038 /* Pods-Freshyo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Freshyo.debug.xcconfig"; path = "Target Support Files/Pods-Freshyo/Pods-Freshyo.debug.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = Freshyo/SplashScreen.storyboard; sourceTree = "<group>"; };
|
||||||
|
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
|
||||||
|
D49724E4731B77CE782B9D81 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-Freshyo/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
|
||||||
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
||||||
|
F11748412D0307B40044C1D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Freshyo/AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
|
F11748442D0722820044C1D9 /* Freshyo-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "Freshyo-Bridging-Header.h"; path = "Freshyo/Freshyo-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||||
|
F501ECEACD45392F1EB76A62 /* Pods-Freshyo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Freshyo.release.xcconfig"; path = "Target Support Files/Pods-Freshyo/Pods-Freshyo.release.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
FD28BC75242BABD2349B3BF0 /* libPods-Freshyo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Freshyo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
60907876F4D8EEA1F7B4FB18 /* libPods-Freshyo.a in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
13B07FAE1A68108700A75B9A /* Freshyo */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
F11748412D0307B40044C1D9 /* AppDelegate.swift */,
|
||||||
|
F11748442D0722820044C1D9 /* Freshyo-Bridging-Header.h */,
|
||||||
|
BB2F792B24A3F905000567C9 /* Supporting */,
|
||||||
|
13B07FB51A68108700A75B9A /* Images.xcassets */,
|
||||||
|
13B07FB61A68108700A75B9A /* Info.plist */,
|
||||||
|
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
|
||||||
|
534BC232B69F114146E157C3 /* PrivacyInfo.xcprivacy */,
|
||||||
|
);
|
||||||
|
name = Freshyo;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
|
||||||
|
FD28BC75242BABD2349B3BF0 /* libPods-Freshyo.a */,
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
570BE51F449CDB16EC670522 /* Pods */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
90A2C7B37415481C40F31038 /* Pods-Freshyo.debug.xcconfig */,
|
||||||
|
F501ECEACD45392F1EB76A62 /* Pods-Freshyo.release.xcconfig */,
|
||||||
|
);
|
||||||
|
name = Pods;
|
||||||
|
path = Pods;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
6CAC7DF4ED4CB261419E584F /* Freshyo */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
D49724E4731B77CE782B9D81 /* ExpoModulesProvider.swift */,
|
||||||
|
);
|
||||||
|
name = Freshyo;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
70CE9E847A5ED7F42C9FFF85 /* ExpoModulesProviders */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
6CAC7DF4ED4CB261419E584F /* Freshyo */,
|
||||||
|
);
|
||||||
|
name = ExpoModulesProviders;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
);
|
||||||
|
name = Libraries;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
83CBB9F61A601CBA00E9B192 = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
13B07FAE1A68108700A75B9A /* Freshyo */,
|
||||||
|
832341AE1AAA6A7D00B99B32 /* Libraries */,
|
||||||
|
83CBBA001A601CBA00E9B192 /* Products */,
|
||||||
|
2D16E6871FA4F8E400B85C8A /* Frameworks */,
|
||||||
|
570BE51F449CDB16EC670522 /* Pods */,
|
||||||
|
70CE9E847A5ED7F42C9FFF85 /* ExpoModulesProviders */,
|
||||||
|
);
|
||||||
|
indentWidth = 2;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
tabWidth = 2;
|
||||||
|
usesTabs = 0;
|
||||||
|
};
|
||||||
|
83CBBA001A601CBA00E9B192 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
13B07F961A680F5B00A75B9A /* Freshyo.app */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
BB2F792B24A3F905000567C9 /* Supporting */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
BB2F792C24A3F905000567C9 /* Expo.plist */,
|
||||||
|
);
|
||||||
|
name = Supporting;
|
||||||
|
path = Freshyo/Supporting;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
13B07F861A680F5B00A75B9A /* Freshyo */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Freshyo" */;
|
||||||
|
buildPhases = (
|
||||||
|
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
|
||||||
|
813C1667FB6B32CCB2853CAD /* [Expo] Configure project */,
|
||||||
|
13B07F871A680F5B00A75B9A /* Sources */,
|
||||||
|
13B07F8C1A680F5B00A75B9A /* Frameworks */,
|
||||||
|
13B07F8E1A680F5B00A75B9A /* Resources */,
|
||||||
|
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
|
||||||
|
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
|
||||||
|
486A62E19359383EEA1B9DFD /* [CP] Embed Pods Frameworks */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = Freshyo;
|
||||||
|
productName = Freshyo;
|
||||||
|
productReference = 13B07F961A680F5B00A75B9A /* Freshyo.app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
|
/* Begin PBXProject section */
|
||||||
|
83CBB9F71A601CBA00E9B192 /* Project object */ = {
|
||||||
|
isa = PBXProject;
|
||||||
|
attributes = {
|
||||||
|
LastUpgradeCheck = 1130;
|
||||||
|
TargetAttributes = {
|
||||||
|
13B07F861A680F5B00A75B9A = {
|
||||||
|
LastSwiftMigration = 1250;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Freshyo" */;
|
||||||
|
compatibilityVersion = "Xcode 3.2";
|
||||||
|
developmentRegion = en;
|
||||||
|
hasScannedForEncodings = 0;
|
||||||
|
knownRegions = (
|
||||||
|
en,
|
||||||
|
Base,
|
||||||
|
);
|
||||||
|
mainGroup = 83CBB9F61A601CBA00E9B192;
|
||||||
|
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
|
||||||
|
projectDirPath = "";
|
||||||
|
projectRoot = "";
|
||||||
|
targets = (
|
||||||
|
13B07F861A680F5B00A75B9A /* Freshyo */,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
|
13B07F8E1A680F5B00A75B9A /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
|
||||||
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
|
||||||
|
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
|
||||||
|
C88CC235C178B281F2A44EF4 /* PrivacyInfo.xcprivacy in Resources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
|
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
alwaysOutOfDate = 1;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "Bundle React Native code and images";
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios absolute | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n# Source .xcode.env.updates if it exists to allow\n# SKIP_BUNDLING to be unset if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.updates\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.updates\"\nfi\n# Source local changes to allow overrides\n# if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
|
||||||
|
};
|
||||||
|
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||||
|
"${PODS_ROOT}/Manifest.lock",
|
||||||
|
);
|
||||||
|
name = "[CP] Check Pods Manifest.lock";
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
"$(DERIVED_FILE_DIR)/Pods-Freshyo-checkManifestLockResult.txt",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
486A62E19359383EEA1B9DFD /* [CP] Embed Pods Frameworks */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-frameworks.sh",
|
||||||
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
|
||||||
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/razorpay-core-pod/Razorpay.framework/Razorpay",
|
||||||
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/razorpay-core-pod/RazorpayCore.framework/RazorpayCore",
|
||||||
|
"${PODS_XCFRAMEWORKS_BUILD_DIR}/razorpay-pod/RazorpayStandard.framework/RazorpayStandard",
|
||||||
|
);
|
||||||
|
name = "[CP] Embed Pods Frameworks";
|
||||||
|
outputPaths = (
|
||||||
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
|
||||||
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Razorpay.framework",
|
||||||
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RazorpayCore.framework",
|
||||||
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RazorpayStandard.framework",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-frameworks.sh\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-resources.sh",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/AppAuth/AppAuthCore_Privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXApplication/ExpoApplication_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/ExpoConstants_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXNotifications/ExpoNotifications_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/EXUpdates/EXUpdates.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoDevice/ExpoDevice_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoFileSystem/ExpoFileSystem_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ExpoSystemUI/ExpoSystemUI_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/GTMAppAuth/GTMAppAuth_Privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleSignIn/GoogleSignIn.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleUtilities/GoogleUtilities_Privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/PromisesObjC/FBLPromises_Privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/RNSVG/RNSVGFilters.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/ReachabilitySwift/ReachabilitySwift.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle",
|
||||||
|
"${PODS_CONFIGURATION_BUILD_DIR}/glog/glog_privacy.bundle",
|
||||||
|
);
|
||||||
|
name = "[CP] Copy Pods Resources";
|
||||||
|
outputPaths = (
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AppAuthCore_Privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoApplication_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoConstants_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoNotifications_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXUpdates.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoDevice_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoFileSystem_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoSystemUI_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMAppAuth_Privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GTMSessionFetcher_Core_Privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleSignIn.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleUtilities_Privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FBLPromises_Privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNSVGFilters.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ReachabilitySwift.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle",
|
||||||
|
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/glog_privacy.bundle",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Freshyo/Pods-Freshyo-resources.sh\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
813C1667FB6B32CCB2853CAD /* [Expo] Configure project */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
alwaysOutOfDate = 1;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "[Expo] Configure project";
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-Freshyo/expo-configure-project.sh\"\n";
|
||||||
|
};
|
||||||
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
13B07F871A680F5B00A75B9A /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */,
|
||||||
|
4C78A53D099CA817B9739B5A /* ExpoModulesProvider.swift in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
13B07F941A680F5B00A75B9A /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = 90A2C7B37415481C40F31038 /* Pods-Freshyo.debug.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CODE_SIGN_ENTITLEMENTS = Freshyo/Freshyo.entitlements;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
ENABLE_BITCODE = NO;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"FB_SONARKIT_ENABLED=1",
|
||||||
|
);
|
||||||
|
INFOPLIST_FILE = Freshyo/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 1.0;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"-ObjC",
|
||||||
|
"-lc++",
|
||||||
|
);
|
||||||
|
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.freshyotrial.app;
|
||||||
|
PRODUCT_NAME = Freshyo;
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "Freshyo/Freshyo-Bridging-Header.h";
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
13B07F951A680F5B00A75B9A /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = F501ECEACD45392F1EB76A62 /* Pods-Freshyo.release.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CODE_SIGN_ENTITLEMENTS = Freshyo/Freshyo.entitlements;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
INFOPLIST_FILE = Freshyo/Info.plist;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 1.0;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"-ObjC",
|
||||||
|
"-lc++",
|
||||||
|
);
|
||||||
|
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.freshyotrial.app;
|
||||||
|
PRODUCT_NAME = Freshyo;
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "Freshyo/Freshyo-Bridging-Header.h";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
83CBBA201A601CBA00E9B192 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
ENABLE_TESTABILITY = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"DEBUG=1",
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
/usr/lib/swift,
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
|
||||||
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
" ",
|
||||||
|
);
|
||||||
|
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
|
||||||
|
USE_HERMES = true;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
83CBBA211A601CBA00E9B192 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = YES;
|
||||||
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
/usr/lib/swift,
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
|
||||||
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
OTHER_LDFLAGS = (
|
||||||
|
"$(inherited)",
|
||||||
|
" ",
|
||||||
|
);
|
||||||
|
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
USE_HERMES = true;
|
||||||
|
VALIDATE_PRODUCT = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Freshyo" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
13B07F941A680F5B00A75B9A /* Debug */,
|
||||||
|
13B07F951A680F5B00A75B9A /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Freshyo" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
83CBBA201A601CBA00E9B192 /* Debug */,
|
||||||
|
83CBBA211A601CBA00E9B192 /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,88 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1130"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||||
|
BuildableName = "Freshyo.app"
|
||||||
|
BlueprintName = "Freshyo"
|
||||||
|
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
|
||||||
|
BuildableName = "FreshyoTests.xctest"
|
||||||
|
BlueprintName = "FreshyoTests"
|
||||||
|
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||||
|
BuildableName = "Freshyo.app"
|
||||||
|
BlueprintName = "Freshyo"
|
||||||
|
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
||||||
|
BuildableName = "Freshyo.app"
|
||||||
|
BlueprintName = "Freshyo"
|
||||||
|
ReferencedContainer = "container:Freshyo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
10
apps/user-ui/ios/Freshyo.xcworkspace/contents.xcworkspacedata
generated
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Workspace
|
||||||
|
version = "1.0">
|
||||||
|
<FileRef
|
||||||
|
location = "group:Freshyo.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
<FileRef
|
||||||
|
location = "group:Pods/Pods.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
</Workspace>
|
||||||
70
apps/user-ui/ios/Freshyo/AppDelegate.swift
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
import Expo
|
||||||
|
import React
|
||||||
|
import ReactAppDependencyProvider
|
||||||
|
|
||||||
|
@UIApplicationMain
|
||||||
|
public class AppDelegate: ExpoAppDelegate {
|
||||||
|
var window: UIWindow?
|
||||||
|
|
||||||
|
var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
|
||||||
|
var reactNativeFactory: RCTReactNativeFactory?
|
||||||
|
|
||||||
|
public override func application(
|
||||||
|
_ application: UIApplication,
|
||||||
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
||||||
|
) -> Bool {
|
||||||
|
let delegate = ReactNativeDelegate()
|
||||||
|
let factory = ExpoReactNativeFactory(delegate: delegate)
|
||||||
|
delegate.dependencyProvider = RCTAppDependencyProvider()
|
||||||
|
|
||||||
|
reactNativeDelegate = delegate
|
||||||
|
reactNativeFactory = factory
|
||||||
|
bindReactNativeFactory(factory)
|
||||||
|
|
||||||
|
#if os(iOS) || os(tvOS)
|
||||||
|
window = UIWindow(frame: UIScreen.main.bounds)
|
||||||
|
factory.startReactNative(
|
||||||
|
withModuleName: "main",
|
||||||
|
in: window,
|
||||||
|
launchOptions: launchOptions)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Linking API
|
||||||
|
public override func application(
|
||||||
|
_ app: UIApplication,
|
||||||
|
open url: URL,
|
||||||
|
options: [UIApplication.OpenURLOptionsKey: Any] = [:]
|
||||||
|
) -> Bool {
|
||||||
|
return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Universal Links
|
||||||
|
public override func application(
|
||||||
|
_ application: UIApplication,
|
||||||
|
continue userActivity: NSUserActivity,
|
||||||
|
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
|
||||||
|
) -> Bool {
|
||||||
|
let result = RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
|
||||||
|
return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
|
||||||
|
// Extension point for config-plugins
|
||||||
|
|
||||||
|
override func sourceURL(for bridge: RCTBridge) -> URL? {
|
||||||
|
// needed to return the correct URL for expo-dev-client.
|
||||||
|
bridge.bundleURL ?? bundleURL()
|
||||||
|
}
|
||||||
|
|
||||||
|
override func bundleURL() -> URL? {
|
||||||
|
#if DEBUG
|
||||||
|
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
|
||||||
|
#else
|
||||||
|
return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
3
apps/user-ui/ios/Freshyo/Freshyo-Bridging-Header.h
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
//
|
||||||
|
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||||
|
//
|
||||||
8
apps/user-ui/ios/Freshyo/Freshyo.entitlements
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>aps-environment</key>
|
||||||
|
<string>development</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
After Width: | Height: | Size: 336 KiB |
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"filename": "App-Icon-1024x1024@1x.png",
|
||||||
|
"idiom": "universal",
|
||||||
|
"platform": "ios",
|
||||||
|
"size": "1024x1024"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
apps/user-ui/ios/Freshyo/Images.xcassets/Contents.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"colors": [
|
||||||
|
{
|
||||||
|
"color": {
|
||||||
|
"components": {
|
||||||
|
"alpha": "1.000",
|
||||||
|
"blue": "1.00000000000000",
|
||||||
|
"green": "1.00000000000000",
|
||||||
|
"red": "1.00000000000000"
|
||||||
|
},
|
||||||
|
"color-space": "srgb"
|
||||||
|
},
|
||||||
|
"idiom": "universal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
23
apps/user-ui/ios/Freshyo/Images.xcassets/SplashScreenLogo.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"idiom": "universal",
|
||||||
|
"filename": "image.png",
|
||||||
|
"scale": "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom": "universal",
|
||||||
|
"filename": "image@2x.png",
|
||||||
|
"scale": "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom": "universal",
|
||||||
|
"filename": "image@3x.png",
|
||||||
|
"scale": "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "expo"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
apps/user-ui/ios/Freshyo/Images.xcassets/SplashScreenLogo.imageset/image.png
vendored
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
apps/user-ui/ios/Freshyo/Images.xcassets/SplashScreenLogo.imageset/image@2x.png
vendored
Normal file
|
After Width: | Height: | Size: 119 KiB |