skedyul 1.7.26 → 1.7.28
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/README.md +1 -0
- package/dist/.build-stamp +1 -1
- package/dist/cli/api/apps.d.ts +123 -0
- package/dist/cli/api/context.d.ts +30 -0
- package/dist/cli/api/crm.d.ts +56 -0
- package/dist/cli/api/index.d.ts +11 -0
- package/dist/cli/api/index.js +802 -0
- package/dist/cli/api/workflows.d.ts +134 -0
- package/dist/cli/index.js +1174 -1312
- package/dist/config/app-config.d.ts +3 -2
- package/dist/config/schema-loader.d.ts +10 -1
- package/dist/config/types/app-event.d.ts +13 -0
- package/dist/config/types/entity.d.ts +11 -2
- package/dist/config/types/model.d.ts +9 -9
- package/dist/core/client.d.ts +11 -10
- package/dist/esm/index.mjs +40 -17
- package/dist/index.d.ts +2 -1
- package/dist/index.js +42 -17
- package/dist/schemas/crm-schema.d.ts +49 -0
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas.d.ts +24 -2
- package/package.json +8 -2
package/dist/schemas.d.ts
CHANGED
|
@@ -383,6 +383,7 @@ export declare const EntityFieldDefinitionSchema: z.ZodObject<{
|
|
|
383
383
|
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
384
384
|
matchCandidate: z.ZodOptional<z.ZodBoolean>;
|
|
385
385
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
386
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
386
387
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
387
388
|
value: z.ZodString;
|
|
388
389
|
label: z.ZodString;
|
|
@@ -424,6 +425,7 @@ export declare const EntityDefinitionSchema: z.ZodObject<{
|
|
|
424
425
|
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
425
426
|
matchCandidate: z.ZodOptional<z.ZodBoolean>;
|
|
426
427
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
427
429
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
428
430
|
value: z.ZodString;
|
|
429
431
|
label: z.ZodString;
|
|
@@ -445,6 +447,7 @@ export declare const EntityDefinitionSchema: z.ZodObject<{
|
|
|
445
447
|
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
446
448
|
matchCandidate: z.ZodOptional<z.ZodBoolean>;
|
|
447
449
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
450
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
448
451
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
449
452
|
value: z.ZodString;
|
|
450
453
|
label: z.ZodString;
|
|
@@ -468,11 +471,14 @@ export declare const EntityDefinitionSchema: z.ZodObject<{
|
|
|
468
471
|
export declare const RelationshipCardinalitySchema: z.ZodEnum<{
|
|
469
472
|
ONE_TO_ONE: "ONE_TO_ONE";
|
|
470
473
|
ONE_TO_MANY: "ONE_TO_MANY";
|
|
474
|
+
MANY_TO_ONE: "MANY_TO_ONE";
|
|
475
|
+
MANY_TO_MANY: "MANY_TO_MANY";
|
|
471
476
|
}>;
|
|
472
477
|
export declare const OnDeleteBehaviorSchema: z.ZodEnum<{
|
|
473
478
|
NONE: "NONE";
|
|
474
479
|
CASCADE: "CASCADE";
|
|
475
480
|
RESTRICT: "RESTRICT";
|
|
481
|
+
SET_NULL: "SET_NULL";
|
|
476
482
|
}>;
|
|
477
483
|
export declare const RelationshipLinkSchema: z.ZodObject<{
|
|
478
484
|
model: z.ZodString;
|
|
@@ -493,11 +499,14 @@ export declare const RelationshipDefinitionSchema: z.ZodObject<{
|
|
|
493
499
|
cardinality: z.ZodEnum<{
|
|
494
500
|
ONE_TO_ONE: "ONE_TO_ONE";
|
|
495
501
|
ONE_TO_MANY: "ONE_TO_MANY";
|
|
502
|
+
MANY_TO_ONE: "MANY_TO_ONE";
|
|
503
|
+
MANY_TO_MANY: "MANY_TO_MANY";
|
|
496
504
|
}>;
|
|
497
505
|
onDelete: z.ZodDefault<z.ZodEnum<{
|
|
498
506
|
NONE: "NONE";
|
|
499
507
|
CASCADE: "CASCADE";
|
|
500
508
|
RESTRICT: "RESTRICT";
|
|
509
|
+
SET_NULL: "SET_NULL";
|
|
501
510
|
}>>;
|
|
502
511
|
}, z.core.$strip>;
|
|
503
512
|
/** Standard capability types for communication channels */
|
|
@@ -3386,11 +3395,14 @@ export declare const InstallConfigSchema: z.ZodObject<{
|
|
|
3386
3395
|
cardinality: z.ZodEnum<{
|
|
3387
3396
|
ONE_TO_ONE: "ONE_TO_ONE";
|
|
3388
3397
|
ONE_TO_MANY: "ONE_TO_MANY";
|
|
3398
|
+
MANY_TO_ONE: "MANY_TO_ONE";
|
|
3399
|
+
MANY_TO_MANY: "MANY_TO_MANY";
|
|
3389
3400
|
}>;
|
|
3390
3401
|
onDelete: z.ZodDefault<z.ZodEnum<{
|
|
3391
3402
|
NONE: "NONE";
|
|
3392
3403
|
CASCADE: "CASCADE";
|
|
3393
3404
|
RESTRICT: "RESTRICT";
|
|
3405
|
+
SET_NULL: "SET_NULL";
|
|
3394
3406
|
}>>;
|
|
3395
3407
|
}, z.core.$strip>>>;
|
|
3396
3408
|
}, z.core.$strip>;
|
|
@@ -3620,6 +3632,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3620
3632
|
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
3621
3633
|
matchCandidate: z.ZodOptional<z.ZodBoolean>;
|
|
3622
3634
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3635
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
3623
3636
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3624
3637
|
value: z.ZodString;
|
|
3625
3638
|
label: z.ZodString;
|
|
@@ -3641,6 +3654,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3641
3654
|
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
3642
3655
|
matchCandidate: z.ZodOptional<z.ZodBoolean>;
|
|
3643
3656
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3657
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
3644
3658
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
3645
3659
|
value: z.ZodString;
|
|
3646
3660
|
label: z.ZodString;
|
|
@@ -3675,11 +3689,14 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3675
3689
|
cardinality: z.ZodEnum<{
|
|
3676
3690
|
ONE_TO_ONE: "ONE_TO_ONE";
|
|
3677
3691
|
ONE_TO_MANY: "ONE_TO_MANY";
|
|
3692
|
+
MANY_TO_ONE: "MANY_TO_ONE";
|
|
3693
|
+
MANY_TO_MANY: "MANY_TO_MANY";
|
|
3678
3694
|
}>;
|
|
3679
3695
|
onDelete: z.ZodDefault<z.ZodEnum<{
|
|
3680
3696
|
NONE: "NONE";
|
|
3681
3697
|
CASCADE: "CASCADE";
|
|
3682
3698
|
RESTRICT: "RESTRICT";
|
|
3699
|
+
SET_NULL: "SET_NULL";
|
|
3683
3700
|
}>>;
|
|
3684
3701
|
}, z.core.$strip>>>;
|
|
3685
3702
|
channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4480,6 +4497,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
4480
4497
|
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
4481
4498
|
matchCandidate: z.ZodOptional<z.ZodBoolean>;
|
|
4482
4499
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4500
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
4483
4501
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4484
4502
|
value: z.ZodString;
|
|
4485
4503
|
label: z.ZodString;
|
|
@@ -4501,6 +4519,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
4501
4519
|
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
4502
4520
|
matchCandidate: z.ZodOptional<z.ZodBoolean>;
|
|
4503
4521
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4522
|
+
definition: z.ZodOptional<z.ZodString>;
|
|
4504
4523
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4505
4524
|
value: z.ZodString;
|
|
4506
4525
|
label: z.ZodString;
|
|
@@ -4535,11 +4554,14 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
4535
4554
|
cardinality: z.ZodEnum<{
|
|
4536
4555
|
ONE_TO_ONE: "ONE_TO_ONE";
|
|
4537
4556
|
ONE_TO_MANY: "ONE_TO_MANY";
|
|
4557
|
+
MANY_TO_ONE: "MANY_TO_ONE";
|
|
4558
|
+
MANY_TO_MANY: "MANY_TO_MANY";
|
|
4538
4559
|
}>;
|
|
4539
4560
|
onDelete: z.ZodDefault<z.ZodEnum<{
|
|
4540
4561
|
NONE: "NONE";
|
|
4541
4562
|
CASCADE: "CASCADE";
|
|
4542
4563
|
RESTRICT: "RESTRICT";
|
|
4564
|
+
SET_NULL: "SET_NULL";
|
|
4543
4565
|
}>>;
|
|
4544
4566
|
}, z.core.$strip>>>;
|
|
4545
4567
|
channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -5447,5 +5469,5 @@ export type MessageBulkStatusOutput = z.infer<typeof MessageBulkStatusOutputSche
|
|
|
5447
5469
|
export declare function isModelDependency(dep: ResourceDependency): dep is ModelDependency;
|
|
5448
5470
|
export declare function isChannelDependency(dep: ResourceDependency): dep is ChannelDependency;
|
|
5449
5471
|
export declare function isWorkflowDependency(dep: ResourceDependency): dep is WorkflowDependency;
|
|
5450
|
-
export { CRMFieldTypeSchema, CRMFieldRequirementSchema, CRMFieldOptionSchema, CRMFieldDefinitionSchema, CRMFieldSchemaZ, CRMModelSchemaZ, CRMCardinalitySchema, CRMOnDeleteSchema, CRMRelationshipLinkSchema, CRMRelationshipSchemaZ, CRMSchemaZ, defineSchema, validateCRMSchema, parseCRMSchema, safeParseCRMSchema, } from './schemas/index';
|
|
5451
|
-
export type { CRMFieldType, CRMFieldRequirement, CRMFieldOption, CRMFieldDefinition, CRMFieldSchema, CRMModelSchema, CRMCardinality, CRMOnDelete, CRMRelationshipLink, CRMRelationshipSchema, CRMSchema, CRMSchemaValidationResult, } from './schemas/index';
|
|
5472
|
+
export { CRMFieldTypeSchema, CRMFieldRequirementSchema, CRMFieldOptionSchema, CRMFieldDefinitionSchema, CRMFieldAppearanceSchemaZ, CRMFieldAiMetaSchemaZ, CRMFieldSchemaZ, CRMModelSchemaZ, CRMCardinalitySchema, CRMOnDeleteSchema, CRMRelationshipLinkSchema, CRMRelationshipSchemaZ, CRMSchemaZ, defineSchema, validateCRMSchema, parseCRMSchema, safeParseCRMSchema, } from './schemas/index';
|
|
5473
|
+
export type { CRMFieldType, CRMFieldRequirement, CRMFieldOption, CRMFieldDefinition, CRMFieldAppearance, CRMFieldAiMeta, CRMFieldSchema, CRMModelSchema, CRMCardinality, CRMOnDelete, CRMRelationshipLink, CRMRelationshipSchema, CRMSchema, CRMSchemaValidationResult, } from './schemas/index';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skedyul",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.28",
|
|
4
4
|
"description": "The Skedyul SDK for Node.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
"types": "./dist/server.d.ts",
|
|
23
23
|
"require": "./dist/dedicated/server.js"
|
|
24
24
|
},
|
|
25
|
+
"./cli": {
|
|
26
|
+
"types": "./dist/cli/api/index.d.ts",
|
|
27
|
+
"import": "./dist/cli/api/index.js",
|
|
28
|
+
"require": "./dist/cli/api/index.js",
|
|
29
|
+
"default": "./dist/cli/api/index.js"
|
|
30
|
+
},
|
|
25
31
|
"./cli/utils/auth": {
|
|
26
32
|
"types": "./dist/cli/utils/auth.d.ts",
|
|
27
33
|
"require": "./dist/cli/utils/auth.js",
|
|
@@ -76,7 +82,7 @@
|
|
|
76
82
|
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc --emitDeclarationOnly && pnpm exec tsup-node && node -e \"require('fs').mkdirSync('dist',{recursive:true}); require('fs').writeFileSync('dist/.build-stamp', String(Date.now()))\"",
|
|
77
83
|
"db:generate": "echo 'No database generation needed for this package'",
|
|
78
84
|
"dev:watch": "npx nodemon --watch src --ext js,ts --exec \"pnpm run build\"",
|
|
79
|
-
"test": "tsc --project tsconfig.tests.json && node --test dist-tests/tests/server.test.js dist-tests/tests/cli.test.js dist-tests/tests/agent-schema-v3.test.js dist-tests/tests/ratelimit.test.js dist-tests/tests/sequencer.test.js dist-tests/tests/config-loader.test.js dist-tests/tests/gsm7.test.js dist-tests/tests/batch-operation.test.js"
|
|
85
|
+
"test": "tsc --project tsconfig.tests.json && node --test dist-tests/tests/server.test.js dist-tests/tests/cli.test.js dist-tests/tests/cli-api.test.js dist-tests/tests/agent-schema-v3.test.js dist-tests/tests/entity-field-definition.test.js dist-tests/tests/ratelimit.test.js dist-tests/tests/sequencer.test.js dist-tests/tests/config-loader.test.js dist-tests/tests/gsm7.test.js dist-tests/tests/batch-operation.test.js"
|
|
80
86
|
},
|
|
81
87
|
"keywords": [
|
|
82
88
|
"mcp",
|