@apotech-os/cli 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -22854,7 +22854,7 @@ var AppManifestFieldsSchema = external_exports.object({
|
|
|
22854
22854
|
placeholder: external_exports.boolean().optional(),
|
|
22855
22855
|
// true for spaces with no views yet
|
|
22856
22856
|
reads: external_exports.array(external_exports.string()),
|
|
22857
|
-
// core objects read: ['
|
|
22857
|
+
// core objects read: ['order']
|
|
22858
22858
|
hooks: AppHooksSchema.optional(),
|
|
22859
22859
|
applicationVariables: external_exports.array(ApplicationVariableSchema).optional(),
|
|
22860
22860
|
serverVariables: external_exports.array(ServerVariableSchema).optional(),
|
|
@@ -22865,7 +22865,7 @@ var AppManifestFieldsSchema = external_exports.object({
|
|
|
22865
22865
|
records: external_exports.array(
|
|
22866
22866
|
external_exports.object({
|
|
22867
22867
|
universalIdentifier: external_exports.string().uuid(),
|
|
22868
|
-
// objectKey allows letters, digits, hyphens, dots (e.g. '
|
|
22868
|
+
// objectKey allows letters, digits, hyphens, dots (e.g. 'sales-order.v2', 'product').
|
|
22869
22869
|
// Bars SQL-injection chars: no quotes, semicolons, spaces, or control chars.
|
|
22870
22870
|
objectKey: external_exports.string().regex(
|
|
22871
22871
|
/^[a-zA-Z][a-zA-Z0-9._-]*$/,
|
|
@@ -22960,7 +22960,7 @@ var AppManifestSchema = AppManifestFieldsSchema.superRefine((manifest, ctx) => {
|
|
|
22960
22960
|
});
|
|
22961
22961
|
}
|
|
22962
22962
|
});
|
|
22963
|
-
var
|
|
22963
|
+
var CoreOrderSchema = external_exports.object({
|
|
22964
22964
|
id: external_exports.string(),
|
|
22965
22965
|
shopifyId: external_exports.string(),
|
|
22966
22966
|
createdAt: external_exports.coerce.date(),
|
|
@@ -22973,14 +22973,14 @@ var ShopifyOrderV1Schema = external_exports.object({
|
|
|
22973
22973
|
note: external_exports.string().nullable(),
|
|
22974
22974
|
customerId: external_exports.string().nullable()
|
|
22975
22975
|
});
|
|
22976
|
-
var
|
|
22977
|
-
key: "
|
|
22976
|
+
var coreOrder = {
|
|
22977
|
+
key: "order",
|
|
22978
22978
|
prismaModel: "AppRecord",
|
|
22979
22979
|
appRecord: { appSlug: "_core", objectKey: "shopify-order" },
|
|
22980
|
-
schema:
|
|
22980
|
+
schema: CoreOrderSchema,
|
|
22981
22981
|
requiredRole: "VIEWER"
|
|
22982
22982
|
};
|
|
22983
|
-
var CORE_OBJECTS = /* @__PURE__ */ new Map([[
|
|
22983
|
+
var CORE_OBJECTS = /* @__PURE__ */ new Map([[coreOrder.key, coreOrder]]);
|
|
22984
22984
|
|
|
22985
22985
|
// src/manifest-build.ts
|
|
22986
22986
|
var ManifestBuildError = class extends Error {
|