This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { D1Database, DurableObjectNamespace, KVNamespace, Queue, R2Bucket, Socket, SocketAddress, SocketOptions } from '@cloudflare/workers-types' | |
| import { FileSystem, Path } from '@effect/platform' | |
| import type { PlatformError } from '@effect/platform/Error' | |
| import * as Context from 'effect/Context' | |
| import * as Effect from 'effect/Effect' | |
| import * as Layer from 'effect/Layer' | |
| import * as LogLevelE from 'effect/LogLevel' | |
| import * as Esbuild from 'esbuild' | |
| import { Log, LogLevel, Miniflare as MiniflareBase, type MiniflareOptions, type WorkerOptions } from 'miniflare' | |
| import { unstable_readConfig } from 'wrangler' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @category models | |
| * @since 1.0.0 | |
| */ | |
| export interface SqliteClient extends Client.Client { | |
| readonly [TypeId]: typeof TypeId | |
| readonly config: SqliteClientConfig | |
| /** Not supported in d1 */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { WorkerEntrypoint } from "cloudflare:workers" | |
| import type { D1Database, ExecutionContext, KVNamespace, R2Bucket } from "@cloudflare/workers-types" | |
| import { Context, Data, Effect, Layer, pipe } from "effect" | |
| interface Env { | |
| KV: KVNamespace | |
| D1: D1Database | |
| BUCKET: R2Bucket | |
| AUTH_SERVICE: Service<AuthServiceWorker> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class InternalServerError extends Schema.TaggedError<InternalServerError>()("InternalServerError", { | |
| message: Schema.string, | |
| stack: Schema.optional(Schema.string), | |
| }) { | |
| readonly code = 500 | |
| encode() { | |
| return Schema.encode(InternalServerError)(this) | |
| } | |
| decode() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Merchant | |
| Order | |
| Checkout -> PSP Gateway | |
| PSP Gateway | |
| Success -> Generate QRCode | |
| Failed -> Checkout Error | |
| Generate QRCode | |
| Scan -> Digital Wallet App | |
| Cancel -> Merchant | |
| Checkout Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Merchant | |
| Order | |
| Checkout -> PSP Gateway | |
| PSP Gateway | |
| Success -> Generate QRCode | |
| Failed -> Checkout Error | |
| Generate QRCode | |
| Scan -> Digital Wallet App | |
| Cancel -> Merchant | |
| Checkout Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Aspiration应用逻辑 | |
| 从主屏幕打开应用 -> 用户之前登录过吗 | |
| 注销流程 | |
| 用户之前登录过吗 | |
| 是 -> 设备身份验证设置完成吗 | |
| 否 -> 应用欢迎界面 | |
| 应用欢迎界面 | |
| 点击登录 -> 设备身份验证设置完成吗 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Aspiration应用逻辑 | |
| 从主屏幕打开应用 -> 用户之前登录过吗 | |
| 注销流程 | |
| 用户之前登录过吗 | |
| 是 -> 设备身份验证设置完成吗 | |
| 否 -> 应用欢迎界面 | |
| 应用欢迎界面 | |
| 点击登录 -> 设备身份验证设置完成吗 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Aspiration应用逻辑 | |
| 从主屏幕打开应用 -> 用户之前登录过吗 | |
| 注销流程 | |
| 用户之前登录过吗 | |
| 是 -> 设备身份验证设置完成吗 | |
| 否 -> 应用欢迎界面 | |
| 应用欢迎界面 | |
| 点击登录 -> 设备身份验证设置完成吗 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Aspiration应用逻辑 | |
| 从主屏幕打开应用 -> 用户之前登录过吗 | |
| 注销流程 | |
| 用户之前登录过吗 | |
| 是 -> 设备身份验证设置完成吗 | |
| 否 -> 应用欢迎界面 | |
| 应用欢迎界面 | |
| 点击登录 -> 设备身份验证设置完成吗 |
NewerOlder