@stacksjs/actions 0.70.23 → 0.70.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2gh7kgpc.js +3 -0
- package/dist/chunk-2kaj93p5.js +3 -0
- package/dist/chunk-2qchdrf9.js +3 -0
- package/dist/chunk-3086k7zk.js +184 -0
- package/dist/chunk-3beht8ja.js +130 -0
- package/dist/chunk-60qjz7zb.js +3 -0
- package/dist/chunk-67y94dzt.js +658 -0
- package/dist/chunk-6x1m5rkr.js +17 -0
- package/dist/chunk-7bpdkc40.js +714 -0
- package/dist/chunk-96b7fcmd.js +3 -0
- package/dist/chunk-aw6d8zr3.js +7 -0
- package/dist/chunk-c8qt2xst.js +3 -0
- package/dist/chunk-d4srk6ma.js +3 -0
- package/dist/chunk-e9tcbk71.js +1 -0
- package/dist/chunk-gt77jmb5.js +46 -0
- package/dist/chunk-h93n2j40.js +95 -0
- package/dist/chunk-jd1yzkq5.js +3 -0
- package/dist/chunk-kzhgexj4.js +3 -0
- package/dist/chunk-n1y0gpv6.js +3 -0
- package/dist/chunk-n2fd1d0m.js +3 -0
- package/dist/chunk-n2x7v39b.js +5 -0
- package/dist/chunk-rdajkt2s.js +88 -0
- package/dist/chunk-s735m9mg.js +1 -0
- package/dist/chunk-schcaf73.js +3 -0
- package/dist/chunk-tc935b45.js +93 -0
- package/dist/chunk-v0wnrnaa.js +7 -0
- package/dist/chunk-w418anbq.js +5 -0
- package/dist/chunk-wnrgcx3d.js +114 -0
- package/dist/chunk-wv5yb5wb.js +101 -0
- package/dist/chunk-x471rxrn.js +7 -0
- package/dist/chunk-xg9xscqz.js +1 -0
- package/dist/src/action.d.ts +60 -0
- package/dist/src/action.js +2 -0
- package/dist/src/actions.d.ts +2 -0
- package/dist/src/actions.js +2 -0
- package/dist/src/add.d.ts +6 -0
- package/dist/src/add.js +2 -0
- package/dist/src/ai/request-model-access.d.ts +1 -0
- package/dist/src/ai/request-model-access.js +2 -0
- package/dist/src/auth/client.d.ts +1 -0
- package/dist/src/auth/client.js +3 -0
- package/dist/src/auth/prune.d.ts +1 -0
- package/dist/src/auth/prune.js +2 -0
- package/dist/src/auth/setup.d.ts +1 -0
- package/dist/src/auth/setup.js +148 -0
- package/dist/src/auth/token.d.ts +1 -0
- package/dist/src/auth/token.js +2 -0
- package/dist/src/build/cli.d.ts +1 -0
- package/dist/src/build/cli.js +2 -0
- package/dist/src/build/component-libs.d.ts +1 -0
- package/dist/src/build/component-libs.js +2 -0
- package/dist/src/build/core.d.ts +1 -0
- package/dist/src/build/core.js +2 -0
- package/dist/src/build/desktop.d.ts +1 -0
- package/dist/src/build/desktop.js +2 -0
- package/dist/src/build/docs.d.ts +1 -0
- package/dist/src/build/docs.js +2 -0
- package/dist/src/build/server.d.ts +1 -0
- package/dist/src/build/server.js +2 -0
- package/dist/src/build/stacks.d.ts +1 -0
- package/dist/src/build/stacks.js +2 -0
- package/dist/src/build/views.d.ts +1 -0
- package/dist/src/build/views.js +2 -0
- package/dist/{build.d.ts → src/build.d.ts} +1 -2
- package/dist/src/build.js +2 -0
- package/dist/src/bump.d.ts +1 -0
- package/dist/src/bump.js +2 -0
- package/dist/src/cdn/invalidate-cache.d.ts +1 -0
- package/dist/src/cdn/invalidate-cache.js +1 -0
- package/dist/src/changelog.d.ts +1 -0
- package/dist/src/changelog.js +2 -0
- package/dist/src/check/ports.d.ts +1 -0
- package/dist/src/check/ports.js +2 -0
- package/dist/src/clean.d.ts +1 -0
- package/dist/src/clean.js +2 -0
- package/dist/{commit.d.ts → src/commit.d.ts} +1 -2
- package/dist/src/commit.js +2 -0
- package/dist/src/copy-types.d.ts +1 -0
- package/dist/src/copy-types.js +3 -0
- package/dist/src/database/seed.d.ts +1 -0
- package/dist/src/database/seed.js +2 -0
- package/dist/src/deploy/create-receipt-rule.d.ts +1 -0
- package/dist/src/deploy/create-receipt-rule.js +2 -0
- package/dist/src/deploy/index.d.ts +1 -0
- package/dist/src/deploy/index.js +307 -0
- package/dist/src/dev/api.d.ts +1 -0
- package/dist/src/dev/api.js +6 -0
- package/dist/src/dev/components.d.ts +1 -0
- package/dist/src/dev/components.js +2 -0
- package/dist/src/dev/dashboard-globals.d.ts +4 -0
- package/dist/src/dev/dashboard-globals.js +3 -0
- package/dist/src/dev/dashboard-utils.d.ts +126 -0
- package/dist/src/dev/dashboard-utils.js +2 -0
- package/dist/src/dev/dashboard.d.ts +12 -0
- package/dist/src/dev/dashboard.js +8 -0
- package/dist/src/dev/desktop.d.ts +1 -0
- package/dist/src/dev/desktop.js +2 -0
- package/dist/src/dev/docs.d.ts +1 -0
- package/dist/src/dev/docs.js +2 -0
- package/dist/src/dev/index.d.ts +10 -0
- package/dist/src/dev/index.js +2 -0
- package/dist/src/dev/system-tray.d.ts +1 -0
- package/dist/src/dev/system-tray.js +2 -0
- package/dist/src/dev/views.d.ts +1 -0
- package/dist/src/dev/views.js +2 -0
- package/dist/src/discover-packages.d.ts +18 -0
- package/dist/src/discover-packages.js +2 -0
- package/dist/src/domains/add.d.ts +1 -0
- package/dist/src/domains/add.js +2 -0
- package/dist/src/domains/purchase.d.ts +1 -0
- package/dist/src/domains/purchase.js +2 -0
- package/dist/src/domains/remove.d.ts +1 -0
- package/dist/src/domains/remove.js +2 -0
- package/dist/{examples.d.ts → src/examples.d.ts} +1 -2
- package/dist/src/examples.js +2 -0
- package/dist/src/find-projects.d.ts +1 -0
- package/dist/src/find-projects.js +2 -0
- package/dist/src/fresh.d.ts +1 -0
- package/dist/src/fresh.js +2 -0
- package/dist/src/generate/action-types.d.ts +1 -0
- package/dist/src/generate/action-types.js +8 -0
- package/dist/src/generate/component-meta.d.ts +1 -0
- package/dist/src/generate/component-meta.js +3 -0
- package/dist/src/generate/custom-cli-file.d.ts +1 -0
- package/dist/src/generate/custom-cli-file.js +4 -0
- package/dist/src/generate/env-files.d.ts +1 -0
- package/dist/src/generate/env-files.js +26 -0
- package/dist/src/generate/ide-helpers.d.ts +1 -0
- package/dist/src/generate/ide-helpers.js +3 -0
- package/dist/src/generate/index.d.ts +36 -0
- package/dist/src/generate/index.js +2 -0
- package/dist/src/generate/lib-entries.d.ts +1 -0
- package/dist/src/generate/lib-entries.js +3 -0
- package/dist/src/generate/pantry-file.d.ts +1 -0
- package/dist/src/generate/pantry-file.js +2 -0
- package/dist/src/generate/symlink-core.d.ts +1 -0
- package/dist/src/generate/symlink-core.js +2 -0
- package/dist/src/generate/types.d.ts +1 -0
- package/dist/src/generate/types.js +2 -0
- package/dist/src/generate/vscode-custom-data.d.ts +1 -0
- package/dist/src/generate/vscode-custom-data.js +3 -0
- package/dist/src/generate/web-types.d.ts +1 -0
- package/dist/src/generate/web-types.js +1 -0
- package/dist/src/helpers/component-meta.d.ts +26 -0
- package/dist/src/helpers/component-meta.js +2 -0
- package/dist/src/helpers/index.d.ts +4 -0
- package/dist/src/helpers/index.js +2 -0
- package/dist/{lib-entries.d.ts → src/helpers/lib-entries.d.ts} +9 -5
- package/dist/src/helpers/lib-entries.js +2 -0
- package/dist/src/helpers/package-json.d.ts +2 -0
- package/dist/src/helpers/package-json.js +43 -0
- package/dist/src/helpers/utils.d.ts +23 -0
- package/dist/src/helpers/utils.js +2 -0
- package/dist/{vscode-custom-data.d.ts → src/helpers/vscode-custom-data.d.ts} +1 -1
- package/dist/src/helpers/vscode-custom-data.js +2 -0
- package/dist/src/index.d.ts +42 -0
- package/dist/src/index.js +2 -0
- package/dist/src/key-generate.d.ts +1 -0
- package/dist/src/key-generate.js +2 -0
- package/dist/src/lint/fix.d.ts +1 -0
- package/dist/src/lint/fix.js +4 -0
- package/dist/src/lint/index.d.ts +1 -0
- package/dist/src/lint/index.js +3 -0
- package/dist/src/make-command.d.ts +10 -0
- package/dist/src/make-command.js +2 -0
- package/dist/src/make-job.d.ts +5 -0
- package/dist/src/make-job.js +2 -0
- package/dist/src/make-policy.d.ts +10 -0
- package/dist/src/make-policy.js +2 -0
- package/dist/src/make-resource.d.ts +10 -0
- package/dist/src/make-resource.js +2 -0
- package/dist/{make.d.ts → src/make.d.ts} +11 -9
- package/dist/src/make.js +2 -0
- package/dist/src/migrate/database.d.ts +1 -0
- package/dist/src/migrate/database.js +2 -0
- package/dist/src/migrate/fresh.d.ts +1 -0
- package/dist/src/migrate/fresh.js +2 -0
- package/dist/src/orm/base.d.ts +1 -0
- package/dist/src/orm/base.js +2 -0
- package/dist/src/orm/test.d.ts +1 -0
- package/dist/src/orm/test.js +1 -0
- package/dist/src/prepublish.d.ts +1 -0
- package/dist/src/prepublish.js +2 -0
- package/dist/src/queue/clear.d.ts +1 -0
- package/dist/src/queue/clear.js +2 -0
- package/dist/src/queue/failed.d.ts +1 -0
- package/dist/src/queue/failed.js +5 -0
- package/dist/src/queue/flush.d.ts +1 -0
- package/dist/src/queue/flush.js +3 -0
- package/dist/src/queue/inspect.d.ts +1 -0
- package/dist/src/queue/inspect.js +8 -0
- package/dist/src/queue/monitor.d.ts +1 -0
- package/dist/src/queue/monitor.js +7 -0
- package/dist/src/queue/retry.d.ts +1 -0
- package/dist/src/queue/retry.js +2 -0
- package/dist/src/queue/schedule-list.d.ts +1 -0
- package/dist/src/queue/schedule-list.js +5 -0
- package/dist/src/queue/schedule.d.ts +1 -0
- package/dist/src/queue/schedule.js +2 -0
- package/dist/src/queue/status.d.ts +1 -0
- package/dist/src/queue/status.js +5 -0
- package/dist/src/queue/table.d.ts +1 -0
- package/dist/src/queue/table.js +2 -0
- package/dist/src/queue/work.d.ts +1 -0
- package/dist/src/queue/work.js +2 -0
- package/dist/src/release.d.ts +1 -0
- package/dist/src/release.js +3 -0
- package/dist/src/route/list.d.ts +1 -0
- package/dist/src/route/list.js +3 -0
- package/dist/src/run-action.d.ts +2 -0
- package/dist/src/run-action.js +2 -0
- package/dist/src/saas/setup.d.ts +1 -0
- package/dist/src/saas/setup.js +2 -0
- package/dist/src/scaffold-crud.d.ts +25 -0
- package/dist/src/scaffold-crud.js +2 -0
- package/dist/src/schedule/run.d.ts +1 -0
- package/dist/src/schedule/run.js +2 -0
- package/dist/src/search/flush.d.ts +1 -0
- package/dist/src/search/flush.js +2 -0
- package/dist/src/search/import.d.ts +1 -0
- package/dist/src/search/import.js +2 -0
- package/dist/src/search/settings-list.d.ts +1 -0
- package/dist/src/search/settings-list.js +2 -0
- package/dist/src/search/settings.d.ts +1 -0
- package/dist/src/search/settings.js +2 -0
- package/dist/src/serve/api.d.ts +1 -0
- package/dist/src/serve/api.js +2 -0
- package/dist/src/setup/index.d.ts +1 -0
- package/dist/src/setup/index.js +2 -0
- package/dist/src/setup/ssl.d.ts +38 -0
- package/dist/src/setup/ssl.js +2 -0
- package/dist/src/stacks.d.ts +4 -0
- package/dist/src/stacks.js +2 -0
- package/dist/src/templates.d.ts +8 -0
- package/dist/src/templates.js +2 -0
- package/dist/src/test/feature.d.ts +1 -0
- package/dist/src/test/feature.js +2 -0
- package/dist/src/test/index.d.ts +1 -0
- package/dist/src/test/index.js +2 -0
- package/dist/src/test/ui.d.ts +1 -0
- package/dist/src/test/ui.js +2 -0
- package/dist/src/test/unit.d.ts +1 -0
- package/dist/src/test/unit.js +2 -0
- package/dist/src/typecheck.d.ts +1 -0
- package/dist/src/typecheck.js +2 -0
- package/dist/{types.d.ts → src/types.d.ts} +1 -2
- package/dist/src/types.js +2 -0
- package/dist/src/upgrade/binary.d.ts +1 -0
- package/dist/src/upgrade/binary.js +2 -0
- package/dist/src/upgrade/bun.d.ts +1 -0
- package/dist/src/upgrade/bun.js +1 -0
- package/dist/src/upgrade/dependencies.d.ts +1 -0
- package/dist/src/upgrade/dependencies.js +2 -0
- package/dist/src/upgrade/framework-utils.d.ts +102 -0
- package/dist/src/upgrade/framework-utils.js +2 -0
- package/dist/src/upgrade/framework.d.ts +1 -0
- package/dist/src/upgrade/framework.js +7 -0
- package/dist/src/upgrade/index.d.ts +1 -0
- package/dist/src/upgrade/index.js +2 -0
- package/dist/src/upgrade/shell.d.ts +1 -0
- package/dist/src/upgrade/shell.js +5 -0
- package/dist/src/upgrade.d.ts +7 -0
- package/dist/src/upgrade.js +2 -0
- package/package.json +39 -23
- package/dist/action-types.d.ts +0 -9
- package/dist/action.d.ts +0 -64
- package/dist/actions.d.ts +0 -2
- package/dist/add.d.ts +0 -5
- package/dist/add.js +0 -33
- package/dist/api.d.ts +0 -1
- package/dist/binary.d.ts +0 -2
- package/dist/build/component-libs.js +0 -9
- package/dist/build/core.js +0 -23
- package/dist/build/stacks.js +0 -8
- package/dist/build.js +0 -108
- package/dist/bump.d.ts +0 -2
- package/dist/bump.js +0 -17
- package/dist/changelog.d.ts +0 -2
- package/dist/changelog.js +0 -17
- package/dist/chunk-2dvnt46s.js +0 -7657
- package/dist/chunk-494jp8d5.js +0 -54
- package/dist/chunk-4axj3j8y.js +0 -34
- package/dist/chunk-56ar3gp7.js +0 -3823
- package/dist/chunk-76zhb40c.js +0 -92
- package/dist/chunk-7s5qcjkt.js +0 -105
- package/dist/chunk-9v6qtbez.js +0 -45
- package/dist/chunk-a13x0e43.js +0 -1180
- package/dist/chunk-a7k3cdby.js +0 -2266
- package/dist/chunk-b5g5w1hh.js +0 -1482
- package/dist/chunk-bf8bq8pc.js +0 -205
- package/dist/chunk-ccnf3w1b.js +0 -2228
- package/dist/chunk-dvkgakrr.js +0 -1283
- package/dist/chunk-frw3va9v.js +0 -69
- package/dist/chunk-hvfeg6n6.js +0 -179248
- package/dist/chunk-mdj7x1vs.js +0 -790
- package/dist/chunk-mdqphqep.js +0 -438
- package/dist/chunk-mmskr8ar.js +0 -212
- package/dist/chunk-nrr524a7.js +0 -658
- package/dist/chunk-p0c688mg.js +0 -729
- package/dist/chunk-pacq2bz6.js +0 -902
- package/dist/chunk-psa9yf21.js +0 -72
- package/dist/chunk-q81mf99q.js +0 -169
- package/dist/chunk-q9dmga3k.js +0 -11
- package/dist/chunk-qhh0v93n.js +0 -73
- package/dist/chunk-qkm8e752.js +0 -51
- package/dist/chunk-saqpg5nd.js +0 -118
- package/dist/chunk-t5em30ak.js +0 -379
- package/dist/chunk-veja9rez.js +0 -5764
- package/dist/chunk-w4bfpxhm.js +0 -311
- package/dist/chunk-w6fdq4hk.js +0 -14425
- package/dist/chunk-wkwtsvym.js +0 -477
- package/dist/chunk-xgsmf4cy.js +0 -410
- package/dist/chunk-ykb33tkv.js +0 -177
- package/dist/chunk-ze46550n.js +0 -0
- package/dist/chunk-zzerxbrm.js +0 -107
- package/dist/clean.js +0 -6
- package/dist/commit.js +0 -22
- package/dist/component-meta.d.ts +0 -15
- package/dist/components.d.ts +0 -3
- package/dist/copy-types.d.ts +0 -1
- package/dist/copy-types.js +0 -14
- package/dist/core.d.ts +0 -1
- package/dist/create-receipt-rule.d.ts +0 -4
- package/dist/database/seed.js +0 -30
- package/dist/database.d.ts +0 -2
- package/dist/deploy/index.js +0 -48
- package/dist/dev/components.js +0 -11
- package/dist/dev/docs.js +0 -7
- package/dist/dev/index.js +0 -58
- package/dist/env-files.d.ts +0 -9
- package/dist/examples.js +0 -46
- package/dist/feature.d.ts +0 -2
- package/dist/find-projects.d.ts +0 -1
- package/dist/fix.d.ts +0 -1
- package/dist/flush.d.ts +0 -2
- package/dist/fresh.d.ts +0 -1
- package/dist/fresh.js +0 -21
- package/dist/generate/component-meta.js +0 -17
- package/dist/generate/ide-helpers.js +0 -18
- package/dist/generate/index.js +0 -216
- package/dist/generate/lib-entries.js +0 -30
- package/dist/generate/vscode-custom-data.js +0 -17
- package/dist/helpers/component-meta.js +0 -204227
- package/dist/helpers/lib-entries.js +0 -122
- package/dist/helpers/package-json.js +0 -96
- package/dist/helpers/utils.js +0 -76
- package/dist/helpers/vscode-custom-data.js +0 -43
- package/dist/import.d.ts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -172
- package/dist/key-generate.js +0 -15
- package/dist/lint/fix.js +0 -18
- package/dist/lint/index.js +0 -5
- package/dist/list.d.ts +0 -1
- package/dist/make.js +0 -349
- package/dist/package-json.d.ts +0 -92
- package/dist/pkgx-file.d.ts +0 -8
- package/dist/ports.d.ts +0 -2
- package/dist/prepublish.d.ts +0 -1
- package/dist/prepublish.js +0 -17
- package/dist/purchase.d.ts +0 -6
- package/dist/release.js +0 -49
- package/dist/remove.d.ts +0 -6
- package/dist/request-model-access.d.ts +0 -1
- package/dist/run.d.ts +0 -1
- package/dist/settings-list.d.ts +0 -2
- package/dist/settings.d.ts +0 -1
- package/dist/setup.d.ts +0 -1
- package/dist/shell.d.ts +0 -2
- package/dist/table.d.ts +0 -1
- package/dist/test/feature.js +0 -14
- package/dist/test/index.js +0 -14
- package/dist/test/ui.js +0 -6
- package/dist/test/unit.js +0 -14
- package/dist/typecheck.js +0 -6
- package/dist/types.js +0 -23
- package/dist/unit.d.ts +0 -2
- package/dist/upgrade/dependencies.js +0 -8
- package/dist/upgrade/index.js +0 -22
- package/dist/upgrade.d.ts +0 -5
- package/dist/upgrade.js +0 -50
- package/dist/utils.d.ts +0 -75
- package/dist/work.d.ts +0 -3
- /package/dist/{upgrade/framework.js → chunk-cdk2r2jd.js} +0 -0
package/dist/chunk-xgsmf4cy.js
DELETED
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
db
|
|
3
|
-
} from "./chunk-hvfeg6n6.js";
|
|
4
|
-
import {
|
|
5
|
-
customValidate,
|
|
6
|
-
isObjectNotEmpty,
|
|
7
|
-
validateField
|
|
8
|
-
} from "./chunk-2dvnt46s.js";
|
|
9
|
-
import {
|
|
10
|
-
kebabCase,
|
|
11
|
-
pascalCase
|
|
12
|
-
} from "./chunk-wkwtsvym.js";
|
|
13
|
-
import {
|
|
14
|
-
__require,
|
|
15
|
-
__toESM
|
|
16
|
-
} from "./chunk-9v6qtbez.js";
|
|
17
|
-
|
|
18
|
-
// ../router/src/router.ts
|
|
19
|
-
import { handleError as handleError2 } from "@stacksjs/error-handling";
|
|
20
|
-
import { log as log2 } from "@stacksjs/logging";
|
|
21
|
-
import { path as p } from "@stacksjs/path";
|
|
22
|
-
import { fs as fs2 } from "@stacksjs/storage";
|
|
23
|
-
|
|
24
|
-
// ../router/src/middleware.ts
|
|
25
|
-
import { userMiddlewarePath } from "@stacksjs/path";
|
|
26
|
-
// ../router/src/request.ts
|
|
27
|
-
class Request {
|
|
28
|
-
query = {};
|
|
29
|
-
params = {};
|
|
30
|
-
headers = {};
|
|
31
|
-
addQuery(url) {
|
|
32
|
-
this.query = Object.fromEntries(url.searchParams);
|
|
33
|
-
}
|
|
34
|
-
addBodies(params) {
|
|
35
|
-
this.query = params;
|
|
36
|
-
}
|
|
37
|
-
addParam(param) {
|
|
38
|
-
this.params = param;
|
|
39
|
-
}
|
|
40
|
-
addHeaders(headerParams) {
|
|
41
|
-
this.headers = headerParams;
|
|
42
|
-
}
|
|
43
|
-
get(element, defaultValue) {
|
|
44
|
-
return this.query[typeof element] || defaultValue;
|
|
45
|
-
}
|
|
46
|
-
all() {
|
|
47
|
-
return this.query;
|
|
48
|
-
}
|
|
49
|
-
async validate(attributes) {
|
|
50
|
-
if (attributes === undefined || attributes === null) {
|
|
51
|
-
await validateField("Release", this.all());
|
|
52
|
-
} else {
|
|
53
|
-
await customValidate(attributes, this.all());
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
has(element) {
|
|
57
|
-
return element in this.query;
|
|
58
|
-
}
|
|
59
|
-
isEmpty() {
|
|
60
|
-
return Object.keys(this.query).length === 0;
|
|
61
|
-
}
|
|
62
|
-
extractParamsFromRoute(routePattern, pathname) {
|
|
63
|
-
const pattern = new RegExp(`^${routePattern.replace(/:(\w+)/g, (match2, paramName) => `(?<${paramName}>\\w+)`)}$`);
|
|
64
|
-
const match = pattern.exec(pathname);
|
|
65
|
-
if (match?.groups)
|
|
66
|
-
this.params = match.groups;
|
|
67
|
-
}
|
|
68
|
-
header(headerParam) {
|
|
69
|
-
return this.headers.get(headerParam);
|
|
70
|
-
}
|
|
71
|
-
getHeaders() {
|
|
72
|
-
return this.headers;
|
|
73
|
-
}
|
|
74
|
-
Header(headerParam) {
|
|
75
|
-
return this.headers.get(headerParam);
|
|
76
|
-
}
|
|
77
|
-
getParam(key) {
|
|
78
|
-
return this.params[key];
|
|
79
|
-
}
|
|
80
|
-
route(key) {
|
|
81
|
-
return this.getParam(key);
|
|
82
|
-
}
|
|
83
|
-
bearerToken() {
|
|
84
|
-
const authorizationHeader = this.headers.get("authorization");
|
|
85
|
-
if (authorizationHeader?.startsWith("Bearer ")) {
|
|
86
|
-
return authorizationHeader.substring(7);
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
getParams() {
|
|
91
|
-
return this.params;
|
|
92
|
-
}
|
|
93
|
-
getParamAsInt(key) {
|
|
94
|
-
const value = this.getParam(key);
|
|
95
|
-
return value ? Number.parseInt(value.toString()) : null;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
var request = new Request;
|
|
99
|
-
// ../router/src/response.ts
|
|
100
|
-
class Response2 {
|
|
101
|
-
json(data, statusCode = 200) {
|
|
102
|
-
return {
|
|
103
|
-
status: statusCode,
|
|
104
|
-
headers: { "Content-Type": "application/json" },
|
|
105
|
-
body: JSON.stringify(data)
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
success(data) {
|
|
109
|
-
return this.json(data, 200);
|
|
110
|
-
}
|
|
111
|
-
created(data) {
|
|
112
|
-
return this.json(data, 201);
|
|
113
|
-
}
|
|
114
|
-
noContent() {
|
|
115
|
-
return {
|
|
116
|
-
status: 204,
|
|
117
|
-
headers: { "Content-Type": "application/json" },
|
|
118
|
-
body: ""
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
error(message, statusCode = 500) {
|
|
122
|
-
return this.json({ error: message }, statusCode);
|
|
123
|
-
}
|
|
124
|
-
forbidden(message) {
|
|
125
|
-
return this.error(message, 403);
|
|
126
|
-
}
|
|
127
|
-
unauthorized(message) {
|
|
128
|
-
return this.error(message, 401);
|
|
129
|
-
}
|
|
130
|
-
notFound(message) {
|
|
131
|
-
return this.error(message, 404);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
var response = new Response2;
|
|
135
|
-
// ../router/src/server.ts
|
|
136
|
-
import { handleError } from "@stacksjs/error-handling";
|
|
137
|
-
import { log } from "@stacksjs/logging";
|
|
138
|
-
import { extname, path } from "@stacksjs/path";
|
|
139
|
-
import { fs, globSync } from "@stacksjs/storage";
|
|
140
|
-
// ../router/src/static.ts
|
|
141
|
-
class StaticRouteManager {
|
|
142
|
-
staticRoutes = {};
|
|
143
|
-
addHtmlFile(uri, htmlFile) {
|
|
144
|
-
const normalizedUri = uri.startsWith("/") ? uri : `/${uri}`;
|
|
145
|
-
this.staticRoutes[normalizedUri] = htmlFile;
|
|
146
|
-
}
|
|
147
|
-
async getStaticConfig() {
|
|
148
|
-
await route.importRoutes();
|
|
149
|
-
return this.staticRoutes;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
var staticRoute = new StaticRouteManager;
|
|
153
|
-
// ../router/src/utils.ts
|
|
154
|
-
import { ok } from "@stacksjs/error-handling";
|
|
155
|
-
import { path as path2 } from "@stacksjs/path";
|
|
156
|
-
async function findRequestInstance(requestInstance) {
|
|
157
|
-
const frameworkDirectory = path2.storagePath("framework/requests");
|
|
158
|
-
const filePath = path2.join(frameworkDirectory, `${requestInstance}.ts`);
|
|
159
|
-
const reqInstance = await import(filePath);
|
|
160
|
-
return reqInstance.request;
|
|
161
|
-
}
|
|
162
|
-
async function extractDefaultRequest() {
|
|
163
|
-
const requestPath = path2.frameworkPath(`core/router/src/request.ts`);
|
|
164
|
-
const requestInstance = await import(requestPath);
|
|
165
|
-
return requestInstance.request;
|
|
166
|
-
}
|
|
167
|
-
// ../router/src/router.ts
|
|
168
|
-
class Router {
|
|
169
|
-
routes = [];
|
|
170
|
-
path = "";
|
|
171
|
-
addRoute(method, uri, callback, statusCode) {
|
|
172
|
-
const name = uri.replace(/\//g, ".").replace(/:/g, "");
|
|
173
|
-
const pattern = new RegExp(`^${uri.replace(/:[a-z]+/gi, (_match) => {
|
|
174
|
-
return "([a-zA-Z0-9-]+)";
|
|
175
|
-
})}$`);
|
|
176
|
-
log2.debug(`Adding route: ${method} ${uri} with name ${name}`);
|
|
177
|
-
this.routes.push({
|
|
178
|
-
name,
|
|
179
|
-
method,
|
|
180
|
-
url: uri,
|
|
181
|
-
uri,
|
|
182
|
-
callback,
|
|
183
|
-
pattern,
|
|
184
|
-
statusCode,
|
|
185
|
-
paramNames: []
|
|
186
|
-
});
|
|
187
|
-
return this;
|
|
188
|
-
}
|
|
189
|
-
get(path3, callback) {
|
|
190
|
-
this.path = this.normalizePath(path3);
|
|
191
|
-
log2.debug(`Normalized Path: ${this.path}`);
|
|
192
|
-
const uri = this.prepareUri(this.path);
|
|
193
|
-
log2.debug(`Prepared URI: ${uri}`);
|
|
194
|
-
return this.addRoute("GET", uri, callback, 200);
|
|
195
|
-
}
|
|
196
|
-
async email(path3) {
|
|
197
|
-
path3 = pascalCase(path3);
|
|
198
|
-
const emailModule = (await import(p.userNotificationsPath(path3))).default;
|
|
199
|
-
const callback = emailModule.handle;
|
|
200
|
-
const uri = this.prepareUri(path3);
|
|
201
|
-
this.addRoute("GET", uri, callback, 200);
|
|
202
|
-
return this;
|
|
203
|
-
}
|
|
204
|
-
async health() {
|
|
205
|
-
let healthPath = p.userActionsPath("HealthAction");
|
|
206
|
-
if (!fs2.existsSync(healthPath))
|
|
207
|
-
healthPath = p.storagePath("framework/defaults/actions/HealthAction");
|
|
208
|
-
const healthModule = (await import(healthPath)).default;
|
|
209
|
-
const callback = healthModule.handle;
|
|
210
|
-
const path3 = healthModule.path ?? `/health`;
|
|
211
|
-
this.addRoute("GET", path3, callback, 200);
|
|
212
|
-
return this;
|
|
213
|
-
}
|
|
214
|
-
async job(path3) {
|
|
215
|
-
path3 = pascalCase(path3);
|
|
216
|
-
const job = (await import(p.userJobsPath(`${path3}.ts`))).default;
|
|
217
|
-
if (!job.handle) {
|
|
218
|
-
handleError2(`Job at path ${path3} does not have a handle method`);
|
|
219
|
-
return this;
|
|
220
|
-
}
|
|
221
|
-
return this.addRoute("GET", this.prepareUri(path3), job.handle, 200);
|
|
222
|
-
}
|
|
223
|
-
async action(path3) {
|
|
224
|
-
if (!path3)
|
|
225
|
-
return this;
|
|
226
|
-
if (path3?.endsWith(".ts")) {
|
|
227
|
-
const action = (await import(p.userActionsPath(path3))).default;
|
|
228
|
-
path3 = action.path ?? kebabCase(path3);
|
|
229
|
-
return this.addRoute(action.method ?? "GET", path3, action.handle, 200);
|
|
230
|
-
}
|
|
231
|
-
path3 = pascalCase(path3);
|
|
232
|
-
try {
|
|
233
|
-
const action = (await import(p.userActionsPath(path3))).default;
|
|
234
|
-
return this.addRoute(action.method ?? "GET", this.prepareUri(path3), action.handle, 200);
|
|
235
|
-
} catch (error) {
|
|
236
|
-
handleError2(`Could not find Action for path: ${path3}`, error);
|
|
237
|
-
return this;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
post(path3, callback) {
|
|
241
|
-
this.path = this.normalizePath(path3);
|
|
242
|
-
const uri = this.prepareUri(this.path);
|
|
243
|
-
return this.addRoute("POST", uri, callback, 201);
|
|
244
|
-
}
|
|
245
|
-
view(path3, htmlFile) {
|
|
246
|
-
this.path = this.normalizePath(path3);
|
|
247
|
-
const uri = this.prepareUri(this.path);
|
|
248
|
-
staticRoute.addHtmlFile(uri, htmlFile);
|
|
249
|
-
return this.addRoute("GET", uri, async () => htmlFile, 200);
|
|
250
|
-
}
|
|
251
|
-
getStaticConfig() {
|
|
252
|
-
return staticRoute.getStaticConfig();
|
|
253
|
-
}
|
|
254
|
-
redirect(path3, callback, _status) {
|
|
255
|
-
return this.addRoute("GET", path3, callback, 302);
|
|
256
|
-
}
|
|
257
|
-
delete(path3, callback) {
|
|
258
|
-
return this.addRoute("DELETE", this.prepareUri(path3), callback, 204);
|
|
259
|
-
}
|
|
260
|
-
patch(path3, callback) {
|
|
261
|
-
this.path = this.normalizePath(path3);
|
|
262
|
-
log2.debug(`Normalized Path: ${this.path}`);
|
|
263
|
-
const uri = this.prepareUri(this.path);
|
|
264
|
-
log2.debug(`Prepared URI: ${uri}`);
|
|
265
|
-
return this.addRoute("PATCH", uri, callback, 202);
|
|
266
|
-
}
|
|
267
|
-
put(path3, callback) {
|
|
268
|
-
this.path = this.normalizePath(path3);
|
|
269
|
-
const uri = this.prepareUri(this.path);
|
|
270
|
-
return this.addRoute("PUT", uri, callback, 202);
|
|
271
|
-
}
|
|
272
|
-
group(options, callback) {
|
|
273
|
-
if (typeof options === "string")
|
|
274
|
-
options = options.startsWith("/") ? options.slice(1) : options;
|
|
275
|
-
let cb;
|
|
276
|
-
if (typeof options === "function") {
|
|
277
|
-
cb = options;
|
|
278
|
-
options = {};
|
|
279
|
-
}
|
|
280
|
-
if (!callback)
|
|
281
|
-
throw new Error("Missing callback function for your route group.");
|
|
282
|
-
cb = callback;
|
|
283
|
-
const { middleware: middleware2 = [] } = options;
|
|
284
|
-
const originalRoutes = this.routes;
|
|
285
|
-
this.routes = [];
|
|
286
|
-
cb();
|
|
287
|
-
if (typeof options === "object") {
|
|
288
|
-
this.routes.forEach((r) => {
|
|
289
|
-
if (middleware2.length)
|
|
290
|
-
r.middleware = middleware2;
|
|
291
|
-
const prefix = options.prefix || "/";
|
|
292
|
-
const formattedPrefix = prefix.startsWith("/") ? prefix : `/${prefix}`;
|
|
293
|
-
if (options.prefix) {
|
|
294
|
-
r.path = formattedPrefix + r.uri;
|
|
295
|
-
r.uri = formattedPrefix + r.uri;
|
|
296
|
-
r.url = r.uri;
|
|
297
|
-
}
|
|
298
|
-
originalRoutes.push(r);
|
|
299
|
-
return this;
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
this.routes = originalRoutes;
|
|
303
|
-
return this;
|
|
304
|
-
}
|
|
305
|
-
name(name) {
|
|
306
|
-
this.routes[this.routes.length - 1].name = name;
|
|
307
|
-
return this;
|
|
308
|
-
}
|
|
309
|
-
middleware(middleware2) {
|
|
310
|
-
this.routes[this.routes.length - 1].middleware = middleware2;
|
|
311
|
-
return this;
|
|
312
|
-
}
|
|
313
|
-
prefix(prefix) {
|
|
314
|
-
this.routes[this.routes.length - 1].prefix = prefix;
|
|
315
|
-
return this;
|
|
316
|
-
}
|
|
317
|
-
async getRoutes() {
|
|
318
|
-
await this.importRoutes();
|
|
319
|
-
return this.routes;
|
|
320
|
-
}
|
|
321
|
-
async importRoutes() {
|
|
322
|
-
await import("./chunk-ykb33tkv.js");
|
|
323
|
-
await import("./chunk-4axj3j8y.js");
|
|
324
|
-
}
|
|
325
|
-
async resolveCallback(callback) {
|
|
326
|
-
if (callback instanceof Promise) {
|
|
327
|
-
const actionModule = await callback;
|
|
328
|
-
return actionModule.default;
|
|
329
|
-
}
|
|
330
|
-
if (typeof callback === "string")
|
|
331
|
-
return await this.importCallbackFromPath(callback, this.path);
|
|
332
|
-
return callback;
|
|
333
|
-
}
|
|
334
|
-
async importCallbackFromPath(callbackPath, originalPath) {
|
|
335
|
-
let modulePath = callbackPath;
|
|
336
|
-
let importPathFunction = p.appPath;
|
|
337
|
-
if (callbackPath.startsWith("../"))
|
|
338
|
-
importPathFunction = p.routesPath;
|
|
339
|
-
if (modulePath.includes("OrmAction"))
|
|
340
|
-
importPathFunction = p.storagePath;
|
|
341
|
-
modulePath = modulePath.endsWith(".ts") ? modulePath.slice(0, -3) : modulePath;
|
|
342
|
-
let actionModule = null;
|
|
343
|
-
if (modulePath.includes("storage/framework/orm"))
|
|
344
|
-
actionModule = await import(modulePath);
|
|
345
|
-
else if (modulePath.includes("Actions"))
|
|
346
|
-
actionModule = await import(p.projectPath(`app/${modulePath}.ts`));
|
|
347
|
-
else if (modulePath.includes("OrmAction"))
|
|
348
|
-
actionModule = await import(p.storagePath(`/framework/actions/src/${modulePath}.ts`));
|
|
349
|
-
else
|
|
350
|
-
actionModule = await import(importPathFunction(modulePath));
|
|
351
|
-
const newPath = actionModule.default.path ?? originalPath;
|
|
352
|
-
this.updatePathIfNeeded(newPath, originalPath);
|
|
353
|
-
let requestInstance;
|
|
354
|
-
if (actionModule.default.requestFile) {
|
|
355
|
-
requestInstance = await findRequestInstance(actionModule.default.requestFile);
|
|
356
|
-
} else {
|
|
357
|
-
requestInstance = await extractDefaultRequest();
|
|
358
|
-
}
|
|
359
|
-
try {
|
|
360
|
-
if (isObjectNotEmpty(actionModule.default.validations) && requestInstance)
|
|
361
|
-
await customValidate(actionModule.default.validations, requestInstance.all());
|
|
362
|
-
return await actionModule.default.handle(requestInstance);
|
|
363
|
-
} catch (error) {
|
|
364
|
-
const errorResponse = await this.handleErrors(error);
|
|
365
|
-
return errorResponse;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
async handleErrors(error) {
|
|
369
|
-
const stackTrace = error.stack || "No stack trace available";
|
|
370
|
-
this.storeError(error);
|
|
371
|
-
this.logError(error);
|
|
372
|
-
if (error.status === 422) {
|
|
373
|
-
return { status: 422, body: JSON.parse(error.message), stack: stackTrace };
|
|
374
|
-
}
|
|
375
|
-
if (!error.status) {
|
|
376
|
-
return { status: 500, body: error.message, stack: stackTrace };
|
|
377
|
-
}
|
|
378
|
-
return { status: error.status, body: error.message, stack: stackTrace };
|
|
379
|
-
}
|
|
380
|
-
async storeError(error) {
|
|
381
|
-
const stackTrace = error.stack || "No stack trace available";
|
|
382
|
-
await db.insertInto("errors").values({
|
|
383
|
-
type: error.name || "Unknown Error",
|
|
384
|
-
message: error.message || "No message available",
|
|
385
|
-
stack: stackTrace || "Unkown Stack",
|
|
386
|
-
status: typeof error.status === "number" ? error.status : 500
|
|
387
|
-
}).execute();
|
|
388
|
-
}
|
|
389
|
-
async logError(error) {
|
|
390
|
-
const stackTrace = error.stack || "No stack trace available";
|
|
391
|
-
log2.debug(stackTrace);
|
|
392
|
-
}
|
|
393
|
-
normalizePath(path3) {
|
|
394
|
-
return path3.endsWith("/") ? path3.slice(0, -1) : path3;
|
|
395
|
-
}
|
|
396
|
-
prepareUri(path3) {
|
|
397
|
-
if (path3.startsWith("/"))
|
|
398
|
-
path3 = path3.slice(1);
|
|
399
|
-
path3 = `/${path3}`;
|
|
400
|
-
return path3.endsWith("/") ? path3.slice(0, -1) : path3;
|
|
401
|
-
}
|
|
402
|
-
updatePathIfNeeded(newPath, originalPath) {
|
|
403
|
-
if (newPath !== originalPath) {
|
|
404
|
-
this.path = newPath;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
var route = new Router;
|
|
409
|
-
|
|
410
|
-
export { route };
|
package/dist/chunk-ykb33tkv.js
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
route
|
|
4
|
-
} from "./chunk-xgsmf4cy.js";
|
|
5
|
-
import"./chunk-hvfeg6n6.js";
|
|
6
|
-
import"./chunk-mdj7x1vs.js";
|
|
7
|
-
import"./chunk-p0c688mg.js";
|
|
8
|
-
import"./chunk-qkm8e752.js";
|
|
9
|
-
import"./chunk-a13x0e43.js";
|
|
10
|
-
import"./chunk-mdqphqep.js";
|
|
11
|
-
import"./chunk-qhh0v93n.js";
|
|
12
|
-
import"./chunk-ccnf3w1b.js";
|
|
13
|
-
import"./chunk-7s5qcjkt.js";
|
|
14
|
-
import"./chunk-bf8bq8pc.js";
|
|
15
|
-
import"./chunk-b5g5w1hh.js";
|
|
16
|
-
import"./chunk-zzerxbrm.js";
|
|
17
|
-
import"./chunk-veja9rez.js";
|
|
18
|
-
import"./chunk-a7k3cdby.js";
|
|
19
|
-
import"./chunk-frw3va9v.js";
|
|
20
|
-
import"./chunk-saqpg5nd.js";
|
|
21
|
-
import"./chunk-2dvnt46s.js";
|
|
22
|
-
import"./chunk-w6fdq4hk.js";
|
|
23
|
-
import"./chunk-wkwtsvym.js";
|
|
24
|
-
import"./chunk-9v6qtbez.js";
|
|
25
|
-
|
|
26
|
-
// ../../../../routes/api.ts
|
|
27
|
-
route.get("/foo/bar/{id}", () => "hello world, foo bar");
|
|
28
|
-
route.get("/", () => "hello world");
|
|
29
|
-
route.get("/hello/world", () => "hello world, buddy");
|
|
30
|
-
route.post("/email/subscribe", "Actions/SubscriberEmailAction");
|
|
31
|
-
route.post("/login", "Actions/LoginAction");
|
|
32
|
-
route.get("/generate-registration-options", "Actions/Auth/GenerateRegistrationAction");
|
|
33
|
-
route.post("/verify-registration", "Actions/Auth/VerifyRegistrationAction");
|
|
34
|
-
route.get("/generate-authentication-options", "Actions/Auth/GenerateAuthenticationAction");
|
|
35
|
-
route.post("/verify-authentication", "Actions/Auth/VerifyAuthenticationAction");
|
|
36
|
-
route.health();
|
|
37
|
-
route.get("/install", "Actions/InstallAction");
|
|
38
|
-
route.post("/ai/ask", "Actions/AI/AskAction");
|
|
39
|
-
route.post("/ai/summary", "Actions/AI/SummaryAction");
|
|
40
|
-
route.group({ prefix: "/payments" }, async () => {
|
|
41
|
-
route.get("/fetch-customer/{id}", "Actions/Payment/FetchPaymentCustomerAction");
|
|
42
|
-
route.get("/fetch-transaction-history/{id}", "Actions/Payment/FetchTransactionHistoryAction");
|
|
43
|
-
route.get("/fetch-user-subscriptions/{id}", "Actions/Payment/FetchUserSubscriptionsAction");
|
|
44
|
-
route.get("/fetch-active-subscription/{id}", "Actions/Payment/FetchActiveSubscriptionAction");
|
|
45
|
-
route.get("/default-payment-method/{id}", "Actions/Payment/FetchDefaultPaymentMethodAction");
|
|
46
|
-
route.get("/payment-methods/{id}", "Actions/Payment/FetchPaymentMethodsAction");
|
|
47
|
-
route.get("/create-setup-intent/{id}", "Actions/Payment/CreateSetupIntentAction");
|
|
48
|
-
route.delete("/delete-payment-method/{id}", "Actions/Payment/DeleteDefaultPaymentAction");
|
|
49
|
-
route.put("/update-default-payment-method/{id}", "Actions/Payment/UpdateDefaultPaymentMethodAction");
|
|
50
|
-
route.post("/set-default-payment-method/{id}", "Actions/Payment/SetDefaultPaymentAction");
|
|
51
|
-
route.post("/user-default-payment-method/{id}", "Actions/Payment/SetUserDefaultPaymentAction");
|
|
52
|
-
route.post("/payment-method/{id}", "Actions/Payment/StorePaymentMethodAction");
|
|
53
|
-
route.post("/create-payment-intent/{id}", "Actions/Payment/CreatePaymentIntentAction");
|
|
54
|
-
route.post("/create-subscription/{id}", "Actions/Payment/CreateSubscriptionAction");
|
|
55
|
-
route.post("/update-subscription/{id}", "Actions/Payment/UpdateSubscriptionAction");
|
|
56
|
-
route.post("/cancel-subscription/{id}", "Actions/Payment/CancelSubscriptionAction");
|
|
57
|
-
route.post("/create-invoice-subscription/{id}", "Actions/Payment/CreateInvoiceSubscription");
|
|
58
|
-
route.patch("/update-customer/{id}", "Actions/Payment/UpdateCustomerAction");
|
|
59
|
-
route.post("/checkout/{id}", "Actions/Payment/CreateCheckoutAction");
|
|
60
|
-
route.get("/fetch-product/{id}", "Actions/Payment/FetchProductAction");
|
|
61
|
-
route.post("/store-transaction/{id}", "Actions/Payment/StoreTransactionAction");
|
|
62
|
-
});
|
|
63
|
-
route.group({ prefix: "/commerce" }, async () => {
|
|
64
|
-
route.get("/customers", "Actions/Commerce/CustomersAction");
|
|
65
|
-
route.get("/print-devices", "Actions/Commerce/PrintDeviceIndexOrmAction");
|
|
66
|
-
route.post("/print-devices", "Actions/Commerce/PrintDeviceStoreOrmAction");
|
|
67
|
-
route.get("/print-devices/{id}", "Actions/Commerce/PrintDeviceShowOrmAction");
|
|
68
|
-
route.patch("/print-devices/{id}", "Actions/Commerce/PrintDeviceUpdateOrmAction");
|
|
69
|
-
route.delete("/print-devices/{id}", "Actions/Commerce/PrintDeviceDestroyOrmAction");
|
|
70
|
-
route.get("/product-categories", "Actions/Commerce/CategoryIndexOrmAction");
|
|
71
|
-
route.post("/product-categories", "Actions/Commerce/CategoryStoreOrmAction");
|
|
72
|
-
route.get("/product-categories/{id}", "Actions/Commerce/CategoryShowOrmAction");
|
|
73
|
-
route.get("/payments", "Actions/Commerce/PaymentIndexOrmAction");
|
|
74
|
-
route.post("/payments", "Actions/Commerce/PaymentStoreOrmAction");
|
|
75
|
-
route.get("/payments/{id}", "Actions/Commerce/PaymentShowOrmAction");
|
|
76
|
-
route.get("/drivers", "Actions/Commerce/DriverIndexOrmAction");
|
|
77
|
-
route.post("/drivers", "Actions/Commerce/DriverStoreOrmAction");
|
|
78
|
-
route.get("/drivers/{id}", "Actions/Commerce/DriverShowOrmAction");
|
|
79
|
-
route.patch("/drivers/{id}", "Actions/Commerce/DriverUpdateOrmAction");
|
|
80
|
-
route.delete("/drivers/{id}", "Actions/Commerce/DriverDestroyOrmAction");
|
|
81
|
-
route.get("/waitlist-products", "Actions/Commerce/WaitlistProductIndexOrmAction");
|
|
82
|
-
route.post("/waitlist-products", "Actions/Commerce/WaitlistProductStoreOrmAction");
|
|
83
|
-
route.get("/waitlist-products/{id}", "Actions/Commerce/WaitlistProductShowOrmAction");
|
|
84
|
-
route.patch("/waitlist-products/{id}", "Actions/Commerce/WaitlistProductUpdateOrmAction");
|
|
85
|
-
route.delete("/waitlist-products/{id}", "Actions/Commerce/WaitlistProductDestroyOrmAction");
|
|
86
|
-
route.get("/digital-deliveries", "Actions/Commerce/DigitalDeliveryIndexOrmAction");
|
|
87
|
-
route.post("/digital-deliveries", "Actions/Commerce/DigitalDeliveryStoreOrmAction");
|
|
88
|
-
route.get("/digital-deliveries/{id}", "Actions/Commerce/DigitalDeliveryShowOrmAction");
|
|
89
|
-
route.patch("/digital-deliveries/{id}", "Actions/Commerce/DigitalDeliveryUpdateOrmAction");
|
|
90
|
-
route.delete("/digital-deliveries/{id}", "Actions/Commerce/DigitalDeliveryDestroyOrmAction");
|
|
91
|
-
route.get("/product-manufacturers", "Actions/Commerce/ManufacturerIndexOrmAction");
|
|
92
|
-
route.post("/product-manufacturers", "Actions/Commerce/ManufacturerStoreOrmAction");
|
|
93
|
-
route.get("/product-manufacturers/{id}", "Actions/Commerce/ManufacturerShowOrmAction");
|
|
94
|
-
route.get("/shipping-zones", "Actions/Commerce/ShippingZoneIndexOrmAction");
|
|
95
|
-
route.post("/shipping-zones", "Actions/Commerce/ShippingZoneStoreOrmAction");
|
|
96
|
-
route.get("/shipping-zones/{id}", "Actions/Commerce/ShippingZoneShowOrmAction");
|
|
97
|
-
route.patch("/shipping-zones/{id}", "Actions/Commerce/ShippingZoneUpdateOrmAction");
|
|
98
|
-
route.delete("/shipping-zones/{id}", "Actions/Commerce/ShippingZoneDestroyOrmAction");
|
|
99
|
-
route.get("/customers", "Actions/Commerce/CustomerIndexOrmAction");
|
|
100
|
-
route.post("/customers", "Actions/Commerce/CustomerStoreOrmAction");
|
|
101
|
-
route.get("/customers/{id}", "Actions/Commerce/CustomerShowOrmAction");
|
|
102
|
-
route.patch("/customers/{id}", "Actions/Commerce/CustomerUpdateOrmAction");
|
|
103
|
-
route.delete("/customers/{id}", "Actions/Commerce/CustomerDestroyOrmAction");
|
|
104
|
-
route.get("/products", "Actions/Commerce/ProductIndexOrmAction");
|
|
105
|
-
route.post("/products", "Actions/Commerce/ProductStoreOrmAction");
|
|
106
|
-
route.get("/products/{id}", "Actions/Commerce/ProductShowOrmAction");
|
|
107
|
-
route.get("/print-logs", "Actions/Commerce/ReceiptIndexOrmAction");
|
|
108
|
-
route.post("/print-logs", "Actions/Commerce/ReceiptStoreOrmAction");
|
|
109
|
-
route.get("/print-logs/{id}", "Actions/Commerce/ReceiptShowOrmAction");
|
|
110
|
-
route.patch("/print-logs/{id}", "Actions/Commerce/ReceiptUpdateOrmAction");
|
|
111
|
-
route.delete("/print-logs/{id}", "Actions/Commerce/ReceiptDestroyOrmAction");
|
|
112
|
-
route.get("/product-variants", "Actions/Commerce/ProductVariantIndexOrmAction");
|
|
113
|
-
route.post("/product-variants", "Actions/Commerce/ProductVariantStoreOrmAction");
|
|
114
|
-
route.get("/product-variants/{id}", "Actions/Commerce/ProductVariantShowOrmAction");
|
|
115
|
-
route.patch("/product-variants/{id}", "Actions/Commerce/ProductVariantUpdateOrmAction");
|
|
116
|
-
route.delete("/product-variants/{id}", "Actions/Commerce/ProductVariantDestroyOrmAction");
|
|
117
|
-
route.get("/license-keys", "Actions/Commerce/LicenseKeyIndexOrmAction");
|
|
118
|
-
route.post("/license-keys", "Actions/Commerce/LicenseKeyStoreOrmAction");
|
|
119
|
-
route.get("/license-keys/{id}", "Actions/Commerce/LicenseKeyShowOrmAction");
|
|
120
|
-
route.patch("/license-keys/{id}", "Actions/Commerce/LicenseKeyUpdateOrmAction");
|
|
121
|
-
route.delete("/license-keys/{id}", "Actions/Commerce/LicenseKeyDestroyOrmAction");
|
|
122
|
-
route.get("/waitlist-restaurants", "Actions/Commerce/WaitlistRestaurantIndexOrmAction");
|
|
123
|
-
route.post("/waitlist-restaurants", "Actions/Commerce/WaitlistRestaurantStoreOrmAction");
|
|
124
|
-
route.get("/waitlist-restaurants/{id}", "Actions/Commerce/WaitlistRestaurantShowOrmAction");
|
|
125
|
-
route.patch("/waitlist-restaurants/{id}", "Actions/Commerce/WaitlistRestaurantUpdateOrmAction");
|
|
126
|
-
route.delete("/waitlist-restaurants/{id}", "Actions/Commerce/WaitlistRestaurantDestroyOrmAction");
|
|
127
|
-
route.get("/product-reviews", "Actions/Commerce/ReviewIndexOrmAction");
|
|
128
|
-
route.post("/product-reviews", "Actions/Commerce/ReviewStoreOrmAction");
|
|
129
|
-
route.get("/product-reviews/{id}", "Actions/Commerce/ReviewShowOrmAction");
|
|
130
|
-
route.get("/product-units", "Actions/Commerce/ProductUnitIndexOrmAction");
|
|
131
|
-
route.post("/product-units", "Actions/Commerce/ProductUnitStoreOrmAction");
|
|
132
|
-
route.get("/product-units/{id}", "Actions/Commerce/ProductUnitShowOrmAction");
|
|
133
|
-
route.get("/gift-cards", "Actions/Commerce/GiftCardIndexOrmAction");
|
|
134
|
-
route.post("/gift-cards", "Actions/Commerce/GiftCardStoreOrmAction");
|
|
135
|
-
route.get("/gift-cards/{id}", "Actions/Commerce/GiftCardShowOrmAction");
|
|
136
|
-
route.get("/orders", "Actions/Commerce/OrderIndexOrmAction");
|
|
137
|
-
route.post("/orders", "Actions/Commerce/OrderStoreOrmAction");
|
|
138
|
-
route.get("/orders/{id}", "Actions/Commerce/OrderShowOrmAction");
|
|
139
|
-
route.get("/coupons", "Actions/Commerce/CouponIndexOrmAction");
|
|
140
|
-
route.post("/coupons", "Actions/Commerce/CouponStoreOrmAction");
|
|
141
|
-
route.get("/coupons/{id}", "Actions/Commerce/CouponShowOrmAction");
|
|
142
|
-
route.get("/tax-rates", "Actions/Commerce/TaxRateIndexOrmAction");
|
|
143
|
-
route.post("/tax-rates", "Actions/Commerce/TaxRateStoreOrmAction");
|
|
144
|
-
route.get("/tax-rates/{id}", "Actions/Commerce/TaxRateShowOrmAction");
|
|
145
|
-
route.patch("/tax-rates/{id}", "Actions/Commerce/TaxRateUpdateOrmAction");
|
|
146
|
-
route.delete("/tax-rates/{id}", "Actions/Commerce/TaxRateDestroyOrmAction");
|
|
147
|
-
route.get("/transactions", "Actions/Commerce/TransactionIndexOrmAction");
|
|
148
|
-
route.post("/transactions", "Actions/Commerce/TransactionStoreOrmAction");
|
|
149
|
-
route.get("/transactions/{id}", "Actions/Commerce/TransactionShowOrmAction");
|
|
150
|
-
route.get("/loyalty-points", "Actions/Commerce/LoyaltyPointIndexOrmAction");
|
|
151
|
-
route.post("/loyalty-points", "Actions/Commerce/LoyaltyPointStoreOrmAction");
|
|
152
|
-
route.get("/loyalty-points/{id}", "Actions/Commerce/LoyaltyPointShowOrmAction");
|
|
153
|
-
route.get("/product-items", "Actions/Commerce/ProductItemIndexOrmAction");
|
|
154
|
-
route.post("/product-items", "Actions/Commerce/ProductItemStoreOrmAction");
|
|
155
|
-
route.get("/product-items/{id}", "Actions/Commerce/ProductItemShowOrmAction");
|
|
156
|
-
route.get("/loyalty-rewards", "Actions/Commerce/LoyaltyRewardIndexOrmAction");
|
|
157
|
-
route.post("/loyalty-rewards", "Actions/Commerce/LoyaltyRewardStoreOrmAction");
|
|
158
|
-
route.get("/loyalty-rewards/{id}", "Actions/Commerce/LoyaltyRewardShowOrmAction");
|
|
159
|
-
route.get("/shipping-methods", "Actions/Commerce/ShippingMethodIndexOrmAction");
|
|
160
|
-
route.post("/shipping-methods", "Actions/Commerce/ShippingMethodStoreOrmAction");
|
|
161
|
-
route.get("/shipping-methods/{id}", "Actions/Commerce/ShippingMethodShowOrmAction");
|
|
162
|
-
route.patch("/shipping-methods/{id}", "Actions/Commerce/ShippingMethodUpdateOrmAction");
|
|
163
|
-
route.delete("/shipping-methods/{id}", "Actions/Commerce/ShippingMethodDestroyOrmAction");
|
|
164
|
-
route.get("/shipping-rates", "Actions/Commerce/ShippingRateIndexOrmAction");
|
|
165
|
-
route.post("/shipping-rates", "Actions/Commerce/ShippingRateStoreOrmAction");
|
|
166
|
-
route.get("/shipping-rates/{id}", "Actions/Commerce/ShippingRateShowOrmAction");
|
|
167
|
-
route.patch("/shipping-rates/{id}", "Actions/Commerce/ShippingRateUpdateOrmAction");
|
|
168
|
-
route.delete("/shipping-rates/{id}", "Actions/Commerce/ShippingRateDestroyOrmAction");
|
|
169
|
-
route.get("/delivery-routes", "Actions/Commerce/DeliveryRouteIndexOrmAction");
|
|
170
|
-
route.post("/delivery-routes", "Actions/Commerce/DeliveryRouteStoreOrmAction");
|
|
171
|
-
route.get("/delivery-routes/{id}", "Actions/Commerce/DeliveryRouteShowOrmAction");
|
|
172
|
-
route.patch("/delivery-routes/{id}", "Actions/Commerce/DeliveryRouteUpdateOrmAction");
|
|
173
|
-
route.delete("/delivery-routes/{id}", "Actions/Commerce/DeliveryRouteDestroyOrmAction");
|
|
174
|
-
});
|
|
175
|
-
route.group({ prefix: "/queues" }, async () => {
|
|
176
|
-
route.get("/", "Actions/Queue/FetchQueuesAction");
|
|
177
|
-
});
|
package/dist/chunk-ze46550n.js
DELETED
|
File without changes
|