skedyul 0.2.19 → 0.2.21
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/.build-stamp +1 -1
- package/dist/config.d.ts +6 -2
- package/dist/schemas.d.ts +8 -7
- package/dist/schemas.js +3 -5
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1769314058189
|
package/dist/config.d.ts
CHANGED
|
@@ -456,8 +456,12 @@ export interface ListBlockDefinition {
|
|
|
456
456
|
export type PageBlockDefinition = CardBlockDefinition | LegacyFormBlockDefinition | ListBlockDefinition;
|
|
457
457
|
/** Mode for context data fetching */
|
|
458
458
|
export type PageContextMode = 'first' | 'many' | 'count';
|
|
459
|
-
/**
|
|
460
|
-
|
|
459
|
+
/**
|
|
460
|
+
* Page context filters using structured format.
|
|
461
|
+
* Format: { fieldHandle: { operator: value } }
|
|
462
|
+
* Values can be Liquid template strings, e.g., { id: { eq: '{{ path_params.id }}' } }
|
|
463
|
+
*/
|
|
464
|
+
export type PageContextFilters = Record<string, Record<string, string | number | boolean | (string | number | boolean)[]>>;
|
|
461
465
|
/** Single context item definition */
|
|
462
466
|
export interface PageContextItemDefinition {
|
|
463
467
|
/** Model handle to fetch data from */
|
package/dist/schemas.d.ts
CHANGED
|
@@ -2065,9 +2065,10 @@ export declare const PageContextModeSchema: z.ZodEnum<{
|
|
|
2065
2065
|
}>;
|
|
2066
2066
|
/**
|
|
2067
2067
|
* Page context filters schema.
|
|
2068
|
-
*
|
|
2068
|
+
* Uses structured filter format: { fieldHandle: { operator: value } }
|
|
2069
|
+
* Values can be Liquid template strings, e.g., { id: { eq: '{{ path_params.id }}' } }
|
|
2069
2070
|
*/
|
|
2070
|
-
export declare const PageContextFiltersSchema: z.ZodRecord<z.ZodString, z.
|
|
2071
|
+
export declare const PageContextFiltersSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>;
|
|
2071
2072
|
/** Single context item definition */
|
|
2072
2073
|
export declare const PageContextItemDefinitionSchema: z.ZodObject<{
|
|
2073
2074
|
model: z.ZodString;
|
|
@@ -2076,7 +2077,7 @@ export declare const PageContextItemDefinitionSchema: z.ZodObject<{
|
|
|
2076
2077
|
many: "many";
|
|
2077
2078
|
count: "count";
|
|
2078
2079
|
}>;
|
|
2079
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
2080
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
|
|
2080
2081
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2081
2082
|
}, z.core.$strip>;
|
|
2082
2083
|
/** Context definition: variable name -> context item */
|
|
@@ -2087,7 +2088,7 @@ export declare const PageContextDefinitionSchema: z.ZodRecord<z.ZodString, z.Zod
|
|
|
2087
2088
|
many: "many";
|
|
2088
2089
|
count: "count";
|
|
2089
2090
|
}>;
|
|
2090
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
2091
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
|
|
2091
2092
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2092
2093
|
}, z.core.$strip>>;
|
|
2093
2094
|
/** @deprecated Use PageContextDefinitionSchema instead */
|
|
@@ -2545,7 +2546,7 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2545
2546
|
many: "many";
|
|
2546
2547
|
count: "count";
|
|
2547
2548
|
}>;
|
|
2548
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
2549
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
|
|
2549
2550
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2550
2551
|
}, z.core.$strip>>>;
|
|
2551
2552
|
filter: z.ZodOptional<z.ZodObject<{
|
|
@@ -3155,7 +3156,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3155
3156
|
many: "many";
|
|
3156
3157
|
count: "count";
|
|
3157
3158
|
}>;
|
|
3158
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
3159
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
|
|
3159
3160
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
3160
3161
|
}, z.core.$strip>>>;
|
|
3161
3162
|
filter: z.ZodOptional<z.ZodObject<{
|
|
@@ -3748,7 +3749,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
3748
3749
|
many: "many";
|
|
3749
3750
|
count: "count";
|
|
3750
3751
|
}>;
|
|
3751
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
3752
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodString]>>>>;
|
|
3752
3753
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
3753
3754
|
}, z.core.$strip>>>;
|
|
3754
3755
|
filter: z.ZodOptional<z.ZodObject<{
|
package/dist/schemas.js
CHANGED
|
@@ -494,12 +494,10 @@ exports.PageBlockDefinitionSchema = zod_1.z.union([
|
|
|
494
494
|
exports.PageContextModeSchema = zod_1.z.enum(['first', 'many', 'count']);
|
|
495
495
|
/**
|
|
496
496
|
* Page context filters schema.
|
|
497
|
-
*
|
|
497
|
+
* Uses structured filter format: { fieldHandle: { operator: value } }
|
|
498
|
+
* Values can be Liquid template strings, e.g., { id: { eq: '{{ path_params.id }}' } }
|
|
498
499
|
*/
|
|
499
|
-
exports.PageContextFiltersSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.union([
|
|
500
|
-
zod_1.z.string(), // Liquid template string, e.g., '{{ path_params.id }}'
|
|
501
|
-
zod_1.z.record(zod_1.z.string(), zod_1.z.union([PrimitiveSchema, zod_1.z.array(PrimitiveSchema)])), // StructuredFilter
|
|
502
|
-
]));
|
|
500
|
+
exports.PageContextFiltersSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.record(zod_1.z.string(), zod_1.z.union([PrimitiveSchema, zod_1.z.array(PrimitiveSchema), zod_1.z.string()])));
|
|
503
501
|
/** Single context item definition */
|
|
504
502
|
exports.PageContextItemDefinitionSchema = zod_1.z.object({
|
|
505
503
|
/** Model handle to fetch data from */
|