@scout9/app 1.0.0-alpha.0.4.9 → 1.0.0-alpha.0.5.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/src/exports.js CHANGED
@@ -2,6 +2,7 @@ import { Scout9Platform } from './platform.js';
2
2
  import { EventResponse } from './runtime/index.js';
3
3
 
4
4
  export { EventResponse } from './runtime/index.js';
5
+ export { ProgressLogger } from './utils/logger.js';
5
6
 
6
7
  export * from './testing-tools/index.js';
7
8
  export * from './runtime/client/index.js';
package/src/public.d.ts CHANGED
@@ -437,8 +437,6 @@ export type Customer = {
437
437
  state?: (string | null) | undefined;
438
438
  town?: (string | null) | undefined;
439
439
  joined?: (string | null) | undefined;
440
- stripe?: (string | null) | undefined;
441
- stripeDev?: (string | null) | undefined;
442
440
  } & {[key: string]: CustomerValue};
443
441
 
444
442
  export type EntityDefinition = {
@@ -571,6 +569,10 @@ export type WorkflowConfiguration = {
571
569
  entity: string;
572
570
  };
573
571
 
572
+ export type CommandConfiguration = {
573
+ entity: string;
574
+ path: string;
575
+ };
574
576
 
575
577
  export type Scout9ProjectConfig = {
576
578
  tag?: string | undefined;
@@ -618,6 +620,7 @@ export type Scout9ProjectBuildConfig = Scout9ProjectConfig & {
618
620
  persona?: AgentsConfiguration;
619
621
  entities: EntityRootProjectConfiguration[];
620
622
  workflows: WorkflowConfiguration[];
623
+ commands: CommandConfiguration[];
621
624
  };
622
625
 
623
626
  export type WorkflowEvent = {
@@ -117,6 +117,13 @@ export const WorkflowConfigurationSchema = z.object({
117
117
 
118
118
  export const WorkflowsConfigurationSchema = z.array(WorkflowConfigurationSchema);
119
119
 
120
+ export const CommandSchema = z.object({
121
+ path: z.string(),
122
+ entity: zId('Command ID', z.string())
123
+ });
124
+
125
+ export const CommandsSchema = z.array(CommandSchema);
126
+
120
127
  export const IntentWorkflowEventSchema = z.object({
121
128
  current: z.string().nullable(),
122
129
  flow: z.array(z.string()),