@apotech-os/cli 0.3.0 → 0.5.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +29 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -22713,6 +22713,32 @@ var FunctionTriggerSchema = external_exports.discriminatedUnion("type", [
|
|
|
22713
22713
|
* AppSyncService.validateManifestConstraints, not here in the Zod schema.
|
|
22714
22714
|
*/
|
|
22715
22715
|
name: external_exports.string()
|
|
22716
|
+
}),
|
|
22717
|
+
/**
|
|
22718
|
+
* Called synchronously by an app UI page, which receives the handler's return
|
|
22719
|
+
* value in the HTTP response.
|
|
22720
|
+
*
|
|
22721
|
+
* This is the only way a page can reach an integration: the action endpoint
|
|
22722
|
+
* requires an app token, and a browser session is refused. The platform mints
|
|
22723
|
+
* the token server-side and runs the handler in-process.
|
|
22724
|
+
*
|
|
22725
|
+
* Distinct from `httpRoute`, which is fire-and-forget (it dispatches an event
|
|
22726
|
+
* and answers with a run id). Keeping them as separate trigger types keeps one
|
|
22727
|
+
* handler tied to one dispatch path and one payload shape.
|
|
22728
|
+
*
|
|
22729
|
+
* SECURITY: the handler runs with the app's FULL manifest role, not the
|
|
22730
|
+
* caller's. Treat every uiInvoke function as a semi-public endpoint and
|
|
22731
|
+
* re-check anything sensitive inside the handler.
|
|
22732
|
+
*/
|
|
22733
|
+
external_exports.object({
|
|
22734
|
+
type: external_exports.literal("uiInvoke"),
|
|
22735
|
+
/**
|
|
22736
|
+
* Minimum role the CALLING SESSION must hold on this app.
|
|
22737
|
+
* Defaults to EDITOR — fail-closed, since the handler is privileged.
|
|
22738
|
+
*/
|
|
22739
|
+
minRole: external_exports.enum(["VIEWER", "EDITOR", "ADMIN"]).optional(),
|
|
22740
|
+
/** Wall-clock budget in ms. Clamped server-side by APP_SYNC_INVOKE_MAX_MS. */
|
|
22741
|
+
timeoutMs: external_exports.number().int().min(1e3).max(3e4).optional()
|
|
22716
22742
|
})
|
|
22717
22743
|
]);
|
|
22718
22744
|
var FunctionDefSchema = external_exports.object({
|
|
@@ -22803,7 +22829,7 @@ var AppManifestSchema = external_exports.object({
|
|
|
22803
22829
|
description: external_exports.string().optional(),
|
|
22804
22830
|
icon: external_exports.string(),
|
|
22805
22831
|
color: external_exports.string(),
|
|
22806
|
-
// tailwind token, e.g. 'space-
|
|
22832
|
+
// tailwind token, e.g. 'space-brand'
|
|
22807
22833
|
placeholder: external_exports.boolean().optional(),
|
|
22808
22834
|
// true for spaces with no views yet
|
|
22809
22835
|
reads: external_exports.array(external_exports.string()),
|
|
@@ -22882,22 +22908,18 @@ var ShopifyOrderV1Schema = external_exports.object({
|
|
|
22882
22908
|
shopifyId: external_exports.string(),
|
|
22883
22909
|
createdAt: external_exports.coerce.date(),
|
|
22884
22910
|
totalPrice: external_exports.number(),
|
|
22885
|
-
// maps to totalPriceTTC in DB
|
|
22886
22911
|
subtotalPrice: external_exports.number().nullable(),
|
|
22887
|
-
// subtotalPriceSet (nullable until re-synced)
|
|
22888
22912
|
totalDiscounts: external_exports.number().nullable(),
|
|
22889
|
-
// totalDiscountsSet (nullable until re-synced)
|
|
22890
22913
|
discountCode: external_exports.string().nullable(),
|
|
22891
22914
|
newOrRepeat: external_exports.string().nullable(),
|
|
22892
22915
|
financialStatus: external_exports.string().nullable(),
|
|
22893
22916
|
note: external_exports.string().nullable(),
|
|
22894
|
-
// maps to grapevineRaw in DB (order.note)
|
|
22895
22917
|
customerId: external_exports.string().nullable()
|
|
22896
22918
|
});
|
|
22897
22919
|
var shopifyOrderV1 = {
|
|
22898
22920
|
key: "shopify-order.v1",
|
|
22899
|
-
prismaModel: "
|
|
22900
|
-
appRecord: { appSlug: "
|
|
22921
|
+
prismaModel: "AppRecord",
|
|
22922
|
+
appRecord: { appSlug: "_core", objectKey: "shopify-order" },
|
|
22901
22923
|
schema: ShopifyOrderV1Schema,
|
|
22902
22924
|
requiredRole: "VIEWER"
|
|
22903
22925
|
};
|