@memberjunction/server 2.20.2 → 2.21.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.
Files changed (38) hide show
  1. package/dist/config.d.ts +5 -1
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +2 -1
  4. package/dist/config.js.map +1 -1
  5. package/dist/generated/generated.d.ts +122 -57
  6. package/dist/generated/generated.d.ts.map +1 -1
  7. package/dist/generated/generated.js +1287 -694
  8. package/dist/generated/generated.js.map +1 -1
  9. package/dist/generic/ResolverBase.d.ts.map +1 -1
  10. package/dist/generic/ResolverBase.js +8 -4
  11. package/dist/generic/ResolverBase.js.map +1 -1
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +2 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/resolvers/AskSkipResolver.d.ts +14 -5
  17. package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
  18. package/dist/resolvers/AskSkipResolver.js +250 -61
  19. package/dist/resolvers/AskSkipResolver.js.map +1 -1
  20. package/dist/resolvers/GetDataResolver.d.ts +90 -0
  21. package/dist/resolvers/GetDataResolver.d.ts.map +1 -0
  22. package/dist/resolvers/GetDataResolver.js +294 -0
  23. package/dist/resolvers/GetDataResolver.js.map +1 -0
  24. package/dist/resolvers/SyncDataResolver.d.ts +47 -0
  25. package/dist/resolvers/SyncDataResolver.d.ts.map +1 -0
  26. package/dist/resolvers/SyncDataResolver.js +345 -0
  27. package/dist/resolvers/SyncDataResolver.js.map +1 -0
  28. package/dist/resolvers/SyncRolesUsersResolver.d.ts.map +1 -1
  29. package/dist/resolvers/SyncRolesUsersResolver.js.map +1 -1
  30. package/package.json +23 -22
  31. package/src/config.ts +2 -0
  32. package/src/generated/generated.ts +899 -610
  33. package/src/generic/ResolverBase.ts +14 -5
  34. package/src/index.ts +2 -0
  35. package/src/resolvers/AskSkipResolver.ts +300 -66
  36. package/src/resolvers/GetDataResolver.ts +245 -0
  37. package/src/resolvers/SyncDataResolver.ts +337 -0
  38. package/src/resolvers/SyncRolesUsersResolver.ts +2 -2
@@ -59,40 +59,40 @@ __decorate([
59
59
  __metadata("design:type", String)
60
60
  ], ScheduledAction_.prototype, "ActionID", void 0);
61
61
  __decorate([
62
- Field({ description: 'Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)' }),
62
+ Field({ description: `Type of the scheduled action (Daily, Weekly, Monthly, Yearly, Custom)` }),
63
63
  MaxLength(40),
64
64
  __metadata("design:type", String)
65
65
  ], ScheduledAction_.prototype, "Type", void 0);
66
66
  __decorate([
67
- Field({ nullable: true, description: 'Cron expression defining the schedule, automatically maintained by the system unless Type is Custom, in which case the user directly sets this' }),
67
+ Field({ nullable: true, description: `Cron expression defining the schedule, automatically maintained by the system unless Type is Custom, in which case the user directly sets this` }),
68
68
  MaxLength(200),
69
69
  __metadata("design:type", String)
70
70
  ], ScheduledAction_.prototype, "CronExpression", void 0);
71
71
  __decorate([
72
- Field({ description: 'Timezone for the scheduled action, if not specified defaults to UTC/Z' }),
72
+ Field({ description: `Timezone for the scheduled action, if not specified defaults to UTC/Z` }),
73
73
  MaxLength(200),
74
74
  __metadata("design:type", String)
75
75
  ], ScheduledAction_.prototype, "Timezone", void 0);
76
76
  __decorate([
77
- Field({ description: 'Status of the scheduled action (Pending, Active, Disabled, Expired)' }),
77
+ Field({ description: `Status of the scheduled action (Pending, Active, Disabled, Expired)` }),
78
78
  MaxLength(40),
79
79
  __metadata("design:type", String)
80
80
  ], ScheduledAction_.prototype, "Status", void 0);
81
81
  __decorate([
82
- Field(() => Int, { nullable: true, description: 'Interval in days for the scheduled action' }),
82
+ Field(() => Int, { nullable: true, description: `Interval in days for the scheduled action` }),
83
83
  __metadata("design:type", Number)
84
84
  ], ScheduledAction_.prototype, "IntervalDays", void 0);
85
85
  __decorate([
86
- Field({ nullable: true, description: 'Day of the week for the scheduled action' }),
86
+ Field({ nullable: true, description: `Day of the week for the scheduled action` }),
87
87
  MaxLength(40),
88
88
  __metadata("design:type", String)
89
89
  ], ScheduledAction_.prototype, "DayOfWeek", void 0);
90
90
  __decorate([
91
- Field(() => Int, { nullable: true, description: 'Day of the month for the scheduled action' }),
91
+ Field(() => Int, { nullable: true, description: `Day of the month for the scheduled action` }),
92
92
  __metadata("design:type", Number)
93
93
  ], ScheduledAction_.prototype, "DayOfMonth", void 0);
94
94
  __decorate([
95
- Field({ nullable: true, description: 'Month for the scheduled action' }),
95
+ Field({ nullable: true, description: `Month for the scheduled action` }),
96
96
  MaxLength(40),
97
97
  __metadata("design:type", String)
98
98
  ], ScheduledAction_.prototype, "Month", void 0);
@@ -126,7 +126,7 @@ __decorate([
126
126
  __metadata("design:type", Array)
127
127
  ], ScheduledAction_.prototype, "ScheduledActionParams_ScheduledActionIDArray", void 0);
128
128
  ScheduledAction_ = __decorate([
129
- ObjectType({ description: 'Track scheduled actions and their details' })
129
+ ObjectType({ description: `Track scheduled actions and their details` })
130
130
  ], ScheduledAction_);
131
131
  export { ScheduledAction_ };
132
132
  let CreateScheduledActionInput = class CreateScheduledActionInput {
@@ -721,47 +721,47 @@ let ExplorerNavigationItem_ = class ExplorerNavigationItem_ {
721
721
  _mj__UpdatedAt;
722
722
  };
723
723
  __decorate([
724
- Field({ description: 'Unique identifier for each navigation item' }),
724
+ Field({ description: `Unique identifier for each navigation item` }),
725
725
  MaxLength(16),
726
726
  __metadata("design:type", String)
727
727
  ], ExplorerNavigationItem_.prototype, "ID", void 0);
728
728
  __decorate([
729
- Field(() => Int, { description: 'Sequence number for the navigation item, must be unique and greater than 0' }),
729
+ Field(() => Int, { description: `Sequence number for the navigation item, must be unique and greater than 0` }),
730
730
  __metadata("design:type", Number)
731
731
  ], ExplorerNavigationItem_.prototype, "Sequence", void 0);
732
732
  __decorate([
733
- Field({ description: 'Unique name of the navigation item displayed to the user' }),
733
+ Field({ description: `Unique name of the navigation item displayed to the user` }),
734
734
  MaxLength(200),
735
735
  __metadata("design:type", String)
736
736
  ], ExplorerNavigationItem_.prototype, "Name", void 0);
737
737
  __decorate([
738
- Field({ description: 'The route for the navigation item relative to the app main URL, using Angular syntax like "entity/:entityName"' }),
738
+ Field({ description: `The route for the navigation item relative to the app main URL, using Angular syntax like "entity/:entityName"` }),
739
739
  MaxLength(510),
740
740
  __metadata("design:type", String)
741
741
  ], ExplorerNavigationItem_.prototype, "Route", void 0);
742
742
  __decorate([
743
- Field(() => Boolean, { description: 'Indicates if the navigation item is active; allows turning off items in the UI without deleting them from the metadata' }),
743
+ Field(() => Boolean, { description: `Indicates if the navigation item is active; allows turning off items in the UI without deleting them from the metadata` }),
744
744
  __metadata("design:type", Boolean)
745
745
  ], ExplorerNavigationItem_.prototype, "IsActive", void 0);
746
746
  __decorate([
747
- Field(() => Boolean, { description: 'Controls if the navigation item is shown on the Home screen for MJ Explorer' }),
747
+ Field(() => Boolean, { description: `Controls if the navigation item is shown on the Home screen for MJ Explorer` }),
748
748
  __metadata("design:type", Boolean)
749
749
  ], ExplorerNavigationItem_.prototype, "ShowInHomeScreen", void 0);
750
750
  __decorate([
751
- Field(() => Boolean, { description: 'Controls if the item is shown in the left navigation drawer in the MJ Explorer app or not.' }),
751
+ Field(() => Boolean, { description: `Controls if the item is shown in the left navigation drawer in the MJ Explorer app or not.` }),
752
752
  __metadata("design:type", Boolean)
753
753
  ], ExplorerNavigationItem_.prototype, "ShowInNavigationDrawer", void 0);
754
754
  __decorate([
755
- Field({ nullable: true, description: 'Optional, CSS class for an icon to be displayed with the navigation item' }),
755
+ Field({ nullable: true, description: `Optional, CSS class for an icon to be displayed with the navigation item` }),
756
756
  MaxLength(200),
757
757
  __metadata("design:type", String)
758
758
  ], ExplorerNavigationItem_.prototype, "IconCSSClass", void 0);
759
759
  __decorate([
760
- Field({ nullable: true, description: 'Description of the navigation item, shown to the user on hover or in larger displays' }),
760
+ Field({ nullable: true, description: `Description of the navigation item, shown to the user on hover or in larger displays` }),
761
761
  __metadata("design:type", String)
762
762
  ], ExplorerNavigationItem_.prototype, "Description", void 0);
763
763
  __decorate([
764
- Field({ nullable: true, description: 'Administrator comments, not shown to the end user in MJ Explorer app' }),
764
+ Field({ nullable: true, description: `Administrator comments, not shown to the end user in MJ Explorer app` }),
765
765
  __metadata("design:type", String)
766
766
  ], ExplorerNavigationItem_.prototype, "Comments", void 0);
767
767
  __decorate([
@@ -775,7 +775,7 @@ __decorate([
775
775
  __metadata("design:type", Date)
776
776
  ], ExplorerNavigationItem_.prototype, "_mj__UpdatedAt", void 0);
777
777
  ExplorerNavigationItem_ = __decorate([
778
- ObjectType({ description: 'Table to store navigation items for MemberJunction Explorer' })
778
+ ObjectType({ description: `Table to store navigation items for MemberJunction Explorer` })
779
779
  ], ExplorerNavigationItem_);
780
780
  export { ExplorerNavigationItem_ };
781
781
  let CreateExplorerNavigationItemInput = class CreateExplorerNavigationItemInput {
@@ -1039,17 +1039,17 @@ let AIAgentModel_ = class AIAgentModel_ {
1039
1039
  Model;
1040
1040
  };
1041
1041
  __decorate([
1042
- Field({ description: 'The unique identifier for each AI agent-model mapping. Serves as the primary key.' }),
1042
+ Field({ description: `The unique identifier for each AI agent-model mapping. Serves as the primary key.` }),
1043
1043
  MaxLength(16),
1044
1044
  __metadata("design:type", String)
1045
1045
  ], AIAgentModel_.prototype, "ID", void 0);
1046
1046
  __decorate([
1047
- Field({ nullable: true, description: 'References the unique identifier of the associated AI agent from AIAgent table.' }),
1047
+ Field({ nullable: true, description: `References the unique identifier of the associated AI agent from AIAgent table.` }),
1048
1048
  MaxLength(16),
1049
1049
  __metadata("design:type", String)
1050
1050
  ], AIAgentModel_.prototype, "AgentID", void 0);
1051
1051
  __decorate([
1052
- Field({ nullable: true, description: 'The unique identifier of the associated AI model.' }),
1052
+ Field({ nullable: true, description: `The unique identifier of the associated AI model.` }),
1053
1053
  MaxLength(16),
1054
1054
  __metadata("design:type", String)
1055
1055
  ], AIAgentModel_.prototype, "ModelID", void 0);
@@ -1058,7 +1058,7 @@ __decorate([
1058
1058
  __metadata("design:type", Boolean)
1059
1059
  ], AIAgentModel_.prototype, "Active", void 0);
1060
1060
  __decorate([
1061
- Field(() => Int, { nullable: true, description: 'The priority level of the AI model for the agent, where higher values indicate higher priority.' }),
1061
+ Field(() => Int, { nullable: true, description: `The priority level of the AI model for the agent, where higher values indicate higher priority.` }),
1062
1062
  __metadata("design:type", Number)
1063
1063
  ], AIAgentModel_.prototype, "Priority", void 0);
1064
1064
  __decorate([
@@ -1082,7 +1082,7 @@ __decorate([
1082
1082
  __metadata("design:type", String)
1083
1083
  ], AIAgentModel_.prototype, "Model", void 0);
1084
1084
  AIAgentModel_ = __decorate([
1085
- ObjectType({ description: 'Table to store the relationship between AI agents and AI models.' })
1085
+ ObjectType({ description: `Table to store the relationship between AI agents and AI models.` })
1086
1086
  ], AIAgentModel_);
1087
1087
  export { AIAgentModel_ };
1088
1088
  let CreateAIAgentModelInput = class CreateAIAgentModelInput {
@@ -1532,17 +1532,17 @@ let AIAgent_ = class AIAgent_ {
1532
1532
  AIAgentNotes_AgentIDArray;
1533
1533
  };
1534
1534
  __decorate([
1535
- Field({ description: 'The unique identifier for each AI agent. Serves as the primary key.' }),
1535
+ Field({ description: `The unique identifier for each AI agent. Serves as the primary key.` }),
1536
1536
  MaxLength(16),
1537
1537
  __metadata("design:type", String)
1538
1538
  ], AIAgent_.prototype, "ID", void 0);
1539
1539
  __decorate([
1540
- Field({ nullable: true, description: 'The name of the AI agent.' }),
1540
+ Field({ nullable: true, description: `The name of the AI agent.` }),
1541
1541
  MaxLength(510),
1542
1542
  __metadata("design:type", String)
1543
1543
  ], AIAgent_.prototype, "Name", void 0);
1544
1544
  __decorate([
1545
- Field({ nullable: true, description: 'A detailed description of the AI agent.' }),
1545
+ Field({ nullable: true, description: `A detailed description of the AI agent.` }),
1546
1546
  __metadata("design:type", String)
1547
1547
  ], AIAgent_.prototype, "Description", void 0);
1548
1548
  __decorate([
@@ -1581,7 +1581,7 @@ __decorate([
1581
1581
  __metadata("design:type", Array)
1582
1582
  ], AIAgent_.prototype, "AIAgentNotes_AgentIDArray", void 0);
1583
1583
  AIAgent_ = __decorate([
1584
- ObjectType({ description: 'Table to store information about AI agents.' })
1584
+ ObjectType({ description: `Table to store information about AI agents.` })
1585
1585
  ], AIAgent_);
1586
1586
  export { AIAgent_ };
1587
1587
  let CreateAIAgentInput = class CreateAIAgentInput {
@@ -1891,12 +1891,12 @@ __decorate([
1891
1891
  __metadata("design:type", Date)
1892
1892
  ], AIAgentNote_.prototype, "_mj__UpdatedAt", void 0);
1893
1893
  __decorate([
1894
- Field({ description: 'Indicates the type of note, either User-specific or Global.' }),
1894
+ Field({ description: `Indicates the type of note, either User-specific or Global.` }),
1895
1895
  MaxLength(40),
1896
1896
  __metadata("design:type", String)
1897
1897
  ], AIAgentNote_.prototype, "Type", void 0);
1898
1898
  __decorate([
1899
- Field({ nullable: true, description: 'Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User' }),
1899
+ Field({ nullable: true, description: `Foreign key referencing the ID column in the User table, indicating the user associated with the note. Used when Type=User` }),
1900
1900
  MaxLength(16),
1901
1901
  __metadata("design:type", String)
1902
1902
  ], AIAgentNote_.prototype, "UserID", void 0);
@@ -2139,17 +2139,17 @@ let AIAgentAction_ = class AIAgentAction_ {
2139
2139
  Action;
2140
2140
  };
2141
2141
  __decorate([
2142
- Field({ description: 'The unique identifier for each AI agent-action mapping. Serves as the primary key.' }),
2142
+ Field({ description: `The unique identifier for each AI agent-action mapping. Serves as the primary key.` }),
2143
2143
  MaxLength(16),
2144
2144
  __metadata("design:type", String)
2145
2145
  ], AIAgentAction_.prototype, "ID", void 0);
2146
2146
  __decorate([
2147
- Field({ nullable: true, description: 'References the unique identifier of the associated AI agent from the AIAgent table.' }),
2147
+ Field({ nullable: true, description: `References the unique identifier of the associated AI agent from the AIAgent table.` }),
2148
2148
  MaxLength(16),
2149
2149
  __metadata("design:type", String)
2150
2150
  ], AIAgentAction_.prototype, "AgentID", void 0);
2151
2151
  __decorate([
2152
- Field({ nullable: true, description: 'References the unique identifier of the associated action from the Action table.' }),
2152
+ Field({ nullable: true, description: `References the unique identifier of the associated action from the Action table.` }),
2153
2153
  MaxLength(16),
2154
2154
  __metadata("design:type", String)
2155
2155
  ], AIAgentAction_.prototype, "ActionID", void 0);
@@ -2179,7 +2179,7 @@ __decorate([
2179
2179
  __metadata("design:type", String)
2180
2180
  ], AIAgentAction_.prototype, "Action", void 0);
2181
2181
  AIAgentAction_ = __decorate([
2182
- ObjectType({ description: 'Table to store the relationship between AI agents and actions.' })
2182
+ ObjectType({ description: `Table to store the relationship between AI agents and actions.` })
2183
2183
  ], AIAgentAction_);
2184
2184
  export { AIAgentAction_ };
2185
2185
  let CreateAIAgentActionInput = class CreateAIAgentActionInput {
@@ -2383,6 +2383,8 @@ let AIPrompt_ = class AIPrompt_ {
2383
2383
  CacheExpiration;
2384
2384
  _mj__CreatedAt;
2385
2385
  _mj__UpdatedAt;
2386
+ ResponseFormat;
2387
+ ModelSpecificResponseFormat;
2386
2388
  Template;
2387
2389
  Category;
2388
2390
  Type;
@@ -2403,17 +2405,17 @@ __decorate([
2403
2405
  __metadata("design:type", String)
2404
2406
  ], AIPrompt_.prototype, "Description", void 0);
2405
2407
  __decorate([
2406
- Field({ description: 'Reference to the template used for the prompt.' }),
2408
+ Field({ description: `Reference to the template used for the prompt.` }),
2407
2409
  MaxLength(16),
2408
2410
  __metadata("design:type", String)
2409
2411
  ], AIPrompt_.prototype, "TemplateID", void 0);
2410
2412
  __decorate([
2411
- Field({ nullable: true, description: 'Reference to the category the prompt belongs to.' }),
2413
+ Field({ nullable: true, description: `Reference to the category the prompt belongs to.` }),
2412
2414
  MaxLength(16),
2413
2415
  __metadata("design:type", String)
2414
2416
  ], AIPrompt_.prototype, "CategoryID", void 0);
2415
2417
  __decorate([
2416
- Field({ description: 'Reference to the type of the prompt.' }),
2418
+ Field({ description: `Reference to the type of the prompt.` }),
2417
2419
  MaxLength(16),
2418
2420
  __metadata("design:type", String)
2419
2421
  ], AIPrompt_.prototype, "TypeID", void 0);
@@ -2423,11 +2425,11 @@ __decorate([
2423
2425
  __metadata("design:type", String)
2424
2426
  ], AIPrompt_.prototype, "Status", void 0);
2425
2427
  __decorate([
2426
- Field(() => Boolean, { description: 'Indicates whether the results of the prompt should be cached.' }),
2428
+ Field(() => Boolean, { description: `Indicates whether the results of the prompt should be cached.` }),
2427
2429
  __metadata("design:type", Boolean)
2428
2430
  ], AIPrompt_.prototype, "CacheResults", void 0);
2429
2431
  __decorate([
2430
- Field(() => Float, { description: 'Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.' }),
2432
+ Field(() => Float, { description: `Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.` }),
2431
2433
  __metadata("design:type", Number)
2432
2434
  ], AIPrompt_.prototype, "CacheExpiration", void 0);
2433
2435
  __decorate([
@@ -2440,6 +2442,15 @@ __decorate([
2440
2442
  MaxLength(10),
2441
2443
  __metadata("design:type", Date)
2442
2444
  ], AIPrompt_.prototype, "_mj__UpdatedAt", void 0);
2445
+ __decorate([
2446
+ Field({ description: `Specifies the expected response format for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.` }),
2447
+ MaxLength(40),
2448
+ __metadata("design:type", String)
2449
+ ], AIPrompt_.prototype, "ResponseFormat", void 0);
2450
+ __decorate([
2451
+ Field({ nullable: true, description: `A JSON-formatted string containing model-specific response format instructions. This will be parsed and provided as a JSON object to the model.` }),
2452
+ __metadata("design:type", String)
2453
+ ], AIPrompt_.prototype, "ModelSpecificResponseFormat", void 0);
2443
2454
  __decorate([
2444
2455
  Field(),
2445
2456
  MaxLength(510),
@@ -2460,7 +2471,7 @@ __decorate([
2460
2471
  __metadata("design:type", Array)
2461
2472
  ], AIPrompt_.prototype, "AIResultCache_AIPromptIDArray", void 0);
2462
2473
  AIPrompt_ = __decorate([
2463
- ObjectType({ description: 'Stores AI prompts, including references to categories, types, and templates.' })
2474
+ ObjectType({ description: `Stores AI prompts, including references to categories, types, and templates.` })
2464
2475
  ], AIPrompt_);
2465
2476
  export { AIPrompt_ };
2466
2477
  let CreateAIPromptInput = class CreateAIPromptInput {
@@ -2472,6 +2483,8 @@ let CreateAIPromptInput = class CreateAIPromptInput {
2472
2483
  Status;
2473
2484
  CacheResults;
2474
2485
  CacheExpiration;
2486
+ ResponseFormat;
2487
+ ModelSpecificResponseFormat;
2475
2488
  };
2476
2489
  __decorate([
2477
2490
  Field(),
@@ -2505,6 +2518,14 @@ __decorate([
2505
2518
  Field(() => Float),
2506
2519
  __metadata("design:type", Number)
2507
2520
  ], CreateAIPromptInput.prototype, "CacheExpiration", void 0);
2521
+ __decorate([
2522
+ Field(),
2523
+ __metadata("design:type", String)
2524
+ ], CreateAIPromptInput.prototype, "ResponseFormat", void 0);
2525
+ __decorate([
2526
+ Field({ nullable: true }),
2527
+ __metadata("design:type", String)
2528
+ ], CreateAIPromptInput.prototype, "ModelSpecificResponseFormat", void 0);
2508
2529
  CreateAIPromptInput = __decorate([
2509
2530
  InputType()
2510
2531
  ], CreateAIPromptInput);
@@ -2519,6 +2540,8 @@ let UpdateAIPromptInput = class UpdateAIPromptInput {
2519
2540
  Status;
2520
2541
  CacheResults;
2521
2542
  CacheExpiration;
2543
+ ResponseFormat;
2544
+ ModelSpecificResponseFormat;
2522
2545
  OldValues___;
2523
2546
  };
2524
2547
  __decorate([
@@ -2557,6 +2580,14 @@ __decorate([
2557
2580
  Field(() => Float),
2558
2581
  __metadata("design:type", Number)
2559
2582
  ], UpdateAIPromptInput.prototype, "CacheExpiration", void 0);
2583
+ __decorate([
2584
+ Field(),
2585
+ __metadata("design:type", String)
2586
+ ], UpdateAIPromptInput.prototype, "ResponseFormat", void 0);
2587
+ __decorate([
2588
+ Field({ nullable: true }),
2589
+ __metadata("design:type", String)
2590
+ ], UpdateAIPromptInput.prototype, "ModelSpecificResponseFormat", void 0);
2560
2591
  __decorate([
2561
2592
  Field(() => [KeyValuePairInput], { nullable: true }),
2562
2593
  __metadata("design:type", Array)
@@ -2737,35 +2768,35 @@ __decorate([
2737
2768
  __metadata("design:type", String)
2738
2769
  ], AIResultCache_.prototype, "ID", void 0);
2739
2770
  __decorate([
2740
- Field({ description: 'Reference to the AI prompt this result corresponds to.' }),
2771
+ Field({ description: `Reference to the AI prompt this result corresponds to.` }),
2741
2772
  MaxLength(16),
2742
2773
  __metadata("design:type", String)
2743
2774
  ], AIResultCache_.prototype, "AIPromptID", void 0);
2744
2775
  __decorate([
2745
- Field({ description: 'Reference to the AI model that generated this result.' }),
2776
+ Field({ description: `Reference to the AI model that generated this result.` }),
2746
2777
  MaxLength(16),
2747
2778
  __metadata("design:type", String)
2748
2779
  ], AIResultCache_.prototype, "AIModelID", void 0);
2749
2780
  __decorate([
2750
- Field({ description: 'Timestamp of when this result was generated.' }),
2781
+ Field({ description: `Timestamp of when this result was generated.` }),
2751
2782
  MaxLength(10),
2752
2783
  __metadata("design:type", Date)
2753
2784
  ], AIResultCache_.prototype, "RunAt", void 0);
2754
2785
  __decorate([
2755
- Field({ description: 'The prompt text used to generate this result.' }),
2786
+ Field({ description: `The prompt text used to generate this result.` }),
2756
2787
  __metadata("design:type", String)
2757
2788
  ], AIResultCache_.prototype, "PromptText", void 0);
2758
2789
  __decorate([
2759
- Field({ nullable: true, description: 'The text of the result generated by the AI model.' }),
2790
+ Field({ nullable: true, description: `The text of the result generated by the AI model.` }),
2760
2791
  __metadata("design:type", String)
2761
2792
  ], AIResultCache_.prototype, "ResultText", void 0);
2762
2793
  __decorate([
2763
- Field({ description: 'The status of this result, indicating whether it is currently active or expired.' }),
2794
+ Field({ description: `The status of this result, indicating whether it is currently active or expired.` }),
2764
2795
  MaxLength(100),
2765
2796
  __metadata("design:type", String)
2766
2797
  ], AIResultCache_.prototype, "Status", void 0);
2767
2798
  __decorate([
2768
- Field({ nullable: true, description: 'Timestamp of when this result was marked as expired.' }),
2799
+ Field({ nullable: true, description: `Timestamp of when this result was marked as expired.` }),
2769
2800
  MaxLength(10),
2770
2801
  __metadata("design:type", Date)
2771
2802
  ], AIResultCache_.prototype, "ExpiredOn", void 0);
@@ -2790,7 +2821,7 @@ __decorate([
2790
2821
  __metadata("design:type", String)
2791
2822
  ], AIResultCache_.prototype, "AIModel", void 0);
2792
2823
  AIResultCache_ = __decorate([
2793
- ObjectType({ description: 'Stores cached results of AI prompts, including multiple runs for history and tracking purposes.' })
2824
+ ObjectType({ description: `Stores cached results of AI prompts, including multiple runs for history and tracking purposes.` })
2794
2825
  ], AIResultCache_);
2795
2826
  export { AIResultCache_ };
2796
2827
  let CreateAIResultCacheInput = class CreateAIResultCacheInput {
@@ -3044,7 +3075,7 @@ __decorate([
3044
3075
  __metadata("design:type", String)
3045
3076
  ], AIPromptCategory_.prototype, "Name", void 0);
3046
3077
  __decorate([
3047
- Field({ nullable: true, description: 'Parent category ID for hierarchical organization.' }),
3078
+ Field({ nullable: true, description: `Parent category ID for hierarchical organization.` }),
3048
3079
  MaxLength(16),
3049
3080
  __metadata("design:type", String)
3050
3081
  ], AIPromptCategory_.prototype, "ParentID", void 0);
@@ -3076,7 +3107,7 @@ __decorate([
3076
3107
  __metadata("design:type", Array)
3077
3108
  ], AIPromptCategory_.prototype, "AIPromptCategories_ParentIDArray", void 0);
3078
3109
  AIPromptCategory_ = __decorate([
3079
- ObjectType({ description: 'Categories for organizing AI prompts in a hierarchical structure.' })
3110
+ ObjectType({ description: `Categories for organizing AI prompts in a hierarchical structure.` })
3080
3111
  ], AIPromptCategory_);
3081
3112
  export { AIPromptCategory_ };
3082
3113
  let CreateAIPromptCategoryInput = class CreateAIPromptCategoryInput {
@@ -3335,7 +3366,7 @@ __decorate([
3335
3366
  __metadata("design:type", Array)
3336
3367
  ], AIPromptType_.prototype, "AIPrompts_TypeIDArray", void 0);
3337
3368
  AIPromptType_ = __decorate([
3338
- ObjectType({ description: 'Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.' })
3369
+ ObjectType({ description: `Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.` })
3339
3370
  ], AIPromptType_);
3340
3371
  export { AIPromptType_ };
3341
3372
  let CreateAIPromptTypeInput = class CreateAIPromptTypeInput {
@@ -3598,7 +3629,7 @@ __decorate([
3598
3629
  __metadata("design:type", Array)
3599
3630
  ], Company_.prototype, "Employees_CompanyIDArray", void 0);
3600
3631
  Company_ = __decorate([
3601
- ObjectType({ description: 'A list of organizational units within your business. These can be subsidiaries or divisions or other units. Companies are used to organizae employee records and also for separating integrations if you have multiple integrations of the same type of system.' })
3632
+ ObjectType({ description: `A list of organizational units within your business. These can be subsidiaries or divisions or other units. Companies are used to organizae employee records and also for separating integrations if you have multiple integrations of the same type of system.` })
3602
3633
  ], Company_);
3603
3634
  export { Company_ };
3604
3635
  let CreateCompanyInput = class CreateCompanyInput {
@@ -3998,7 +4029,7 @@ __decorate([
3998
4029
  __metadata("design:type", Array)
3999
4030
  ], Employee_.prototype, "EmployeeRoles_EmployeeIDArray", void 0);
4000
4031
  Employee_ = __decorate([
4001
- ObjectType({ description: 'A list of employees across all units of your organization' })
4032
+ ObjectType({ description: `A list of employees across all units of your organization` })
4002
4033
  ], Employee_);
4003
4034
  export { Employee_ };
4004
4035
  let CreateEmployeeInput = class CreateEmployeeInput {
@@ -4386,7 +4417,7 @@ __decorate([
4386
4417
  __metadata("design:type", String)
4387
4418
  ], UserFavorite_.prototype, "EntityBaseView", void 0);
4388
4419
  UserFavorite_ = __decorate([
4389
- ObjectType({ description: 'Records that each user can mark as a favorite for easy access' })
4420
+ ObjectType({ description: `Records that each user can mark as a favorite for easy access` })
4390
4421
  ], UserFavorite_);
4391
4422
  export { UserFavorite_ };
4392
4423
  let CreateUserFavoriteInput = class CreateUserFavoriteInput {
@@ -4901,6 +4932,10 @@ let EmployeeRoleResolver = class EmployeeRoleResolver extends ResolverBase {
4901
4932
  async UpdateEmployeeRole(input, { dataSource, userPayload }, pubSub) {
4902
4933
  return this.UpdateRecord('Employee Roles', input, dataSource, userPayload, pubSub);
4903
4934
  }
4935
+ async DeleteEmployeeRole(ID, options, { dataSource, userPayload }, pubSub) {
4936
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
4937
+ return this.DeleteRecord('Employee Roles', key, options, dataSource, userPayload, pubSub);
4938
+ }
4904
4939
  };
4905
4940
  __decorate([
4906
4941
  Query(() => RunEmployeeRoleViewResult),
@@ -4947,6 +4982,16 @@ __decorate([
4947
4982
  __metadata("design:paramtypes", [UpdateEmployeeRoleInput, Object, PubSubEngine]),
4948
4983
  __metadata("design:returntype", Promise)
4949
4984
  ], EmployeeRoleResolver.prototype, "UpdateEmployeeRole", null);
4985
+ __decorate([
4986
+ Mutation(() => EmployeeRole_),
4987
+ __param(0, Arg('ID', () => String)),
4988
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
4989
+ __param(2, Ctx()),
4990
+ __param(3, PubSub()),
4991
+ __metadata("design:type", Function),
4992
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
4993
+ __metadata("design:returntype", Promise)
4994
+ ], EmployeeRoleResolver.prototype, "DeleteEmployeeRole", null);
4950
4995
  EmployeeRoleResolver = __decorate([
4951
4996
  Resolver(EmployeeRole_)
4952
4997
  ], EmployeeRoleResolver);
@@ -5080,6 +5125,10 @@ let EmployeeSkillResolver = class EmployeeSkillResolver extends ResolverBase {
5080
5125
  async UpdateEmployeeSkill(input, { dataSource, userPayload }, pubSub) {
5081
5126
  return this.UpdateRecord('Employee Skills', input, dataSource, userPayload, pubSub);
5082
5127
  }
5128
+ async DeleteEmployeeSkill(ID, options, { dataSource, userPayload }, pubSub) {
5129
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
5130
+ return this.DeleteRecord('Employee Skills', key, options, dataSource, userPayload, pubSub);
5131
+ }
5083
5132
  };
5084
5133
  __decorate([
5085
5134
  Query(() => RunEmployeeSkillViewResult),
@@ -5126,6 +5175,16 @@ __decorate([
5126
5175
  __metadata("design:paramtypes", [UpdateEmployeeSkillInput, Object, PubSubEngine]),
5127
5176
  __metadata("design:returntype", Promise)
5128
5177
  ], EmployeeSkillResolver.prototype, "UpdateEmployeeSkill", null);
5178
+ __decorate([
5179
+ Mutation(() => EmployeeSkill_),
5180
+ __param(0, Arg('ID', () => String)),
5181
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
5182
+ __param(2, Ctx()),
5183
+ __param(3, PubSub()),
5184
+ __metadata("design:type", Function),
5185
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
5186
+ __metadata("design:returntype", Promise)
5187
+ ], EmployeeSkillResolver.prototype, "DeleteEmployeeSkill", null);
5129
5188
  EmployeeSkillResolver = __decorate([
5130
5189
  Resolver(EmployeeSkill_)
5131
5190
  ], EmployeeSkillResolver);
@@ -5156,16 +5215,16 @@ __decorate([
5156
5215
  __metadata("design:type", String)
5157
5216
  ], Role_.prototype, "Name", void 0);
5158
5217
  __decorate([
5159
- Field({ nullable: true, description: 'Description of the role' }),
5218
+ Field({ nullable: true, description: `Description of the role` }),
5160
5219
  __metadata("design:type", String)
5161
5220
  ], Role_.prototype, "Description", void 0);
5162
5221
  __decorate([
5163
- Field({ nullable: true, description: 'The unique ID of the role in the directory being used for authentication, for example an ID in Azure.' }),
5222
+ Field({ nullable: true, description: `The unique ID of the role in the directory being used for authentication, for example an ID in Azure.` }),
5164
5223
  MaxLength(500),
5165
5224
  __metadata("design:type", String)
5166
5225
  ], Role_.prototype, "DirectoryID", void 0);
5167
5226
  __decorate([
5168
- Field({ nullable: true, description: 'The name of the role in the database, this is used for auto-generating permission statements by CodeGen' }),
5227
+ Field({ nullable: true, description: `The name of the role in the database, this is used for auto-generating permission statements by CodeGen` }),
5169
5228
  MaxLength(500),
5170
5229
  __metadata("design:type", String)
5171
5230
  ], Role_.prototype, "SQLName", void 0);
@@ -5204,7 +5263,7 @@ __decorate([
5204
5263
  __metadata("design:type", Array)
5205
5264
  ], Role_.prototype, "ResourcePermissions_RoleIDArray", void 0);
5206
5265
  Role_ = __decorate([
5207
- ObjectType({ description: 'Roles are used for security administration and can have zero to many Users as members' })
5266
+ ObjectType({ description: `Roles are used for security administration and can have zero to many Users as members` })
5208
5267
  ], Role_);
5209
5268
  export { Role_ };
5210
5269
  let CreateRoleInput = class CreateRoleInput {
@@ -5559,7 +5618,7 @@ __decorate([
5559
5618
  __metadata("design:type", Array)
5560
5619
  ], Skill_.prototype, "Skills_ParentIDArray", void 0);
5561
5620
  Skill_ = __decorate([
5562
- ObjectType({ description: 'A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity' })
5621
+ ObjectType({ description: `A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity` })
5563
5622
  ], Skill_);
5564
5623
  export { Skill_ };
5565
5624
  let RunSkillViewResult = class RunSkillViewResult {
@@ -5733,7 +5792,7 @@ __decorate([
5733
5792
  __metadata("design:type", String)
5734
5793
  ], IntegrationURLFormat_.prototype, "EntityID", void 0);
5735
5794
  __decorate([
5736
- Field({ description: 'The URL Format for the given integration including the ability to include markup with fields from the integration' }),
5795
+ Field({ description: `The URL Format for the given integration including the ability to include markup with fields from the integration` }),
5737
5796
  MaxLength(1000),
5738
5797
  __metadata("design:type", String)
5739
5798
  ], IntegrationURLFormat_.prototype, "URLFormat", void 0);
@@ -5767,7 +5826,7 @@ __decorate([
5767
5826
  __metadata("design:type", String)
5768
5827
  ], IntegrationURLFormat_.prototype, "FullURLFormat", void 0);
5769
5828
  IntegrationURLFormat_ = __decorate([
5770
- ObjectType({ description: 'Used to generate web links for end users to easily access resources in a source system. URL Formats support templating to inject various field values at run-time to take a user directly to a resource in a source system.' })
5829
+ ObjectType({ description: `Used to generate web links for end users to easily access resources in a source system. URL Formats support templating to inject various field values at run-time to take a user directly to a resource in a source system.` })
5771
5830
  ], IntegrationURLFormat_);
5772
5831
  export { IntegrationURLFormat_ };
5773
5832
  let UpdateIntegrationURLFormatInput = class UpdateIntegrationURLFormatInput {
@@ -5873,6 +5932,10 @@ let IntegrationURLFormatResolver = class IntegrationURLFormatResolver extends Re
5873
5932
  async UpdateIntegrationURLFormat(input, { dataSource, userPayload }, pubSub) {
5874
5933
  return this.UpdateRecord('Integration URL Formats', input, dataSource, userPayload, pubSub);
5875
5934
  }
5935
+ async DeleteIntegrationURLFormat(ID, options, { dataSource, userPayload }, pubSub) {
5936
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
5937
+ return this.DeleteRecord('Integration URL Formats', key, options, dataSource, userPayload, pubSub);
5938
+ }
5876
5939
  };
5877
5940
  __decorate([
5878
5941
  Query(() => RunIntegrationURLFormatViewResult),
@@ -5927,6 +5990,16 @@ __decorate([
5927
5990
  __metadata("design:paramtypes", [UpdateIntegrationURLFormatInput, Object, PubSubEngine]),
5928
5991
  __metadata("design:returntype", Promise)
5929
5992
  ], IntegrationURLFormatResolver.prototype, "UpdateIntegrationURLFormat", null);
5993
+ __decorate([
5994
+ Mutation(() => IntegrationURLFormat_),
5995
+ __param(0, Arg('ID', () => String)),
5996
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
5997
+ __param(2, Ctx()),
5998
+ __param(3, PubSub()),
5999
+ __metadata("design:type", Function),
6000
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
6001
+ __metadata("design:returntype", Promise)
6002
+ ], IntegrationURLFormatResolver.prototype, "DeleteIntegrationURLFormat", null);
5930
6003
  IntegrationURLFormatResolver = __decorate([
5931
6004
  Resolver(IntegrationURLFormat_)
5932
6005
  ], IntegrationURLFormatResolver);
@@ -6007,7 +6080,7 @@ __decorate([
6007
6080
  __metadata("design:type", Array)
6008
6081
  ], Integration_.prototype, "RecordChanges_IntegrationIDArray", void 0);
6009
6082
  Integration_ = __decorate([
6010
- ObjectType({ description: 'Catalog of all integrations that have been configured in the system.' })
6083
+ ObjectType({ description: `Catalog of all integrations that have been configured in the system.` })
6011
6084
  ], Integration_);
6012
6085
  export { Integration_ };
6013
6086
  let UpdateIntegrationInput = class UpdateIntegrationInput {
@@ -6146,6 +6219,10 @@ let IntegrationResolver = class IntegrationResolver extends ResolverBase {
6146
6219
  async UpdateIntegration(input, { dataSource, userPayload }, pubSub) {
6147
6220
  return this.UpdateRecord('Integrations', input, dataSource, userPayload, pubSub);
6148
6221
  }
6222
+ async DeleteIntegration(ID, options, { dataSource, userPayload }, pubSub) {
6223
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
6224
+ return this.DeleteRecord('Integrations', key, options, dataSource, userPayload, pubSub);
6225
+ }
6149
6226
  };
6150
6227
  __decorate([
6151
6228
  Query(() => RunIntegrationViewResult),
@@ -6227,6 +6304,16 @@ __decorate([
6227
6304
  __metadata("design:paramtypes", [UpdateIntegrationInput, Object, PubSubEngine]),
6228
6305
  __metadata("design:returntype", Promise)
6229
6306
  ], IntegrationResolver.prototype, "UpdateIntegration", null);
6307
+ __decorate([
6308
+ Mutation(() => Integration_),
6309
+ __param(0, Arg('ID', () => String)),
6310
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
6311
+ __param(2, Ctx()),
6312
+ __param(3, PubSub()),
6313
+ __metadata("design:type", Function),
6314
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
6315
+ __metadata("design:returntype", Promise)
6316
+ ], IntegrationResolver.prototype, "DeleteIntegration", null);
6230
6317
  IntegrationResolver = __decorate([
6231
6318
  Resolver(Integration_)
6232
6319
  ], IntegrationResolver);
@@ -6384,7 +6471,7 @@ __decorate([
6384
6471
  __metadata("design:type", Array)
6385
6472
  ], CompanyIntegration_.prototype, "EmployeeCompanyIntegrations_CompanyIntegrationIDArray", void 0);
6386
6473
  CompanyIntegration_ = __decorate([
6387
- ObjectType({ description: 'Links individual company records to specific integrations' })
6474
+ ObjectType({ description: `Links individual company records to specific integrations` })
6388
6475
  ], CompanyIntegration_);
6389
6476
  export { CompanyIntegration_ };
6390
6477
  let UpdateCompanyIntegrationInput = class UpdateCompanyIntegrationInput {
@@ -6548,6 +6635,10 @@ let CompanyIntegrationResolver = class CompanyIntegrationResolver extends Resolv
6548
6635
  async UpdateCompanyIntegration(input, { dataSource, userPayload }, pubSub) {
6549
6636
  return this.UpdateRecord('Company Integrations', input, dataSource, userPayload, pubSub);
6550
6637
  }
6638
+ async DeleteCompanyIntegration(ID, options, { dataSource, userPayload }, pubSub) {
6639
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
6640
+ return this.DeleteRecord('Company Integrations', key, options, dataSource, userPayload, pubSub);
6641
+ }
6551
6642
  };
6552
6643
  __decorate([
6553
6644
  Query(() => RunCompanyIntegrationViewResult),
@@ -6630,6 +6721,16 @@ __decorate([
6630
6721
  __metadata("design:paramtypes", [UpdateCompanyIntegrationInput, Object, PubSubEngine]),
6631
6722
  __metadata("design:returntype", Promise)
6632
6723
  ], CompanyIntegrationResolver.prototype, "UpdateCompanyIntegration", null);
6724
+ __decorate([
6725
+ Mutation(() => CompanyIntegration_),
6726
+ __param(0, Arg('ID', () => String)),
6727
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
6728
+ __param(2, Ctx()),
6729
+ __param(3, PubSub()),
6730
+ __metadata("design:type", Function),
6731
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
6732
+ __metadata("design:returntype", Promise)
6733
+ ], CompanyIntegrationResolver.prototype, "DeleteCompanyIntegration", null);
6633
6734
  CompanyIntegrationResolver = __decorate([
6634
6735
  Resolver(CompanyIntegration_)
6635
6736
  ], CompanyIntegrationResolver);
@@ -6675,6 +6776,9 @@ let EntityField_ = class EntityField_ {
6675
6776
  EntityIDFieldName;
6676
6777
  _mj__CreatedAt;
6677
6778
  _mj__UpdatedAt;
6779
+ ScopeDefault;
6780
+ AutoUpdateRelatedEntityInfo;
6781
+ ValuesToPackWithSchema;
6678
6782
  Entity;
6679
6783
  SchemaName;
6680
6784
  BaseTable;
@@ -6700,133 +6804,133 @@ __decorate([
6700
6804
  __metadata("design:type", String)
6701
6805
  ], EntityField_.prototype, "EntityID", void 0);
6702
6806
  __decorate([
6703
- Field(() => Int, { description: 'Display order of the field within the entity' }),
6807
+ Field(() => Int, { description: `Display order of the field within the entity` }),
6704
6808
  __metadata("design:type", Number)
6705
6809
  ], EntityField_.prototype, "Sequence", void 0);
6706
6810
  __decorate([
6707
- Field({ description: 'Name of the field within the database table' }),
6811
+ Field({ description: `Name of the field within the database table` }),
6708
6812
  MaxLength(510),
6709
6813
  __metadata("design:type", String)
6710
6814
  ], EntityField_.prototype, "Name", void 0);
6711
6815
  __decorate([
6712
- Field({ nullable: true, description: 'A user friendly alternative to the field name' }),
6816
+ Field({ nullable: true, description: `A user friendly alternative to the field name` }),
6713
6817
  MaxLength(510),
6714
6818
  __metadata("design:type", String)
6715
6819
  ], EntityField_.prototype, "DisplayName", void 0);
6716
6820
  __decorate([
6717
- Field({ nullable: true, description: 'Descriptive text explaining the purpose of the field' }),
6821
+ Field({ nullable: true, description: `Descriptive text explaining the purpose of the field` }),
6718
6822
  __metadata("design:type", String)
6719
6823
  ], EntityField_.prototype, "Description", void 0);
6720
6824
  __decorate([
6721
- Field(() => Boolean, { description: 'When set to 1 (default), whenever a description is modified in the column within the underlying view (first choice) or table (second choice), the Description column in the entity field definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity field definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.' }),
6825
+ Field(() => Boolean, { description: `When set to 1 (default), whenever a description is modified in the column within the underlying view (first choice) or table (second choice), the Description column in the entity field definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity field definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.` }),
6722
6826
  __metadata("design:type", Boolean)
6723
6827
  ], EntityField_.prototype, "AutoUpdateDescription", void 0);
6724
6828
  __decorate([
6725
- Field(() => Boolean, { description: 'Indicates if the field is part of the primary key for the entity (auto maintained by CodeGen)' }),
6829
+ Field(() => Boolean, { description: `Indicates if the field is part of the primary key for the entity (auto maintained by CodeGen)` }),
6726
6830
  __metadata("design:type", Boolean)
6727
6831
  ], EntityField_.prototype, "IsPrimaryKey", void 0);
6728
6832
  __decorate([
6729
- Field(() => Boolean, { description: 'Indicates if the field must have unique values within the entity.' }),
6833
+ Field(() => Boolean, { description: `Indicates if the field must have unique values within the entity.` }),
6730
6834
  __metadata("design:type", Boolean)
6731
6835
  ], EntityField_.prototype, "IsUnique", void 0);
6732
6836
  __decorate([
6733
- Field({ nullable: true, description: 'Used for generating custom tabs in the generated forms, only utilized if GeneratedFormSection=Category' }),
6837
+ Field({ nullable: true, description: `Used for generating custom tabs in the generated forms, only utilized if GeneratedFormSection=Category` }),
6734
6838
  MaxLength(510),
6735
6839
  __metadata("design:type", String)
6736
6840
  ], EntityField_.prototype, "Category", void 0);
6737
6841
  __decorate([
6738
- Field({ description: 'SQL Data type (auto maintained by CodeGen)' }),
6842
+ Field({ description: `SQL Data type (auto maintained by CodeGen)` }),
6739
6843
  MaxLength(200),
6740
6844
  __metadata("design:type", String)
6741
6845
  ], EntityField_.prototype, "Type", void 0);
6742
6846
  __decorate([
6743
- Field(() => Int, { nullable: true, description: 'SQL data length (auto maintained by CodeGen)' }),
6847
+ Field(() => Int, { nullable: true, description: `SQL data length (auto maintained by CodeGen)` }),
6744
6848
  __metadata("design:type", Number)
6745
6849
  ], EntityField_.prototype, "Length", void 0);
6746
6850
  __decorate([
6747
- Field(() => Int, { nullable: true, description: 'SQL precision (auto maintained by CodeGen)' }),
6851
+ Field(() => Int, { nullable: true, description: `SQL precision (auto maintained by CodeGen)` }),
6748
6852
  __metadata("design:type", Number)
6749
6853
  ], EntityField_.prototype, "Precision", void 0);
6750
6854
  __decorate([
6751
- Field(() => Int, { nullable: true, description: 'SQL scale (auto maintained by CodeGen)' }),
6855
+ Field(() => Int, { nullable: true, description: `SQL scale (auto maintained by CodeGen)` }),
6752
6856
  __metadata("design:type", Number)
6753
6857
  ], EntityField_.prototype, "Scale", void 0);
6754
6858
  __decorate([
6755
- Field(() => Boolean, { description: 'Does the column allow null or not (auto maintained by CodeGen)' }),
6859
+ Field(() => Boolean, { description: `Does the column allow null or not (auto maintained by CodeGen)` }),
6756
6860
  __metadata("design:type", Boolean)
6757
6861
  ], EntityField_.prototype, "AllowsNull", void 0);
6758
6862
  __decorate([
6759
- Field({ nullable: true, description: 'If a default value is defined for the field it is stored here (auto maintained by CodeGen)' }),
6863
+ Field({ nullable: true, description: `If a default value is defined for the field it is stored here (auto maintained by CodeGen)` }),
6760
6864
  MaxLength(510),
6761
6865
  __metadata("design:type", String)
6762
6866
  ], EntityField_.prototype, "DefaultValue", void 0);
6763
6867
  __decorate([
6764
- Field(() => Boolean, { description: 'If this field automatically increments within the table, this field is set to 1 (auto maintained by CodeGen)' }),
6868
+ Field(() => Boolean, { description: `If this field automatically increments within the table, this field is set to 1 (auto maintained by CodeGen)` }),
6765
6869
  __metadata("design:type", Boolean)
6766
6870
  ], EntityField_.prototype, "AutoIncrement", void 0);
6767
6871
  __decorate([
6768
- Field({ description: 'Possible Values of None, List, ListOrUserEntry - the last option meaning that the list of possible values are options, but a user can enter anything else desired too.' }),
6872
+ Field({ description: `Possible Values of None, List, ListOrUserEntry - the last option meaning that the list of possible values are options, but a user can enter anything else desired too.` }),
6769
6873
  MaxLength(40),
6770
6874
  __metadata("design:type", String)
6771
6875
  ], EntityField_.prototype, "ValueListType", void 0);
6772
6876
  __decorate([
6773
- Field({ nullable: true, description: 'Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.' }),
6877
+ Field({ nullable: true, description: `Defines extended behaviors for a field such as for Email, Web URLs, Code, etc.` }),
6774
6878
  MaxLength(100),
6775
6879
  __metadata("design:type", String)
6776
6880
  ], EntityField_.prototype, "ExtendedType", void 0);
6777
6881
  __decorate([
6778
- Field({ nullable: true, description: 'The type of code associated with this field. Only used when the ExtendedType field is set to "Code"' }),
6882
+ Field({ nullable: true, description: `The type of code associated with this field. Only used when the ExtendedType field is set to "Code"` }),
6779
6883
  MaxLength(100),
6780
6884
  __metadata("design:type", String)
6781
6885
  ], EntityField_.prototype, "CodeType", void 0);
6782
6886
  __decorate([
6783
- Field(() => Boolean, { description: 'If set to 1, this field will be included by default in any new view created by a user.' }),
6887
+ Field(() => Boolean, { description: `If set to 1, this field will be included by default in any new view created by a user.` }),
6784
6888
  __metadata("design:type", Boolean)
6785
6889
  ], EntityField_.prototype, "DefaultInView", void 0);
6786
6890
  __decorate([
6787
- Field({ nullable: true, description: 'NULL' }),
6891
+ Field({ nullable: true, description: `NULL` }),
6788
6892
  __metadata("design:type", String)
6789
6893
  ], EntityField_.prototype, "ViewCellTemplate", void 0);
6790
6894
  __decorate([
6791
- Field(() => Int, { nullable: true, description: 'Determines the default width for this field when included in a view' }),
6895
+ Field(() => Int, { nullable: true, description: `Determines the default width for this field when included in a view` }),
6792
6896
  __metadata("design:type", Number)
6793
6897
  ], EntityField_.prototype, "DefaultColumnWidth", void 0);
6794
6898
  __decorate([
6795
- Field(() => Boolean, { description: 'If set to 1, this field will be considered updateable by the API and object model. For this field to have effect, the column type must be updateable (e.g. not part of the primary key and not auto-increment)' }),
6899
+ Field(() => Boolean, { description: `If set to 1, this field will be considered updateable by the API and object model. For this field to have effect, the column type must be updateable (e.g. not part of the primary key and not auto-increment)` }),
6796
6900
  __metadata("design:type", Boolean)
6797
6901
  ], EntityField_.prototype, "AllowUpdateAPI", void 0);
6798
6902
  __decorate([
6799
- Field(() => Boolean, { description: 'If set to 1, and if AllowUpdateAPI=1, the field can be edited within a view when the view is in edit mode.' }),
6903
+ Field(() => Boolean, { description: `If set to 1, and if AllowUpdateAPI=1, the field can be edited within a view when the view is in edit mode.` }),
6800
6904
  __metadata("design:type", Boolean)
6801
6905
  ], EntityField_.prototype, "AllowUpdateInView", void 0);
6802
6906
  __decorate([
6803
- Field(() => Boolean, { description: 'If set to 1, this column will be included in user search queries for both traditional and full text search' }),
6907
+ Field(() => Boolean, { description: `If set to 1, this column will be included in user search queries for both traditional and full text search` }),
6804
6908
  __metadata("design:type", Boolean)
6805
6909
  ], EntityField_.prototype, "IncludeInUserSearchAPI", void 0);
6806
6910
  __decorate([
6807
- Field(() => Boolean, { description: 'If set to 1, CodeGen will automatically generate a Full Text Catalog/Index in the database and include this field in the search index.' }),
6911
+ Field(() => Boolean, { description: `If set to 1, CodeGen will automatically generate a Full Text Catalog/Index in the database and include this field in the search index.` }),
6808
6912
  __metadata("design:type", Boolean)
6809
6913
  ], EntityField_.prototype, "FullTextSearchEnabled", void 0);
6810
6914
  __decorate([
6811
- Field({ nullable: true, description: 'NULL' }),
6915
+ Field({ nullable: true, description: `NULL` }),
6812
6916
  MaxLength(1000),
6813
6917
  __metadata("design:type", String)
6814
6918
  ], EntityField_.prototype, "UserSearchParamFormatAPI", void 0);
6815
6919
  __decorate([
6816
- Field(() => Boolean, { description: 'If set to 1, this field will be included in the generated form by CodeGen. If set to 0, this field will be excluded from the generated form. For custom forms, this field has no effect as the layout is controlled independently.' }),
6920
+ Field(() => Boolean, { description: `If set to 1, this field will be included in the generated form by CodeGen. If set to 0, this field will be excluded from the generated form. For custom forms, this field has no effect as the layout is controlled independently.` }),
6817
6921
  __metadata("design:type", Boolean)
6818
6922
  ], EntityField_.prototype, "IncludeInGeneratedForm", void 0);
6819
6923
  __decorate([
6820
- Field({ description: 'When set to Top, the field will be placed in a "top area" on the top of a generated form and visible regardless of which tab is displayed. When set to "category" Options: Top, Category, Details' }),
6924
+ Field({ description: `When set to Top, the field will be placed in a "top area" on the top of a generated form and visible regardless of which tab is displayed. When set to "category" Options: Top, Category, Details` }),
6821
6925
  MaxLength(20),
6822
6926
  __metadata("design:type", String)
6823
6927
  ], EntityField_.prototype, "GeneratedFormSection", void 0);
6824
6928
  __decorate([
6825
- Field(() => Boolean, { description: 'NULL' }),
6929
+ Field(() => Boolean, { description: `NULL` }),
6826
6930
  __metadata("design:type", Boolean)
6827
6931
  ], EntityField_.prototype, "IsVirtual", void 0);
6828
6932
  __decorate([
6829
- Field(() => Boolean, { description: 'If set to 1, this column will be used as the "Name" field for the entity and will be used to display the name of the record in various places in the UI.' }),
6933
+ Field(() => Boolean, { description: `If set to 1, this column will be used as the "Name" field for the entity and will be used to display the name of the record in various places in the UI.` }),
6830
6934
  __metadata("design:type", Boolean)
6831
6935
  ], EntityField_.prototype, "IsNameField", void 0);
6832
6936
  __decorate([
@@ -6835,12 +6939,12 @@ __decorate([
6835
6939
  __metadata("design:type", String)
6836
6940
  ], EntityField_.prototype, "RelatedEntityID", void 0);
6837
6941
  __decorate([
6838
- Field({ nullable: true, description: 'Name of the field in the Related Entity that this field links to (auto maintained by CodeGen)' }),
6942
+ Field({ nullable: true, description: `Name of the field in the Related Entity that this field links to (auto maintained by CodeGen)` }),
6839
6943
  MaxLength(510),
6840
6944
  __metadata("design:type", String)
6841
6945
  ], EntityField_.prototype, "RelatedEntityFieldName", void 0);
6842
6946
  __decorate([
6843
- Field(() => Boolean, { description: 'If set to 1, the "Name" field of the Related Entity will be included in this entity as a virtual field' }),
6947
+ Field(() => Boolean, { description: `If set to 1, the "Name" field of the Related Entity will be included in this entity as a virtual field` }),
6844
6948
  __metadata("design:type", Boolean)
6845
6949
  ], EntityField_.prototype, "IncludeRelatedEntityNameFieldInBaseView", void 0);
6846
6950
  __decorate([
@@ -6849,12 +6953,12 @@ __decorate([
6849
6953
  __metadata("design:type", String)
6850
6954
  ], EntityField_.prototype, "RelatedEntityNameFieldMap", void 0);
6851
6955
  __decorate([
6852
- Field({ description: 'Controls the generated form in the MJ Explorer UI - defaults to a search box, other option is a drop down. Possible values are Search and Dropdown' }),
6956
+ Field({ description: `Controls the generated form in the MJ Explorer UI - defaults to a search box, other option is a drop down. Possible values are Search and Dropdown` }),
6853
6957
  MaxLength(40),
6854
6958
  __metadata("design:type", String)
6855
6959
  ], EntityField_.prototype, "RelatedEntityDisplayType", void 0);
6856
6960
  __decorate([
6857
- Field({ nullable: true, description: 'Optional, used for "Soft Keys" to link records to different entity/record combinations on a per-record basis (for example the FileEntityRecordLink table has an EntityID/RecordID field pair. For that entity, the RecordID specifies "EntityID" for this field. This information allows MJ to detect soft keys/links for dependency detection, merging and for preventing orphaned soft-linked records during delete operations.' }),
6961
+ Field({ nullable: true, description: `Optional, used for "Soft Keys" to link records to different entity/record combinations on a per-record basis (for example the FileEntityRecordLink table has an EntityID/RecordID field pair. For that entity, the RecordID specifies "EntityID" for this field. This information allows MJ to detect soft keys/links for dependency detection, merging and for preventing orphaned soft-linked records during delete operations.` }),
6858
6962
  MaxLength(200),
6859
6963
  __metadata("design:type", String)
6860
6964
  ], EntityField_.prototype, "EntityIDFieldName", void 0);
@@ -6868,6 +6972,20 @@ __decorate([
6868
6972
  MaxLength(10),
6869
6973
  __metadata("design:type", Date)
6870
6974
  ], EntityField_.prototype, "_mj__UpdatedAt", void 0);
6975
+ __decorate([
6976
+ Field({ nullable: true, description: `A comma-delimited string indicating the default scope for field visibility. Options include Users, Admins, AI, and All. Defaults to All when NULL. This is used for a simple method of filtering field defaults for visibility, not security enforcement.` }),
6977
+ MaxLength(200),
6978
+ __metadata("design:type", String)
6979
+ ], EntityField_.prototype, "ScopeDefault", void 0);
6980
+ __decorate([
6981
+ Field(() => Boolean, { description: `Indicates whether the related entity information should be automatically updated from the database schema. When set to 0, relationships not part of the database schema can be manually defined at the application and AI agent level. Defaults to 1.` }),
6982
+ __metadata("design:type", Boolean)
6983
+ ], EntityField_.prototype, "AutoUpdateRelatedEntityInfo", void 0);
6984
+ __decorate([
6985
+ Field({ description: `Determines whether values for the field should be included when the schema is packed. Options: Auto (include manually set or auto-derived values), None (exclude all values), All (include all distinct values from the table). Defaults to Auto.` }),
6986
+ MaxLength(20),
6987
+ __metadata("design:type", String)
6988
+ ], EntityField_.prototype, "ValuesToPackWithSchema", void 0);
6871
6989
  __decorate([
6872
6990
  Field(),
6873
6991
  MaxLength(510),
@@ -6929,7 +7047,7 @@ __decorate([
6929
7047
  __metadata("design:type", Array)
6930
7048
  ], EntityField_.prototype, "EntityFieldValues_EntityFieldIDArray", void 0);
6931
7049
  EntityField_ = __decorate([
6932
- ObjectType({ description: 'List of all fields within each entity with metadata about each field' })
7050
+ ObjectType({ description: `List of all fields within each entity with metadata about each field` })
6933
7051
  ], EntityField_);
6934
7052
  export { EntityField_ };
6935
7053
  let CreateEntityFieldInput = class CreateEntityFieldInput {
@@ -6959,6 +7077,9 @@ let CreateEntityFieldInput = class CreateEntityFieldInput {
6959
7077
  RelatedEntityNameFieldMap;
6960
7078
  RelatedEntityDisplayType;
6961
7079
  EntityIDFieldName;
7080
+ ScopeDefault;
7081
+ AutoUpdateRelatedEntityInfo;
7082
+ ValuesToPackWithSchema;
6962
7083
  };
6963
7084
  __decorate([
6964
7085
  Field({ nullable: true }),
@@ -7064,6 +7185,18 @@ __decorate([
7064
7185
  Field({ nullable: true }),
7065
7186
  __metadata("design:type", String)
7066
7187
  ], CreateEntityFieldInput.prototype, "EntityIDFieldName", void 0);
7188
+ __decorate([
7189
+ Field({ nullable: true }),
7190
+ __metadata("design:type", String)
7191
+ ], CreateEntityFieldInput.prototype, "ScopeDefault", void 0);
7192
+ __decorate([
7193
+ Field(() => Boolean),
7194
+ __metadata("design:type", Boolean)
7195
+ ], CreateEntityFieldInput.prototype, "AutoUpdateRelatedEntityInfo", void 0);
7196
+ __decorate([
7197
+ Field(),
7198
+ __metadata("design:type", String)
7199
+ ], CreateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
7067
7200
  CreateEntityFieldInput = __decorate([
7068
7201
  InputType()
7069
7202
  ], CreateEntityFieldInput);
@@ -7096,6 +7229,9 @@ let UpdateEntityFieldInput = class UpdateEntityFieldInput {
7096
7229
  RelatedEntityNameFieldMap;
7097
7230
  RelatedEntityDisplayType;
7098
7231
  EntityIDFieldName;
7232
+ ScopeDefault;
7233
+ AutoUpdateRelatedEntityInfo;
7234
+ ValuesToPackWithSchema;
7099
7235
  OldValues___;
7100
7236
  };
7101
7237
  __decorate([
@@ -7206,6 +7342,18 @@ __decorate([
7206
7342
  Field({ nullable: true }),
7207
7343
  __metadata("design:type", String)
7208
7344
  ], UpdateEntityFieldInput.prototype, "EntityIDFieldName", void 0);
7345
+ __decorate([
7346
+ Field({ nullable: true }),
7347
+ __metadata("design:type", String)
7348
+ ], UpdateEntityFieldInput.prototype, "ScopeDefault", void 0);
7349
+ __decorate([
7350
+ Field(() => Boolean),
7351
+ __metadata("design:type", Boolean)
7352
+ ], UpdateEntityFieldInput.prototype, "AutoUpdateRelatedEntityInfo", void 0);
7353
+ __decorate([
7354
+ Field(),
7355
+ __metadata("design:type", String)
7356
+ ], UpdateEntityFieldInput.prototype, "ValuesToPackWithSchema", void 0);
7209
7357
  __decorate([
7210
7358
  Field(() => [KeyValuePairInput], { nullable: true }),
7211
7359
  __metadata("design:type", Array)
@@ -7428,6 +7576,11 @@ let Entity_ = class Entity_ {
7428
7576
  Icon;
7429
7577
  _mj__CreatedAt;
7430
7578
  _mj__UpdatedAt;
7579
+ ScopeDefault;
7580
+ RowsToPackWithSchema;
7581
+ RowsToPackSampleMethod;
7582
+ RowsToPackSampleCount;
7583
+ RowsToPackSampleOrder;
7431
7584
  CodeName;
7432
7585
  ClassName;
7433
7586
  BaseTableCodeName;
@@ -7496,7 +7649,7 @@ __decorate([
7496
7649
  __metadata("design:type", String)
7497
7650
  ], Entity_.prototype, "Description", void 0);
7498
7651
  __decorate([
7499
- Field(() => Boolean, { description: 'When set to 1 (default), whenever a description is modified in the underlying view (first choice) or table (second choice), the Description column in the entity definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.' }),
7652
+ Field(() => Boolean, { description: `When set to 1 (default), whenever a description is modified in the underlying view (first choice) or table (second choice), the Description column in the entity definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.` }),
7500
7653
  __metadata("design:type", Boolean)
7501
7654
  ], Entity_.prototype, "AutoUpdateDescription", void 0);
7502
7655
  __decorate([
@@ -7510,7 +7663,7 @@ __decorate([
7510
7663
  __metadata("design:type", String)
7511
7664
  ], Entity_.prototype, "BaseView", void 0);
7512
7665
  __decorate([
7513
- Field(() => Boolean, { description: 'When set to 0, CodeGen no longer generates a base view for the entity.' }),
7666
+ Field(() => Boolean, { description: `When set to 0, CodeGen no longer generates a base view for the entity.` }),
7514
7667
  __metadata("design:type", Boolean)
7515
7668
  ], Entity_.prototype, "BaseViewGenerated", void 0);
7516
7669
  __decorate([
@@ -7523,43 +7676,43 @@ __decorate([
7523
7676
  __metadata("design:type", Boolean)
7524
7677
  ], Entity_.prototype, "VirtualEntity", void 0);
7525
7678
  __decorate([
7526
- Field(() => Boolean, { description: 'When set to 1, changes made via the MemberJunction architecture will result in tracking records being created in the RecordChange table. In addition, when turned on CodeGen will ensure that your table has two fields: __mj_CreatedAt and __mj_UpdatedAt which are special fields used in conjunction with the RecordChange table to track changes to rows in your entity.' }),
7679
+ Field(() => Boolean, { description: `When set to 1, changes made via the MemberJunction architecture will result in tracking records being created in the RecordChange table. In addition, when turned on CodeGen will ensure that your table has two fields: __mj_CreatedAt and __mj_UpdatedAt which are special fields used in conjunction with the RecordChange table to track changes to rows in your entity.` }),
7527
7680
  __metadata("design:type", Boolean)
7528
7681
  ], Entity_.prototype, "TrackRecordChanges", void 0);
7529
7682
  __decorate([
7530
- Field(() => Boolean, { description: 'When set to 1, accessing a record by an end-user will result in an Audit Log record being created' }),
7683
+ Field(() => Boolean, { description: `When set to 1, accessing a record by an end-user will result in an Audit Log record being created` }),
7531
7684
  __metadata("design:type", Boolean)
7532
7685
  ], Entity_.prototype, "AuditRecordAccess", void 0);
7533
7686
  __decorate([
7534
- Field(() => Boolean, { description: 'When set to 1, users running a view against this entity will result in an Audit Log record being created.' }),
7687
+ Field(() => Boolean, { description: `When set to 1, users running a view against this entity will result in an Audit Log record being created.` }),
7535
7688
  __metadata("design:type", Boolean)
7536
7689
  ], Entity_.prototype, "AuditViewRuns", void 0);
7537
7690
  __decorate([
7538
- Field(() => Boolean, { description: 'If set to 0, the entity will not be available at all in the GraphQL API or the object model.' }),
7691
+ Field(() => Boolean, { description: `If set to 0, the entity will not be available at all in the GraphQL API or the object model.` }),
7539
7692
  __metadata("design:type", Boolean)
7540
7693
  ], Entity_.prototype, "IncludeInAPI", void 0);
7541
7694
  __decorate([
7542
- Field(() => Boolean, { description: 'If set to 1, a GraphQL query will be enabled that allows access to all rows in the entity.' }),
7695
+ Field(() => Boolean, { description: `If set to 1, a GraphQL query will be enabled that allows access to all rows in the entity.` }),
7543
7696
  __metadata("design:type", Boolean)
7544
7697
  ], Entity_.prototype, "AllowAllRowsAPI", void 0);
7545
7698
  __decorate([
7546
- Field(() => Boolean, { description: 'Global flag controlling if updates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.' }),
7699
+ Field(() => Boolean, { description: `Global flag controlling if updates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.` }),
7547
7700
  __metadata("design:type", Boolean)
7548
7701
  ], Entity_.prototype, "AllowUpdateAPI", void 0);
7549
7702
  __decorate([
7550
- Field(() => Boolean, { description: 'Global flag controlling if creates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.' }),
7703
+ Field(() => Boolean, { description: `Global flag controlling if creates are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.` }),
7551
7704
  __metadata("design:type", Boolean)
7552
7705
  ], Entity_.prototype, "AllowCreateAPI", void 0);
7553
7706
  __decorate([
7554
- Field(() => Boolean, { description: 'Global flag controlling if deletes are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.' }),
7707
+ Field(() => Boolean, { description: `Global flag controlling if deletes are allowed for any user, or not. If set to 1, a GraqhQL mutation and stored procedure are created. Permissions are still required to perform the action but if this flag is set to 0, no user will be able to perform the action.` }),
7555
7708
  __metadata("design:type", Boolean)
7556
7709
  ], Entity_.prototype, "AllowDeleteAPI", void 0);
7557
7710
  __decorate([
7558
- Field(() => Boolean, { description: 'Set to 1 if a custom resolver has been created for the entity.' }),
7711
+ Field(() => Boolean, { description: `Set to 1 if a custom resolver has been created for the entity.` }),
7559
7712
  __metadata("design:type", Boolean)
7560
7713
  ], Entity_.prototype, "CustomResolverAPI", void 0);
7561
7714
  __decorate([
7562
- Field(() => Boolean, { description: 'Enabling this bit will result in search being possible at the API and UI layers' }),
7715
+ Field(() => Boolean, { description: `Enabling this bit will result in search being possible at the API and UI layers` }),
7563
7716
  __metadata("design:type", Boolean)
7564
7717
  ], Entity_.prototype, "AllowUserSearchAPI", void 0);
7565
7718
  __decorate([
@@ -7625,25 +7778,25 @@ __decorate([
7625
7778
  __metadata("design:type", Boolean)
7626
7779
  ], Entity_.prototype, "spDeleteGenerated", void 0);
7627
7780
  __decorate([
7628
- Field(() => Boolean, { description: 'When set to 1, the deleted spDelete will pre-process deletion to related entities that have 1:M cardinality with this entity. This does not have effect if spDeleteGenerated = 0' }),
7781
+ Field(() => Boolean, { description: `When set to 1, the deleted spDelete will pre-process deletion to related entities that have 1:M cardinality with this entity. This does not have effect if spDeleteGenerated = 0` }),
7629
7782
  __metadata("design:type", Boolean)
7630
7783
  ], Entity_.prototype, "CascadeDeletes", void 0);
7631
7784
  __decorate([
7632
- Field({ description: 'Hard deletes physically remove rows from the underlying BaseTable. Soft deletes do not remove rows but instead mark the row as deleted by using the special field __mj_DeletedAt which will automatically be added to the entity\'s basetable by the CodeGen tool.' }),
7785
+ Field({ description: `Hard deletes physically remove rows from the underlying BaseTable. Soft deletes do not remove rows but instead mark the row as deleted by using the special field __mj_DeletedAt which will automatically be added to the entity's basetable by the CodeGen tool.` }),
7633
7786
  MaxLength(20),
7634
7787
  __metadata("design:type", String)
7635
7788
  ], Entity_.prototype, "DeleteType", void 0);
7636
7789
  __decorate([
7637
- Field(() => Boolean, { description: 'This field must be turned on in order to enable merging of records for the entity. For AllowRecordMerge to be turned on, AllowDeleteAPI must be set to 1, and DeleteType must be set to Soft' }),
7790
+ Field(() => Boolean, { description: `This field must be turned on in order to enable merging of records for the entity. For AllowRecordMerge to be turned on, AllowDeleteAPI must be set to 1, and DeleteType must be set to Soft` }),
7638
7791
  __metadata("design:type", Boolean)
7639
7792
  ], Entity_.prototype, "AllowRecordMerge", void 0);
7640
7793
  __decorate([
7641
- Field({ nullable: true, description: 'When specified, this stored procedure is used to find matching records in this particular entity. The convention is to pass in the primary key(s) columns for the given entity to the procedure and the return will be zero to many rows where there is a column for each primary key field(s) and a ProbabilityScore (numeric(1,12)) column that has a 0 to 1 value of the probability of a match.' }),
7794
+ Field({ nullable: true, description: `When specified, this stored procedure is used to find matching records in this particular entity. The convention is to pass in the primary key(s) columns for the given entity to the procedure and the return will be zero to many rows where there is a column for each primary key field(s) and a ProbabilityScore (numeric(1,12)) column that has a 0 to 1 value of the probability of a match.` }),
7642
7795
  MaxLength(510),
7643
7796
  __metadata("design:type", String)
7644
7797
  ], Entity_.prototype, "spMatch", void 0);
7645
7798
  __decorate([
7646
- Field({ description: 'When another entity links to this entity with a foreign key, this is the default component type that will be used in the UI. CodeGen will populate the RelatedEntityDisplayType column in the Entity Fields entity with whatever is provided here whenever a new foreign key is detected by CodeGen. The selection can be overridden on a per-foreign-key basis in each row of the Entity Fields entity.' }),
7799
+ Field({ description: `When another entity links to this entity with a foreign key, this is the default component type that will be used in the UI. CodeGen will populate the RelatedEntityDisplayType column in the Entity Fields entity with whatever is provided here whenever a new foreign key is detected by CodeGen. The selection can be overridden on a per-foreign-key basis in each row of the Entity Fields entity.` }),
7647
7800
  MaxLength(40),
7648
7801
  __metadata("design:type", String)
7649
7802
  ], Entity_.prototype, "RelationshipDefaultDisplayType", void 0);
@@ -7662,12 +7815,12 @@ __decorate([
7662
7815
  __metadata("design:type", String)
7663
7816
  ], Entity_.prototype, "EntityObjectSubclassImport", void 0);
7664
7817
  __decorate([
7665
- Field({ nullable: true, description: 'Used to specify a field within the entity that in turn contains the field name that will be used for record-level communication preferences. For example in a hypothetical entity called Contacts, say there is a field called PreferredComm and that field had possible values of Email1, SMS, and Phone, and those value in turn corresponded to field names in the entity. Each record in the Contacts entity could have a specific preference for which field would be used for communication. The MJ Communication Framework will use this information when available, as a priority ahead of the data in the Entity Communication Fields entity which is entity-level and not record-level.' }),
7818
+ Field({ nullable: true, description: `Used to specify a field within the entity that in turn contains the field name that will be used for record-level communication preferences. For example in a hypothetical entity called Contacts, say there is a field called PreferredComm and that field had possible values of Email1, SMS, and Phone, and those value in turn corresponded to field names in the entity. Each record in the Contacts entity could have a specific preference for which field would be used for communication. The MJ Communication Framework will use this information when available, as a priority ahead of the data in the Entity Communication Fields entity which is entity-level and not record-level.` }),
7666
7819
  MaxLength(510),
7667
7820
  __metadata("design:type", String)
7668
7821
  ], Entity_.prototype, "PreferredCommunicationField", void 0);
7669
7822
  __decorate([
7670
- Field({ nullable: true, description: 'Optional, specify an icon (CSS Class) for each entity for display in the UI' }),
7823
+ Field({ nullable: true, description: `Optional, specify an icon (CSS Class) for each entity for display in the UI` }),
7671
7824
  MaxLength(1000),
7672
7825
  __metadata("design:type", String)
7673
7826
  ], Entity_.prototype, "Icon", void 0);
@@ -7681,6 +7834,29 @@ __decorate([
7681
7834
  MaxLength(10),
7682
7835
  __metadata("design:type", Date)
7683
7836
  ], Entity_.prototype, "_mj__UpdatedAt", void 0);
7837
+ __decorate([
7838
+ Field({ nullable: true, description: `Optional, comma-delimited string indicating the default scope for entity visibility. Options include Users, Admins, AI, and All. Defaults to All when NULL. This is used for simple defaults for filtering entity visibility, not security enforcement.` }),
7839
+ MaxLength(200),
7840
+ __metadata("design:type", String)
7841
+ ], Entity_.prototype, "ScopeDefault", void 0);
7842
+ __decorate([
7843
+ Field({ description: `Determines how entity rows should be packaged for external use. Options include None, Sample, and All. Defaults to None.` }),
7844
+ MaxLength(40),
7845
+ __metadata("design:type", String)
7846
+ ], Entity_.prototype, "RowsToPackWithSchema", void 0);
7847
+ __decorate([
7848
+ Field({ description: `Defines the sampling method for row packing when RowsToPackWithSchema is set to Sample. Options include random, top n, and bottom n. Defaults to random.` }),
7849
+ MaxLength(40),
7850
+ __metadata("design:type", String)
7851
+ ], Entity_.prototype, "RowsToPackSampleMethod", void 0);
7852
+ __decorate([
7853
+ Field(() => Int, { description: `The number of rows to pack when RowsToPackWithSchema is set to Sample, based on the designated sampling method. Defaults to 0.` }),
7854
+ __metadata("design:type", Number)
7855
+ ], Entity_.prototype, "RowsToPackSampleCount", void 0);
7856
+ __decorate([
7857
+ Field({ nullable: true, description: `An optional ORDER BY clause for row packing when RowsToPackWithSchema is set to Sample. Allows custom ordering for selected entity data when using top n and bottom n.` }),
7858
+ __metadata("design:type", String)
7859
+ ], Entity_.prototype, "RowsToPackSampleOrder", void 0);
7684
7860
  __decorate([
7685
7861
  Field({ nullable: true }),
7686
7862
  __metadata("design:type", String)
@@ -7853,7 +8029,7 @@ __decorate([
7853
8029
  __metadata("design:type", Array)
7854
8030
  ], Entity_.prototype, "QueryEntities_EntityIDArray", void 0);
7855
8031
  Entity_ = __decorate([
7856
- ObjectType({ description: 'Catalog of all entities across all schemas' })
8032
+ ObjectType({ description: `Catalog of all entities across all schemas` })
7857
8033
  ], Entity_);
7858
8034
  export { Entity_ };
7859
8035
  let CreateEntityInput = class CreateEntityInput {
@@ -7899,6 +8075,11 @@ let CreateEntityInput = class CreateEntityInput {
7899
8075
  EntityObjectSubclassImport;
7900
8076
  PreferredCommunicationField;
7901
8077
  Icon;
8078
+ ScopeDefault;
8079
+ RowsToPackWithSchema;
8080
+ RowsToPackSampleMethod;
8081
+ RowsToPackSampleCount;
8082
+ RowsToPackSampleOrder;
7902
8083
  };
7903
8084
  __decorate([
7904
8085
  Field({ nullable: true }),
@@ -8068,6 +8249,26 @@ __decorate([
8068
8249
  Field({ nullable: true }),
8069
8250
  __metadata("design:type", String)
8070
8251
  ], CreateEntityInput.prototype, "Icon", void 0);
8252
+ __decorate([
8253
+ Field({ nullable: true }),
8254
+ __metadata("design:type", String)
8255
+ ], CreateEntityInput.prototype, "ScopeDefault", void 0);
8256
+ __decorate([
8257
+ Field(),
8258
+ __metadata("design:type", String)
8259
+ ], CreateEntityInput.prototype, "RowsToPackWithSchema", void 0);
8260
+ __decorate([
8261
+ Field(),
8262
+ __metadata("design:type", String)
8263
+ ], CreateEntityInput.prototype, "RowsToPackSampleMethod", void 0);
8264
+ __decorate([
8265
+ Field(() => Int),
8266
+ __metadata("design:type", Number)
8267
+ ], CreateEntityInput.prototype, "RowsToPackSampleCount", void 0);
8268
+ __decorate([
8269
+ Field({ nullable: true }),
8270
+ __metadata("design:type", String)
8271
+ ], CreateEntityInput.prototype, "RowsToPackSampleOrder", void 0);
8071
8272
  CreateEntityInput = __decorate([
8072
8273
  InputType()
8073
8274
  ], CreateEntityInput);
@@ -8116,6 +8317,11 @@ let UpdateEntityInput = class UpdateEntityInput {
8116
8317
  EntityObjectSubclassImport;
8117
8318
  PreferredCommunicationField;
8118
8319
  Icon;
8320
+ ScopeDefault;
8321
+ RowsToPackWithSchema;
8322
+ RowsToPackSampleMethod;
8323
+ RowsToPackSampleCount;
8324
+ RowsToPackSampleOrder;
8119
8325
  OldValues___;
8120
8326
  };
8121
8327
  __decorate([
@@ -8290,6 +8496,26 @@ __decorate([
8290
8496
  Field({ nullable: true }),
8291
8497
  __metadata("design:type", String)
8292
8498
  ], UpdateEntityInput.prototype, "Icon", void 0);
8499
+ __decorate([
8500
+ Field({ nullable: true }),
8501
+ __metadata("design:type", String)
8502
+ ], UpdateEntityInput.prototype, "ScopeDefault", void 0);
8503
+ __decorate([
8504
+ Field(),
8505
+ __metadata("design:type", String)
8506
+ ], UpdateEntityInput.prototype, "RowsToPackWithSchema", void 0);
8507
+ __decorate([
8508
+ Field(),
8509
+ __metadata("design:type", String)
8510
+ ], UpdateEntityInput.prototype, "RowsToPackSampleMethod", void 0);
8511
+ __decorate([
8512
+ Field(() => Int),
8513
+ __metadata("design:type", Number)
8514
+ ], UpdateEntityInput.prototype, "RowsToPackSampleCount", void 0);
8515
+ __decorate([
8516
+ Field({ nullable: true }),
8517
+ __metadata("design:type", String)
8518
+ ], UpdateEntityInput.prototype, "RowsToPackSampleOrder", void 0);
8293
8519
  __decorate([
8294
8520
  Field(() => [KeyValuePairInput], { nullable: true }),
8295
8521
  __metadata("design:type", Array)
@@ -9296,7 +9522,7 @@ __decorate([
9296
9522
  __metadata("design:type", Array)
9297
9523
  ], User_.prototype, "AIAgentRequests_RequestForUserIDArray", void 0);
9298
9524
  User_ = __decorate([
9299
- ObjectType({ description: 'A list of all users who have or had access to the system' })
9525
+ ObjectType({ description: `A list of all users who have or had access to the system` })
9300
9526
  ], User_);
9301
9527
  export { User_ };
9302
9528
  let CreateUserInput = class CreateUserInput {
@@ -10160,6 +10386,7 @@ let EntityRelationship_ = class EntityRelationship_ {
10160
10386
  DisplayComponentConfiguration;
10161
10387
  _mj__CreatedAt;
10162
10388
  _mj__UpdatedAt;
10389
+ AutoUpdateFromSchema;
10163
10390
  Entity;
10164
10391
  EntityBaseTable;
10165
10392
  EntityBaseView;
@@ -10182,7 +10409,7 @@ __decorate([
10182
10409
  __metadata("design:type", String)
10183
10410
  ], EntityRelationship_.prototype, "EntityID", void 0);
10184
10411
  __decorate([
10185
- Field(() => Int, { description: 'Used for display order in generated forms and in other places in the UI where relationships for an entity are shown' }),
10412
+ Field(() => Int, { description: `Used for display order in generated forms and in other places in the UI where relationships for an entity are shown` }),
10186
10413
  __metadata("design:type", Number)
10187
10414
  ], EntityRelationship_.prototype, "Sequence", void 0);
10188
10415
  __decorate([
@@ -10229,7 +10456,7 @@ __decorate([
10229
10456
  __metadata("design:type", String)
10230
10457
  ], EntityRelationship_.prototype, "JoinEntityInverseJoinField", void 0);
10231
10458
  __decorate([
10232
- Field(() => Boolean, { description: 'When unchecked the relationship will NOT be displayed on the generated form' }),
10459
+ Field(() => Boolean, { description: `When unchecked the relationship will NOT be displayed on the generated form` }),
10233
10460
  __metadata("design:type", Boolean)
10234
10461
  ], EntityRelationship_.prototype, "DisplayInForm", void 0);
10235
10462
  __decorate([
@@ -10238,17 +10465,17 @@ __decorate([
10238
10465
  __metadata("design:type", String)
10239
10466
  ], EntityRelationship_.prototype, "DisplayLocation", void 0);
10240
10467
  __decorate([
10241
- Field({ nullable: true, description: 'Optional, when specified this value overrides the related entity name for the label on the tab' }),
10468
+ Field({ nullable: true, description: `Optional, when specified this value overrides the related entity name for the label on the tab` }),
10242
10469
  MaxLength(510),
10243
10470
  __metadata("design:type", String)
10244
10471
  ], EntityRelationship_.prototype, "DisplayName", void 0);
10245
10472
  __decorate([
10246
- Field({ description: 'When Related Entity Icon - uses the icon from the related entity, if one exists. When Custom, uses the value in the DisplayIcon field in this record, and when None, no icon is displayed' }),
10473
+ Field({ description: `When Related Entity Icon - uses the icon from the related entity, if one exists. When Custom, uses the value in the DisplayIcon field in this record, and when None, no icon is displayed` }),
10247
10474
  MaxLength(100),
10248
10475
  __metadata("design:type", String)
10249
10476
  ], EntityRelationship_.prototype, "DisplayIconType", void 0);
10250
10477
  __decorate([
10251
- Field({ nullable: true, description: 'If specified, the icon ' }),
10478
+ Field({ nullable: true, description: `If specified, the icon ` }),
10252
10479
  MaxLength(510),
10253
10480
  __metadata("design:type", String)
10254
10481
  ], EntityRelationship_.prototype, "DisplayIcon", void 0);
@@ -10263,7 +10490,7 @@ __decorate([
10263
10490
  __metadata("design:type", String)
10264
10491
  ], EntityRelationship_.prototype, "DisplayComponentID", void 0);
10265
10492
  __decorate([
10266
- Field({ nullable: true, description: 'If DisplayComponentID is specified, this field can optionally be used to track component-specific and relationship-specific configuration details that will be used by CodeGen to provide to the display component selected.' }),
10493
+ Field({ nullable: true, description: `If DisplayComponentID is specified, this field can optionally be used to track component-specific and relationship-specific configuration details that will be used by CodeGen to provide to the display component selected.` }),
10267
10494
  __metadata("design:type", String)
10268
10495
  ], EntityRelationship_.prototype, "DisplayComponentConfiguration", void 0);
10269
10496
  __decorate([
@@ -10276,6 +10503,10 @@ __decorate([
10276
10503
  MaxLength(10),
10277
10504
  __metadata("design:type", Date)
10278
10505
  ], EntityRelationship_.prototype, "_mj__UpdatedAt", void 0);
10506
+ __decorate([
10507
+ Field(() => Boolean, { description: `Indicates whether this relationship should be automatically updated by CodeGen. When set to 0, the record will not be modified by CodeGen. Defaults to 1.` }),
10508
+ __metadata("design:type", Boolean)
10509
+ ], EntityRelationship_.prototype, "AutoUpdateFromSchema", void 0);
10279
10510
  __decorate([
10280
10511
  Field(),
10281
10512
  MaxLength(510),
@@ -10324,7 +10555,7 @@ __decorate([
10324
10555
  __metadata("design:type", String)
10325
10556
  ], EntityRelationship_.prototype, "DisplayUserViewName", void 0);
10326
10557
  EntityRelationship_ = __decorate([
10327
- ObjectType({ description: 'Metadata about relationships between entities including display preferences for the UI' })
10558
+ ObjectType({ description: `Metadata about relationships between entities including display preferences for the UI` })
10328
10559
  ], EntityRelationship_);
10329
10560
  export { EntityRelationship_ };
10330
10561
  let CreateEntityRelationshipInput = class CreateEntityRelationshipInput {
@@ -10346,6 +10577,7 @@ let CreateEntityRelationshipInput = class CreateEntityRelationshipInput {
10346
10577
  DisplayIcon;
10347
10578
  DisplayComponentID;
10348
10579
  DisplayComponentConfiguration;
10580
+ AutoUpdateFromSchema;
10349
10581
  };
10350
10582
  __decorate([
10351
10583
  Field(),
@@ -10419,6 +10651,10 @@ __decorate([
10419
10651
  Field({ nullable: true }),
10420
10652
  __metadata("design:type", String)
10421
10653
  ], CreateEntityRelationshipInput.prototype, "DisplayComponentConfiguration", void 0);
10654
+ __decorate([
10655
+ Field(() => Boolean),
10656
+ __metadata("design:type", Boolean)
10657
+ ], CreateEntityRelationshipInput.prototype, "AutoUpdateFromSchema", void 0);
10422
10658
  CreateEntityRelationshipInput = __decorate([
10423
10659
  InputType()
10424
10660
  ], CreateEntityRelationshipInput);
@@ -10443,6 +10679,7 @@ let UpdateEntityRelationshipInput = class UpdateEntityRelationshipInput {
10443
10679
  DisplayIcon;
10444
10680
  DisplayComponentID;
10445
10681
  DisplayComponentConfiguration;
10682
+ AutoUpdateFromSchema;
10446
10683
  OldValues___;
10447
10684
  };
10448
10685
  __decorate([
@@ -10521,6 +10758,10 @@ __decorate([
10521
10758
  Field({ nullable: true }),
10522
10759
  __metadata("design:type", String)
10523
10760
  ], UpdateEntityRelationshipInput.prototype, "DisplayComponentConfiguration", void 0);
10761
+ __decorate([
10762
+ Field(() => Boolean),
10763
+ __metadata("design:type", Boolean)
10764
+ ], UpdateEntityRelationshipInput.prototype, "AutoUpdateFromSchema", void 0);
10524
10765
  __decorate([
10525
10766
  Field(() => [KeyValuePairInput], { nullable: true }),
10526
10767
  __metadata("design:type", Array)
@@ -11093,7 +11334,7 @@ __decorate([
11093
11334
  __metadata("design:type", Array)
11094
11335
  ], UserView_.prototype, "EntityRelationships_DisplayUserViewGUIDArray", void 0);
11095
11336
  UserView_ = __decorate([
11096
- ObjectType({ description: 'Views are sets of records within a given entity defined by filtering rules. Views can be used programatically to retrieve dynamic sets of data and in user interfaces like MJ Explorer for end-user consumption.' })
11337
+ ObjectType({ description: `Views are sets of records within a given entity defined by filtering rules. Views can be used programatically to retrieve dynamic sets of data and in user interfaces like MJ Explorer for end-user consumption.` })
11097
11338
  ], UserView_);
11098
11339
  export { UserView_ };
11099
11340
  let CreateUserViewInput = class CreateUserViewInput {
@@ -11548,16 +11789,16 @@ __decorate([
11548
11789
  __metadata("design:type", Date)
11549
11790
  ], CompanyIntegrationRun_.prototype, "_mj__UpdatedAt", void 0);
11550
11791
  __decorate([
11551
- Field({ description: 'Status of the integration run. Possible values: Pending, In Progress, Success, Failed.' }),
11792
+ Field({ description: `Status of the integration run. Possible values: Pending, In Progress, Success, Failed.` }),
11552
11793
  MaxLength(40),
11553
11794
  __metadata("design:type", String)
11554
11795
  ], CompanyIntegrationRun_.prototype, "Status", void 0);
11555
11796
  __decorate([
11556
- Field({ nullable: true, description: 'Optional error log information for the integration run.' }),
11797
+ Field({ nullable: true, description: `Optional error log information for the integration run.` }),
11557
11798
  __metadata("design:type", String)
11558
11799
  ], CompanyIntegrationRun_.prototype, "ErrorLog", void 0);
11559
11800
  __decorate([
11560
- Field({ nullable: true, description: 'Optional configuration data in JSON format for the request that started the integration run for audit purposes.' }),
11801
+ Field({ nullable: true, description: `Optional configuration data in JSON format for the request that started the integration run for audit purposes.` }),
11561
11802
  __metadata("design:type", String)
11562
11803
  ], CompanyIntegrationRun_.prototype, "ConfigData", void 0);
11563
11804
  __decorate([
@@ -12495,12 +12736,12 @@ __decorate([
12495
12736
  __metadata("design:type", String)
12496
12737
  ], Application_.prototype, "Description", void 0);
12497
12738
  __decorate([
12498
- Field({ nullable: true, description: 'Specify the CSS class information for the display icon for each application.' }),
12739
+ Field({ nullable: true, description: `Specify the CSS class information for the display icon for each application.` }),
12499
12740
  MaxLength(1000),
12500
12741
  __metadata("design:type", String)
12501
12742
  ], Application_.prototype, "Icon", void 0);
12502
12743
  __decorate([
12503
- Field(() => Boolean, { description: 'If turned on, when a new user first uses the MJ Explorer app, the application records with this turned on will have this application included in their selected application list.' }),
12744
+ Field(() => Boolean, { description: `If turned on, when a new user first uses the MJ Explorer app, the application records with this turned on will have this application included in their selected application list.` }),
12504
12745
  __metadata("design:type", Boolean)
12505
12746
  ], Application_.prototype, "DefaultForNewUser", void 0);
12506
12747
  __decorate([
@@ -12526,7 +12767,7 @@ __decorate([
12526
12767
  __metadata("design:type", Array)
12527
12768
  ], Application_.prototype, "ApplicationEntities_ApplicationIDArray", void 0);
12528
12769
  Application_ = __decorate([
12529
- ObjectType({ description: 'Applications are used to group entities in the user interface for ease of user access' })
12770
+ ObjectType({ description: `Applications are used to group entities in the user interface for ease of user access` })
12530
12771
  ], Application_);
12531
12772
  export { Application_ };
12532
12773
  let CreateApplicationInput = class CreateApplicationInput {
@@ -12822,7 +13063,7 @@ __decorate([
12822
13063
  __metadata("design:type", Number)
12823
13064
  ], ApplicationEntity_.prototype, "Sequence", void 0);
12824
13065
  __decorate([
12825
- Field(() => Boolean, { description: 'When set to 1, the entity will be included by default for a new user when they first access the application in question' }),
13066
+ Field(() => Boolean, { description: `When set to 1, the entity will be included by default for a new user when they first access the application in question` }),
12826
13067
  __metadata("design:type", Boolean)
12827
13068
  ], ApplicationEntity_.prototype, "DefaultForNewUser", void 0);
12828
13069
  __decorate([
@@ -12863,7 +13104,7 @@ __decorate([
12863
13104
  __metadata("design:type", String)
12864
13105
  ], ApplicationEntity_.prototype, "EntityBaseTableCodeName", void 0);
12865
13106
  ApplicationEntity_ = __decorate([
12866
- ObjectType({ description: 'List of entities within each application. An application can have any number of entities and an entity can be part of any number of applications.' })
13107
+ ObjectType({ description: `List of entities within each application. An application can have any number of entities and an entity can be part of any number of applications.` })
12867
13108
  ], ApplicationEntity_);
12868
13109
  export { ApplicationEntity_ };
12869
13110
  let CreateApplicationEntityInput = class CreateApplicationEntityInput {
@@ -13184,7 +13425,7 @@ __decorate([
13184
13425
  __metadata("design:type", String)
13185
13426
  ], EntityPermission_.prototype, "DeleteRLSFilter", void 0);
13186
13427
  EntityPermission_ = __decorate([
13187
- ObjectType({ description: 'Security settings for each entity' })
13428
+ ObjectType({ description: `Security settings for each entity` })
13188
13429
  ], EntityPermission_);
13189
13430
  export { EntityPermission_ };
13190
13431
  let CreateEntityPermissionInput = class CreateEntityPermissionInput {
@@ -14337,7 +14578,7 @@ __decorate([
14337
14578
  __metadata("design:type", Array)
14338
14579
  ], List_.prototype, "DuplicateRuns_SourceListIDArray", void 0);
14339
14580
  List_ = __decorate([
14340
- ObjectType({ description: 'Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.' })
14581
+ ObjectType({ description: `Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.` })
14341
14582
  ], List_);
14342
14583
  export { List_ };
14343
14584
  let CreateListInput = class CreateListInput {
@@ -14640,12 +14881,12 @@ __decorate([
14640
14881
  __metadata("design:type", Date)
14641
14882
  ], ListDetail_.prototype, "_mj__UpdatedAt", void 0);
14642
14883
  __decorate([
14643
- Field({ description: 'Tracks the status of each individual list detail row to enable processing of various types and the use of the status column for filtering list detail rows within a list that are in a particular state.' }),
14884
+ Field({ description: `Tracks the status of each individual list detail row to enable processing of various types and the use of the status column for filtering list detail rows within a list that are in a particular state.` }),
14644
14885
  MaxLength(60),
14645
14886
  __metadata("design:type", String)
14646
14887
  ], ListDetail_.prototype, "Status", void 0);
14647
14888
  __decorate([
14648
- Field({ nullable: true, description: 'Optional column that allows for tracking any additional data for each ListDetail row' }),
14889
+ Field({ nullable: true, description: `Optional column that allows for tracking any additional data for each ListDetail row` }),
14649
14890
  __metadata("design:type", String)
14650
14891
  ], ListDetail_.prototype, "AdditionalData", void 0);
14651
14892
  __decorate([
@@ -14654,7 +14895,7 @@ __decorate([
14654
14895
  __metadata("design:type", String)
14655
14896
  ], ListDetail_.prototype, "List", void 0);
14656
14897
  ListDetail_ = __decorate([
14657
- ObjectType({ description: 'Tracks the records within each list.' })
14898
+ ObjectType({ description: `Tracks the records within each list.` })
14658
14899
  ], ListDetail_);
14659
14900
  export { ListDetail_ };
14660
14901
  let CreateListDetailInput = class CreateListDetailInput {
@@ -14922,7 +15163,7 @@ __decorate([
14922
15163
  __metadata("design:type", Array)
14923
15164
  ], UserViewRun_.prototype, "UserViewRunDetails_UserViewRunIDArray", void 0);
14924
15165
  UserViewRun_ = __decorate([
14925
- ObjectType({ description: 'User Views can be logged when run to capture the date and user that ran the view as well as the output results.' })
15166
+ ObjectType({ description: `User Views can be logged when run to capture the date and user that ran the view as well as the output results.` })
14926
15167
  ], UserViewRun_);
14927
15168
  export { UserViewRun_ };
14928
15169
  let CreateUserViewRunInput = class CreateUserViewRunInput {
@@ -15160,7 +15401,7 @@ __decorate([
15160
15401
  __metadata("design:type", String)
15161
15402
  ], UserViewRunDetail_.prototype, "EntityID", void 0);
15162
15403
  UserViewRunDetail_ = __decorate([
15163
- ObjectType({ description: 'Tracks the set of records that were included in each run of a given user view.' })
15404
+ ObjectType({ description: `Tracks the set of records that were included in each run of a given user view.` })
15164
15405
  ], UserViewRunDetail_);
15165
15406
  export { UserViewRunDetail_ };
15166
15407
  let CreateUserViewRunDetailInput = class CreateUserViewRunDetailInput {
@@ -15597,20 +15838,20 @@ __decorate([
15597
15838
  __metadata("design:type", String)
15598
15839
  ], Workflow_.prototype, "ExternalSystemRecordID", void 0);
15599
15840
  __decorate([
15600
- Field(() => Boolean, { description: 'If set to 1, the workflow will be run automatically on the interval specified by the AutoRunIntervalType and AutoRunInterval fields' }),
15841
+ Field(() => Boolean, { description: `If set to 1, the workflow will be run automatically on the interval specified by the AutoRunIntervalType and AutoRunInterval fields` }),
15601
15842
  __metadata("design:type", Boolean)
15602
15843
  ], Workflow_.prototype, "AutoRunEnabled", void 0);
15603
15844
  __decorate([
15604
- Field({ nullable: true, description: 'Minutes, Hours, Days, Weeks, Months, Years' }),
15845
+ Field({ nullable: true, description: `Minutes, Hours, Days, Weeks, Months, Years` }),
15605
15846
  MaxLength(40),
15606
15847
  __metadata("design:type", String)
15607
15848
  ], Workflow_.prototype, "AutoRunIntervalUnits", void 0);
15608
15849
  __decorate([
15609
- Field(() => Int, { nullable: true, description: 'The interval, denominated in the units specified in the AutoRunIntervalUnits column, between auto runs of this workflow.' }),
15850
+ Field(() => Int, { nullable: true, description: `The interval, denominated in the units specified in the AutoRunIntervalUnits column, between auto runs of this workflow.` }),
15610
15851
  __metadata("design:type", Number)
15611
15852
  ], Workflow_.prototype, "AutoRunInterval", void 0);
15612
15853
  __decorate([
15613
- Field({ nullable: true, description: 'If specified, this subclass key, via the ClassFactory, will be instantiated, to execute this workflow. If not specified the WorkflowBase class will be used by default.' }),
15854
+ Field({ nullable: true, description: `If specified, this subclass key, via the ClassFactory, will be instantiated, to execute this workflow. If not specified the WorkflowBase class will be used by default.` }),
15614
15855
  MaxLength(400),
15615
15856
  __metadata("design:type", String)
15616
15857
  ], Workflow_.prototype, "SubclassName", void 0);
@@ -15992,6 +16233,10 @@ let WorkflowEngineResolver = class WorkflowEngineResolver extends ResolverBase {
15992
16233
  async UpdateWorkflowEngine(input, { dataSource, userPayload }, pubSub) {
15993
16234
  return this.UpdateRecord('Workflow Engines', input, dataSource, userPayload, pubSub);
15994
16235
  }
16236
+ async DeleteWorkflowEngine(ID, options, { dataSource, userPayload }, pubSub) {
16237
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
16238
+ return this.DeleteRecord('Workflow Engines', key, options, dataSource, userPayload, pubSub);
16239
+ }
15995
16240
  };
15996
16241
  __decorate([
15997
16242
  Query(() => RunWorkflowEngineViewResult),
@@ -16047,6 +16292,16 @@ __decorate([
16047
16292
  __metadata("design:paramtypes", [UpdateWorkflowEngineInput, Object, PubSubEngine]),
16048
16293
  __metadata("design:returntype", Promise)
16049
16294
  ], WorkflowEngineResolver.prototype, "UpdateWorkflowEngine", null);
16295
+ __decorate([
16296
+ Mutation(() => WorkflowEngine_),
16297
+ __param(0, Arg('ID', () => String)),
16298
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
16299
+ __param(2, Ctx()),
16300
+ __param(3, PubSub()),
16301
+ __metadata("design:type", Function),
16302
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
16303
+ __metadata("design:returntype", Promise)
16304
+ ], WorkflowEngineResolver.prototype, "DeleteWorkflowEngine", null);
16050
16305
  WorkflowEngineResolver = __decorate([
16051
16306
  Resolver(WorkflowEngine_)
16052
16307
  ], WorkflowEngineResolver);
@@ -16094,34 +16349,34 @@ __decorate([
16094
16349
  __metadata("design:type", String)
16095
16350
  ], RecordChange_.prototype, "UserID", void 0);
16096
16351
  __decorate([
16097
- Field({ description: 'Create, Update, or Delete' }),
16352
+ Field({ description: `Create, Update, or Delete` }),
16098
16353
  MaxLength(40),
16099
16354
  __metadata("design:type", String)
16100
16355
  ], RecordChange_.prototype, "Type", void 0);
16101
16356
  __decorate([
16102
- Field({ description: 'Internal or External' }),
16357
+ Field({ description: `Internal or External` }),
16103
16358
  MaxLength(40),
16104
16359
  __metadata("design:type", String)
16105
16360
  ], RecordChange_.prototype, "Source", void 0);
16106
16361
  __decorate([
16107
- Field({ description: 'The date/time that the change occured.' }),
16362
+ Field({ description: `The date/time that the change occured.` }),
16108
16363
  MaxLength(10),
16109
16364
  __metadata("design:type", Date)
16110
16365
  ], RecordChange_.prototype, "ChangedAt", void 0);
16111
16366
  __decorate([
16112
- Field({ description: 'JSON structure that describes what was changed in a structured format.' }),
16367
+ Field({ description: `JSON structure that describes what was changed in a structured format.` }),
16113
16368
  __metadata("design:type", String)
16114
16369
  ], RecordChange_.prototype, "ChangesJSON", void 0);
16115
16370
  __decorate([
16116
- Field({ description: 'A generated, human-readable description of what was changed.' }),
16371
+ Field({ description: `A generated, human-readable description of what was changed.` }),
16117
16372
  __metadata("design:type", String)
16118
16373
  ], RecordChange_.prototype, "ChangesDescription", void 0);
16119
16374
  __decorate([
16120
- Field({ description: 'A complete snapshot of the record AFTER the change was applied in a JSON format that can be parsed.' }),
16375
+ Field({ description: `A complete snapshot of the record AFTER the change was applied in a JSON format that can be parsed.` }),
16121
16376
  __metadata("design:type", String)
16122
16377
  ], RecordChange_.prototype, "FullRecordJSON", void 0);
16123
16378
  __decorate([
16124
- Field({ description: 'For internal record changes generated within MJ, the status is immediately Complete. For external changes that are detected, the workflow starts off as Pending, then In Progress and finally either Complete or Error' }),
16379
+ Field({ description: `For internal record changes generated within MJ, the status is immediately Complete. For external changes that are detected, the workflow starts off as Pending, then In Progress and finally either Complete or Error` }),
16125
16380
  MaxLength(100),
16126
16381
  __metadata("design:type", String)
16127
16382
  ], RecordChange_.prototype, "Status", void 0);
@@ -16169,7 +16424,7 @@ __decorate([
16169
16424
  __metadata("design:type", String)
16170
16425
  ], RecordChange_.prototype, "Integration", void 0);
16171
16426
  RecordChange_ = __decorate([
16172
- ObjectType({ description: 'For entities that have TrackRecordChanges=1, Record Changes will store the history of all changes made within the system. For integrations you can directly add values here if you have inbound signals indicating records were changed in a source system. This entity only automatically captures Record Changes if they were made within the system.' })
16427
+ ObjectType({ description: `For entities that have TrackRecordChanges=1, Record Changes will store the history of all changes made within the system. For integrations you can directly add values here if you have inbound signals indicating records were changed in a source system. This entity only automatically captures Record Changes if they were made within the system.` })
16173
16428
  ], RecordChange_);
16174
16429
  export { RecordChange_ };
16175
16430
  let CreateRecordChangeInput = class CreateRecordChangeInput {
@@ -17188,7 +17443,7 @@ __decorate([
17188
17443
  __metadata("design:type", Boolean)
17189
17444
  ], Authorization_.prototype, "IsActive", void 0);
17190
17445
  __decorate([
17191
- Field(() => Boolean, { description: 'When set to 1, Audit Log records are created whenever this authorization is invoked for a user' }),
17446
+ Field(() => Boolean, { description: `When set to 1, Audit Log records are created whenever this authorization is invoked for a user` }),
17192
17447
  __metadata("design:type", Boolean)
17193
17448
  ], Authorization_.prototype, "UseAuditLog", void 0);
17194
17449
  __decorate([
@@ -18054,6 +18309,7 @@ let AIModel_ = class AIModel_ {
18054
18309
  CostRank;
18055
18310
  ModelSelectionInsights;
18056
18311
  InputTokenLimit;
18312
+ SupportedResponseFormats;
18057
18313
  AIModelType;
18058
18314
  AIActions_DefaultModelIDArray;
18059
18315
  EntityDocuments_AIModelIDArray;
@@ -18089,7 +18345,7 @@ __decorate([
18089
18345
  __metadata("design:type", String)
18090
18346
  ], AIModel_.prototype, "AIModelTypeID", void 0);
18091
18347
  __decorate([
18092
- Field(() => Int, { nullable: true, description: 'Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.' }),
18348
+ Field(() => Int, { nullable: true, description: `Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.` }),
18093
18349
  __metadata("design:type", Number)
18094
18350
  ], AIModel_.prototype, "PowerRank", void 0);
18095
18351
  __decorate([
@@ -18107,7 +18363,7 @@ __decorate([
18107
18363
  __metadata("design:type", String)
18108
18364
  ], AIModel_.prototype, "DriverImportPath", void 0);
18109
18365
  __decorate([
18110
- Field({ nullable: true, description: 'The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls' }),
18366
+ Field({ nullable: true, description: `The name of the model to use with API calls which might differ from the Name, if APIName is not provided, Name will be used for API calls` }),
18111
18367
  MaxLength(200),
18112
18368
  __metadata("design:type", String)
18113
18369
  ], AIModel_.prototype, "APIName", void 0);
@@ -18122,21 +18378,26 @@ __decorate([
18122
18378
  __metadata("design:type", Date)
18123
18379
  ], AIModel_.prototype, "_mj__UpdatedAt", void 0);
18124
18380
  __decorate([
18125
- Field(() => Int, { nullable: true, description: 'Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.' }),
18381
+ Field(() => Int, { nullable: true, description: `Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.` }),
18126
18382
  __metadata("design:type", Number)
18127
18383
  ], AIModel_.prototype, "SpeedRank", void 0);
18128
18384
  __decorate([
18129
- Field(() => Int, { nullable: true, description: 'Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.' }),
18385
+ Field(() => Int, { nullable: true, description: `Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.` }),
18130
18386
  __metadata("design:type", Number)
18131
18387
  ], AIModel_.prototype, "CostRank", void 0);
18132
18388
  __decorate([
18133
- Field({ nullable: true, description: 'This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.' }),
18389
+ Field({ nullable: true, description: `This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.` }),
18134
18390
  __metadata("design:type", String)
18135
18391
  ], AIModel_.prototype, "ModelSelectionInsights", void 0);
18136
18392
  __decorate([
18137
- Field(() => Int, { nullable: true, description: 'Stores the maximum number of tokens that fit in the context window for the model.' }),
18393
+ Field(() => Int, { nullable: true, description: `Stores the maximum number of tokens that fit in the context window for the model.` }),
18138
18394
  __metadata("design:type", Number)
18139
18395
  ], AIModel_.prototype, "InputTokenLimit", void 0);
18396
+ __decorate([
18397
+ Field({ description: `A comma-delimited string indicating the supported response formats for the AI model. Options include Any, Text, Markdown, JSON, and ModelSpecific. Defaults to Any if not specified.` }),
18398
+ MaxLength(200),
18399
+ __metadata("design:type", String)
18400
+ ], AIModel_.prototype, "SupportedResponseFormats", void 0);
18140
18401
  __decorate([
18141
18402
  Field(),
18142
18403
  MaxLength(100),
@@ -18175,7 +18436,7 @@ __decorate([
18175
18436
  __metadata("design:type", Array)
18176
18437
  ], AIModel_.prototype, "AIAgentModels_ModelIDArray", void 0);
18177
18438
  AIModel_ = __decorate([
18178
- ObjectType({ description: 'Catalog of all AI Models configured in the system' })
18439
+ ObjectType({ description: `Catalog of all AI Models configured in the system` })
18179
18440
  ], AIModel_);
18180
18441
  export { AIModel_ };
18181
18442
  let CreateAIModelInput = class CreateAIModelInput {
@@ -18192,6 +18453,7 @@ let CreateAIModelInput = class CreateAIModelInput {
18192
18453
  CostRank;
18193
18454
  ModelSelectionInsights;
18194
18455
  InputTokenLimit;
18456
+ SupportedResponseFormats;
18195
18457
  };
18196
18458
  __decorate([
18197
18459
  Field(),
@@ -18245,6 +18507,10 @@ __decorate([
18245
18507
  Field(() => Int, { nullable: true }),
18246
18508
  __metadata("design:type", Number)
18247
18509
  ], CreateAIModelInput.prototype, "InputTokenLimit", void 0);
18510
+ __decorate([
18511
+ Field(),
18512
+ __metadata("design:type", String)
18513
+ ], CreateAIModelInput.prototype, "SupportedResponseFormats", void 0);
18248
18514
  CreateAIModelInput = __decorate([
18249
18515
  InputType()
18250
18516
  ], CreateAIModelInput);
@@ -18264,6 +18530,7 @@ let UpdateAIModelInput = class UpdateAIModelInput {
18264
18530
  CostRank;
18265
18531
  ModelSelectionInsights;
18266
18532
  InputTokenLimit;
18533
+ SupportedResponseFormats;
18267
18534
  OldValues___;
18268
18535
  };
18269
18536
  __decorate([
@@ -18322,6 +18589,10 @@ __decorate([
18322
18589
  Field(() => Int, { nullable: true }),
18323
18590
  __metadata("design:type", Number)
18324
18591
  ], UpdateAIModelInput.prototype, "InputTokenLimit", void 0);
18592
+ __decorate([
18593
+ Field(),
18594
+ __metadata("design:type", String)
18595
+ ], UpdateAIModelInput.prototype, "SupportedResponseFormats", void 0);
18325
18596
  __decorate([
18326
18597
  Field(() => [KeyValuePairInput], { nullable: true }),
18327
18598
  __metadata("design:type", Array)
@@ -18665,7 +18936,7 @@ __decorate([
18665
18936
  __metadata("design:type", Array)
18666
18937
  ], AIAction_.prototype, "EntityAIActions_AIActionIDArray", void 0);
18667
18938
  AIAction_ = __decorate([
18668
- ObjectType({ description: 'List of all actions that are possible across all AI Models' })
18939
+ ObjectType({ description: `List of all actions that are possible across all AI Models` })
18669
18940
  ], AIAction_);
18670
18941
  export { AIAction_ };
18671
18942
  let CreateAIActionInput = class CreateAIActionInput {
@@ -18971,7 +19242,7 @@ __decorate([
18971
19242
  __metadata("design:type", String)
18972
19243
  ], AIModelAction_.prototype, "AIAction", void 0);
18973
19244
  AIModelAction_ = __decorate([
18974
- ObjectType({ description: 'Tracks the actions supported by each AI Model' })
19245
+ ObjectType({ description: `Tracks the actions supported by each AI Model` })
18975
19246
  ], AIModelAction_);
18976
19247
  export { AIModelAction_ };
18977
19248
  let CreateAIModelActionInput = class CreateAIModelActionInput {
@@ -19290,7 +19561,7 @@ __decorate([
19290
19561
  __metadata("design:type", String)
19291
19562
  ], EntityAIAction_.prototype, "OutputEntity", void 0);
19292
19563
  EntityAIAction_ = __decorate([
19293
- ObjectType({ description: 'Tracks the AI actions that should be invoked based on changes to records within a given entity.' })
19564
+ ObjectType({ description: `Tracks the AI actions that should be invoked based on changes to records within a given entity.` })
19294
19565
  ], EntityAIAction_);
19295
19566
  export { EntityAIAction_ };
19296
19567
  let CreateEntityAIActionInput = class CreateEntityAIActionInput {
@@ -19623,7 +19894,7 @@ __decorate([
19623
19894
  __metadata("design:type", Array)
19624
19895
  ], AIModelType_.prototype, "AIModels_AIModelTypeIDArray", void 0);
19625
19896
  AIModelType_ = __decorate([
19626
- ObjectType({ description: 'Types of AI Models' })
19897
+ ObjectType({ description: `Types of AI Models` })
19627
19898
  ], AIModelType_);
19628
19899
  export { AIModelType_ };
19629
19900
  let CreateAIModelTypeInput = class CreateAIModelTypeInput {
@@ -20130,7 +20401,7 @@ __decorate([
20130
20401
  __metadata("design:type", Array)
20131
20402
  ], Queue_.prototype, "QueueTasks_QueueIDArray", void 0);
20132
20403
  Queue_ = __decorate([
20133
- ObjectType({ description: 'Queues can be used to async execute long running tasks' })
20404
+ ObjectType({ description: `Queues can be used to async execute long running tasks` })
20134
20405
  ], Queue_);
20135
20406
  export { Queue_ };
20136
20407
  let CreateQueueInput = class CreateQueueInput {
@@ -20828,7 +21099,7 @@ __decorate([
20828
21099
  __metadata("design:type", String)
20829
21100
  ], Dashboard_.prototype, "Category", void 0);
20830
21101
  Dashboard_ = __decorate([
20831
- ObjectType({ description: 'Dashboards are used to group resources into a single display pane for an end-user' })
21102
+ ObjectType({ description: `Dashboards are used to group resources into a single display pane for an end-user` })
20832
21103
  ], Dashboard_);
20833
21104
  export { Dashboard_ };
20834
21105
  let CreateDashboardInput = class CreateDashboardInput {
@@ -22295,7 +22566,7 @@ __decorate([
22295
22566
  __metadata("design:type", Date)
22296
22567
  ], ResourceType_.prototype, "_mj__UpdatedAt", void 0);
22297
22568
  __decorate([
22298
- Field({ nullable: true, description: 'Nullable foreign key to the ID column in Entities entity, representing the category entity. ASSUMPTION: If provided, the assumption is there is a self-referencing/recursive foreign key establishing a hierarchy within the Category Entity, commonly called ParentID, but it can be named anything.' }),
22569
+ Field({ nullable: true, description: `Nullable foreign key to the ID column in Entities entity, representing the category entity. ASSUMPTION: If provided, the assumption is there is a self-referencing/recursive foreign key establishing a hierarchy within the Category Entity, commonly called ParentID, but it can be named anything.` }),
22299
22570
  MaxLength(16),
22300
22571
  __metadata("design:type", String)
22301
22572
  ], ResourceType_.prototype, "CategoryEntityID", void 0);
@@ -22548,7 +22819,7 @@ __decorate([
22548
22819
  __metadata("design:type", Array)
22549
22820
  ], Tag_.prototype, "TaggedItems_TagIDArray", void 0);
22550
22821
  Tag_ = __decorate([
22551
- ObjectType({ description: 'Tags are used to arbitrarily associate any record in any entity with addtional information.' })
22822
+ ObjectType({ description: `Tags are used to arbitrarily associate any record in any entity with addtional information.` })
22552
22823
  ], Tag_);
22553
22824
  export { Tag_ };
22554
22825
  let RunTagViewResult = class RunTagViewResult {
@@ -22731,7 +23002,7 @@ __decorate([
22731
23002
  __metadata("design:type", String)
22732
23003
  ], TaggedItem_.prototype, "Entity", void 0);
22733
23004
  TaggedItem_ = __decorate([
22734
- ObjectType({ description: 'Tracks the links between any record in any entity with Tags' })
23005
+ ObjectType({ description: `Tracks the links between any record in any entity with Tags` })
22735
23006
  ], TaggedItem_);
22736
23007
  export { TaggedItem_ };
22737
23008
  let RunTaggedItemViewResult = class RunTaggedItemViewResult {
@@ -22882,7 +23153,7 @@ __decorate([
22882
23153
  __metadata("design:type", Array)
22883
23154
  ], Workspace_.prototype, "WorkspaceItems_WorkSpaceIDArray", void 0);
22884
23155
  Workspace_ = __decorate([
22885
- ObjectType({ description: 'A user can have one or more workspaces' })
23156
+ ObjectType({ description: `A user can have one or more workspaces` })
22886
23157
  ], Workspace_);
22887
23158
  export { Workspace_ };
22888
23159
  let CreateWorkspaceInput = class CreateWorkspaceInput {
@@ -23161,7 +23432,7 @@ __decorate([
23161
23432
  __metadata("design:type", String)
23162
23433
  ], WorkspaceItem_.prototype, "ResourceType", void 0);
23163
23434
  WorkspaceItem_ = __decorate([
23164
- ObjectType({ description: 'Tracks the resources that are active within a given worksapce' })
23435
+ ObjectType({ description: `Tracks the resources that are active within a given worksapce` })
23165
23436
  ], WorkspaceItem_);
23166
23437
  export { WorkspaceItem_ };
23167
23438
  let CreateWorkspaceItemInput = class CreateWorkspaceItemInput {
@@ -23430,7 +23701,7 @@ __decorate([
23430
23701
  __metadata("design:type", Array)
23431
23702
  ], Dataset_.prototype, "DatasetItems_DatasetNameArray", void 0);
23432
23703
  Dataset_ = __decorate([
23433
- ObjectType({ description: 'Cacheable sets of data that can span one or more items' })
23704
+ ObjectType({ description: `Cacheable sets of data that can span one or more items` })
23434
23705
  ], Dataset_);
23435
23706
  export { Dataset_ };
23436
23707
  let RunDatasetViewResult = class RunDatasetViewResult {
@@ -23610,7 +23881,7 @@ __decorate([
23610
23881
  __metadata("design:type", Date)
23611
23882
  ], DatasetItem_.prototype, "_mj__UpdatedAt", void 0);
23612
23883
  __decorate([
23613
- Field({ nullable: true, description: 'Optional column to store a comma-delimited list of columns for the DatasetItem' }),
23884
+ Field({ nullable: true, description: `Optional column to store a comma-delimited list of columns for the DatasetItem` }),
23614
23885
  __metadata("design:type", String)
23615
23886
  ], DatasetItem_.prototype, "Columns", void 0);
23616
23887
  __decorate([
@@ -23624,7 +23895,7 @@ __decorate([
23624
23895
  __metadata("design:type", String)
23625
23896
  ], DatasetItem_.prototype, "Entity", void 0);
23626
23897
  DatasetItem_ = __decorate([
23627
- ObjectType({ description: 'A single item in a Dataset and can be sourced from multiple methods.' })
23898
+ ObjectType({ description: `A single item in a Dataset and can be sourced from multiple methods.` })
23628
23899
  ], DatasetItem_);
23629
23900
  export { DatasetItem_ };
23630
23901
  let RunDatasetItemViewResult = class RunDatasetItemViewResult {
@@ -23786,19 +24057,19 @@ __decorate([
23786
24057
  __metadata("design:type", Date)
23787
24058
  ], ConversationDetail_.prototype, "_mj__UpdatedAt", void 0);
23788
24059
  __decorate([
23789
- Field(() => Int, { nullable: true, description: 'This column is used to capture user feedback as a rating scale. The scale ranges from 1 to 10, where 1 might represent thumbs down, and 10 might represent thumbs up or the highest rating in a star-based scale.' }),
24060
+ Field(() => Int, { nullable: true, description: `This column is used to capture user feedback as a rating scale. The scale ranges from 1 to 10, where 1 might represent thumbs down, and 10 might represent thumbs up or the highest rating in a star-based scale.` }),
23790
24061
  __metadata("design:type", Number)
23791
24062
  ], ConversationDetail_.prototype, "UserRating", void 0);
23792
24063
  __decorate([
23793
- Field({ nullable: true, description: 'This column is used to store user text feedback about a given AI response, describing what they liked or disliked.' }),
24064
+ Field({ nullable: true, description: `This column is used to store user text feedback about a given AI response, describing what they liked or disliked.` }),
23794
24065
  __metadata("design:type", String)
23795
24066
  ], ConversationDetail_.prototype, "UserFeedback", void 0);
23796
24067
  __decorate([
23797
- Field({ nullable: true, description: 'This column stores human or AI-generated reflections on how to improve future responses based on the user feedback and the AI output generated for prior messages in the conversation.' }),
24068
+ Field({ nullable: true, description: `This column stores human or AI-generated reflections on how to improve future responses based on the user feedback and the AI output generated for prior messages in the conversation.` }),
23798
24069
  __metadata("design:type", String)
23799
24070
  ], ConversationDetail_.prototype, "ReflectionInsights", void 0);
23800
24071
  __decorate([
23801
- Field({ nullable: true, description: 'This column optionally stores a summary of the entire conversation leading up to this particular conversation detail record. It is used in long-running conversations to optimize performance by summarizing earlier parts.' }),
24072
+ Field({ nullable: true, description: `This column optionally stores a summary of the entire conversation leading up to this particular conversation detail record. It is used in long-running conversations to optimize performance by summarizing earlier parts.` }),
23802
24073
  __metadata("design:type", String)
23803
24074
  ], ConversationDetail_.prototype, "SummaryOfEarlierConversation", void 0);
23804
24075
  __decorate([
@@ -24833,7 +25104,7 @@ __decorate([
24833
25104
  __metadata("design:type", Date)
24834
25105
  ], SchemaInfo_.prototype, "_mj__UpdatedAt", void 0);
24835
25106
  SchemaInfo_ = __decorate([
24836
- ObjectType({ description: 'Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.' })
25107
+ ObjectType({ description: `Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.` })
24837
25108
  ], SchemaInfo_);
24838
25109
  export { SchemaInfo_ };
24839
25110
  let CreateSchemaInfoInput = class CreateSchemaInfoInput {
@@ -25920,12 +26191,12 @@ __decorate([
25920
26191
  __metadata("design:type", Number)
25921
26192
  ], QueryField_.prototype, "Sequence", void 0);
25922
26193
  __decorate([
25923
- Field({ description: 'The base type, not including parameters, in SQL. For example this field would be nvarchar or decimal, and wouldn\'t include type parameters. The SQLFullType field provides that information.' }),
26194
+ Field({ description: `The base type, not including parameters, in SQL. For example this field would be nvarchar or decimal, and wouldn't include type parameters. The SQLFullType field provides that information.` }),
25924
26195
  MaxLength(100),
25925
26196
  __metadata("design:type", String)
25926
26197
  ], QueryField_.prototype, "SQLBaseType", void 0);
25927
26198
  __decorate([
25928
- Field({ description: 'The full SQL type for the field, for example datetime or nvarchar(10) etc.' }),
26199
+ Field({ description: `The full SQL type for the field, for example datetime or nvarchar(10) etc.` }),
25929
26200
  MaxLength(200),
25930
26201
  __metadata("design:type", String)
25931
26202
  ], QueryField_.prototype, "SQLFullType", void 0);
@@ -26185,6 +26456,10 @@ let QueryFieldResolver = class QueryFieldResolver extends ResolverBase {
26185
26456
  async UpdateQueryField(input, { dataSource, userPayload }, pubSub) {
26186
26457
  return this.UpdateRecord('Query Fields', input, dataSource, userPayload, pubSub);
26187
26458
  }
26459
+ async DeleteQueryField(ID, options, { dataSource, userPayload }, pubSub) {
26460
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
26461
+ return this.DeleteRecord('Query Fields', key, options, dataSource, userPayload, pubSub);
26462
+ }
26188
26463
  };
26189
26464
  __decorate([
26190
26465
  Query(() => RunQueryFieldViewResult),
@@ -26240,6 +26515,16 @@ __decorate([
26240
26515
  __metadata("design:paramtypes", [UpdateQueryFieldInput, Object, PubSubEngine]),
26241
26516
  __metadata("design:returntype", Promise)
26242
26517
  ], QueryFieldResolver.prototype, "UpdateQueryField", null);
26518
+ __decorate([
26519
+ Mutation(() => QueryField_),
26520
+ __param(0, Arg('ID', () => String)),
26521
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
26522
+ __param(2, Ctx()),
26523
+ __param(3, PubSub()),
26524
+ __metadata("design:type", Function),
26525
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
26526
+ __metadata("design:returntype", Promise)
26527
+ ], QueryFieldResolver.prototype, "DeleteQueryField", null);
26243
26528
  QueryFieldResolver = __decorate([
26244
26529
  Resolver(QueryField_)
26245
26530
  ], QueryFieldResolver);
@@ -26608,11 +26893,11 @@ __decorate([
26608
26893
  __metadata("design:type", String)
26609
26894
  ], Query_.prototype, "Status", void 0);
26610
26895
  __decorate([
26611
- Field(() => Int, { nullable: true, description: 'Value indicating the quality of the query, higher values mean a better quality' }),
26896
+ Field(() => Int, { nullable: true, description: `Value indicating the quality of the query, higher values mean a better quality` }),
26612
26897
  __metadata("design:type", Number)
26613
26898
  ], Query_.prototype, "QualityRank", void 0);
26614
26899
  __decorate([
26615
- Field(() => Int, { nullable: true, description: 'Higher numbers indicate more execution overhead/time required. Useful for planning which queries to use in various scenarios.' }),
26900
+ Field(() => Int, { nullable: true, description: `Higher numbers indicate more execution overhead/time required. Useful for planning which queries to use in various scenarios.` }),
26616
26901
  __metadata("design:type", Number)
26617
26902
  ], Query_.prototype, "ExecutionCostRank", void 0);
26618
26903
  __decorate([
@@ -26647,7 +26932,7 @@ __decorate([
26647
26932
  __metadata("design:type", Array)
26648
26933
  ], Query_.prototype, "QueryEntities_QueryIDArray", void 0);
26649
26934
  Query_ = __decorate([
26650
- ObjectType({ description: 'Catalog of stored queries. This is useful for any arbitrary query that is known to be performant and correct and can be reused. Queries can be viewed/run by a user, used programatically via RunQuery, and also used by AI systems for improved reliability instead of dynamically generated SQL. Queries can also improve security since they store the SQL instead of using dynamic SQL.' })
26935
+ ObjectType({ description: `Catalog of stored queries. This is useful for any arbitrary query that is known to be performant and correct and can be reused. Queries can be viewed/run by a user, used programatically via RunQuery, and also used by AI systems for improved reliability instead of dynamically generated SQL. Queries can also improve security since they store the SQL instead of using dynamic SQL.` })
26651
26936
  ], Query_);
26652
26937
  export { Query_ };
26653
26938
  let CreateQueryInput = class CreateQueryInput {
@@ -26870,6 +27155,10 @@ let QueryResolver = class QueryResolver extends ResolverBase {
26870
27155
  async UpdateQuery(input, { dataSource, userPayload }, pubSub) {
26871
27156
  return this.UpdateRecord('Queries', input, dataSource, userPayload, pubSub);
26872
27157
  }
27158
+ async DeleteQuery(ID, options, { dataSource, userPayload }, pubSub) {
27159
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
27160
+ return this.DeleteRecord('Queries', key, options, dataSource, userPayload, pubSub);
27161
+ }
26873
27162
  };
26874
27163
  __decorate([
26875
27164
  Query(() => RunQueryViewResult),
@@ -26961,6 +27250,16 @@ __decorate([
26961
27250
  __metadata("design:paramtypes", [UpdateQueryInput, Object, PubSubEngine]),
26962
27251
  __metadata("design:returntype", Promise)
26963
27252
  ], QueryResolver.prototype, "UpdateQuery", null);
27253
+ __decorate([
27254
+ Mutation(() => Query_),
27255
+ __param(0, Arg('ID', () => String)),
27256
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
27257
+ __param(2, Ctx()),
27258
+ __param(3, PubSub()),
27259
+ __metadata("design:type", Function),
27260
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
27261
+ __metadata("design:returntype", Promise)
27262
+ ], QueryResolver.prototype, "DeleteQuery", null);
26964
27263
  QueryResolver = __decorate([
26965
27264
  Resolver(Query_)
26966
27265
  ], QueryResolver);
@@ -27119,6 +27418,10 @@ let QueryPermissionResolver = class QueryPermissionResolver extends ResolverBase
27119
27418
  async UpdateQueryPermission(input, { dataSource, userPayload }, pubSub) {
27120
27419
  return this.UpdateRecord('Query Permissions', input, dataSource, userPayload, pubSub);
27121
27420
  }
27421
+ async DeleteQueryPermission(ID, options, { dataSource, userPayload }, pubSub) {
27422
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
27423
+ return this.DeleteRecord('Query Permissions', key, options, dataSource, userPayload, pubSub);
27424
+ }
27122
27425
  };
27123
27426
  __decorate([
27124
27427
  Query(() => RunQueryPermissionViewResult),
@@ -27174,6 +27477,16 @@ __decorate([
27174
27477
  __metadata("design:paramtypes", [UpdateQueryPermissionInput, Object, PubSubEngine]),
27175
27478
  __metadata("design:returntype", Promise)
27176
27479
  ], QueryPermissionResolver.prototype, "UpdateQueryPermission", null);
27480
+ __decorate([
27481
+ Mutation(() => QueryPermission_),
27482
+ __param(0, Arg('ID', () => String)),
27483
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
27484
+ __param(2, Ctx()),
27485
+ __param(3, PubSub()),
27486
+ __metadata("design:type", Function),
27487
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
27488
+ __metadata("design:returntype", Promise)
27489
+ ], QueryPermissionResolver.prototype, "DeleteQueryPermission", null);
27177
27490
  QueryPermissionResolver = __decorate([
27178
27491
  Resolver(QueryPermission_)
27179
27492
  ], QueryPermissionResolver);
@@ -27374,6 +27687,10 @@ let VectorIndexResolver = class VectorIndexResolver extends ResolverBase {
27374
27687
  async UpdateVectorIndex(input, { dataSource, userPayload }, pubSub) {
27375
27688
  return this.UpdateRecord('Vector Indexes', input, dataSource, userPayload, pubSub);
27376
27689
  }
27690
+ async DeleteVectorIndex(ID, options, { dataSource, userPayload }, pubSub) {
27691
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
27692
+ return this.DeleteRecord('Vector Indexes', key, options, dataSource, userPayload, pubSub);
27693
+ }
27377
27694
  };
27378
27695
  __decorate([
27379
27696
  Query(() => RunVectorIndexViewResult),
@@ -27438,6 +27755,16 @@ __decorate([
27438
27755
  __metadata("design:paramtypes", [UpdateVectorIndexInput, Object, PubSubEngine]),
27439
27756
  __metadata("design:returntype", Promise)
27440
27757
  ], VectorIndexResolver.prototype, "UpdateVectorIndex", null);
27758
+ __decorate([
27759
+ Mutation(() => VectorIndex_),
27760
+ __param(0, Arg('ID', () => String)),
27761
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
27762
+ __param(2, Ctx()),
27763
+ __param(3, PubSub()),
27764
+ __metadata("design:type", Function),
27765
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
27766
+ __metadata("design:returntype", Promise)
27767
+ ], VectorIndexResolver.prototype, "DeleteVectorIndex", null);
27441
27768
  VectorIndexResolver = __decorate([
27442
27769
  Resolver(VectorIndex_)
27443
27770
  ], VectorIndexResolver);
@@ -27594,6 +27921,10 @@ let EntityDocumentTypeResolver = class EntityDocumentTypeResolver extends Resolv
27594
27921
  async UpdateEntityDocumentType(input, { dataSource, userPayload }, pubSub) {
27595
27922
  return this.UpdateRecord('Entity Document Types', input, dataSource, userPayload, pubSub);
27596
27923
  }
27924
+ async DeleteEntityDocumentType(ID, options, { dataSource, userPayload }, pubSub) {
27925
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
27926
+ return this.DeleteRecord('Entity Document Types', key, options, dataSource, userPayload, pubSub);
27927
+ }
27597
27928
  };
27598
27929
  __decorate([
27599
27930
  Query(() => RunEntityDocumentTypeViewResult),
@@ -27658,6 +27989,16 @@ __decorate([
27658
27989
  __metadata("design:paramtypes", [UpdateEntityDocumentTypeInput, Object, PubSubEngine]),
27659
27990
  __metadata("design:returntype", Promise)
27660
27991
  ], EntityDocumentTypeResolver.prototype, "UpdateEntityDocumentType", null);
27992
+ __decorate([
27993
+ Mutation(() => EntityDocumentType_),
27994
+ __param(0, Arg('ID', () => String)),
27995
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
27996
+ __param(2, Ctx()),
27997
+ __param(3, PubSub()),
27998
+ __metadata("design:type", Function),
27999
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
28000
+ __metadata("design:returntype", Promise)
28001
+ ], EntityDocumentTypeResolver.prototype, "DeleteEntityDocumentType", null);
27661
28002
  EntityDocumentTypeResolver = __decorate([
27662
28003
  Resolver(EntityDocumentType_)
27663
28004
  ], EntityDocumentTypeResolver);
@@ -27693,7 +28034,7 @@ __decorate([
27693
28034
  __metadata("design:type", Date)
27694
28035
  ], EntityDocumentRun_.prototype, "EndedAt", void 0);
27695
28036
  __decorate([
27696
- Field({ description: 'Can be Pending, In Progress, Completed, or Failed' }),
28037
+ Field({ description: `Can be Pending, In Progress, Completed, or Failed` }),
27697
28038
  MaxLength(30),
27698
28039
  __metadata("design:type", String)
27699
28040
  ], EntityDocumentRun_.prototype, "Status", void 0);
@@ -28096,6 +28437,10 @@ let VectorDatabaseResolver = class VectorDatabaseResolver extends ResolverBase {
28096
28437
  async UpdateVectorDatabase(input, { dataSource, userPayload }, pubSub) {
28097
28438
  return this.UpdateRecord('Vector Databases', input, dataSource, userPayload, pubSub);
28098
28439
  }
28440
+ async DeleteVectorDatabase(ID, options, { dataSource, userPayload }, pubSub) {
28441
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
28442
+ return this.DeleteRecord('Vector Databases', key, options, dataSource, userPayload, pubSub);
28443
+ }
28099
28444
  };
28100
28445
  __decorate([
28101
28446
  Query(() => RunVectorDatabaseViewResult),
@@ -28169,6 +28514,16 @@ __decorate([
28169
28514
  __metadata("design:paramtypes", [UpdateVectorDatabaseInput, Object, PubSubEngine]),
28170
28515
  __metadata("design:returntype", Promise)
28171
28516
  ], VectorDatabaseResolver.prototype, "UpdateVectorDatabase", null);
28517
+ __decorate([
28518
+ Mutation(() => VectorDatabase_),
28519
+ __param(0, Arg('ID', () => String)),
28520
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
28521
+ __param(2, Ctx()),
28522
+ __param(3, PubSub()),
28523
+ __metadata("design:type", Function),
28524
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
28525
+ __metadata("design:returntype", Promise)
28526
+ ], VectorDatabaseResolver.prototype, "DeleteVectorDatabase", null);
28172
28527
  VectorDatabaseResolver = __decorate([
28173
28528
  Resolver(VectorDatabase_)
28174
28529
  ], VectorDatabaseResolver);
@@ -28549,11 +28904,11 @@ __decorate([
28549
28904
  __metadata("design:type", String)
28550
28905
  ], EntityDocument_.prototype, "AIModelID", void 0);
28551
28906
  __decorate([
28552
- Field(() => Float, { description: 'Value between 0 and 1 that determines what is considered a potential matching record. Value must be <= AbsoluteMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.' }),
28907
+ Field(() => Float, { description: `Value between 0 and 1 that determines what is considered a potential matching record. Value must be <= AbsoluteMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.` }),
28553
28908
  __metadata("design:type", Number)
28554
28909
  ], EntityDocument_.prototype, "PotentialMatchThreshold", void 0);
28555
28910
  __decorate([
28556
- Field(() => Float, { description: 'Value between 0 and 1 that determines what is considered an absolute matching record. Value must be >= PotentialMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.' }),
28911
+ Field(() => Float, { description: `Value between 0 and 1 that determines what is considered an absolute matching record. Value must be >= PotentialMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.` }),
28557
28912
  __metadata("design:type", Number)
28558
28913
  ], EntityDocument_.prototype, "AbsoluteMatchThreshold", void 0);
28559
28914
  __decorate([
@@ -28916,7 +29271,7 @@ __decorate([
28916
29271
  __metadata("design:type", String)
28917
29272
  ], DataContextItem_.prototype, "DataContextID", void 0);
28918
29273
  __decorate([
28919
- Field({ description: 'The type of the item, either "view", "query", "full_entity", "single_record", or "sql"' }),
29274
+ Field({ description: `The type of the item, either "view", "query", "full_entity", "single_record", or "sql"` }),
28920
29275
  MaxLength(100),
28921
29276
  __metadata("design:type", String)
28922
29277
  ], DataContextItem_.prototype, "Type", void 0);
@@ -28936,20 +29291,20 @@ __decorate([
28936
29291
  __metadata("design:type", String)
28937
29292
  ], DataContextItem_.prototype, "EntityID", void 0);
28938
29293
  __decorate([
28939
- Field({ nullable: true, description: 'The Primary Key value for the record, only used when Type=\'single_record\'' }),
29294
+ Field({ nullable: true, description: `The Primary Key value for the record, only used when Type='single_record'` }),
28940
29295
  MaxLength(900),
28941
29296
  __metadata("design:type", String)
28942
29297
  ], DataContextItem_.prototype, "RecordID", void 0);
28943
29298
  __decorate([
28944
- Field({ nullable: true, description: 'Only used when Type=sql' }),
29299
+ Field({ nullable: true, description: `Only used when Type=sql` }),
28945
29300
  __metadata("design:type", String)
28946
29301
  ], DataContextItem_.prototype, "SQL", void 0);
28947
29302
  __decorate([
28948
- Field({ nullable: true, description: 'Optionally used to cache results of an item. This can be used for performance optimization, and also for having snapshots of data for historical comparisons.' }),
29303
+ Field({ nullable: true, description: `Optionally used to cache results of an item. This can be used for performance optimization, and also for having snapshots of data for historical comparisons.` }),
28949
29304
  __metadata("design:type", String)
28950
29305
  ], DataContextItem_.prototype, "DataJSON", void 0);
28951
29306
  __decorate([
28952
- Field({ nullable: true, description: 'If DataJSON is populated, this field will show the date the the data was captured' }),
29307
+ Field({ nullable: true, description: `If DataJSON is populated, this field will show the date the the data was captured` }),
28953
29308
  MaxLength(8),
28954
29309
  __metadata("design:type", Date)
28955
29310
  ], DataContextItem_.prototype, "LastRefreshedAt", void 0);
@@ -28984,7 +29339,7 @@ __decorate([
28984
29339
  __metadata("design:type", String)
28985
29340
  ], DataContextItem_.prototype, "Entity", void 0);
28986
29341
  DataContextItem_ = __decorate([
28987
- ObjectType({ description: 'Data Context Items store information about each item within a Data Context. Each item stores a link to a view, query, or raw sql statement and can optionally cache the JSON representing the last run of that data object as well.' })
29342
+ ObjectType({ description: `Data Context Items store information about each item within a Data Context. Each item stores a link to a view, query, or raw sql statement and can optionally cache the JSON representing the last run of that data object as well.` })
28988
29343
  ], DataContextItem_);
28989
29344
  export { DataContextItem_ };
28990
29345
  let CreateDataContextItemInput = class CreateDataContextItemInput {
@@ -29301,7 +29656,7 @@ __decorate([
29301
29656
  __metadata("design:type", Array)
29302
29657
  ], DataContext_.prototype, "Conversations_DataContextIDArray", void 0);
29303
29658
  DataContext_ = __decorate([
29304
- ObjectType({ description: 'Data Contexts are a primitive within the MemberJunction architecture. They store information about data contexts which are groups of data including views, queries, or raw SQL statements. Data contexts can be used in conversations, reports and more.' })
29659
+ ObjectType({ description: `Data Contexts are a primitive within the MemberJunction architecture. They store information about data contexts which are groups of data including views, queries, or raw SQL statements. Data contexts can be used in conversations, reports and more.` })
29305
29660
  ], DataContext_);
29306
29661
  export { DataContext_ };
29307
29662
  let CreateDataContextInput = class CreateDataContextInput {
@@ -30678,6 +31033,10 @@ let FileStorageProviderResolver = class FileStorageProviderResolver extends Reso
30678
31033
  async UpdateFileStorageProvider(input, { dataSource, userPayload }, pubSub) {
30679
31034
  return this.UpdateRecord('File Storage Providers', input, dataSource, userPayload, pubSub);
30680
31035
  }
31036
+ async DeleteFileStorageProvider(ID, options, { dataSource, userPayload }, pubSub) {
31037
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
31038
+ return this.DeleteRecord('File Storage Providers', key, options, dataSource, userPayload, pubSub);
31039
+ }
30681
31040
  };
30682
31041
  __decorate([
30683
31042
  Query(() => RunFileStorageProviderViewResult),
@@ -30742,6 +31101,16 @@ __decorate([
30742
31101
  __metadata("design:paramtypes", [UpdateFileStorageProviderInput, Object, PubSubEngine]),
30743
31102
  __metadata("design:returntype", Promise)
30744
31103
  ], FileStorageProviderResolver.prototype, "UpdateFileStorageProvider", null);
31104
+ __decorate([
31105
+ Mutation(() => FileStorageProvider_),
31106
+ __param(0, Arg('ID', () => String)),
31107
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
31108
+ __param(2, Ctx()),
31109
+ __param(3, PubSub()),
31110
+ __metadata("design:type", Function),
31111
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
31112
+ __metadata("design:returntype", Promise)
31113
+ ], FileStorageProviderResolver.prototype, "DeleteFileStorageProvider", null);
30745
31114
  FileStorageProviderResolver = __decorate([
30746
31115
  Resolver(FileStorageProvider_)
30747
31116
  ], FileStorageProviderResolver);
@@ -30796,7 +31165,7 @@ __decorate([
30796
31165
  __metadata("design:type", String)
30797
31166
  ], File_.prototype, "ProviderKey", void 0);
30798
31167
  __decorate([
30799
- Field({ description: 'Pending, Uploading, Uploaded, Deleting, Deleted' }),
31168
+ Field({ description: `Pending, Uploading, Uploaded, Deleting, Deleted` }),
30800
31169
  MaxLength(40),
30801
31170
  __metadata("design:type", String)
30802
31171
  ], File_.prototype, "Status", void 0);
@@ -31518,6 +31887,10 @@ let FileEntityRecordLinkResolver = class FileEntityRecordLinkResolver extends Re
31518
31887
  async UpdateFileEntityRecordLink(input, { dataSource, userPayload }, pubSub) {
31519
31888
  return this.UpdateRecord('File Entity Record Links', input, dataSource, userPayload, pubSub);
31520
31889
  }
31890
+ async DeleteFileEntityRecordLink(ID, options, { dataSource, userPayload }, pubSub) {
31891
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
31892
+ return this.DeleteRecord('File Entity Record Links', key, options, dataSource, userPayload, pubSub);
31893
+ }
31521
31894
  };
31522
31895
  __decorate([
31523
31896
  Query(() => RunFileEntityRecordLinkViewResult),
@@ -31573,6 +31946,16 @@ __decorate([
31573
31946
  __metadata("design:paramtypes", [UpdateFileEntityRecordLinkInput, Object, PubSubEngine]),
31574
31947
  __metadata("design:returntype", Promise)
31575
31948
  ], FileEntityRecordLinkResolver.prototype, "UpdateFileEntityRecordLink", null);
31949
+ __decorate([
31950
+ Mutation(() => FileEntityRecordLink_),
31951
+ __param(0, Arg('ID', () => String)),
31952
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
31953
+ __param(2, Ctx()),
31954
+ __param(3, PubSub()),
31955
+ __metadata("design:type", Function),
31956
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
31957
+ __metadata("design:returntype", Promise)
31958
+ ], FileEntityRecordLinkResolver.prototype, "DeleteFileEntityRecordLink", null);
31576
31959
  FileEntityRecordLinkResolver = __decorate([
31577
31960
  Resolver(FileEntityRecordLink_)
31578
31961
  ], FileEntityRecordLinkResolver);
@@ -31609,7 +31992,7 @@ __decorate([
31609
31992
  __metadata("design:type", Number)
31610
31993
  ], VersionInstallation_.prototype, "PatchVersion", void 0);
31611
31994
  __decorate([
31612
- Field({ nullable: true, description: 'What type of installation was applied' }),
31995
+ Field({ nullable: true, description: `What type of installation was applied` }),
31613
31996
  MaxLength(40),
31614
31997
  __metadata("design:type", String)
31615
31998
  ], VersionInstallation_.prototype, "Type", void 0);
@@ -31619,16 +32002,16 @@ __decorate([
31619
32002
  __metadata("design:type", Date)
31620
32003
  ], VersionInstallation_.prototype, "InstalledAt", void 0);
31621
32004
  __decorate([
31622
- Field({ description: 'Pending, Complete, Failed' }),
32005
+ Field({ description: `Pending, Complete, Failed` }),
31623
32006
  MaxLength(40),
31624
32007
  __metadata("design:type", String)
31625
32008
  ], VersionInstallation_.prototype, "Status", void 0);
31626
32009
  __decorate([
31627
- Field({ nullable: true, description: 'Any logging that was saved from the installation process' }),
32010
+ Field({ nullable: true, description: `Any logging that was saved from the installation process` }),
31628
32011
  __metadata("design:type", String)
31629
32012
  ], VersionInstallation_.prototype, "InstallLog", void 0);
31630
32013
  __decorate([
31631
- Field({ nullable: true, description: 'Optional, comments the administrator wants to save for each installed version' }),
32014
+ Field({ nullable: true, description: `Optional, comments the administrator wants to save for each installed version` }),
31632
32015
  __metadata("design:type", String)
31633
32016
  ], VersionInstallation_.prototype, "Comments", void 0);
31634
32017
  __decorate([
@@ -31901,7 +32284,7 @@ __decorate([
31901
32284
  __metadata("design:type", String)
31902
32285
  ], DuplicateRunDetailMatch_.prototype, "DuplicateRunDetailID", void 0);
31903
32286
  __decorate([
31904
- Field({ description: 'Either Vector or SP' }),
32287
+ Field({ description: `Either Vector or SP` }),
31905
32288
  MaxLength(40),
31906
32289
  __metadata("design:type", String)
31907
32290
  ], DuplicateRunDetailMatch_.prototype, "MatchSource", void 0);
@@ -31911,7 +32294,7 @@ __decorate([
31911
32294
  __metadata("design:type", String)
31912
32295
  ], DuplicateRunDetailMatch_.prototype, "MatchRecordID", void 0);
31913
32296
  __decorate([
31914
- Field(() => Float, { description: 'Value between 0 and 1 designating the computed probability of a match' }),
32297
+ Field(() => Float, { description: `Value between 0 and 1 designating the computed probability of a match` }),
31915
32298
  __metadata("design:type", Number)
31916
32299
  ], DuplicateRunDetailMatch_.prototype, "MatchProbability", void 0);
31917
32300
  __decorate([
@@ -32381,6 +32764,10 @@ let EntityDocumentSettingResolver = class EntityDocumentSettingResolver extends
32381
32764
  async UpdateEntityDocumentSetting(input, { dataSource, userPayload }, pubSub) {
32382
32765
  return this.UpdateRecord('Entity Document Settings', input, dataSource, userPayload, pubSub);
32383
32766
  }
32767
+ async DeleteEntityDocumentSetting(ID, options, { dataSource, userPayload }, pubSub) {
32768
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
32769
+ return this.DeleteRecord('Entity Document Settings', key, options, dataSource, userPayload, pubSub);
32770
+ }
32384
32771
  };
32385
32772
  __decorate([
32386
32773
  Query(() => RunEntityDocumentSettingViewResult),
@@ -32436,6 +32823,16 @@ __decorate([
32436
32823
  __metadata("design:paramtypes", [UpdateEntityDocumentSettingInput, Object, PubSubEngine]),
32437
32824
  __metadata("design:returntype", Promise)
32438
32825
  ], EntityDocumentSettingResolver.prototype, "UpdateEntityDocumentSetting", null);
32826
+ __decorate([
32827
+ Mutation(() => EntityDocumentSetting_),
32828
+ __param(0, Arg('ID', () => String)),
32829
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
32830
+ __param(2, Ctx()),
32831
+ __param(3, PubSub()),
32832
+ __metadata("design:type", Function),
32833
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
32834
+ __metadata("design:returntype", Promise)
32835
+ ], EntityDocumentSettingResolver.prototype, "DeleteEntityDocumentSetting", null);
32439
32836
  EntityDocumentSettingResolver = __decorate([
32440
32837
  Resolver(EntityDocumentSetting_)
32441
32838
  ], EntityDocumentSettingResolver);
@@ -32618,6 +33015,10 @@ let EntitySettingResolver = class EntitySettingResolver extends ResolverBase {
32618
33015
  async UpdateEntitySetting(input, { dataSource, userPayload }, pubSub) {
32619
33016
  return this.UpdateRecord('Entity Settings', input, dataSource, userPayload, pubSub);
32620
33017
  }
33018
+ async DeleteEntitySetting(ID, options, { dataSource, userPayload }, pubSub) {
33019
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
33020
+ return this.DeleteRecord('Entity Settings', key, options, dataSource, userPayload, pubSub);
33021
+ }
32621
33022
  };
32622
33023
  __decorate([
32623
33024
  Query(() => RunEntitySettingViewResult),
@@ -32673,6 +33074,16 @@ __decorate([
32673
33074
  __metadata("design:paramtypes", [UpdateEntitySettingInput, Object, PubSubEngine]),
32674
33075
  __metadata("design:returntype", Promise)
32675
33076
  ], EntitySettingResolver.prototype, "UpdateEntitySetting", null);
33077
+ __decorate([
33078
+ Mutation(() => EntitySetting_),
33079
+ __param(0, Arg('ID', () => String)),
33080
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
33081
+ __param(2, Ctx()),
33082
+ __param(3, PubSub()),
33083
+ __metadata("design:type", Function),
33084
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
33085
+ __metadata("design:returntype", Promise)
33086
+ ], EntitySettingResolver.prototype, "DeleteEntitySetting", null);
32676
33087
  EntitySettingResolver = __decorate([
32677
33088
  Resolver(EntitySetting_)
32678
33089
  ], EntitySettingResolver);
@@ -33082,11 +33493,11 @@ __decorate([
33082
33493
  __metadata("design:type", String)
33083
33494
  ], DuplicateRunDetail_.prototype, "MatchStatus", void 0);
33084
33495
  __decorate([
33085
- Field({ nullable: true, description: 'If MatchStatus=Skipped, this field can be used to store the reason why the record was skipped' }),
33496
+ Field({ nullable: true, description: `If MatchStatus=Skipped, this field can be used to store the reason why the record was skipped` }),
33086
33497
  __metadata("design:type", String)
33087
33498
  ], DuplicateRunDetail_.prototype, "SkippedReason", void 0);
33088
33499
  __decorate([
33089
- Field({ nullable: true, description: 'If MatchStatus=\'Error\' this field can be used to track the error from that phase of the process for logging/diagnostics.' }),
33500
+ Field({ nullable: true, description: `If MatchStatus='Error' this field can be used to track the error from that phase of the process for logging/diagnostics.` }),
33090
33501
  __metadata("design:type", String)
33091
33502
  ], DuplicateRunDetail_.prototype, "MatchErrorMessage", void 0);
33092
33503
  __decorate([
@@ -33615,12 +34026,12 @@ __decorate([
33615
34026
  __metadata("design:type", String)
33616
34027
  ], ActionCategory_.prototype, "ID", void 0);
33617
34028
  __decorate([
33618
- Field({ description: 'Name of the action category.' }),
34029
+ Field({ description: `Name of the action category.` }),
33619
34030
  MaxLength(510),
33620
34031
  __metadata("design:type", String)
33621
34032
  ], ActionCategory_.prototype, "Name", void 0);
33622
34033
  __decorate([
33623
- Field({ nullable: true, description: 'Description of the action category.' }),
34034
+ Field({ nullable: true, description: `Description of the action category.` }),
33624
34035
  __metadata("design:type", String)
33625
34036
  ], ActionCategory_.prototype, "Description", void 0);
33626
34037
  __decorate([
@@ -33629,7 +34040,7 @@ __decorate([
33629
34040
  __metadata("design:type", String)
33630
34041
  ], ActionCategory_.prototype, "ParentID", void 0);
33631
34042
  __decorate([
33632
- Field({ description: 'Status of the action category (Pending, Active, Disabled).' }),
34043
+ Field({ description: `Status of the action category (Pending, Active, Disabled).` }),
33633
34044
  MaxLength(40),
33634
34045
  __metadata("design:type", String)
33635
34046
  ], ActionCategory_.prototype, "Status", void 0);
@@ -33657,7 +34068,7 @@ __decorate([
33657
34068
  __metadata("design:type", Array)
33658
34069
  ], ActionCategory_.prototype, "Actions_CategoryIDArray", void 0);
33659
34070
  ActionCategory_ = __decorate([
33660
- ObjectType({ description: 'Organizes actions into categories, including name, description, and optional parent category for hierarchy.' })
34071
+ ObjectType({ description: `Organizes actions into categories, including name, description, and optional parent category for hierarchy.` })
33661
34072
  ], ActionCategory_);
33662
34073
  export { ActionCategory_ };
33663
34074
  let CreateActionCategoryInput = class CreateActionCategoryInput {
@@ -33913,7 +34324,7 @@ __decorate([
33913
34324
  __metadata("design:type", String)
33914
34325
  ], EntityAction_.prototype, "ActionID", void 0);
33915
34326
  __decorate([
33916
- Field({ description: 'Status of the entity action (Pending, Active, Disabled).' }),
34327
+ Field({ description: `Status of the entity action (Pending, Active, Disabled).` }),
33917
34328
  MaxLength(40),
33918
34329
  __metadata("design:type", String)
33919
34330
  ], EntityAction_.prototype, "Status", void 0);
@@ -33955,7 +34366,7 @@ __decorate([
33955
34366
  __metadata("design:type", Array)
33956
34367
  ], EntityAction_.prototype, "EntityActionParams_EntityActionIDArray", void 0);
33957
34368
  EntityAction_ = __decorate([
33958
- ObjectType({ description: 'Links entities to actions - this is the main place where you define the actions that part of, or available, for a given entity.' })
34369
+ ObjectType({ description: `Links entities to actions - this is the main place where you define the actions that part of, or available, for a given entity.` })
33959
34370
  ], EntityAction_);
33960
34371
  export { EntityAction_ };
33961
34372
  let CreateEntityActionInput = class CreateEntityActionInput {
@@ -34217,7 +34628,7 @@ __decorate([
34217
34628
  __metadata("design:type", String)
34218
34629
  ], EntityActionInvocation_.prototype, "InvocationTypeID", void 0);
34219
34630
  __decorate([
34220
- Field({ description: 'Status of the entity action invocation (Pending, Active, Disabled).' }),
34631
+ Field({ description: `Status of the entity action invocation (Pending, Active, Disabled).` }),
34221
34632
  MaxLength(40),
34222
34633
  __metadata("design:type", String)
34223
34634
  ], EntityActionInvocation_.prototype, "Status", void 0);
@@ -34237,7 +34648,7 @@ __decorate([
34237
34648
  __metadata("design:type", String)
34238
34649
  ], EntityActionInvocation_.prototype, "InvocationType", void 0);
34239
34650
  EntityActionInvocation_ = __decorate([
34240
- ObjectType({ description: 'Links invocation types to entity actions – for example you might link a particular EntityAction to just “Create Record” and you might also have a second item in this table allowing the same Entity Action to be invoked from a User View or List, on demand.' })
34651
+ ObjectType({ description: `Links invocation types to entity actions – for example you might link a particular EntityAction to just “Create Record” and you might also have a second item in this table allowing the same Entity Action to be invoked from a User View or List, on demand.` })
34241
34652
  ], EntityActionInvocation_);
34242
34653
  export { EntityActionInvocation_ };
34243
34654
  let CreateEntityActionInvocationInput = class CreateEntityActionInvocationInput {
@@ -34479,7 +34890,7 @@ __decorate([
34479
34890
  __metadata("design:type", String)
34480
34891
  ], ActionAuthorization_.prototype, "Authorization", void 0);
34481
34892
  ActionAuthorization_ = __decorate([
34482
- ObjectType({ description: 'Links actions to authorizations, one or more of these must be possessed by a user in order to execute the action.' })
34893
+ ObjectType({ description: `Links actions to authorizations, one or more of these must be possessed by a user in order to execute the action.` })
34483
34894
  ], ActionAuthorization_);
34484
34895
  export { ActionAuthorization_ };
34485
34896
  let CreateActionAuthorizationInput = class CreateActionAuthorizationInput {
@@ -34686,12 +35097,12 @@ __decorate([
34686
35097
  __metadata("design:type", String)
34687
35098
  ], EntityActionInvocationType_.prototype, "ID", void 0);
34688
35099
  __decorate([
34689
- Field({ description: 'Name of the invocation type such as Record Created/Updated/etc.' }),
35100
+ Field({ description: `Name of the invocation type such as Record Created/Updated/etc.` }),
34690
35101
  MaxLength(510),
34691
35102
  __metadata("design:type", String)
34692
35103
  ], EntityActionInvocationType_.prototype, "Name", void 0);
34693
35104
  __decorate([
34694
- Field({ nullable: true, description: 'Description of the invocation type.' }),
35105
+ Field({ nullable: true, description: `Description of the invocation type.` }),
34695
35106
  __metadata("design:type", String)
34696
35107
  ], EntityActionInvocationType_.prototype, "Description", void 0);
34697
35108
  __decorate([
@@ -34713,7 +35124,7 @@ __decorate([
34713
35124
  __metadata("design:type", Array)
34714
35125
  ], EntityActionInvocationType_.prototype, "EntityActionInvocations_InvocationTypeIDArray", void 0);
34715
35126
  EntityActionInvocationType_ = __decorate([
34716
- ObjectType({ description: 'Stores the possible invocation types of an action within the context of an entity. Examples would be: Record Created/Updated/Deleted/Accessed as well as things like “View” or “List” where you could run an EntityAction against an entire set of records in a view or list – either by user click or programmatically.' })
35127
+ ObjectType({ description: `Stores the possible invocation types of an action within the context of an entity. Examples would be: Record Created/Updated/Deleted/Accessed as well as things like “View” or “List” where you could run an EntityAction against an entire set of records in a view or list – either by user click or programmatically.` })
34717
35128
  ], EntityActionInvocationType_);
34718
35129
  export { EntityActionInvocationType_ };
34719
35130
  let CreateEntityActionInvocationTypeInput = class CreateEntityActionInvocationTypeInput {
@@ -34972,7 +35383,7 @@ __decorate([
34972
35383
  __metadata("design:type", String)
34973
35384
  ], Action_.prototype, "Description", void 0);
34974
35385
  __decorate([
34975
- Field({ description: 'Generated or Custom. Generated means the UserPrompt is used to prompt an AI model to automatically create the code for the Action. Custom means that a custom class has been implemented that subclasses the BaseAction class. The custom class needs to use the @RegisterClass decorator and be included in the MJAPI (or other runtime environment) to be available for execution.' }),
35386
+ Field({ description: `Generated or Custom. Generated means the UserPrompt is used to prompt an AI model to automatically create the code for the Action. Custom means that a custom class has been implemented that subclasses the BaseAction class. The custom class needs to use the @RegisterClass decorator and be included in the MJAPI (or other runtime environment) to be available for execution.` }),
34976
35387
  MaxLength(40),
34977
35388
  __metadata("design:type", String)
34978
35389
  ], Action_.prototype, "Type", void 0);
@@ -34981,7 +35392,7 @@ __decorate([
34981
35392
  __metadata("design:type", String)
34982
35393
  ], Action_.prototype, "UserPrompt", void 0);
34983
35394
  __decorate([
34984
- Field({ nullable: true, description: 'User\'s comments not shared with the LLM.' }),
35395
+ Field({ nullable: true, description: `User's comments not shared with the LLM.` }),
34985
35396
  __metadata("design:type", String)
34986
35397
  ], Action_.prototype, "UserComments", void 0);
34987
35398
  __decorate([
@@ -34989,16 +35400,16 @@ __decorate([
34989
35400
  __metadata("design:type", String)
34990
35401
  ], Action_.prototype, "Code", void 0);
34991
35402
  __decorate([
34992
- Field({ nullable: true, description: 'AI\'s explanation of the code.' }),
35403
+ Field({ nullable: true, description: `AI's explanation of the code.` }),
34993
35404
  __metadata("design:type", String)
34994
35405
  ], Action_.prototype, "CodeComments", void 0);
34995
35406
  __decorate([
34996
- Field({ description: 'An action won\'t be usable until the code is approved.' }),
35407
+ Field({ description: `An action won't be usable until the code is approved.` }),
34997
35408
  MaxLength(40),
34998
35409
  __metadata("design:type", String)
34999
35410
  ], Action_.prototype, "CodeApprovalStatus", void 0);
35000
35411
  __decorate([
35001
- Field({ nullable: true, description: 'Optional comments when an individual (or an AI) reviews and approves the code.' }),
35412
+ Field({ nullable: true, description: `Optional comments when an individual (or an AI) reviews and approves the code.` }),
35002
35413
  __metadata("design:type", String)
35003
35414
  ], Action_.prototype, "CodeApprovalComments", void 0);
35004
35415
  __decorate([
@@ -35007,24 +35418,24 @@ __decorate([
35007
35418
  __metadata("design:type", String)
35008
35419
  ], Action_.prototype, "CodeApprovedByUserID", void 0);
35009
35420
  __decorate([
35010
- Field({ nullable: true, description: 'When the code was approved.' }),
35421
+ Field({ nullable: true, description: `When the code was approved.` }),
35011
35422
  MaxLength(8),
35012
35423
  __metadata("design:type", Date)
35013
35424
  ], Action_.prototype, "CodeApprovedAt", void 0);
35014
35425
  __decorate([
35015
- Field(() => Boolean, { description: 'If set to 1, Code will never be generated by the AI system. This overrides all other settings including the ForceCodeGeneration bit' }),
35426
+ Field(() => Boolean, { description: `If set to 1, Code will never be generated by the AI system. This overrides all other settings including the ForceCodeGeneration bit` }),
35016
35427
  __metadata("design:type", Boolean)
35017
35428
  ], Action_.prototype, "CodeLocked", void 0);
35018
35429
  __decorate([
35019
- Field(() => Boolean, { description: 'If set to 1, the Action will generate code for the provided UserPrompt on the next Save even if the UserPrompt hasn\'t changed. This is useful to force regeneration when other candidates (such as a change in Action Inputs/Outputs) occurs or on demand by a user.' }),
35430
+ Field(() => Boolean, { description: `If set to 1, the Action will generate code for the provided UserPrompt on the next Save even if the UserPrompt hasn't changed. This is useful to force regeneration when other candidates (such as a change in Action Inputs/Outputs) occurs or on demand by a user.` }),
35020
35431
  __metadata("design:type", Boolean)
35021
35432
  ], Action_.prototype, "ForceCodeGeneration", void 0);
35022
35433
  __decorate([
35023
- Field(() => Int, { nullable: true, description: 'Number of days to retain execution logs; NULL for indefinite.' }),
35434
+ Field(() => Int, { nullable: true, description: `Number of days to retain execution logs; NULL for indefinite.` }),
35024
35435
  __metadata("design:type", Number)
35025
35436
  ], Action_.prototype, "RetentionPeriod", void 0);
35026
35437
  __decorate([
35027
- Field({ description: 'Status of the action (Pending, Active, Disabled).' }),
35438
+ Field({ description: `Status of the action (Pending, Active, Disabled).` }),
35028
35439
  MaxLength(40),
35029
35440
  __metadata("design:type", String)
35030
35441
  ], Action_.prototype, "Status", void 0);
@@ -35085,7 +35496,7 @@ __decorate([
35085
35496
  __metadata("design:type", Array)
35086
35497
  ], Action_.prototype, "ActionAuthorizations_ActionIDArray", void 0);
35087
35498
  Action_ = __decorate([
35088
- ObjectType({ description: 'Stores action definitions, including prompts, generated code, user comments, and status.' })
35499
+ ObjectType({ description: `Stores action definitions, including prompts, generated code, user comments, and status.` })
35089
35500
  ], Action_);
35090
35501
  export { Action_ };
35091
35502
  let CreateActionInput = class CreateActionInput {
@@ -35567,11 +35978,11 @@ __decorate([
35567
35978
  __metadata("design:type", String)
35568
35979
  ], EntityActionFilter_.prototype, "ActionFilterID", void 0);
35569
35980
  __decorate([
35570
- Field(() => Int, { description: 'Order of filter execution.' }),
35981
+ Field(() => Int, { description: `Order of filter execution.` }),
35571
35982
  __metadata("design:type", Number)
35572
35983
  ], EntityActionFilter_.prototype, "Sequence", void 0);
35573
35984
  __decorate([
35574
- Field({ description: 'Status of the entity action filter (Pending, Active, Disabled).' }),
35985
+ Field({ description: `Status of the entity action filter (Pending, Active, Disabled).` }),
35575
35986
  MaxLength(40),
35576
35987
  __metadata("design:type", String)
35577
35988
  ], EntityActionFilter_.prototype, "Status", void 0);
@@ -35586,7 +35997,7 @@ __decorate([
35586
35997
  __metadata("design:type", Date)
35587
35998
  ], EntityActionFilter_.prototype, "_mj__UpdatedAt", void 0);
35588
35999
  EntityActionFilter_ = __decorate([
35589
- ObjectType({ description: 'Optional use. Maps Action Filters to specific EntityAction instances, specifying execution order and status. This allows for “pre-processing” before an Action actually is fired off, to check for various state/dirty/value conditions.' })
36000
+ ObjectType({ description: `Optional use. Maps Action Filters to specific EntityAction instances, specifying execution order and status. This allows for “pre-processing” before an Action actually is fired off, to check for various state/dirty/value conditions.` })
35590
36001
  ], EntityActionFilter_);
35591
36002
  export { EntityActionFilter_ };
35592
36003
  let CreateEntityActionFilterInput = class CreateEntityActionFilterInput {
@@ -35834,7 +36245,7 @@ __decorate([
35834
36245
  __metadata("design:type", Array)
35835
36246
  ], ActionFilter_.prototype, "EntityActionFilters_ActionFilterIDArray", void 0);
35836
36247
  ActionFilter_ = __decorate([
35837
- ObjectType({ description: 'Defines filters that can be evaluated ahead of executing an action. Action Filters are usable in any code pipeline you can execute them with the same context as the action itself and use the outcome to determine if the action should execute or not.' })
36248
+ ObjectType({ description: `Defines filters that can be evaluated ahead of executing an action. Action Filters are usable in any code pipeline you can execute them with the same context as the action itself and use the outcome to determine if the action should execute or not.` })
35838
36249
  ], ActionFilter_);
35839
36250
  export { ActionFilter_ };
35840
36251
  let CreateActionFilterInput = class CreateActionFilterInput {
@@ -36065,12 +36476,12 @@ __decorate([
36065
36476
  __metadata("design:type", String)
36066
36477
  ], ActionContextType_.prototype, "ID", void 0);
36067
36478
  __decorate([
36068
- Field({ description: 'Name of the context type.' }),
36479
+ Field({ description: `Name of the context type.` }),
36069
36480
  MaxLength(510),
36070
36481
  __metadata("design:type", String)
36071
36482
  ], ActionContextType_.prototype, "Name", void 0);
36072
36483
  __decorate([
36073
- Field({ nullable: true, description: 'Description of the context type.' }),
36484
+ Field({ nullable: true, description: `Description of the context type.` }),
36074
36485
  __metadata("design:type", String)
36075
36486
  ], ActionContextType_.prototype, "Description", void 0);
36076
36487
  __decorate([
@@ -36088,7 +36499,7 @@ __decorate([
36088
36499
  __metadata("design:type", Array)
36089
36500
  ], ActionContextType_.prototype, "ActionContexts_ContextTypeIDArray", void 0);
36090
36501
  ActionContextType_ = __decorate([
36091
- ObjectType({ description: 'Lists possible contexts for action execution with optional descriptions.' })
36502
+ ObjectType({ description: `Lists possible contexts for action execution with optional descriptions.` })
36092
36503
  ], ActionContextType_);
36093
36504
  export { ActionContextType_ };
36094
36505
  let CreateActionContextTypeInput = class CreateActionContextTypeInput {
@@ -36311,11 +36722,11 @@ __decorate([
36311
36722
  __metadata("design:type", String)
36312
36723
  ], ActionResultCode_.prototype, "ResultCode", void 0);
36313
36724
  __decorate([
36314
- Field(() => Boolean, { description: 'Indicates if the result code is a success or not. It is possible an action might have more than one failure condition/result code and same for success conditions.' }),
36725
+ Field(() => Boolean, { description: `Indicates if the result code is a success or not. It is possible an action might have more than one failure condition/result code and same for success conditions.` }),
36315
36726
  __metadata("design:type", Boolean)
36316
36727
  ], ActionResultCode_.prototype, "IsSuccess", void 0);
36317
36728
  __decorate([
36318
- Field({ nullable: true, description: 'Description of the result code.' }),
36729
+ Field({ nullable: true, description: `Description of the result code.` }),
36319
36730
  __metadata("design:type", String)
36320
36731
  ], ActionResultCode_.prototype, "Description", void 0);
36321
36732
  __decorate([
@@ -36334,7 +36745,7 @@ __decorate([
36334
36745
  __metadata("design:type", String)
36335
36746
  ], ActionResultCode_.prototype, "Action", void 0);
36336
36747
  ActionResultCode_ = __decorate([
36337
- ObjectType({ description: 'Defines the possible result codes for each action.' })
36748
+ ObjectType({ description: `Defines the possible result codes for each action.` })
36338
36749
  ], ActionResultCode_);
36339
36750
  export { ActionResultCode_ };
36340
36751
  let CreateActionResultCodeInput = class CreateActionResultCodeInput {
@@ -36562,7 +36973,7 @@ __decorate([
36562
36973
  __metadata("design:type", String)
36563
36974
  ], ActionContext_.prototype, "ContextTypeID", void 0);
36564
36975
  __decorate([
36565
- Field({ description: 'Status of the action context (Pending, Active, Disabled).' }),
36976
+ Field({ description: `Status of the action context (Pending, Active, Disabled).` }),
36566
36977
  MaxLength(40),
36567
36978
  __metadata("design:type", String)
36568
36979
  ], ActionContext_.prototype, "Status", void 0);
@@ -36587,7 +36998,7 @@ __decorate([
36587
36998
  __metadata("design:type", String)
36588
36999
  ], ActionContext_.prototype, "ContextType", void 0);
36589
37000
  ActionContext_ = __decorate([
36590
- ObjectType({ description: 'Links actions to their supported context types enabling a given action to be executable in more than one context.' })
37001
+ ObjectType({ description: `Links actions to their supported context types enabling a given action to be executable in more than one context.` })
36591
37002
  ], ActionContext_);
36592
37003
  export { ActionContext_ };
36593
37004
  let CreateActionContextInput = class CreateActionContextInput {
@@ -36804,12 +37215,12 @@ __decorate([
36804
37215
  __metadata("design:type", String)
36805
37216
  ], ActionExecutionLog_.prototype, "ActionID", void 0);
36806
37217
  __decorate([
36807
- Field({ description: 'Timestamp of when the action started execution.' }),
37218
+ Field({ description: `Timestamp of when the action started execution.` }),
36808
37219
  MaxLength(8),
36809
37220
  __metadata("design:type", Date)
36810
37221
  ], ActionExecutionLog_.prototype, "StartedAt", void 0);
36811
37222
  __decorate([
36812
- Field({ nullable: true, description: 'Timestamp of when the action ended execution.' }),
37223
+ Field({ nullable: true, description: `Timestamp of when the action ended execution.` }),
36813
37224
  MaxLength(8),
36814
37225
  __metadata("design:type", Date)
36815
37226
  ], ActionExecutionLog_.prototype, "EndedAt", void 0);
@@ -36828,7 +37239,7 @@ __decorate([
36828
37239
  __metadata("design:type", String)
36829
37240
  ], ActionExecutionLog_.prototype, "UserID", void 0);
36830
37241
  __decorate([
36831
- Field(() => Int, { nullable: true, description: 'Number of days to retain the log; NULL for indefinite retention.' }),
37242
+ Field(() => Int, { nullable: true, description: `Number of days to retain the log; NULL for indefinite retention.` }),
36832
37243
  __metadata("design:type", Number)
36833
37244
  ], ActionExecutionLog_.prototype, "RetentionPeriod", void 0);
36834
37245
  __decorate([
@@ -36852,7 +37263,7 @@ __decorate([
36852
37263
  __metadata("design:type", String)
36853
37264
  ], ActionExecutionLog_.prototype, "User", void 0);
36854
37265
  ActionExecutionLog_ = __decorate([
36855
- ObjectType({ description: 'Tracks every execution of an action, including start and end times, inputs, outputs, and result codes.' })
37266
+ ObjectType({ description: `Tracks every execution of an action, including start and end times, inputs, outputs, and result codes.` })
36856
37267
  ], ActionExecutionLog_);
36857
37268
  export { ActionExecutionLog_ };
36858
37269
  let CreateActionExecutionLogInput = class CreateActionExecutionLogInput {
@@ -37125,7 +37536,7 @@ __decorate([
37125
37536
  __metadata("design:type", String)
37126
37537
  ], ActionParam_.prototype, "Type", void 0);
37127
37538
  __decorate([
37128
- Field({ description: 'Tracks the basic value type of the parameter, additional information can be provided in the Description field' }),
37539
+ Field({ description: `Tracks the basic value type of the parameter, additional information can be provided in the Description field` }),
37129
37540
  MaxLength(60),
37130
37541
  __metadata("design:type", String)
37131
37542
  ], ActionParam_.prototype, "ValueType", void 0);
@@ -37165,7 +37576,7 @@ __decorate([
37165
37576
  __metadata("design:type", Array)
37166
37577
  ], ActionParam_.prototype, "ScheduledActionParams_ActionParamIDArray", void 0);
37167
37578
  ActionParam_ = __decorate([
37168
- ObjectType({ description: 'Tracks the input and output parameters for Actions.' })
37579
+ ObjectType({ description: `Tracks the input and output parameters for Actions.` })
37169
37580
  ], ActionParam_);
37170
37581
  export { ActionParam_ };
37171
37582
  let CreateActionParamInput = class CreateActionParamInput {
@@ -37463,7 +37874,7 @@ __decorate([
37463
37874
  __metadata("design:type", String)
37464
37875
  ], ActionLibrary_.prototype, "LibraryID", void 0);
37465
37876
  __decorate([
37466
- Field({ nullable: true, description: 'List of classes and functions used by the action from the library.' }),
37877
+ Field({ nullable: true, description: `List of classes and functions used by the action from the library.` }),
37467
37878
  __metadata("design:type", String)
37468
37879
  ], ActionLibrary_.prototype, "ItemsUsed", void 0);
37469
37880
  __decorate([
@@ -37487,7 +37898,7 @@ __decorate([
37487
37898
  __metadata("design:type", String)
37488
37899
  ], ActionLibrary_.prototype, "Library", void 0);
37489
37900
  ActionLibrary_ = __decorate([
37490
- ObjectType({ description: 'Tracks the list of libraries that a given Action uses, including a list of classes/functions for each library.' })
37901
+ ObjectType({ description: `Tracks the list of libraries that a given Action uses, including a list of classes/functions for each library.` })
37491
37902
  ], ActionLibrary_);
37492
37903
  export { ActionLibrary_ };
37493
37904
  let CreateActionLibraryInput = class CreateActionLibraryInput {
@@ -37706,16 +38117,16 @@ __decorate([
37706
38117
  __metadata("design:type", String)
37707
38118
  ], Library_.prototype, "Description", void 0);
37708
38119
  __decorate([
37709
- Field({ description: 'Status of the library, only libraries marked as Active will be available for use by generated code. If a library was once active but no longer is, existing code that used the library will not be affected.' }),
38120
+ Field({ description: `Status of the library, only libraries marked as Active will be available for use by generated code. If a library was once active but no longer is, existing code that used the library will not be affected.` }),
37710
38121
  MaxLength(40),
37711
38122
  __metadata("design:type", String)
37712
38123
  ], Library_.prototype, "Status", void 0);
37713
38124
  __decorate([
37714
- Field({ nullable: true, description: 'Code showing the types and functions defined in the library to be used for reference by humans and AI' }),
38125
+ Field({ nullable: true, description: `Code showing the types and functions defined in the library to be used for reference by humans and AI` }),
37715
38126
  __metadata("design:type", String)
37716
38127
  ], Library_.prototype, "TypeDefinitions", void 0);
37717
38128
  __decorate([
37718
- Field({ nullable: true, description: 'Examples of code use of the classes and/or functions from within the library' }),
38129
+ Field({ nullable: true, description: `Examples of code use of the classes and/or functions from within the library` }),
37719
38130
  __metadata("design:type", String)
37720
38131
  ], Library_.prototype, "SampleCode", void 0);
37721
38132
  __decorate([
@@ -37737,7 +38148,7 @@ __decorate([
37737
38148
  __metadata("design:type", Array)
37738
38149
  ], Library_.prototype, "LibraryItems_LibraryIDArray", void 0);
37739
38150
  Library_ = __decorate([
37740
- ObjectType({ description: 'Stores information about the available libraries, including a list of classes/functions, type definitions, and sample code. You can add additional custom libraries here to make them avaialable to code generation features within the system.' })
38151
+ ObjectType({ description: `Stores information about the available libraries, including a list of classes/functions, type definitions, and sample code. You can add additional custom libraries here to make them avaialable to code generation features within the system.` })
37741
38152
  ], Library_);
37742
38153
  export { Library_ };
37743
38154
  let CreateLibraryInput = class CreateLibraryInput {
@@ -37888,6 +38299,10 @@ let LibraryResolver = class LibraryResolver extends ResolverBase {
37888
38299
  async UpdateLibrary(input, { dataSource, userPayload }, pubSub) {
37889
38300
  return this.UpdateRecord('Libraries', input, dataSource, userPayload, pubSub);
37890
38301
  }
38302
+ async DeleteLibrary(ID, options, { dataSource, userPayload }, pubSub) {
38303
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
38304
+ return this.DeleteRecord('Libraries', key, options, dataSource, userPayload, pubSub);
38305
+ }
37891
38306
  };
37892
38307
  __decorate([
37893
38308
  Query(() => RunLibraryViewResult),
@@ -37961,6 +38376,16 @@ __decorate([
37961
38376
  __metadata("design:paramtypes", [UpdateLibraryInput, Object, PubSubEngine]),
37962
38377
  __metadata("design:returntype", Promise)
37963
38378
  ], LibraryResolver.prototype, "UpdateLibrary", null);
38379
+ __decorate([
38380
+ Mutation(() => Library_),
38381
+ __param(0, Arg('ID', () => String)),
38382
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
38383
+ __param(2, Ctx()),
38384
+ __param(3, PubSub()),
38385
+ __metadata("design:type", Function),
38386
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
38387
+ __metadata("design:returntype", Promise)
38388
+ ], LibraryResolver.prototype, "DeleteLibrary", null);
37964
38389
  LibraryResolver = __decorate([
37965
38390
  Resolver(Library_)
37966
38391
  ], LibraryResolver);
@@ -38172,6 +38597,10 @@ let ListCategoryResolver = class ListCategoryResolver extends ResolverBase {
38172
38597
  async UpdateListCategory(input, { dataSource, userPayload }, pubSub) {
38173
38598
  return this.UpdateRecord('List Categories', input, dataSource, userPayload, pubSub);
38174
38599
  }
38600
+ async DeleteListCategory(ID, options, { dataSource, userPayload }, pubSub) {
38601
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
38602
+ return this.DeleteRecord('List Categories', key, options, dataSource, userPayload, pubSub);
38603
+ }
38175
38604
  };
38176
38605
  __decorate([
38177
38606
  Query(() => RunListCategoryViewResult),
@@ -38245,6 +38674,16 @@ __decorate([
38245
38674
  __metadata("design:paramtypes", [UpdateListCategoryInput, Object, PubSubEngine]),
38246
38675
  __metadata("design:returntype", Promise)
38247
38676
  ], ListCategoryResolver.prototype, "UpdateListCategory", null);
38677
+ __decorate([
38678
+ Mutation(() => ListCategory_),
38679
+ __param(0, Arg('ID', () => String)),
38680
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
38681
+ __param(2, Ctx()),
38682
+ __param(3, PubSub()),
38683
+ __metadata("design:type", Function),
38684
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
38685
+ __metadata("design:returntype", Promise)
38686
+ ], ListCategoryResolver.prototype, "DeleteListCategory", null);
38248
38687
  ListCategoryResolver = __decorate([
38249
38688
  Resolver(ListCategory_)
38250
38689
  ], ListCategoryResolver);
@@ -38277,16 +38716,16 @@ __decorate([
38277
38716
  __metadata("design:type", String)
38278
38717
  ], CommunicationProvider_.prototype, "Description", void 0);
38279
38718
  __decorate([
38280
- Field({ description: 'The status of the communication provider (Disabled or Active).' }),
38719
+ Field({ description: `The status of the communication provider (Disabled or Active).` }),
38281
38720
  MaxLength(40),
38282
38721
  __metadata("design:type", String)
38283
38722
  ], CommunicationProvider_.prototype, "Status", void 0);
38284
38723
  __decorate([
38285
- Field(() => Boolean, { description: 'Indicates if the provider supports sending messages.' }),
38724
+ Field(() => Boolean, { description: `Indicates if the provider supports sending messages.` }),
38286
38725
  __metadata("design:type", Boolean)
38287
38726
  ], CommunicationProvider_.prototype, "SupportsSending", void 0);
38288
38727
  __decorate([
38289
- Field(() => Boolean, { description: 'Indicates if the provider supports receiving messages.' }),
38728
+ Field(() => Boolean, { description: `Indicates if the provider supports receiving messages.` }),
38290
38729
  __metadata("design:type", Boolean)
38291
38730
  ], CommunicationProvider_.prototype, "SupportsReceiving", void 0);
38292
38731
  __decorate([
@@ -38300,7 +38739,7 @@ __decorate([
38300
38739
  __metadata("design:type", Date)
38301
38740
  ], CommunicationProvider_.prototype, "_mj__UpdatedAt", void 0);
38302
38741
  __decorate([
38303
- Field(() => Boolean, { description: 'Whether or not the provider supports sending messages at a specific time' }),
38742
+ Field(() => Boolean, { description: `Whether or not the provider supports sending messages at a specific time` }),
38304
38743
  __metadata("design:type", Boolean)
38305
38744
  ], CommunicationProvider_.prototype, "SupportsScheduledSending", void 0);
38306
38745
  __decorate([
@@ -38312,7 +38751,7 @@ __decorate([
38312
38751
  __metadata("design:type", Array)
38313
38752
  ], CommunicationProvider_.prototype, "CommunicationProviderMessageTypes_CommunicationProviderIDArray", void 0);
38314
38753
  CommunicationProvider_ = __decorate([
38315
- ObjectType({ description: 'All supported communication providers.' })
38754
+ ObjectType({ description: `All supported communication providers.` })
38316
38755
  ], CommunicationProvider_);
38317
38756
  export { CommunicationProvider_ };
38318
38757
  let CreateCommunicationProviderInput = class CreateCommunicationProviderInput {
@@ -38473,6 +38912,10 @@ let CommunicationProviderResolver = class CommunicationProviderResolver extends
38473
38912
  async UpdateCommunicationProvider(input, { dataSource, userPayload }, pubSub) {
38474
38913
  return this.UpdateRecord('Communication Providers', input, dataSource, userPayload, pubSub);
38475
38914
  }
38915
+ async DeleteCommunicationProvider(ID, options, { dataSource, userPayload }, pubSub) {
38916
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
38917
+ return this.DeleteRecord('Communication Providers', key, options, dataSource, userPayload, pubSub);
38918
+ }
38476
38919
  };
38477
38920
  __decorate([
38478
38921
  Query(() => RunCommunicationProviderViewResult),
@@ -38546,6 +38989,16 @@ __decorate([
38546
38989
  __metadata("design:paramtypes", [UpdateCommunicationProviderInput, Object, PubSubEngine]),
38547
38990
  __metadata("design:returntype", Promise)
38548
38991
  ], CommunicationProviderResolver.prototype, "UpdateCommunicationProvider", null);
38992
+ __decorate([
38993
+ Mutation(() => CommunicationProvider_),
38994
+ __param(0, Arg('ID', () => String)),
38995
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
38996
+ __param(2, Ctx()),
38997
+ __param(3, PubSub()),
38998
+ __metadata("design:type", Function),
38999
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
39000
+ __metadata("design:returntype", Promise)
39001
+ ], CommunicationProviderResolver.prototype, "DeleteCommunicationProvider", null);
38549
39002
  CommunicationProviderResolver = __decorate([
38550
39003
  Resolver(CommunicationProvider_)
38551
39004
  ], CommunicationProviderResolver);
@@ -38575,12 +39028,12 @@ __decorate([
38575
39028
  __metadata("design:type", String)
38576
39029
  ], CommunicationRun_.prototype, "UserID", void 0);
38577
39030
  __decorate([
38578
- Field({ description: 'The direction of the communication run (Sending or Receiving).' }),
39031
+ Field({ description: `The direction of the communication run (Sending or Receiving).` }),
38579
39032
  MaxLength(40),
38580
39033
  __metadata("design:type", String)
38581
39034
  ], CommunicationRun_.prototype, "Direction", void 0);
38582
39035
  __decorate([
38583
- Field({ description: 'The status of the communication run (Pending, In-Progress, Complete, Failed).' }),
39036
+ Field({ description: `The status of the communication run (Pending, In-Progress, Complete, Failed).` }),
38584
39037
  MaxLength(40),
38585
39038
  __metadata("design:type", String)
38586
39039
  ], CommunicationRun_.prototype, "Status", void 0);
@@ -38599,7 +39052,7 @@ __decorate([
38599
39052
  __metadata("design:type", String)
38600
39053
  ], CommunicationRun_.prototype, "Comments", void 0);
38601
39054
  __decorate([
38602
- Field({ nullable: true, description: 'The error message if the communication run failed.' }),
39055
+ Field({ nullable: true, description: `The error message if the communication run failed.` }),
38603
39056
  __metadata("design:type", String)
38604
39057
  ], CommunicationRun_.prototype, "ErrorMessage", void 0);
38605
39058
  __decorate([
@@ -38622,7 +39075,7 @@ __decorate([
38622
39075
  __metadata("design:type", Array)
38623
39076
  ], CommunicationRun_.prototype, "CommunicationLogs_CommunicationRunIDArray", void 0);
38624
39077
  CommunicationRun_ = __decorate([
38625
- ObjectType({ description: 'Runs of bulk message sends and receives.' })
39078
+ ObjectType({ description: `Runs of bulk message sends and receives.` })
38626
39079
  ], CommunicationRun_);
38627
39080
  export { CommunicationRun_ };
38628
39081
  let CreateCommunicationRunInput = class CreateCommunicationRunInput {
@@ -38889,12 +39342,12 @@ __decorate([
38889
39342
  __metadata("design:type", String)
38890
39343
  ], CommunicationProviderMessageType_.prototype, "Name", void 0);
38891
39344
  __decorate([
38892
- Field({ description: 'The status of the provider message type (Disabled or Active).' }),
39345
+ Field({ description: `The status of the provider message type (Disabled or Active).` }),
38893
39346
  MaxLength(40),
38894
39347
  __metadata("design:type", String)
38895
39348
  ], CommunicationProviderMessageType_.prototype, "Status", void 0);
38896
39349
  __decorate([
38897
- Field({ nullable: true, description: 'Additional attributes specific to the provider message type.' }),
39350
+ Field({ nullable: true, description: `Additional attributes specific to the provider message type.` }),
38898
39351
  __metadata("design:type", String)
38899
39352
  ], CommunicationProviderMessageType_.prototype, "AdditionalAttributes", void 0);
38900
39353
  __decorate([
@@ -38922,7 +39375,7 @@ __decorate([
38922
39375
  __metadata("design:type", Array)
38923
39376
  ], CommunicationProviderMessageType_.prototype, "CommunicationLogs_CommunicationProviderMessageTypeIDArray", void 0);
38924
39377
  CommunicationProviderMessageType_ = __decorate([
38925
- ObjectType({ description: 'Providers and their supported message types with additional attributes.' })
39378
+ ObjectType({ description: `Providers and their supported message types with additional attributes.` })
38926
39379
  ], CommunicationProviderMessageType_);
38927
39380
  export { CommunicationProviderMessageType_ };
38928
39381
  let CreateCommunicationProviderMessageTypeInput = class CreateCommunicationProviderMessageTypeInput {
@@ -39185,26 +39638,26 @@ __decorate([
39185
39638
  __metadata("design:type", String)
39186
39639
  ], CommunicationLog_.prototype, "CommunicationRunID", void 0);
39187
39640
  __decorate([
39188
- Field({ description: 'The direction of the communication log (Sending or Receiving).' }),
39641
+ Field({ description: `The direction of the communication log (Sending or Receiving).` }),
39189
39642
  MaxLength(40),
39190
39643
  __metadata("design:type", String)
39191
39644
  ], CommunicationLog_.prototype, "Direction", void 0);
39192
39645
  __decorate([
39193
- Field({ description: 'The date and time when the message was logged.' }),
39646
+ Field({ description: `The date and time when the message was logged.` }),
39194
39647
  MaxLength(8),
39195
39648
  __metadata("design:type", Date)
39196
39649
  ], CommunicationLog_.prototype, "MessageDate", void 0);
39197
39650
  __decorate([
39198
- Field({ description: 'The status of the logged message (Pending, In-Progress, Complete, Failed).' }),
39651
+ Field({ description: `The status of the logged message (Pending, In-Progress, Complete, Failed).` }),
39199
39652
  MaxLength(40),
39200
39653
  __metadata("design:type", String)
39201
39654
  ], CommunicationLog_.prototype, "Status", void 0);
39202
39655
  __decorate([
39203
- Field({ nullable: true, description: 'The content of the logged message.' }),
39656
+ Field({ nullable: true, description: `The content of the logged message.` }),
39204
39657
  __metadata("design:type", String)
39205
39658
  ], CommunicationLog_.prototype, "MessageContent", void 0);
39206
39659
  __decorate([
39207
- Field({ nullable: true, description: 'The error message if the message sending failed.' }),
39660
+ Field({ nullable: true, description: `The error message if the message sending failed.` }),
39208
39661
  __metadata("design:type", String)
39209
39662
  ], CommunicationLog_.prototype, "ErrorMessage", void 0);
39210
39663
  __decorate([
@@ -39228,7 +39681,7 @@ __decorate([
39228
39681
  __metadata("design:type", String)
39229
39682
  ], CommunicationLog_.prototype, "CommunicationProviderMessageType", void 0);
39230
39683
  CommunicationLog_ = __decorate([
39231
- ObjectType({ description: 'Logs of sent and received messages.' })
39684
+ ObjectType({ description: `Logs of sent and received messages.` })
39232
39685
  ], CommunicationLog_);
39233
39686
  export { CommunicationLog_ };
39234
39687
  let CreateCommunicationLogInput = class CreateCommunicationLogInput {
@@ -39479,19 +39932,19 @@ __decorate([
39479
39932
  __metadata("design:type", String)
39480
39933
  ], CommunicationBaseMessageType_.prototype, "Type", void 0);
39481
39934
  __decorate([
39482
- Field(() => Boolean, { description: 'Indicates if attachments are supported.' }),
39935
+ Field(() => Boolean, { description: `Indicates if attachments are supported.` }),
39483
39936
  __metadata("design:type", Boolean)
39484
39937
  ], CommunicationBaseMessageType_.prototype, "SupportsAttachments", void 0);
39485
39938
  __decorate([
39486
- Field(() => Boolean, { description: 'Indicates if a subject line is supported.' }),
39939
+ Field(() => Boolean, { description: `Indicates if a subject line is supported.` }),
39487
39940
  __metadata("design:type", Boolean)
39488
39941
  ], CommunicationBaseMessageType_.prototype, "SupportsSubjectLine", void 0);
39489
39942
  __decorate([
39490
- Field(() => Boolean, { description: 'Indicates if HTML content is supported.' }),
39943
+ Field(() => Boolean, { description: `Indicates if HTML content is supported.` }),
39491
39944
  __metadata("design:type", Boolean)
39492
39945
  ], CommunicationBaseMessageType_.prototype, "SupportsHtml", void 0);
39493
39946
  __decorate([
39494
- Field(() => Int, { nullable: true, description: 'The maximum size in bytes for the message.' }),
39947
+ Field(() => Int, { nullable: true, description: `The maximum size in bytes for the message.` }),
39495
39948
  __metadata("design:type", Number)
39496
39949
  ], CommunicationBaseMessageType_.prototype, "MaxBytes", void 0);
39497
39950
  __decorate([
@@ -39513,7 +39966,7 @@ __decorate([
39513
39966
  __metadata("design:type", Array)
39514
39967
  ], CommunicationBaseMessageType_.prototype, "EntityCommunicationMessageTypes_BaseMessageTypeIDArray", void 0);
39515
39968
  CommunicationBaseMessageType_ = __decorate([
39516
- ObjectType({ description: 'Base message types and their supported functionalities.' })
39969
+ ObjectType({ description: `Base message types and their supported functionalities.` })
39517
39970
  ], CommunicationBaseMessageType_);
39518
39971
  export { CommunicationBaseMessageType_ };
39519
39972
  let CreateCommunicationBaseMessageTypeInput = class CreateCommunicationBaseMessageTypeInput {
@@ -39664,6 +40117,10 @@ let CommunicationBaseMessageTypeResolver = class CommunicationBaseMessageTypeRes
39664
40117
  async UpdateCommunicationBaseMessageType(input, { dataSource, userPayload }, pubSub) {
39665
40118
  return this.UpdateRecord('Communication Base Message Types', input, dataSource, userPayload, pubSub);
39666
40119
  }
40120
+ async DeleteCommunicationBaseMessageType(ID, options, { dataSource, userPayload }, pubSub) {
40121
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
40122
+ return this.DeleteRecord('Communication Base Message Types', key, options, dataSource, userPayload, pubSub);
40123
+ }
39667
40124
  };
39668
40125
  __decorate([
39669
40126
  Query(() => RunCommunicationBaseMessageTypeViewResult),
@@ -39737,6 +40194,16 @@ __decorate([
39737
40194
  __metadata("design:paramtypes", [UpdateCommunicationBaseMessageTypeInput, Object, PubSubEngine]),
39738
40195
  __metadata("design:returntype", Promise)
39739
40196
  ], CommunicationBaseMessageTypeResolver.prototype, "UpdateCommunicationBaseMessageType", null);
40197
+ __decorate([
40198
+ Mutation(() => CommunicationBaseMessageType_),
40199
+ __param(0, Arg('ID', () => String)),
40200
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
40201
+ __param(2, Ctx()),
40202
+ __param(3, PubSub()),
40203
+ __metadata("design:type", Function),
40204
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
40205
+ __metadata("design:returntype", Promise)
40206
+ ], CommunicationBaseMessageTypeResolver.prototype, "DeleteCommunicationBaseMessageType", null);
39740
40207
  CommunicationBaseMessageTypeResolver = __decorate([
39741
40208
  Resolver(CommunicationBaseMessageType_)
39742
40209
  ], CommunicationBaseMessageTypeResolver);
@@ -39766,12 +40233,12 @@ __decorate([
39766
40233
  __metadata("design:type", String)
39767
40234
  ], Template_.prototype, "ID", void 0);
39768
40235
  __decorate([
39769
- Field({ description: 'Name of the template' }),
40236
+ Field({ description: `Name of the template` }),
39770
40237
  MaxLength(510),
39771
40238
  __metadata("design:type", String)
39772
40239
  ], Template_.prototype, "Name", void 0);
39773
40240
  __decorate([
39774
- Field({ nullable: true, description: 'Description of the template' }),
40241
+ Field({ nullable: true, description: `Description of the template` }),
39775
40242
  __metadata("design:type", String)
39776
40243
  ], Template_.prototype, "Description", void 0);
39777
40244
  __decorate([
@@ -39780,7 +40247,7 @@ __decorate([
39780
40247
  __metadata("design:type", String)
39781
40248
  ], Template_.prototype, "CategoryID", void 0);
39782
40249
  __decorate([
39783
- Field({ nullable: true, description: 'This prompt will be used by the AI to generate template content as requested by the user.' }),
40250
+ Field({ nullable: true, description: `This prompt will be used by the AI to generate template content as requested by the user.` }),
39784
40251
  __metadata("design:type", String)
39785
40252
  ], Template_.prototype, "UserPrompt", void 0);
39786
40253
  __decorate([
@@ -39789,17 +40256,17 @@ __decorate([
39789
40256
  __metadata("design:type", String)
39790
40257
  ], Template_.prototype, "UserID", void 0);
39791
40258
  __decorate([
39792
- Field({ nullable: true, description: 'Optional, if provided, this template will not be available for use until the specified date. Requires IsActive to be set to 1' }),
40259
+ Field({ nullable: true, description: `Optional, if provided, this template will not be available for use until the specified date. Requires IsActive to be set to 1` }),
39793
40260
  MaxLength(8),
39794
40261
  __metadata("design:type", Date)
39795
40262
  ], Template_.prototype, "ActiveAt", void 0);
39796
40263
  __decorate([
39797
- Field({ nullable: true, description: 'Optional, if provided, this template will not be available for use after the specified date. If IsActive=0, this has no effect.' }),
40264
+ Field({ nullable: true, description: `Optional, if provided, this template will not be available for use after the specified date. If IsActive=0, this has no effect.` }),
39798
40265
  MaxLength(8),
39799
40266
  __metadata("design:type", Date)
39800
40267
  ], Template_.prototype, "DisabledAt", void 0);
39801
40268
  __decorate([
39802
- Field(() => Boolean, { description: 'If set to 0, the template will be disabled regardless of the values in ActiveAt/DisabledAt. ' }),
40269
+ Field(() => Boolean, { description: `If set to 0, the template will be disabled regardless of the values in ActiveAt/DisabledAt. ` }),
39803
40270
  __metadata("design:type", Boolean)
39804
40271
  ], Template_.prototype, "IsActive", void 0);
39805
40272
  __decorate([
@@ -39839,7 +40306,7 @@ __decorate([
39839
40306
  __metadata("design:type", Array)
39840
40307
  ], Template_.prototype, "EntityDocuments_TemplateIDArray", void 0);
39841
40308
  Template_ = __decorate([
39842
- ObjectType({ description: 'Templates are used for dynamic expansion of a static template with data from a given context. Templates can be used to create documents, messages and anything else that requires dynamic document creation merging together static text, data and lightweight logic' })
40309
+ ObjectType({ description: `Templates are used for dynamic expansion of a static template with data from a given context. Templates can be used to create documents, messages and anything else that requires dynamic document creation merging together static text, data and lightweight logic` })
39843
40310
  ], Template_);
39844
40311
  export { Template_ };
39845
40312
  let CreateTemplateInput = class CreateTemplateInput {
@@ -40032,6 +40499,10 @@ let TemplateResolver = class TemplateResolver extends ResolverBase {
40032
40499
  async UpdateTemplate(input, { dataSource, userPayload }, pubSub) {
40033
40500
  return this.UpdateRecord('Templates', input, dataSource, userPayload, pubSub);
40034
40501
  }
40502
+ async DeleteTemplate(ID, options, { dataSource, userPayload }, pubSub) {
40503
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
40504
+ return this.DeleteRecord('Templates', key, options, dataSource, userPayload, pubSub);
40505
+ }
40035
40506
  };
40036
40507
  __decorate([
40037
40508
  Query(() => RunTemplateViewResult),
@@ -40123,6 +40594,16 @@ __decorate([
40123
40594
  __metadata("design:paramtypes", [UpdateTemplateInput, Object, PubSubEngine]),
40124
40595
  __metadata("design:returntype", Promise)
40125
40596
  ], TemplateResolver.prototype, "UpdateTemplate", null);
40597
+ __decorate([
40598
+ Mutation(() => Template_),
40599
+ __param(0, Arg('ID', () => String)),
40600
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
40601
+ __param(2, Ctx()),
40602
+ __param(3, PubSub()),
40603
+ __metadata("design:type", Function),
40604
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
40605
+ __metadata("design:returntype", Promise)
40606
+ ], TemplateResolver.prototype, "DeleteTemplate", null);
40126
40607
  TemplateResolver = __decorate([
40127
40608
  Resolver(Template_)
40128
40609
  ], TemplateResolver);
@@ -40146,12 +40627,12 @@ __decorate([
40146
40627
  __metadata("design:type", String)
40147
40628
  ], TemplateCategory_.prototype, "ID", void 0);
40148
40629
  __decorate([
40149
- Field({ description: 'Name of the template category' }),
40630
+ Field({ description: `Name of the template category` }),
40150
40631
  MaxLength(510),
40151
40632
  __metadata("design:type", String)
40152
40633
  ], TemplateCategory_.prototype, "Name", void 0);
40153
40634
  __decorate([
40154
- Field({ nullable: true, description: 'Description of the template category' }),
40635
+ Field({ nullable: true, description: `Description of the template category` }),
40155
40636
  __metadata("design:type", String)
40156
40637
  ], TemplateCategory_.prototype, "Description", void 0);
40157
40638
  __decorate([
@@ -40193,7 +40674,7 @@ __decorate([
40193
40674
  __metadata("design:type", Array)
40194
40675
  ], TemplateCategory_.prototype, "TemplateCategories_ParentIDArray", void 0);
40195
40676
  TemplateCategory_ = __decorate([
40196
- ObjectType({ description: 'Template categories for organizing templates' })
40677
+ ObjectType({ description: `Template categories for organizing templates` })
40197
40678
  ], TemplateCategory_);
40198
40679
  export { TemplateCategory_ };
40199
40680
  let CreateTemplateCategoryInput = class CreateTemplateCategoryInput {
@@ -40334,6 +40815,10 @@ let TemplateCategoryResolver = class TemplateCategoryResolver extends ResolverBa
40334
40815
  async UpdateTemplateCategory(input, { dataSource, userPayload }, pubSub) {
40335
40816
  return this.UpdateRecord('Template Categories', input, dataSource, userPayload, pubSub);
40336
40817
  }
40818
+ async DeleteTemplateCategory(ID, options, { dataSource, userPayload }, pubSub) {
40819
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
40820
+ return this.DeleteRecord('Template Categories', key, options, dataSource, userPayload, pubSub);
40821
+ }
40337
40822
  };
40338
40823
  __decorate([
40339
40824
  Query(() => RunTemplateCategoryViewResult),
@@ -40407,6 +40892,16 @@ __decorate([
40407
40892
  __metadata("design:paramtypes", [UpdateTemplateCategoryInput, Object, PubSubEngine]),
40408
40893
  __metadata("design:returntype", Promise)
40409
40894
  ], TemplateCategoryResolver.prototype, "UpdateTemplateCategory", null);
40895
+ __decorate([
40896
+ Mutation(() => TemplateCategory_),
40897
+ __param(0, Arg('ID', () => String)),
40898
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
40899
+ __param(2, Ctx()),
40900
+ __param(3, PubSub()),
40901
+ __metadata("design:type", Function),
40902
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
40903
+ __metadata("design:returntype", Promise)
40904
+ ], TemplateCategoryResolver.prototype, "DeleteTemplateCategory", null);
40410
40905
  TemplateCategoryResolver = __decorate([
40411
40906
  Resolver(TemplateCategory_)
40412
40907
  ], TemplateCategoryResolver);
@@ -40439,15 +40934,15 @@ __decorate([
40439
40934
  __metadata("design:type", String)
40440
40935
  ], TemplateContent_.prototype, "TypeID", void 0);
40441
40936
  __decorate([
40442
- Field({ nullable: true, description: 'The actual text content for the template' }),
40937
+ Field({ nullable: true, description: `The actual text content for the template` }),
40443
40938
  __metadata("design:type", String)
40444
40939
  ], TemplateContent_.prototype, "TemplateText", void 0);
40445
40940
  __decorate([
40446
- Field(() => Int, { description: 'Priority of the content version, higher priority versions will be used ahead of lower priority versions for a given Type' }),
40941
+ Field(() => Int, { description: `Priority of the content version, higher priority versions will be used ahead of lower priority versions for a given Type` }),
40447
40942
  __metadata("design:type", Number)
40448
40943
  ], TemplateContent_.prototype, "Priority", void 0);
40449
40944
  __decorate([
40450
- Field(() => Boolean, { description: 'Indicates whether the content is active or not. Use this to disable a particular Template Content item without having to remove it' }),
40945
+ Field(() => Boolean, { description: `Indicates whether the content is active or not. Use this to disable a particular Template Content item without having to remove it` }),
40451
40946
  __metadata("design:type", Boolean)
40452
40947
  ], TemplateContent_.prototype, "IsActive", void 0);
40453
40948
  __decorate([
@@ -40471,7 +40966,7 @@ __decorate([
40471
40966
  __metadata("design:type", String)
40472
40967
  ], TemplateContent_.prototype, "Type", void 0);
40473
40968
  TemplateContent_ = __decorate([
40474
- ObjectType({ description: 'Template content for different versions of a template for purposes like HTML/Text/etc' })
40969
+ ObjectType({ description: `Template content for different versions of a template for purposes like HTML/Text/etc` })
40475
40970
  ], TemplateContent_);
40476
40971
  export { TemplateContent_ };
40477
40972
  let CreateTemplateContentInput = class CreateTemplateContentInput {
@@ -40610,6 +41105,10 @@ let TemplateContentResolver = class TemplateContentResolver extends ResolverBase
40610
41105
  async UpdateTemplateContent(input, { dataSource, userPayload }, pubSub) {
40611
41106
  return this.UpdateRecord('Template Contents', input, dataSource, userPayload, pubSub);
40612
41107
  }
41108
+ async DeleteTemplateContent(ID, options, { dataSource, userPayload }, pubSub) {
41109
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
41110
+ return this.DeleteRecord('Template Contents', key, options, dataSource, userPayload, pubSub);
41111
+ }
40613
41112
  };
40614
41113
  __decorate([
40615
41114
  Query(() => RunTemplateContentViewResult),
@@ -40665,6 +41164,16 @@ __decorate([
40665
41164
  __metadata("design:paramtypes", [UpdateTemplateContentInput, Object, PubSubEngine]),
40666
41165
  __metadata("design:returntype", Promise)
40667
41166
  ], TemplateContentResolver.prototype, "UpdateTemplateContent", null);
41167
+ __decorate([
41168
+ Mutation(() => TemplateContent_),
41169
+ __param(0, Arg('ID', () => String)),
41170
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
41171
+ __param(2, Ctx()),
41172
+ __param(3, PubSub()),
41173
+ __metadata("design:type", Function),
41174
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
41175
+ __metadata("design:returntype", Promise)
41176
+ ], TemplateContentResolver.prototype, "DeleteTemplateContent", null);
40668
41177
  TemplateContentResolver = __decorate([
40669
41178
  Resolver(TemplateContent_)
40670
41179
  ], TemplateContentResolver);
@@ -40699,21 +41208,21 @@ __decorate([
40699
41208
  __metadata("design:type", String)
40700
41209
  ], TemplateParam_.prototype, "TemplateID", void 0);
40701
41210
  __decorate([
40702
- Field({ description: 'Name of the parameter' }),
41211
+ Field({ description: `Name of the parameter` }),
40703
41212
  MaxLength(510),
40704
41213
  __metadata("design:type", String)
40705
41214
  ], TemplateParam_.prototype, "Name", void 0);
40706
41215
  __decorate([
40707
- Field({ nullable: true, description: 'Description of the parameter' }),
41216
+ Field({ nullable: true, description: `Description of the parameter` }),
40708
41217
  __metadata("design:type", String)
40709
41218
  ], TemplateParam_.prototype, "Description", void 0);
40710
41219
  __decorate([
40711
- Field({ description: 'Type of the parameter - Record is an individual record within the entity specified by EntityID. Entity means an entire Entity or an entity filtered by the LinkedParameterName/Field attributes and/or ExtraFilter. Object is any valid JSON object. Array and Scalar have their common meanings.' }),
41220
+ Field({ description: `Type of the parameter - Record is an individual record within the entity specified by EntityID. Entity means an entire Entity or an entity filtered by the LinkedParameterName/Field attributes and/or ExtraFilter. Object is any valid JSON object. Array and Scalar have their common meanings.` }),
40712
41221
  MaxLength(40),
40713
41222
  __metadata("design:type", String)
40714
41223
  ], TemplateParam_.prototype, "Type", void 0);
40715
41224
  __decorate([
40716
- Field({ nullable: true, description: 'Default value of the parameter' }),
41225
+ Field({ nullable: true, description: `Default value of the parameter` }),
40717
41226
  __metadata("design:type", String)
40718
41227
  ], TemplateParam_.prototype, "DefaultValue", void 0);
40719
41228
  __decorate([
@@ -40721,17 +41230,17 @@ __decorate([
40721
41230
  __metadata("design:type", Boolean)
40722
41231
  ], TemplateParam_.prototype, "IsRequired", void 0);
40723
41232
  __decorate([
40724
- Field({ nullable: true, description: 'Only used when Type=Entity, this is used to link an Entity parameter with another parameter so that the rows in the Entity parameter can be filtered automatically based on the FKEY relationship between the Record and this Entity parameter. For example, if the Entity-based parameter is for an entity like Activities and there is another parameter of type Record for an entity like Contacts, in that situation the Activities Parameter would point to the Contacts parameter as the LinkedParameterName because we would filter down the Activities in each template render to only those linked to the Contact.' }),
41233
+ Field({ nullable: true, description: `Only used when Type=Entity, this is used to link an Entity parameter with another parameter so that the rows in the Entity parameter can be filtered automatically based on the FKEY relationship between the Record and this Entity parameter. For example, if the Entity-based parameter is for an entity like Activities and there is another parameter of type Record for an entity like Contacts, in that situation the Activities Parameter would point to the Contacts parameter as the LinkedParameterName because we would filter down the Activities in each template render to only those linked to the Contact.` }),
40725
41234
  MaxLength(510),
40726
41235
  __metadata("design:type", String)
40727
41236
  ], TemplateParam_.prototype, "LinkedParameterName", void 0);
40728
41237
  __decorate([
40729
- Field({ nullable: true, description: 'If the LinkedParameterName is specified, this is an optional setting to specify the field within the LinkedParameter that will be used for filtering. This is only needed if there is more than one foreign key relationship between the Entity parameter and the Linked parameter, or if there is no defined foreign key in the database between the two entities.' }),
41238
+ Field({ nullable: true, description: `If the LinkedParameterName is specified, this is an optional setting to specify the field within the LinkedParameter that will be used for filtering. This is only needed if there is more than one foreign key relationship between the Entity parameter and the Linked parameter, or if there is no defined foreign key in the database between the two entities.` }),
40730
41239
  MaxLength(1000),
40731
41240
  __metadata("design:type", String)
40732
41241
  ], TemplateParam_.prototype, "LinkedParameterField", void 0);
40733
41242
  __decorate([
40734
- Field({ nullable: true, description: 'Only used when Type = Entity, used to specify an optional filter to reduce the set of rows that are returned for each of the templates being rendered.' }),
41243
+ Field({ nullable: true, description: `Only used when Type = Entity, used to specify an optional filter to reduce the set of rows that are returned for each of the templates being rendered.` }),
40735
41244
  __metadata("design:type", String)
40736
41245
  ], TemplateParam_.prototype, "ExtraFilter", void 0);
40737
41246
  __decorate([
@@ -40740,7 +41249,7 @@ __decorate([
40740
41249
  __metadata("design:type", String)
40741
41250
  ], TemplateParam_.prototype, "EntityID", void 0);
40742
41251
  __decorate([
40743
- Field({ nullable: true, description: 'Record ID, used only when Type is Record and a specific hardcoded record ID is desired, this is an uncommon use case, helpful for pulling in static types and metadata in some cases.' }),
41252
+ Field({ nullable: true, description: `Record ID, used only when Type is Record and a specific hardcoded record ID is desired, this is an uncommon use case, helpful for pulling in static types and metadata in some cases.` }),
40744
41253
  MaxLength(4000),
40745
41254
  __metadata("design:type", String)
40746
41255
  ], TemplateParam_.prototype, "RecordID", void 0);
@@ -40755,7 +41264,7 @@ __decorate([
40755
41264
  __metadata("design:type", Date)
40756
41265
  ], TemplateParam_.prototype, "_mj__UpdatedAt", void 0);
40757
41266
  __decorate([
40758
- Field({ nullable: true, description: 'This field is used only when the Type of the TemplateParam table is "Entity". It is an optional field used to specify the sorting order for the related entity data that is used in the template for the Entity specified.' }),
41267
+ Field({ nullable: true, description: `This field is used only when the Type of the TemplateParam table is "Entity". It is an optional field used to specify the sorting order for the related entity data that is used in the template for the Entity specified.` }),
40759
41268
  __metadata("design:type", String)
40760
41269
  ], TemplateParam_.prototype, "OrderBy", void 0);
40761
41270
  __decorate([
@@ -40769,7 +41278,7 @@ __decorate([
40769
41278
  __metadata("design:type", String)
40770
41279
  ], TemplateParam_.prototype, "Entity", void 0);
40771
41280
  TemplateParam_ = __decorate([
40772
- ObjectType({ description: 'Parameters allowed for use inside the template' })
41281
+ ObjectType({ description: `Parameters allowed for use inside the template` })
40773
41282
  ], TemplateParam_);
40774
41283
  export { TemplateParam_ };
40775
41284
  let CreateTemplateParamInput = class CreateTemplateParamInput {
@@ -40978,6 +41487,10 @@ let TemplateParamResolver = class TemplateParamResolver extends ResolverBase {
40978
41487
  async UpdateTemplateParam(input, { dataSource, userPayload }, pubSub) {
40979
41488
  return this.UpdateRecord('Template Params', input, dataSource, userPayload, pubSub);
40980
41489
  }
41490
+ async DeleteTemplateParam(ID, options, { dataSource, userPayload }, pubSub) {
41491
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
41492
+ return this.DeleteRecord('Template Params', key, options, dataSource, userPayload, pubSub);
41493
+ }
40981
41494
  };
40982
41495
  __decorate([
40983
41496
  Query(() => RunTemplateParamViewResult),
@@ -41033,6 +41546,16 @@ __decorate([
41033
41546
  __metadata("design:paramtypes", [UpdateTemplateParamInput, Object, PubSubEngine]),
41034
41547
  __metadata("design:returntype", Promise)
41035
41548
  ], TemplateParamResolver.prototype, "UpdateTemplateParam", null);
41549
+ __decorate([
41550
+ Mutation(() => TemplateParam_),
41551
+ __param(0, Arg('ID', () => String)),
41552
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
41553
+ __param(2, Ctx()),
41554
+ __param(3, PubSub()),
41555
+ __metadata("design:type", Function),
41556
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
41557
+ __metadata("design:returntype", Promise)
41558
+ ], TemplateParamResolver.prototype, "DeleteTemplateParam", null);
41036
41559
  TemplateParamResolver = __decorate([
41037
41560
  Resolver(TemplateParam_)
41038
41561
  ], TemplateParamResolver);
@@ -41052,16 +41575,16 @@ __decorate([
41052
41575
  __metadata("design:type", String)
41053
41576
  ], TemplateContentType_.prototype, "ID", void 0);
41054
41577
  __decorate([
41055
- Field({ description: 'Name of the template content type' }),
41578
+ Field({ description: `Name of the template content type` }),
41056
41579
  MaxLength(510),
41057
41580
  __metadata("design:type", String)
41058
41581
  ], TemplateContentType_.prototype, "Name", void 0);
41059
41582
  __decorate([
41060
- Field({ nullable: true, description: 'Description of the template content type' }),
41583
+ Field({ nullable: true, description: `Description of the template content type` }),
41061
41584
  __metadata("design:type", String)
41062
41585
  ], TemplateContentType_.prototype, "Description", void 0);
41063
41586
  __decorate([
41064
- Field({ description: 'Refers to the primary language or codetype of the templates of this type, HTML, JSON, JavaScript, etc' }),
41587
+ Field({ description: `Refers to the primary language or codetype of the templates of this type, HTML, JSON, JavaScript, etc` }),
41065
41588
  MaxLength(50),
41066
41589
  __metadata("design:type", String)
41067
41590
  ], TemplateContentType_.prototype, "CodeType", void 0);
@@ -41080,7 +41603,7 @@ __decorate([
41080
41603
  __metadata("design:type", Array)
41081
41604
  ], TemplateContentType_.prototype, "TemplateContents_TypeIDArray", void 0);
41082
41605
  TemplateContentType_ = __decorate([
41083
- ObjectType({ description: 'Template content types for categorizing content within templates' })
41606
+ ObjectType({ description: `Template content types for categorizing content within templates` })
41084
41607
  ], TemplateContentType_);
41085
41608
  export { TemplateContentType_ };
41086
41609
  let CreateTemplateContentTypeInput = class CreateTemplateContentTypeInput {
@@ -41205,6 +41728,10 @@ let TemplateContentTypeResolver = class TemplateContentTypeResolver extends Reso
41205
41728
  async UpdateTemplateContentType(input, { dataSource, userPayload }, pubSub) {
41206
41729
  return this.UpdateRecord('Template Content Types', input, dataSource, userPayload, pubSub);
41207
41730
  }
41731
+ async DeleteTemplateContentType(ID, options, { dataSource, userPayload }, pubSub) {
41732
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
41733
+ return this.DeleteRecord('Template Content Types', key, options, dataSource, userPayload, pubSub);
41734
+ }
41208
41735
  };
41209
41736
  __decorate([
41210
41737
  Query(() => RunTemplateContentTypeViewResult),
@@ -41269,6 +41796,16 @@ __decorate([
41269
41796
  __metadata("design:paramtypes", [UpdateTemplateContentTypeInput, Object, PubSubEngine]),
41270
41797
  __metadata("design:returntype", Promise)
41271
41798
  ], TemplateContentTypeResolver.prototype, "UpdateTemplateContentType", null);
41799
+ __decorate([
41800
+ Mutation(() => TemplateContentType_),
41801
+ __param(0, Arg('ID', () => String)),
41802
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
41803
+ __param(2, Ctx()),
41804
+ __param(3, PubSub()),
41805
+ __metadata("design:type", Function),
41806
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
41807
+ __metadata("design:returntype", Promise)
41808
+ ], TemplateContentTypeResolver.prototype, "DeleteTemplateContentType", null);
41272
41809
  TemplateContentTypeResolver = __decorate([
41273
41810
  Resolver(TemplateContentType_)
41274
41811
  ], TemplateContentTypeResolver);
@@ -41299,7 +41836,7 @@ __decorate([
41299
41836
  __metadata("design:type", String)
41300
41837
  ], Recommendation_.prototype, "SourceEntityID", void 0);
41301
41838
  __decorate([
41302
- Field({ description: 'The record ID of the source entity' }),
41839
+ Field({ description: `The record ID of the source entity` }),
41303
41840
  __metadata("design:type", String)
41304
41841
  ], Recommendation_.prototype, "SourceEntityRecordID", void 0);
41305
41842
  __decorate([
@@ -41322,7 +41859,7 @@ __decorate([
41322
41859
  __metadata("design:type", Array)
41323
41860
  ], Recommendation_.prototype, "RecommendationItems_RecommendationIDArray", void 0);
41324
41861
  Recommendation_ = __decorate([
41325
- ObjectType({ description: 'Recommendation headers that store the left side of the recommendation which we track in the SourceEntityID/SourceEntityRecordID' })
41862
+ ObjectType({ description: `Recommendation headers that store the left side of the recommendation which we track in the SourceEntityID/SourceEntityRecordID` })
41326
41863
  ], Recommendation_);
41327
41864
  export { Recommendation_ };
41328
41865
  let CreateRecommendationInput = class CreateRecommendationInput {
@@ -41552,7 +42089,7 @@ __decorate([
41552
42089
  __metadata("design:type", Array)
41553
42090
  ], RecommendationProvider_.prototype, "RecommendationRuns_RecommendationProviderIDArray", void 0);
41554
42091
  RecommendationProvider_ = __decorate([
41555
- ObjectType({ description: 'Recommendation providers details' })
42092
+ ObjectType({ description: `Recommendation providers details` })
41556
42093
  ], RecommendationProvider_);
41557
42094
  export { RecommendationProvider_ };
41558
42095
  let CreateRecommendationProviderInput = class CreateRecommendationProviderInput {
@@ -41667,6 +42204,10 @@ let RecommendationProviderResolver = class RecommendationProviderResolver extend
41667
42204
  async UpdateRecommendationProvider(input, { dataSource, userPayload }, pubSub) {
41668
42205
  return this.UpdateRecord('Recommendation Providers', input, dataSource, userPayload, pubSub);
41669
42206
  }
42207
+ async DeleteRecommendationProvider(ID, options, { dataSource, userPayload }, pubSub) {
42208
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
42209
+ return this.DeleteRecord('Recommendation Providers', key, options, dataSource, userPayload, pubSub);
42210
+ }
41670
42211
  };
41671
42212
  __decorate([
41672
42213
  Query(() => RunRecommendationProviderViewResult),
@@ -41731,6 +42272,16 @@ __decorate([
41731
42272
  __metadata("design:paramtypes", [UpdateRecommendationProviderInput, Object, PubSubEngine]),
41732
42273
  __metadata("design:returntype", Promise)
41733
42274
  ], RecommendationProviderResolver.prototype, "UpdateRecommendationProvider", null);
42275
+ __decorate([
42276
+ Mutation(() => RecommendationProvider_),
42277
+ __param(0, Arg('ID', () => String)),
42278
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
42279
+ __param(2, Ctx()),
42280
+ __param(3, PubSub()),
42281
+ __metadata("design:type", Function),
42282
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
42283
+ __metadata("design:returntype", Promise)
42284
+ ], RecommendationProviderResolver.prototype, "DeleteRecommendationProvider", null);
41734
42285
  RecommendationProviderResolver = __decorate([
41735
42286
  Resolver(RecommendationProvider_)
41736
42287
  ], RecommendationProviderResolver);
@@ -41760,17 +42311,17 @@ __decorate([
41760
42311
  __metadata("design:type", String)
41761
42312
  ], RecommendationRun_.prototype, "RecommendationProviderID", void 0);
41762
42313
  __decorate([
41763
- Field({ description: 'The start date of the recommendation run' }),
42314
+ Field({ description: `The start date of the recommendation run` }),
41764
42315
  MaxLength(8),
41765
42316
  __metadata("design:type", Date)
41766
42317
  ], RecommendationRun_.prototype, "StartDate", void 0);
41767
42318
  __decorate([
41768
- Field({ nullable: true, description: 'The end date of the recommendation run' }),
42319
+ Field({ nullable: true, description: `The end date of the recommendation run` }),
41769
42320
  MaxLength(8),
41770
42321
  __metadata("design:type", Date)
41771
42322
  ], RecommendationRun_.prototype, "EndDate", void 0);
41772
42323
  __decorate([
41773
- Field({ description: 'The status of the recommendation run' }),
42324
+ Field({ description: `The status of the recommendation run` }),
41774
42325
  MaxLength(100),
41775
42326
  __metadata("design:type", String)
41776
42327
  ], RecommendationRun_.prototype, "Status", void 0);
@@ -41808,7 +42359,7 @@ __decorate([
41808
42359
  __metadata("design:type", Array)
41809
42360
  ], RecommendationRun_.prototype, "Recommendations_RecommendationRunIDArray", void 0);
41810
42361
  RecommendationRun_ = __decorate([
41811
- ObjectType({ description: 'Recommendation runs log each time a provider is requested to provide recommendations' })
42362
+ ObjectType({ description: `Recommendation runs log each time a provider is requested to provide recommendations` })
41812
42363
  ], RecommendationRun_);
41813
42364
  export { RecommendationRun_ };
41814
42365
  let CreateRecommendationRunInput = class CreateRecommendationRunInput {
@@ -42057,12 +42608,12 @@ __decorate([
42057
42608
  __metadata("design:type", String)
42058
42609
  ], RecommendationItem_.prototype, "DestinationEntityID", void 0);
42059
42610
  __decorate([
42060
- Field({ description: 'The record ID of the destination entity' }),
42611
+ Field({ description: `The record ID of the destination entity` }),
42061
42612
  MaxLength(900),
42062
42613
  __metadata("design:type", String)
42063
42614
  ], RecommendationItem_.prototype, "DestinationEntityRecordID", void 0);
42064
42615
  __decorate([
42065
- Field(() => Float, { nullable: true, description: 'A value between 0 and 1 indicating the probability of the match, higher numbers indicating a more certain match/recommendation.' }),
42616
+ Field(() => Float, { nullable: true, description: `A value between 0 and 1 indicating the probability of the match, higher numbers indicating a more certain match/recommendation.` }),
42066
42617
  __metadata("design:type", Number)
42067
42618
  ], RecommendationItem_.prototype, "MatchProbability", void 0);
42068
42619
  __decorate([
@@ -42081,7 +42632,7 @@ __decorate([
42081
42632
  __metadata("design:type", String)
42082
42633
  ], RecommendationItem_.prototype, "DestinationEntity", void 0);
42083
42634
  RecommendationItem_ = __decorate([
42084
- ObjectType({ description: 'Table to store individual recommendation items that are the right side of the recommendation which we track in the DestinationEntityID/DestinationEntityRecordID' })
42635
+ ObjectType({ description: `Table to store individual recommendation items that are the right side of the recommendation which we track in the DestinationEntityID/DestinationEntityRecordID` })
42085
42636
  ], RecommendationItem_);
42086
42637
  export { RecommendationItem_ };
42087
42638
  let CreateRecommendationItemInput = class CreateRecommendationItemInput {
@@ -42296,7 +42847,7 @@ __decorate([
42296
42847
  __metadata("design:type", String)
42297
42848
  ], EntityCommunicationMessageType_.prototype, "BaseMessageTypeID", void 0);
42298
42849
  __decorate([
42299
- Field(() => Boolean, { description: 'Indicates whether the message type is active' }),
42850
+ Field(() => Boolean, { description: `Indicates whether the message type is active` }),
42300
42851
  __metadata("design:type", Boolean)
42301
42852
  ], EntityCommunicationMessageType_.prototype, "IsActive", void 0);
42302
42853
  __decorate([
@@ -42324,7 +42875,7 @@ __decorate([
42324
42875
  __metadata("design:type", Array)
42325
42876
  ], EntityCommunicationMessageType_.prototype, "EntityCommunicationFields_EntityCommunicationMessageTypeIDArray", void 0);
42326
42877
  EntityCommunicationMessageType_ = __decorate([
42327
- ObjectType({ description: 'Mapping between entities and communication base message types' })
42878
+ ObjectType({ description: `Mapping between entities and communication base message types` })
42328
42879
  ], EntityCommunicationMessageType_);
42329
42880
  export { EntityCommunicationMessageType_ };
42330
42881
  let CreateEntityCommunicationMessageTypeInput = class CreateEntityCommunicationMessageTypeInput {
@@ -42449,6 +43000,10 @@ let EntityCommunicationMessageTypeResolver = class EntityCommunicationMessageTyp
42449
43000
  async UpdateEntityCommunicationMessageType(input, { dataSource, userPayload }, pubSub) {
42450
43001
  return this.UpdateRecord('Entity Communication Message Types', input, dataSource, userPayload, pubSub);
42451
43002
  }
43003
+ async DeleteEntityCommunicationMessageType(ID, options, { dataSource, userPayload }, pubSub) {
43004
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
43005
+ return this.DeleteRecord('Entity Communication Message Types', key, options, dataSource, userPayload, pubSub);
43006
+ }
42452
43007
  };
42453
43008
  __decorate([
42454
43009
  Query(() => RunEntityCommunicationMessageTypeViewResult),
@@ -42513,6 +43068,16 @@ __decorate([
42513
43068
  __metadata("design:paramtypes", [UpdateEntityCommunicationMessageTypeInput, Object, PubSubEngine]),
42514
43069
  __metadata("design:returntype", Promise)
42515
43070
  ], EntityCommunicationMessageTypeResolver.prototype, "UpdateEntityCommunicationMessageType", null);
43071
+ __decorate([
43072
+ Mutation(() => EntityCommunicationMessageType_),
43073
+ __param(0, Arg('ID', () => String)),
43074
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
43075
+ __param(2, Ctx()),
43076
+ __param(3, PubSub()),
43077
+ __metadata("design:type", Function),
43078
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
43079
+ __metadata("design:returntype", Promise)
43080
+ ], EntityCommunicationMessageTypeResolver.prototype, "DeleteEntityCommunicationMessageType", null);
42516
43081
  EntityCommunicationMessageTypeResolver = __decorate([
42517
43082
  Resolver(EntityCommunicationMessageType_)
42518
43083
  ], EntityCommunicationMessageTypeResolver);
@@ -42536,12 +43101,12 @@ __decorate([
42536
43101
  __metadata("design:type", String)
42537
43102
  ], EntityCommunicationField_.prototype, "EntityCommunicationMessageTypeID", void 0);
42538
43103
  __decorate([
42539
- Field({ description: 'Name of the field in the entity that maps to the communication base message type' }),
43104
+ Field({ description: `Name of the field in the entity that maps to the communication base message type` }),
42540
43105
  MaxLength(1000),
42541
43106
  __metadata("design:type", String)
42542
43107
  ], EntityCommunicationField_.prototype, "FieldName", void 0);
42543
43108
  __decorate([
42544
- Field(() => Int, { description: 'Priority of the field for the communication base message type' }),
43109
+ Field(() => Int, { description: `Priority of the field for the communication base message type` }),
42545
43110
  __metadata("design:type", Number)
42546
43111
  ], EntityCommunicationField_.prototype, "Priority", void 0);
42547
43112
  __decorate([
@@ -42555,7 +43120,7 @@ __decorate([
42555
43120
  __metadata("design:type", Date)
42556
43121
  ], EntityCommunicationField_.prototype, "_mj__UpdatedAt", void 0);
42557
43122
  EntityCommunicationField_ = __decorate([
42558
- ObjectType({ description: 'Mapping between entity fields and communication base message types with priority' })
43123
+ ObjectType({ description: `Mapping between entity fields and communication base message types with priority` })
42559
43124
  ], EntityCommunicationField_);
42560
43125
  export { EntityCommunicationField_ };
42561
43126
  let CreateEntityCommunicationFieldInput = class CreateEntityCommunicationFieldInput {
@@ -42674,6 +43239,10 @@ let EntityCommunicationFieldResolver = class EntityCommunicationFieldResolver ex
42674
43239
  async UpdateEntityCommunicationField(input, { dataSource, userPayload }, pubSub) {
42675
43240
  return this.UpdateRecord('Entity Communication Fields', input, dataSource, userPayload, pubSub);
42676
43241
  }
43242
+ async DeleteEntityCommunicationField(ID, options, { dataSource, userPayload }, pubSub) {
43243
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
43244
+ return this.DeleteRecord('Entity Communication Fields', key, options, dataSource, userPayload, pubSub);
43245
+ }
42677
43246
  };
42678
43247
  __decorate([
42679
43248
  Query(() => RunEntityCommunicationFieldViewResult),
@@ -42729,6 +43298,16 @@ __decorate([
42729
43298
  __metadata("design:paramtypes", [UpdateEntityCommunicationFieldInput, Object, PubSubEngine]),
42730
43299
  __metadata("design:returntype", Promise)
42731
43300
  ], EntityCommunicationFieldResolver.prototype, "UpdateEntityCommunicationField", null);
43301
+ __decorate([
43302
+ Mutation(() => EntityCommunicationField_),
43303
+ __param(0, Arg('ID', () => String)),
43304
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
43305
+ __param(2, Ctx()),
43306
+ __param(3, PubSub()),
43307
+ __metadata("design:type", Function),
43308
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
43309
+ __metadata("design:returntype", Promise)
43310
+ ], EntityCommunicationFieldResolver.prototype, "DeleteEntityCommunicationField", null);
42732
43311
  EntityCommunicationFieldResolver = __decorate([
42733
43312
  Resolver(EntityCommunicationField_)
42734
43313
  ], EntityCommunicationFieldResolver);
@@ -42750,17 +43329,17 @@ __decorate([
42750
43329
  __metadata("design:type", String)
42751
43330
  ], RecordChangeReplayRun_.prototype, "ID", void 0);
42752
43331
  __decorate([
42753
- Field({ description: 'Timestamp when the replay run started' }),
43332
+ Field({ description: `Timestamp when the replay run started` }),
42754
43333
  MaxLength(8),
42755
43334
  __metadata("design:type", Date)
42756
43335
  ], RecordChangeReplayRun_.prototype, "StartedAt", void 0);
42757
43336
  __decorate([
42758
- Field({ nullable: true, description: 'Timestamp when the replay run ended' }),
43337
+ Field({ nullable: true, description: `Timestamp when the replay run ended` }),
42759
43338
  MaxLength(8),
42760
43339
  __metadata("design:type", Date)
42761
43340
  ], RecordChangeReplayRun_.prototype, "EndedAt", void 0);
42762
43341
  __decorate([
42763
- Field({ description: 'Status of the replay run (Pending, In Progress, Complete, Error)' }),
43342
+ Field({ description: `Status of the replay run (Pending, In Progress, Complete, Error)` }),
42764
43343
  MaxLength(100),
42765
43344
  __metadata("design:type", String)
42766
43345
  ], RecordChangeReplayRun_.prototype, "Status", void 0);
@@ -42789,7 +43368,7 @@ __decorate([
42789
43368
  __metadata("design:type", Array)
42790
43369
  ], RecordChangeReplayRun_.prototype, "RecordChanges_ReplayRunIDArray", void 0);
42791
43370
  RecordChangeReplayRun_ = __decorate([
42792
- ObjectType({ description: 'Table to track the runs of replaying external record changes' })
43371
+ ObjectType({ description: `Table to track the runs of replaying external record changes` })
42793
43372
  ], RecordChangeReplayRun_);
42794
43373
  export { RecordChangeReplayRun_ };
42795
43374
  let CreateRecordChangeReplayRunInput = class CreateRecordChangeReplayRunInput {
@@ -43017,7 +43596,7 @@ __decorate([
43017
43596
  __metadata("design:type", String)
43018
43597
  ], LibraryItem_.prototype, "LibraryID", void 0);
43019
43598
  __decorate([
43020
- Field({ description: 'Type of the library item for example Class, Interface, etc.' }),
43599
+ Field({ description: `Type of the library item for example Class, Interface, etc.` }),
43021
43600
  MaxLength(100),
43022
43601
  __metadata("design:type", String)
43023
43602
  ], LibraryItem_.prototype, "Type", void 0);
@@ -43037,7 +43616,7 @@ __decorate([
43037
43616
  __metadata("design:type", String)
43038
43617
  ], LibraryItem_.prototype, "Library", void 0);
43039
43618
  LibraryItem_ = __decorate([
43040
- ObjectType({ description: 'Table to store individual library items' })
43619
+ ObjectType({ description: `Table to store individual library items` })
43041
43620
  ], LibraryItem_);
43042
43621
  export { LibraryItem_ };
43043
43622
  let CreateLibraryItemInput = class CreateLibraryItemInput {
@@ -43156,6 +43735,10 @@ let LibraryItemResolver = class LibraryItemResolver extends ResolverBase {
43156
43735
  async UpdateLibraryItem(input, { dataSource, userPayload }, pubSub) {
43157
43736
  return this.UpdateRecord('Library Items', input, dataSource, userPayload, pubSub);
43158
43737
  }
43738
+ async DeleteLibraryItem(ID, options, { dataSource, userPayload }, pubSub) {
43739
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
43740
+ return this.DeleteRecord('Library Items', key, options, dataSource, userPayload, pubSub);
43741
+ }
43159
43742
  };
43160
43743
  __decorate([
43161
43744
  Query(() => RunLibraryItemViewResult),
@@ -43211,6 +43794,16 @@ __decorate([
43211
43794
  __metadata("design:paramtypes", [UpdateLibraryItemInput, Object, PubSubEngine]),
43212
43795
  __metadata("design:returntype", Promise)
43213
43796
  ], LibraryItemResolver.prototype, "UpdateLibraryItem", null);
43797
+ __decorate([
43798
+ Mutation(() => LibraryItem_),
43799
+ __param(0, Arg('ID', () => String)),
43800
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
43801
+ __param(2, Ctx()),
43802
+ __param(3, PubSub()),
43803
+ __metadata("design:type", Function),
43804
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
43805
+ __metadata("design:returntype", Promise)
43806
+ ], LibraryItemResolver.prototype, "DeleteLibraryItem", null);
43214
43807
  LibraryItemResolver = __decorate([
43215
43808
  Resolver(LibraryItem_)
43216
43809
  ], LibraryItemResolver);
@@ -43239,7 +43832,7 @@ __decorate([
43239
43832
  __metadata("design:type", String)
43240
43833
  ], EntityRelationshipDisplayComponent_.prototype, "Description", void 0);
43241
43834
  __decorate([
43242
- Field({ description: 'The type of relationship the component displays. Valid values are "One to Many", "Many to Many", or "Both".' }),
43835
+ Field({ description: `The type of relationship the component displays. Valid values are "One to Many", "Many to Many", or "Both".` }),
43243
43836
  MaxLength(40),
43244
43837
  __metadata("design:type", String)
43245
43838
  ], EntityRelationshipDisplayComponent_.prototype, "RelationshipType", void 0);
@@ -43258,7 +43851,7 @@ __decorate([
43258
43851
  __metadata("design:type", Array)
43259
43852
  ], EntityRelationshipDisplayComponent_.prototype, "EntityRelationships_DisplayComponentIDArray", void 0);
43260
43853
  EntityRelationshipDisplayComponent_ = __decorate([
43261
- ObjectType({ description: 'This table stores a list of components that are available for displaying relationships in the MJ Explorer UI' })
43854
+ ObjectType({ description: `This table stores a list of components that are available for displaying relationships in the MJ Explorer UI` })
43262
43855
  ], EntityRelationshipDisplayComponent_);
43263
43856
  export { EntityRelationshipDisplayComponent_ };
43264
43857
  let CreateEntityRelationshipDisplayComponentInput = class CreateEntityRelationshipDisplayComponentInput {
@@ -43478,16 +44071,16 @@ __decorate([
43478
44071
  __metadata("design:type", String)
43479
44072
  ], EntityActionParam_.prototype, "ActionParamID", void 0);
43480
44073
  __decorate([
43481
- Field({ description: 'Type of the value, which can be Static, Entity Object, or Script.' }),
44074
+ Field({ description: `Type of the value, which can be Static, Entity Object, or Script.` }),
43482
44075
  MaxLength(40),
43483
44076
  __metadata("design:type", String)
43484
44077
  ], EntityActionParam_.prototype, "ValueType", void 0);
43485
44078
  __decorate([
43486
- Field({ nullable: true, description: 'Value of the parameter, used only when ValueType is Static or Script. When value is Script, any valid JavaScript code can be provided. The script will have access to an object called EntityActionContext. This object will have a property called EntityObject on it that will contain the BaseEntity derived sub-class with the current data for the entity object this action is operating against. The script must provide the parameter value to the EntityActionContext.result property. This scripting capabilty is designed for very small and simple code, for anything of meaningful complexity, create a sub-class instead.' }),
44079
+ Field({ nullable: true, description: `Value of the parameter, used only when ValueType is Static or Script. When value is Script, any valid JavaScript code can be provided. The script will have access to an object called EntityActionContext. This object will have a property called EntityObject on it that will contain the BaseEntity derived sub-class with the current data for the entity object this action is operating against. The script must provide the parameter value to the EntityActionContext.result property. This scripting capabilty is designed for very small and simple code, for anything of meaningful complexity, create a sub-class instead.` }),
43487
44080
  __metadata("design:type", String)
43488
44081
  ], EntityActionParam_.prototype, "Value", void 0);
43489
44082
  __decorate([
43490
- Field({ nullable: true, description: 'Additional comments regarding the parameter.' }),
44083
+ Field({ nullable: true, description: `Additional comments regarding the parameter.` }),
43491
44084
  __metadata("design:type", String)
43492
44085
  ], EntityActionParam_.prototype, "Comments", void 0);
43493
44086
  __decorate([
@@ -43506,7 +44099,7 @@ __decorate([
43506
44099
  __metadata("design:type", String)
43507
44100
  ], EntityActionParam_.prototype, "ActionParam", void 0);
43508
44101
  EntityActionParam_ = __decorate([
43509
- ObjectType({ description: 'Stores paramater mappings to enable Entity Actions to automatically invoke Actions' })
44102
+ ObjectType({ description: `Stores paramater mappings to enable Entity Actions to automatically invoke Actions` })
43510
44103
  ], EntityActionParam_);
43511
44104
  export { EntityActionParam_ };
43512
44105
  let CreateEntityActionParamInput = class CreateEntityActionParamInput {
@@ -43741,27 +44334,27 @@ __decorate([
43741
44334
  __metadata("design:type", String)
43742
44335
  ], ResourcePermission_.prototype, "ID", void 0);
43743
44336
  __decorate([
43744
- Field({ description: 'Reference to the type of resource being shared (View, Dashboard, Report, etc.)' }),
44337
+ Field({ description: `Reference to the type of resource being shared (View, Dashboard, Report, etc.)` }),
43745
44338
  MaxLength(16),
43746
44339
  __metadata("design:type", String)
43747
44340
  ], ResourcePermission_.prototype, "ResourceTypeID", void 0);
43748
44341
  __decorate([
43749
- Field({ description: 'ID of the specific resource being shared' }),
44342
+ Field({ description: `ID of the specific resource being shared` }),
43750
44343
  MaxLength(510),
43751
44344
  __metadata("design:type", String)
43752
44345
  ], ResourcePermission_.prototype, "ResourceRecordID", void 0);
43753
44346
  __decorate([
43754
- Field({ description: 'The level of sharing either Role or User' }),
44347
+ Field({ description: `The level of sharing either Role or User` }),
43755
44348
  MaxLength(20),
43756
44349
  __metadata("design:type", String)
43757
44350
  ], ResourcePermission_.prototype, "Type", void 0);
43758
44351
  __decorate([
43759
- Field({ nullable: true, description: 'Optional: Date when sharing starts' }),
44352
+ Field({ nullable: true, description: `Optional: Date when sharing starts` }),
43760
44353
  MaxLength(10),
43761
44354
  __metadata("design:type", Date)
43762
44355
  ], ResourcePermission_.prototype, "StartSharingAt", void 0);
43763
44356
  __decorate([
43764
- Field({ nullable: true, description: 'Optional: Date when sharing ends' }),
44357
+ Field({ nullable: true, description: `Optional: Date when sharing ends` }),
43765
44358
  MaxLength(10),
43766
44359
  __metadata("design:type", Date)
43767
44360
  ], ResourcePermission_.prototype, "EndSharingAt", void 0);
@@ -43776,7 +44369,7 @@ __decorate([
43776
44369
  __metadata("design:type", String)
43777
44370
  ], ResourcePermission_.prototype, "UserID", void 0);
43778
44371
  __decorate([
43779
- Field({ nullable: true, description: 'Permission level defining the type of access (View, Edit, Owner)' }),
44372
+ Field({ nullable: true, description: `Permission level defining the type of access (View, Edit, Owner)` }),
43780
44373
  MaxLength(40),
43781
44374
  __metadata("design:type", String)
43782
44375
  ], ResourcePermission_.prototype, "PermissionLevel", void 0);
@@ -43791,7 +44384,7 @@ __decorate([
43791
44384
  __metadata("design:type", Date)
43792
44385
  ], ResourcePermission_.prototype, "_mj__UpdatedAt", void 0);
43793
44386
  __decorate([
43794
- Field({ description: 'Status of the resource permission request. Possible values are Requested, Approved, Rejected, or Revoked.' }),
44387
+ Field({ description: `Status of the resource permission request. Possible values are Requested, Approved, Rejected, or Revoked.` }),
43795
44388
  MaxLength(40),
43796
44389
  __metadata("design:type", String)
43797
44390
  ], ResourcePermission_.prototype, "Status", void 0);
@@ -43811,7 +44404,7 @@ __decorate([
43811
44404
  __metadata("design:type", String)
43812
44405
  ], ResourcePermission_.prototype, "User", void 0);
43813
44406
  ResourcePermission_ = __decorate([
43814
- ObjectType({ description: 'Table for managing sharing of resources to users or roles with time constraints and permission levels' })
44407
+ ObjectType({ description: `Table for managing sharing of resources to users or roles with time constraints and permission levels` })
43815
44408
  ], ResourcePermission_);
43816
44409
  export { ResourcePermission_ };
43817
44410
  let CreateResourcePermissionInput = class CreateResourcePermissionInput {
@@ -44075,27 +44668,27 @@ let ResourceLink_ = class ResourceLink_ {
44075
44668
  ResourceType;
44076
44669
  };
44077
44670
  __decorate([
44078
- Field({ description: 'Unique identifier for each resource link' }),
44671
+ Field({ description: `Unique identifier for each resource link` }),
44079
44672
  MaxLength(16),
44080
44673
  __metadata("design:type", String)
44081
44674
  ], ResourceLink_.prototype, "ID", void 0);
44082
44675
  __decorate([
44083
- Field({ description: 'Foreign key to the user linking the resource' }),
44676
+ Field({ description: `Foreign key to the user linking the resource` }),
44084
44677
  MaxLength(16),
44085
44678
  __metadata("design:type", String)
44086
44679
  ], ResourceLink_.prototype, "UserID", void 0);
44087
44680
  __decorate([
44088
- Field({ description: 'Foreign key to the resource type (view, dashboard, etc.)' }),
44681
+ Field({ description: `Foreign key to the resource type (view, dashboard, etc.)` }),
44089
44682
  MaxLength(16),
44090
44683
  __metadata("design:type", String)
44091
44684
  ], ResourceLink_.prototype, "ResourceTypeID", void 0);
44092
44685
  __decorate([
44093
- Field({ description: 'ID of the specific resource being linked' }),
44686
+ Field({ description: `ID of the specific resource being linked` }),
44094
44687
  MaxLength(510),
44095
44688
  __metadata("design:type", String)
44096
44689
  ], ResourceLink_.prototype, "ResourceRecordID", void 0);
44097
44690
  __decorate([
44098
- Field({ nullable: true, description: 'Optional folder where the user organizes the linked resource' }),
44691
+ Field({ nullable: true, description: `Optional folder where the user organizes the linked resource` }),
44099
44692
  MaxLength(510),
44100
44693
  __metadata("design:type", String)
44101
44694
  ], ResourceLink_.prototype, "FolderID", void 0);
@@ -44120,7 +44713,7 @@ __decorate([
44120
44713
  __metadata("design:type", String)
44121
44714
  ], ResourceLink_.prototype, "ResourceType", void 0);
44122
44715
  ResourceLink_ = __decorate([
44123
- ObjectType({ description: 'Table to track user links to shared resources such as views, dashboards, etc.' })
44716
+ ObjectType({ description: `Table to track user links to shared resources such as views, dashboards, etc.` })
44124
44717
  ], ResourceLink_);
44125
44718
  export { ResourceLink_ };
44126
44719
  let CreateResourceLinkInput = class CreateResourceLinkInput {
@@ -44322,334 +44915,6 @@ ResourceLinkResolver = __decorate([
44322
44915
  Resolver(ResourceLink_)
44323
44916
  ], ResourceLinkResolver);
44324
44917
  export { ResourceLinkResolver };
44325
- let flyway_schema_history_ = class flyway_schema_history_ {
44326
- installed_rank;
44327
- version;
44328
- description;
44329
- type;
44330
- script;
44331
- checksum;
44332
- installed_by;
44333
- installed_on;
44334
- execution_time;
44335
- success;
44336
- _mj__CreatedAt;
44337
- _mj__UpdatedAt;
44338
- };
44339
- __decorate([
44340
- Field(() => Int),
44341
- __metadata("design:type", Number)
44342
- ], flyway_schema_history_.prototype, "installed_rank", void 0);
44343
- __decorate([
44344
- Field({ nullable: true }),
44345
- MaxLength(100),
44346
- __metadata("design:type", String)
44347
- ], flyway_schema_history_.prototype, "version", void 0);
44348
- __decorate([
44349
- Field({ nullable: true }),
44350
- MaxLength(400),
44351
- __metadata("design:type", String)
44352
- ], flyway_schema_history_.prototype, "description", void 0);
44353
- __decorate([
44354
- Field(),
44355
- MaxLength(40),
44356
- __metadata("design:type", String)
44357
- ], flyway_schema_history_.prototype, "type", void 0);
44358
- __decorate([
44359
- Field(),
44360
- MaxLength(2000),
44361
- __metadata("design:type", String)
44362
- ], flyway_schema_history_.prototype, "script", void 0);
44363
- __decorate([
44364
- Field(() => Int, { nullable: true }),
44365
- __metadata("design:type", Number)
44366
- ], flyway_schema_history_.prototype, "checksum", void 0);
44367
- __decorate([
44368
- Field(),
44369
- MaxLength(200),
44370
- __metadata("design:type", String)
44371
- ], flyway_schema_history_.prototype, "installed_by", void 0);
44372
- __decorate([
44373
- Field(),
44374
- MaxLength(8),
44375
- __metadata("design:type", Date)
44376
- ], flyway_schema_history_.prototype, "installed_on", void 0);
44377
- __decorate([
44378
- Field(() => Int),
44379
- __metadata("design:type", Number)
44380
- ], flyway_schema_history_.prototype, "execution_time", void 0);
44381
- __decorate([
44382
- Field(() => Boolean),
44383
- __metadata("design:type", Boolean)
44384
- ], flyway_schema_history_.prototype, "success", void 0);
44385
- __decorate([
44386
- Field(),
44387
- MaxLength(10),
44388
- __metadata("design:type", Date)
44389
- ], flyway_schema_history_.prototype, "_mj__CreatedAt", void 0);
44390
- __decorate([
44391
- Field(),
44392
- MaxLength(10),
44393
- __metadata("design:type", Date)
44394
- ], flyway_schema_history_.prototype, "_mj__UpdatedAt", void 0);
44395
- flyway_schema_history_ = __decorate([
44396
- ObjectType()
44397
- ], flyway_schema_history_);
44398
- export { flyway_schema_history_ };
44399
- let Createflyway_schema_historyInput = class Createflyway_schema_historyInput {
44400
- installed_rank;
44401
- version;
44402
- description;
44403
- type;
44404
- script;
44405
- checksum;
44406
- installed_by;
44407
- installed_on;
44408
- execution_time;
44409
- success;
44410
- };
44411
- __decorate([
44412
- Field(() => Int),
44413
- __metadata("design:type", Number)
44414
- ], Createflyway_schema_historyInput.prototype, "installed_rank", void 0);
44415
- __decorate([
44416
- Field({ nullable: true }),
44417
- __metadata("design:type", String)
44418
- ], Createflyway_schema_historyInput.prototype, "version", void 0);
44419
- __decorate([
44420
- Field({ nullable: true }),
44421
- __metadata("design:type", String)
44422
- ], Createflyway_schema_historyInput.prototype, "description", void 0);
44423
- __decorate([
44424
- Field(),
44425
- __metadata("design:type", String)
44426
- ], Createflyway_schema_historyInput.prototype, "type", void 0);
44427
- __decorate([
44428
- Field(),
44429
- __metadata("design:type", String)
44430
- ], Createflyway_schema_historyInput.prototype, "script", void 0);
44431
- __decorate([
44432
- Field(() => Int, { nullable: true }),
44433
- __metadata("design:type", Number)
44434
- ], Createflyway_schema_historyInput.prototype, "checksum", void 0);
44435
- __decorate([
44436
- Field(),
44437
- __metadata("design:type", String)
44438
- ], Createflyway_schema_historyInput.prototype, "installed_by", void 0);
44439
- __decorate([
44440
- Field(),
44441
- __metadata("design:type", Date)
44442
- ], Createflyway_schema_historyInput.prototype, "installed_on", void 0);
44443
- __decorate([
44444
- Field(() => Int),
44445
- __metadata("design:type", Number)
44446
- ], Createflyway_schema_historyInput.prototype, "execution_time", void 0);
44447
- __decorate([
44448
- Field(() => Boolean),
44449
- __metadata("design:type", Boolean)
44450
- ], Createflyway_schema_historyInput.prototype, "success", void 0);
44451
- Createflyway_schema_historyInput = __decorate([
44452
- InputType()
44453
- ], Createflyway_schema_historyInput);
44454
- export { Createflyway_schema_historyInput };
44455
- let Updateflyway_schema_historyInput = class Updateflyway_schema_historyInput {
44456
- installed_rank;
44457
- version;
44458
- description;
44459
- type;
44460
- script;
44461
- checksum;
44462
- installed_by;
44463
- installed_on;
44464
- execution_time;
44465
- success;
44466
- OldValues___;
44467
- };
44468
- __decorate([
44469
- Field(() => Int),
44470
- __metadata("design:type", Number)
44471
- ], Updateflyway_schema_historyInput.prototype, "installed_rank", void 0);
44472
- __decorate([
44473
- Field({ nullable: true }),
44474
- __metadata("design:type", String)
44475
- ], Updateflyway_schema_historyInput.prototype, "version", void 0);
44476
- __decorate([
44477
- Field({ nullable: true }),
44478
- __metadata("design:type", String)
44479
- ], Updateflyway_schema_historyInput.prototype, "description", void 0);
44480
- __decorate([
44481
- Field(),
44482
- __metadata("design:type", String)
44483
- ], Updateflyway_schema_historyInput.prototype, "type", void 0);
44484
- __decorate([
44485
- Field(),
44486
- __metadata("design:type", String)
44487
- ], Updateflyway_schema_historyInput.prototype, "script", void 0);
44488
- __decorate([
44489
- Field(() => Int, { nullable: true }),
44490
- __metadata("design:type", Number)
44491
- ], Updateflyway_schema_historyInput.prototype, "checksum", void 0);
44492
- __decorate([
44493
- Field(),
44494
- __metadata("design:type", String)
44495
- ], Updateflyway_schema_historyInput.prototype, "installed_by", void 0);
44496
- __decorate([
44497
- Field(),
44498
- __metadata("design:type", Date)
44499
- ], Updateflyway_schema_historyInput.prototype, "installed_on", void 0);
44500
- __decorate([
44501
- Field(() => Int),
44502
- __metadata("design:type", Number)
44503
- ], Updateflyway_schema_historyInput.prototype, "execution_time", void 0);
44504
- __decorate([
44505
- Field(() => Boolean),
44506
- __metadata("design:type", Boolean)
44507
- ], Updateflyway_schema_historyInput.prototype, "success", void 0);
44508
- __decorate([
44509
- Field(() => [KeyValuePairInput], { nullable: true }),
44510
- __metadata("design:type", Array)
44511
- ], Updateflyway_schema_historyInput.prototype, "OldValues___", void 0);
44512
- Updateflyway_schema_historyInput = __decorate([
44513
- InputType()
44514
- ], Updateflyway_schema_historyInput);
44515
- export { Updateflyway_schema_historyInput };
44516
- let Runflyway_schema_historyViewResult = class Runflyway_schema_historyViewResult {
44517
- Results;
44518
- UserViewRunID;
44519
- RowCount;
44520
- TotalRowCount;
44521
- ExecutionTime;
44522
- ErrorMessage;
44523
- Success;
44524
- };
44525
- __decorate([
44526
- Field(() => [flyway_schema_history_]),
44527
- __metadata("design:type", Array)
44528
- ], Runflyway_schema_historyViewResult.prototype, "Results", void 0);
44529
- __decorate([
44530
- Field(() => String, { nullable: true }),
44531
- __metadata("design:type", String)
44532
- ], Runflyway_schema_historyViewResult.prototype, "UserViewRunID", void 0);
44533
- __decorate([
44534
- Field(() => Int, { nullable: true }),
44535
- __metadata("design:type", Number)
44536
- ], Runflyway_schema_historyViewResult.prototype, "RowCount", void 0);
44537
- __decorate([
44538
- Field(() => Int, { nullable: true }),
44539
- __metadata("design:type", Number)
44540
- ], Runflyway_schema_historyViewResult.prototype, "TotalRowCount", void 0);
44541
- __decorate([
44542
- Field(() => Int, { nullable: true }),
44543
- __metadata("design:type", Number)
44544
- ], Runflyway_schema_historyViewResult.prototype, "ExecutionTime", void 0);
44545
- __decorate([
44546
- Field({ nullable: true }),
44547
- __metadata("design:type", String)
44548
- ], Runflyway_schema_historyViewResult.prototype, "ErrorMessage", void 0);
44549
- __decorate([
44550
- Field(() => Boolean, { nullable: false }),
44551
- __metadata("design:type", Boolean)
44552
- ], Runflyway_schema_historyViewResult.prototype, "Success", void 0);
44553
- Runflyway_schema_historyViewResult = __decorate([
44554
- ObjectType()
44555
- ], Runflyway_schema_historyViewResult);
44556
- export { Runflyway_schema_historyViewResult };
44557
- let flyway_schema_historyResolver = class flyway_schema_historyResolver extends ResolverBase {
44558
- async Runflyway_schema_historyViewByID(input, { dataSource, userPayload }, pubSub) {
44559
- return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
44560
- }
44561
- async Runflyway_schema_historyViewByName(input, { dataSource, userPayload }, pubSub) {
44562
- return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
44563
- }
44564
- async Runflyway_schema_historyDynamicView(input, { dataSource, userPayload }, pubSub) {
44565
- input.EntityName = 'flyway _schema _histories';
44566
- return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
44567
- }
44568
- async flyway_schema_history(installed_rank, { dataSource, userPayload }, pubSub) {
44569
- this.CheckUserReadPermissions('flyway _schema _histories', userPayload);
44570
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwflyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause('flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
44571
- const result = this.MapFieldNamesToCodeNames('flyway _schema _histories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
44572
- return result;
44573
- }
44574
- async Createflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
44575
- return this.CreateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
44576
- }
44577
- async Updateflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
44578
- return this.UpdateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
44579
- }
44580
- async Deleteflyway_schema_history(installed_rank, options, { dataSource, userPayload }, pubSub) {
44581
- const key = new CompositeKey([{ FieldName: 'installed_rank', Value: installed_rank }]);
44582
- return this.DeleteRecord('flyway _schema _histories', key, options, dataSource, userPayload, pubSub);
44583
- }
44584
- };
44585
- __decorate([
44586
- Query(() => Runflyway_schema_historyViewResult),
44587
- __param(0, Arg('input', () => RunViewByIDInput)),
44588
- __param(1, Ctx()),
44589
- __param(2, PubSub()),
44590
- __metadata("design:type", Function),
44591
- __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
44592
- __metadata("design:returntype", Promise)
44593
- ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByID", null);
44594
- __decorate([
44595
- Query(() => Runflyway_schema_historyViewResult),
44596
- __param(0, Arg('input', () => RunViewByNameInput)),
44597
- __param(1, Ctx()),
44598
- __param(2, PubSub()),
44599
- __metadata("design:type", Function),
44600
- __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
44601
- __metadata("design:returntype", Promise)
44602
- ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByName", null);
44603
- __decorate([
44604
- Query(() => Runflyway_schema_historyViewResult),
44605
- __param(0, Arg('input', () => RunDynamicViewInput)),
44606
- __param(1, Ctx()),
44607
- __param(2, PubSub()),
44608
- __metadata("design:type", Function),
44609
- __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
44610
- __metadata("design:returntype", Promise)
44611
- ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyDynamicView", null);
44612
- __decorate([
44613
- Query(() => flyway_schema_history_, { nullable: true }),
44614
- __param(0, Arg('installed_rank', () => Int)),
44615
- __param(1, Ctx()),
44616
- __param(2, PubSub()),
44617
- __metadata("design:type", Function),
44618
- __metadata("design:paramtypes", [Number, Object, PubSubEngine]),
44619
- __metadata("design:returntype", Promise)
44620
- ], flyway_schema_historyResolver.prototype, "flyway_schema_history", null);
44621
- __decorate([
44622
- Mutation(() => flyway_schema_history_),
44623
- __param(0, Arg('input', () => Createflyway_schema_historyInput)),
44624
- __param(1, Ctx()),
44625
- __param(2, PubSub()),
44626
- __metadata("design:type", Function),
44627
- __metadata("design:paramtypes", [Createflyway_schema_historyInput, Object, PubSubEngine]),
44628
- __metadata("design:returntype", Promise)
44629
- ], flyway_schema_historyResolver.prototype, "Createflyway_schema_history", null);
44630
- __decorate([
44631
- Mutation(() => flyway_schema_history_),
44632
- __param(0, Arg('input', () => Updateflyway_schema_historyInput)),
44633
- __param(1, Ctx()),
44634
- __param(2, PubSub()),
44635
- __metadata("design:type", Function),
44636
- __metadata("design:paramtypes", [Updateflyway_schema_historyInput, Object, PubSubEngine]),
44637
- __metadata("design:returntype", Promise)
44638
- ], flyway_schema_historyResolver.prototype, "Updateflyway_schema_history", null);
44639
- __decorate([
44640
- Mutation(() => flyway_schema_history_),
44641
- __param(0, Arg('installed_rank', () => Int)),
44642
- __param(1, Arg('options___', () => DeleteOptionsInput)),
44643
- __param(2, Ctx()),
44644
- __param(3, PubSub()),
44645
- __metadata("design:type", Function),
44646
- __metadata("design:paramtypes", [Number, DeleteOptionsInput, Object, PubSubEngine]),
44647
- __metadata("design:returntype", Promise)
44648
- ], flyway_schema_historyResolver.prototype, "Deleteflyway_schema_history", null);
44649
- flyway_schema_historyResolver = __decorate([
44650
- Resolver(flyway_schema_history_)
44651
- ], flyway_schema_historyResolver);
44652
- export { flyway_schema_historyResolver };
44653
44918
  let AIAgentRequest_ = class AIAgentRequest_ {
44654
44919
  ID;
44655
44920
  AgentID;
@@ -44668,50 +44933,50 @@ let AIAgentRequest_ = class AIAgentRequest_ {
44668
44933
  ResponseByUser;
44669
44934
  };
44670
44935
  __decorate([
44671
- Field({ description: 'Primary key for the AIAgentRequest table, uniquely identifies each record.' }),
44936
+ Field({ description: `Primary key for the AIAgentRequest table, uniquely identifies each record.` }),
44672
44937
  MaxLength(16),
44673
44938
  __metadata("design:type", String)
44674
44939
  ], AIAgentRequest_.prototype, "ID", void 0);
44675
44940
  __decorate([
44676
- Field({ description: 'Foreign key referencing the ID column in the AIAgent table.' }),
44941
+ Field({ description: `Foreign key referencing the ID column in the AIAgent table.` }),
44677
44942
  MaxLength(16),
44678
44943
  __metadata("design:type", String)
44679
44944
  ], AIAgentRequest_.prototype, "AgentID", void 0);
44680
44945
  __decorate([
44681
- Field({ description: 'Timestamp when the request was made by the agent.' }),
44946
+ Field({ description: `Timestamp when the request was made by the agent.` }),
44682
44947
  MaxLength(8),
44683
44948
  __metadata("design:type", Date)
44684
44949
  ], AIAgentRequest_.prototype, "RequestedAt", void 0);
44685
44950
  __decorate([
44686
- Field({ nullable: true, description: 'Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.' }),
44951
+ Field({ nullable: true, description: `Optional, a user that the AI specifically is directing the request to, if null intended for general system owner.` }),
44687
44952
  MaxLength(16),
44688
44953
  __metadata("design:type", String)
44689
44954
  ], AIAgentRequest_.prototype, "RequestForUserID", void 0);
44690
44955
  __decorate([
44691
- Field({ description: 'Current status of the request (Requested, Approved, Rejected, Canceled).' }),
44956
+ Field({ description: `Current status of the request (Requested, Approved, Rejected, Canceled).` }),
44692
44957
  MaxLength(40),
44693
44958
  __metadata("design:type", String)
44694
44959
  ], AIAgentRequest_.prototype, "Status", void 0);
44695
44960
  __decorate([
44696
- Field({ description: 'Details of what the AI Agent is requesting.' }),
44961
+ Field({ description: `Details of what the AI Agent is requesting.` }),
44697
44962
  __metadata("design:type", String)
44698
44963
  ], AIAgentRequest_.prototype, "Request", void 0);
44699
44964
  __decorate([
44700
- Field({ nullable: true, description: 'Response provided by the human to the agent request.' }),
44965
+ Field({ nullable: true, description: `Response provided by the human to the agent request.` }),
44701
44966
  __metadata("design:type", String)
44702
44967
  ], AIAgentRequest_.prototype, "Response", void 0);
44703
44968
  __decorate([
44704
- Field({ nullable: true, description: 'Populated when a user responds indicating which user responded to the request.' }),
44969
+ Field({ nullable: true, description: `Populated when a user responds indicating which user responded to the request.` }),
44705
44970
  MaxLength(16),
44706
44971
  __metadata("design:type", String)
44707
44972
  ], AIAgentRequest_.prototype, "ResponseByUserID", void 0);
44708
44973
  __decorate([
44709
- Field({ nullable: true, description: 'Timestamp when the response was provided by the human.' }),
44974
+ Field({ nullable: true, description: `Timestamp when the response was provided by the human.` }),
44710
44975
  MaxLength(8),
44711
44976
  __metadata("design:type", Date)
44712
44977
  ], AIAgentRequest_.prototype, "RespondedAt", void 0);
44713
44978
  __decorate([
44714
- Field({ nullable: true, description: 'Additional comments about the request. Not shared with the agent, purely record keeping.' }),
44979
+ Field({ nullable: true, description: `Additional comments about the request. Not shared with the agent, purely record keeping.` }),
44715
44980
  __metadata("design:type", String)
44716
44981
  ], AIAgentRequest_.prototype, "Comments", void 0);
44717
44982
  __decorate([
@@ -45002,17 +45267,17 @@ let QueryEntity_ = class QueryEntity_ {
45002
45267
  Entity;
45003
45268
  };
45004
45269
  __decorate([
45005
- Field({ description: 'Unique identifier for the QueryEntity record.' }),
45270
+ Field({ description: `Unique identifier for the QueryEntity record.` }),
45006
45271
  MaxLength(16),
45007
45272
  __metadata("design:type", String)
45008
45273
  ], QueryEntity_.prototype, "ID", void 0);
45009
45274
  __decorate([
45010
- Field({ description: 'References the ID of the query in the Queries table.' }),
45275
+ Field({ description: `References the ID of the query in the Queries table.` }),
45011
45276
  MaxLength(16),
45012
45277
  __metadata("design:type", String)
45013
45278
  ], QueryEntity_.prototype, "QueryID", void 0);
45014
45279
  __decorate([
45015
- Field({ description: 'References the ID of the entity in the Entities table.' }),
45280
+ Field({ description: `References the ID of the entity in the Entities table.` }),
45016
45281
  MaxLength(16),
45017
45282
  __metadata("design:type", String)
45018
45283
  ], QueryEntity_.prototype, "EntityID", void 0);
@@ -45037,7 +45302,7 @@ __decorate([
45037
45302
  __metadata("design:type", String)
45038
45303
  ], QueryEntity_.prototype, "Entity", void 0);
45039
45304
  QueryEntity_ = __decorate([
45040
- ObjectType({ description: 'Tracks which entities are involved in a given query. The Queries table stores SQL and descriptions for stored queries that can be executed and serve as examples for AI.' })
45305
+ ObjectType({ description: `Tracks which entities are involved in a given query. The Queries table stores SQL and descriptions for stored queries that can be executed and serve as examples for AI.` })
45041
45306
  ], QueryEntity_);
45042
45307
  export { QueryEntity_ };
45043
45308
  let CreateQueryEntityInput = class CreateQueryEntityInput {
@@ -45219,6 +45484,334 @@ QueryEntityResolver = __decorate([
45219
45484
  Resolver(QueryEntity_)
45220
45485
  ], QueryEntityResolver);
45221
45486
  export { QueryEntityResolver };
45487
+ let flyway_schema_history_ = class flyway_schema_history_ {
45488
+ installed_rank;
45489
+ version;
45490
+ description;
45491
+ type;
45492
+ script;
45493
+ checksum;
45494
+ installed_by;
45495
+ installed_on;
45496
+ execution_time;
45497
+ success;
45498
+ _mj__CreatedAt;
45499
+ _mj__UpdatedAt;
45500
+ };
45501
+ __decorate([
45502
+ Field(() => Int),
45503
+ __metadata("design:type", Number)
45504
+ ], flyway_schema_history_.prototype, "installed_rank", void 0);
45505
+ __decorate([
45506
+ Field({ nullable: true }),
45507
+ MaxLength(100),
45508
+ __metadata("design:type", String)
45509
+ ], flyway_schema_history_.prototype, "version", void 0);
45510
+ __decorate([
45511
+ Field({ nullable: true }),
45512
+ MaxLength(400),
45513
+ __metadata("design:type", String)
45514
+ ], flyway_schema_history_.prototype, "description", void 0);
45515
+ __decorate([
45516
+ Field(),
45517
+ MaxLength(40),
45518
+ __metadata("design:type", String)
45519
+ ], flyway_schema_history_.prototype, "type", void 0);
45520
+ __decorate([
45521
+ Field(),
45522
+ MaxLength(2000),
45523
+ __metadata("design:type", String)
45524
+ ], flyway_schema_history_.prototype, "script", void 0);
45525
+ __decorate([
45526
+ Field(() => Int, { nullable: true }),
45527
+ __metadata("design:type", Number)
45528
+ ], flyway_schema_history_.prototype, "checksum", void 0);
45529
+ __decorate([
45530
+ Field(),
45531
+ MaxLength(200),
45532
+ __metadata("design:type", String)
45533
+ ], flyway_schema_history_.prototype, "installed_by", void 0);
45534
+ __decorate([
45535
+ Field(),
45536
+ MaxLength(8),
45537
+ __metadata("design:type", Date)
45538
+ ], flyway_schema_history_.prototype, "installed_on", void 0);
45539
+ __decorate([
45540
+ Field(() => Int),
45541
+ __metadata("design:type", Number)
45542
+ ], flyway_schema_history_.prototype, "execution_time", void 0);
45543
+ __decorate([
45544
+ Field(() => Boolean),
45545
+ __metadata("design:type", Boolean)
45546
+ ], flyway_schema_history_.prototype, "success", void 0);
45547
+ __decorate([
45548
+ Field(),
45549
+ MaxLength(10),
45550
+ __metadata("design:type", Date)
45551
+ ], flyway_schema_history_.prototype, "_mj__CreatedAt", void 0);
45552
+ __decorate([
45553
+ Field(),
45554
+ MaxLength(10),
45555
+ __metadata("design:type", Date)
45556
+ ], flyway_schema_history_.prototype, "_mj__UpdatedAt", void 0);
45557
+ flyway_schema_history_ = __decorate([
45558
+ ObjectType()
45559
+ ], flyway_schema_history_);
45560
+ export { flyway_schema_history_ };
45561
+ let Createflyway_schema_historyInput = class Createflyway_schema_historyInput {
45562
+ installed_rank;
45563
+ version;
45564
+ description;
45565
+ type;
45566
+ script;
45567
+ checksum;
45568
+ installed_by;
45569
+ installed_on;
45570
+ execution_time;
45571
+ success;
45572
+ };
45573
+ __decorate([
45574
+ Field(() => Int),
45575
+ __metadata("design:type", Number)
45576
+ ], Createflyway_schema_historyInput.prototype, "installed_rank", void 0);
45577
+ __decorate([
45578
+ Field({ nullable: true }),
45579
+ __metadata("design:type", String)
45580
+ ], Createflyway_schema_historyInput.prototype, "version", void 0);
45581
+ __decorate([
45582
+ Field({ nullable: true }),
45583
+ __metadata("design:type", String)
45584
+ ], Createflyway_schema_historyInput.prototype, "description", void 0);
45585
+ __decorate([
45586
+ Field(),
45587
+ __metadata("design:type", String)
45588
+ ], Createflyway_schema_historyInput.prototype, "type", void 0);
45589
+ __decorate([
45590
+ Field(),
45591
+ __metadata("design:type", String)
45592
+ ], Createflyway_schema_historyInput.prototype, "script", void 0);
45593
+ __decorate([
45594
+ Field(() => Int, { nullable: true }),
45595
+ __metadata("design:type", Number)
45596
+ ], Createflyway_schema_historyInput.prototype, "checksum", void 0);
45597
+ __decorate([
45598
+ Field(),
45599
+ __metadata("design:type", String)
45600
+ ], Createflyway_schema_historyInput.prototype, "installed_by", void 0);
45601
+ __decorate([
45602
+ Field(),
45603
+ __metadata("design:type", Date)
45604
+ ], Createflyway_schema_historyInput.prototype, "installed_on", void 0);
45605
+ __decorate([
45606
+ Field(() => Int),
45607
+ __metadata("design:type", Number)
45608
+ ], Createflyway_schema_historyInput.prototype, "execution_time", void 0);
45609
+ __decorate([
45610
+ Field(() => Boolean),
45611
+ __metadata("design:type", Boolean)
45612
+ ], Createflyway_schema_historyInput.prototype, "success", void 0);
45613
+ Createflyway_schema_historyInput = __decorate([
45614
+ InputType()
45615
+ ], Createflyway_schema_historyInput);
45616
+ export { Createflyway_schema_historyInput };
45617
+ let Updateflyway_schema_historyInput = class Updateflyway_schema_historyInput {
45618
+ installed_rank;
45619
+ version;
45620
+ description;
45621
+ type;
45622
+ script;
45623
+ checksum;
45624
+ installed_by;
45625
+ installed_on;
45626
+ execution_time;
45627
+ success;
45628
+ OldValues___;
45629
+ };
45630
+ __decorate([
45631
+ Field(() => Int),
45632
+ __metadata("design:type", Number)
45633
+ ], Updateflyway_schema_historyInput.prototype, "installed_rank", void 0);
45634
+ __decorate([
45635
+ Field({ nullable: true }),
45636
+ __metadata("design:type", String)
45637
+ ], Updateflyway_schema_historyInput.prototype, "version", void 0);
45638
+ __decorate([
45639
+ Field({ nullable: true }),
45640
+ __metadata("design:type", String)
45641
+ ], Updateflyway_schema_historyInput.prototype, "description", void 0);
45642
+ __decorate([
45643
+ Field(),
45644
+ __metadata("design:type", String)
45645
+ ], Updateflyway_schema_historyInput.prototype, "type", void 0);
45646
+ __decorate([
45647
+ Field(),
45648
+ __metadata("design:type", String)
45649
+ ], Updateflyway_schema_historyInput.prototype, "script", void 0);
45650
+ __decorate([
45651
+ Field(() => Int, { nullable: true }),
45652
+ __metadata("design:type", Number)
45653
+ ], Updateflyway_schema_historyInput.prototype, "checksum", void 0);
45654
+ __decorate([
45655
+ Field(),
45656
+ __metadata("design:type", String)
45657
+ ], Updateflyway_schema_historyInput.prototype, "installed_by", void 0);
45658
+ __decorate([
45659
+ Field(),
45660
+ __metadata("design:type", Date)
45661
+ ], Updateflyway_schema_historyInput.prototype, "installed_on", void 0);
45662
+ __decorate([
45663
+ Field(() => Int),
45664
+ __metadata("design:type", Number)
45665
+ ], Updateflyway_schema_historyInput.prototype, "execution_time", void 0);
45666
+ __decorate([
45667
+ Field(() => Boolean),
45668
+ __metadata("design:type", Boolean)
45669
+ ], Updateflyway_schema_historyInput.prototype, "success", void 0);
45670
+ __decorate([
45671
+ Field(() => [KeyValuePairInput], { nullable: true }),
45672
+ __metadata("design:type", Array)
45673
+ ], Updateflyway_schema_historyInput.prototype, "OldValues___", void 0);
45674
+ Updateflyway_schema_historyInput = __decorate([
45675
+ InputType()
45676
+ ], Updateflyway_schema_historyInput);
45677
+ export { Updateflyway_schema_historyInput };
45678
+ let Runflyway_schema_historyViewResult = class Runflyway_schema_historyViewResult {
45679
+ Results;
45680
+ UserViewRunID;
45681
+ RowCount;
45682
+ TotalRowCount;
45683
+ ExecutionTime;
45684
+ ErrorMessage;
45685
+ Success;
45686
+ };
45687
+ __decorate([
45688
+ Field(() => [flyway_schema_history_]),
45689
+ __metadata("design:type", Array)
45690
+ ], Runflyway_schema_historyViewResult.prototype, "Results", void 0);
45691
+ __decorate([
45692
+ Field(() => String, { nullable: true }),
45693
+ __metadata("design:type", String)
45694
+ ], Runflyway_schema_historyViewResult.prototype, "UserViewRunID", void 0);
45695
+ __decorate([
45696
+ Field(() => Int, { nullable: true }),
45697
+ __metadata("design:type", Number)
45698
+ ], Runflyway_schema_historyViewResult.prototype, "RowCount", void 0);
45699
+ __decorate([
45700
+ Field(() => Int, { nullable: true }),
45701
+ __metadata("design:type", Number)
45702
+ ], Runflyway_schema_historyViewResult.prototype, "TotalRowCount", void 0);
45703
+ __decorate([
45704
+ Field(() => Int, { nullable: true }),
45705
+ __metadata("design:type", Number)
45706
+ ], Runflyway_schema_historyViewResult.prototype, "ExecutionTime", void 0);
45707
+ __decorate([
45708
+ Field({ nullable: true }),
45709
+ __metadata("design:type", String)
45710
+ ], Runflyway_schema_historyViewResult.prototype, "ErrorMessage", void 0);
45711
+ __decorate([
45712
+ Field(() => Boolean, { nullable: false }),
45713
+ __metadata("design:type", Boolean)
45714
+ ], Runflyway_schema_historyViewResult.prototype, "Success", void 0);
45715
+ Runflyway_schema_historyViewResult = __decorate([
45716
+ ObjectType()
45717
+ ], Runflyway_schema_historyViewResult);
45718
+ export { Runflyway_schema_historyViewResult };
45719
+ let flyway_schema_historyResolver = class flyway_schema_historyResolver extends ResolverBase {
45720
+ async Runflyway_schema_historyViewByID(input, { dataSource, userPayload }, pubSub) {
45721
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
45722
+ }
45723
+ async Runflyway_schema_historyViewByName(input, { dataSource, userPayload }, pubSub) {
45724
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
45725
+ }
45726
+ async Runflyway_schema_historyDynamicView(input, { dataSource, userPayload }, pubSub) {
45727
+ input.EntityName = 'flyway _schema _histories';
45728
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
45729
+ }
45730
+ async flyway_schema_history(installed_rank, { dataSource, userPayload }, pubSub) {
45731
+ this.CheckUserReadPermissions('flyway _schema _histories', userPayload);
45732
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwflyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause('flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
45733
+ const result = this.MapFieldNamesToCodeNames('flyway _schema _histories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
45734
+ return result;
45735
+ }
45736
+ async Createflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
45737
+ return this.CreateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
45738
+ }
45739
+ async Updateflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
45740
+ return this.UpdateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
45741
+ }
45742
+ async Deleteflyway_schema_history(installed_rank, options, { dataSource, userPayload }, pubSub) {
45743
+ const key = new CompositeKey([{ FieldName: 'installed_rank', Value: installed_rank }]);
45744
+ return this.DeleteRecord('flyway _schema _histories', key, options, dataSource, userPayload, pubSub);
45745
+ }
45746
+ };
45747
+ __decorate([
45748
+ Query(() => Runflyway_schema_historyViewResult),
45749
+ __param(0, Arg('input', () => RunViewByIDInput)),
45750
+ __param(1, Ctx()),
45751
+ __param(2, PubSub()),
45752
+ __metadata("design:type", Function),
45753
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
45754
+ __metadata("design:returntype", Promise)
45755
+ ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByID", null);
45756
+ __decorate([
45757
+ Query(() => Runflyway_schema_historyViewResult),
45758
+ __param(0, Arg('input', () => RunViewByNameInput)),
45759
+ __param(1, Ctx()),
45760
+ __param(2, PubSub()),
45761
+ __metadata("design:type", Function),
45762
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
45763
+ __metadata("design:returntype", Promise)
45764
+ ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByName", null);
45765
+ __decorate([
45766
+ Query(() => Runflyway_schema_historyViewResult),
45767
+ __param(0, Arg('input', () => RunDynamicViewInput)),
45768
+ __param(1, Ctx()),
45769
+ __param(2, PubSub()),
45770
+ __metadata("design:type", Function),
45771
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
45772
+ __metadata("design:returntype", Promise)
45773
+ ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyDynamicView", null);
45774
+ __decorate([
45775
+ Query(() => flyway_schema_history_, { nullable: true }),
45776
+ __param(0, Arg('installed_rank', () => Int)),
45777
+ __param(1, Ctx()),
45778
+ __param(2, PubSub()),
45779
+ __metadata("design:type", Function),
45780
+ __metadata("design:paramtypes", [Number, Object, PubSubEngine]),
45781
+ __metadata("design:returntype", Promise)
45782
+ ], flyway_schema_historyResolver.prototype, "flyway_schema_history", null);
45783
+ __decorate([
45784
+ Mutation(() => flyway_schema_history_),
45785
+ __param(0, Arg('input', () => Createflyway_schema_historyInput)),
45786
+ __param(1, Ctx()),
45787
+ __param(2, PubSub()),
45788
+ __metadata("design:type", Function),
45789
+ __metadata("design:paramtypes", [Createflyway_schema_historyInput, Object, PubSubEngine]),
45790
+ __metadata("design:returntype", Promise)
45791
+ ], flyway_schema_historyResolver.prototype, "Createflyway_schema_history", null);
45792
+ __decorate([
45793
+ Mutation(() => flyway_schema_history_),
45794
+ __param(0, Arg('input', () => Updateflyway_schema_historyInput)),
45795
+ __param(1, Ctx()),
45796
+ __param(2, PubSub()),
45797
+ __metadata("design:type", Function),
45798
+ __metadata("design:paramtypes", [Updateflyway_schema_historyInput, Object, PubSubEngine]),
45799
+ __metadata("design:returntype", Promise)
45800
+ ], flyway_schema_historyResolver.prototype, "Updateflyway_schema_history", null);
45801
+ __decorate([
45802
+ Mutation(() => flyway_schema_history_),
45803
+ __param(0, Arg('installed_rank', () => Int)),
45804
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
45805
+ __param(2, Ctx()),
45806
+ __param(3, PubSub()),
45807
+ __metadata("design:type", Function),
45808
+ __metadata("design:paramtypes", [Number, DeleteOptionsInput, Object, PubSubEngine]),
45809
+ __metadata("design:returntype", Promise)
45810
+ ], flyway_schema_historyResolver.prototype, "Deleteflyway_schema_history", null);
45811
+ flyway_schema_historyResolver = __decorate([
45812
+ Resolver(flyway_schema_history_)
45813
+ ], flyway_schema_historyResolver);
45814
+ export { flyway_schema_historyResolver };
45222
45815
  let ContentProcessRun_ = class ContentProcessRun_ {
45223
45816
  ID;
45224
45817
  SourceID;
@@ -48243,32 +48836,32 @@ let AIAgentLearningCycle_ = class AIAgentLearningCycle_ {
48243
48836
  Agent;
48244
48837
  };
48245
48838
  __decorate([
48246
- Field({ description: 'Unique identifier for the learning cycle.' }),
48839
+ Field({ description: `Unique identifier for the learning cycle.` }),
48247
48840
  MaxLength(16),
48248
48841
  __metadata("design:type", String)
48249
48842
  ], AIAgentLearningCycle_.prototype, "ID", void 0);
48250
48843
  __decorate([
48251
- Field({ description: 'Identifier for the AI Agent associated with this learning cycle.' }),
48844
+ Field({ description: `Identifier for the AI Agent associated with this learning cycle.` }),
48252
48845
  MaxLength(16),
48253
48846
  __metadata("design:type", String)
48254
48847
  ], AIAgentLearningCycle_.prototype, "AgentID", void 0);
48255
48848
  __decorate([
48256
- Field({ description: 'Timestamp indicating when the learning cycle started.' }),
48849
+ Field({ description: `Timestamp indicating when the learning cycle started.` }),
48257
48850
  MaxLength(10),
48258
48851
  __metadata("design:type", Date)
48259
48852
  ], AIAgentLearningCycle_.prototype, "StartedAt", void 0);
48260
48853
  __decorate([
48261
- Field({ nullable: true, description: 'Timestamp indicating when the learning cycle ended.' }),
48854
+ Field({ nullable: true, description: `Timestamp indicating when the learning cycle ended.` }),
48262
48855
  MaxLength(10),
48263
48856
  __metadata("design:type", Date)
48264
48857
  ], AIAgentLearningCycle_.prototype, "EndedAt", void 0);
48265
48858
  __decorate([
48266
- Field({ description: 'Status of the learning cycle (In-Progress, Complete, or Failed).' }),
48859
+ Field({ description: `Status of the learning cycle (In-Progress, Complete, or Failed).` }),
48267
48860
  MaxLength(40),
48268
48861
  __metadata("design:type", String)
48269
48862
  ], AIAgentLearningCycle_.prototype, "Status", void 0);
48270
48863
  __decorate([
48271
- Field({ nullable: true, description: 'Text summary provided by the agent about what it learned and any changes it requested for stored metadata.' }),
48864
+ Field({ nullable: true, description: `Text summary provided by the agent about what it learned and any changes it requested for stored metadata.` }),
48272
48865
  __metadata("design:type", String)
48273
48866
  ], AIAgentLearningCycle_.prototype, "AgentSummary", void 0);
48274
48867
  __decorate([
@@ -48287,7 +48880,7 @@ __decorate([
48287
48880
  __metadata("design:type", String)
48288
48881
  ], AIAgentLearningCycle_.prototype, "Agent", void 0);
48289
48882
  AIAgentLearningCycle_ = __decorate([
48290
- ObjectType({ description: 'Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.' })
48883
+ ObjectType({ description: `Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.` })
48291
48884
  ], AIAgentLearningCycle_);
48292
48885
  export { AIAgentLearningCycle_ };
48293
48886
  let CreateAIAgentLearningCycleInput = class CreateAIAgentLearningCycleInput {