@memberjunction/core-entities 5.8.0 → 5.10.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.
@@ -2347,7 +2347,7 @@ export const MJAIAgentRunSchema = z.object({
2347
2347
  * * Description: Reference to the AIAgent that is being executed in this run`),
2348
2348
  ParentRunID: z.string().nullable().describe(`
2349
2349
  * * Field Name: ParentRunID
2350
- * * Display Name: Parent Run ID
2350
+ * * Display Name: Parent Run
2351
2351
  * * SQL Data Type: uniqueidentifier
2352
2352
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
2353
2353
  * * Description: Reference to the parent agent run if this is a sub-agent execution. NULL for root-level agent runs. Enables hierarchical execution tracking.`),
@@ -2441,27 +2441,27 @@ export const MJAIAgentRunSchema = z.object({
2441
2441
  * * Description: Total number of completion/output tokens generated across all AIPromptRun executions during this agent run. This provides a breakdown of the TotalTokensUsed field to help analyze the ratio of input vs output tokens consumed by the agent.`),
2442
2442
  TotalTokensUsedRollup: z.number().nullable().describe(`
2443
2443
  * * Field Name: TotalTokensUsedRollup
2444
- * * Display Name: Total Tokens Used Rollup
2444
+ * * Display Name: Total Tokens Used (Rollup)
2445
2445
  * * SQL Data Type: int
2446
2446
  * * Description: Total tokens used including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalTokensUsed. For parent agents, this includes the sum of all descendant agent tokens. Calculated as TotalPromptTokensUsedRollup + TotalCompletionTokensUsedRollup.`),
2447
2447
  TotalPromptTokensUsedRollup: z.number().nullable().describe(`
2448
2448
  * * Field Name: TotalPromptTokensUsedRollup
2449
- * * Display Name: Total Prompt Tokens Used Rollup
2449
+ * * Display Name: Total Prompt Tokens Used (Rollup)
2450
2450
  * * SQL Data Type: int
2451
2451
  * * Description: Total prompt/input tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalPromptTokensUsed. For parent agents, this includes the sum of all descendant agent prompt tokens.`),
2452
2452
  TotalCompletionTokensUsedRollup: z.number().nullable().describe(`
2453
2453
  * * Field Name: TotalCompletionTokensUsedRollup
2454
- * * Display Name: Total Completion Tokens Used Rollup
2454
+ * * Display Name: Total Completion Tokens Used (Rollup)
2455
2455
  * * SQL Data Type: int
2456
2456
  * * Description: Total completion/output tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCompletionTokensUsed. For parent agents, this includes the sum of all descendant agent completion tokens.`),
2457
2457
  TotalCostRollup: z.number().nullable().describe(`
2458
2458
  * * Field Name: TotalCostRollup
2459
- * * Display Name: Total Cost Rollup
2459
+ * * Display Name: Total Cost (Rollup)
2460
2460
  * * SQL Data Type: decimal(19, 8)
2461
2461
  * * Description: Total cost including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCost. For parent agents, this includes the sum of all descendant agent costs. Note: This assumes all costs are in the same currency for accurate rollup.`),
2462
2462
  ConversationDetailID: z.string().nullable().describe(`
2463
2463
  * * Field Name: ConversationDetailID
2464
- * * Display Name: Conversation Detail ID
2464
+ * * Display Name: Conversation Detail
2465
2465
  * * SQL Data Type: uniqueidentifier
2466
2466
  * * Related Entity/Foreign Key: MJ: Conversation Details (vwConversationDetails.ID)
2467
2467
  * * Description: Optional tracking of a specific conversation detail (e.g. a specific message) that spawned this agent run`),
@@ -2507,7 +2507,7 @@ export const MJAIAgentRunSchema = z.object({
2507
2507
  * * Description: Final message from the agent to the end user at the end of a run`),
2508
2508
  LastRunID: z.string().nullable().describe(`
2509
2509
  * * Field Name: LastRunID
2510
- * * Display Name: Last Run ID
2510
+ * * Display Name: Last Run
2511
2511
  * * SQL Data Type: uniqueidentifier
2512
2512
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
2513
2513
  * * Description: Links to the previous run in a chain. Different from ParentRunID which is for sub-agent hierarchy.`),
@@ -2525,19 +2525,19 @@ export const MJAIAgentRunSchema = z.object({
2525
2525
  each time the agent processes a prompt step.`),
2526
2526
  ConfigurationID: z.string().nullable().describe(`
2527
2527
  * * Field Name: ConfigurationID
2528
- * * Display Name: Configuration ID
2528
+ * * Display Name: Configuration
2529
2529
  * * SQL Data Type: uniqueidentifier
2530
2530
  * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
2531
2531
  * * Description: The AI Configuration used for this agent execution. When set, this configuration was used for all prompts executed by this agent and its sub-agents.`),
2532
2532
  OverrideModelID: z.string().nullable().describe(`
2533
2533
  * * Field Name: OverrideModelID
2534
- * * Display Name: Override Model ID
2534
+ * * Display Name: Override Model
2535
2535
  * * SQL Data Type: uniqueidentifier
2536
2536
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
2537
2537
  * * Description: Runtime model override that was used for this execution. When set, this model took precedence over all other model selection methods.`),
2538
2538
  OverrideVendorID: z.string().nullable().describe(`
2539
2539
  * * Field Name: OverrideVendorID
2540
- * * Display Name: Override Vendor ID
2540
+ * * Display Name: Override Vendor
2541
2541
  * * SQL Data Type: uniqueidentifier
2542
2542
  * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
2543
2543
  * * Description: Runtime vendor override that was used for this execution. When set along with OverrideModelID, this vendor was used to provide the model.`),
@@ -2548,7 +2548,7 @@ each time the agent processes a prompt step.`),
2548
2548
  * * Description: JSON serialized data that was passed for template rendering and prompt execution. This data was passed to the agent's prompt as well as all sub-agents.`),
2549
2549
  Verbose: z.boolean().nullable().describe(`
2550
2550
  * * Field Name: Verbose
2551
- * * Display Name: Verbose
2551
+ * * Display Name: Verbose Logging
2552
2552
  * * SQL Data Type: bit
2553
2553
  * * Default Value: 0
2554
2554
  * * Description: Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.`),
@@ -2569,25 +2569,25 @@ each time the agent processes a prompt step.`),
2569
2569
  * * Description: Human-readable notes and comments about this agent run`),
2570
2570
  ScheduledJobRunID: z.string().nullable().describe(`
2571
2571
  * * Field Name: ScheduledJobRunID
2572
- * * Display Name: Scheduled Job Run ID
2572
+ * * Display Name: Scheduled Job Run
2573
2573
  * * SQL Data Type: uniqueidentifier
2574
2574
  * * Related Entity/Foreign Key: MJ: Scheduled Job Runs (vwScheduledJobRuns.ID)
2575
2575
  * * Description: Links to the scheduled job run that triggered this agent execution. NULL for manually-triggered agent runs. Enables tracking which scheduled jobs spawned which agent executions.`),
2576
2576
  TestRunID: z.string().nullable().describe(`
2577
2577
  * * Field Name: TestRunID
2578
- * * Display Name: Test Run ID
2578
+ * * Display Name: Test Run
2579
2579
  * * SQL Data Type: uniqueidentifier
2580
2580
  * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
2581
2581
  * * Description: Optional Foreign Key - Links this agent run to a test run if this execution was part of a test. Allows navigation from agent execution to test context.`),
2582
2582
  PrimaryScopeEntityID: z.string().nullable().describe(`
2583
2583
  * * Field Name: PrimaryScopeEntityID
2584
- * * Display Name: Primary Scope Entity ID
2584
+ * * Display Name: Primary Scope Entity
2585
2585
  * * SQL Data Type: uniqueidentifier
2586
2586
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
2587
2587
  * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping (e.g., Organizations, Tenants)`),
2588
2588
  PrimaryScopeRecordID: z.string().nullable().describe(`
2589
2589
  * * Field Name: PrimaryScopeRecordID
2590
- * * Display Name: Primary Scope Record ID
2590
+ * * Display Name: Primary Scope Record
2591
2591
  * * SQL Data Type: nvarchar(100)
2592
2592
  * * Description: The record ID within the primary scope entity (e.g., the specific OrganizationID). Indexed for fast multi-tenant filtering.`),
2593
2593
  SecondaryScopes: z.string().nullable().describe(`
@@ -2595,61 +2595,66 @@ each time the agent processes a prompt step.`),
2595
2595
  * * Display Name: Secondary Scopes
2596
2596
  * * SQL Data Type: nvarchar(MAX)
2597
2597
  * * Description: JSON object containing additional scope dimensions beyond the primary scope. Example: {"ContactID":"abc-123","TeamID":"team-456"}`),
2598
+ ExternalReferenceID: z.string().nullable().describe(`
2599
+ * * Field Name: ExternalReferenceID
2600
+ * * Display Name: External Reference ID
2601
+ * * SQL Data Type: nvarchar(200)
2602
+ * * Description: Optional reference ID from an external system that initiated this agent run. Enables correlation between the caller's agent run and this execution. For example, when Skip SaaS is called via SkipProxyAgent, this stores the MJ-side Agent Run ID.`),
2598
2603
  Agent: z.string().nullable().describe(`
2599
2604
  * * Field Name: Agent
2600
- * * Display Name: Agent
2605
+ * * Display Name: Agent Name
2601
2606
  * * SQL Data Type: nvarchar(255)`),
2602
2607
  ParentRun: z.string().nullable().describe(`
2603
2608
  * * Field Name: ParentRun
2604
- * * Display Name: Parent Run
2609
+ * * Display Name: Parent Run Name
2605
2610
  * * SQL Data Type: nvarchar(255)`),
2606
2611
  Conversation: z.string().nullable().describe(`
2607
2612
  * * Field Name: Conversation
2608
- * * Display Name: Conversation
2613
+ * * Display Name: Conversation Name
2609
2614
  * * SQL Data Type: nvarchar(255)`),
2610
2615
  User: z.string().nullable().describe(`
2611
2616
  * * Field Name: User
2612
- * * Display Name: User
2617
+ * * Display Name: User Name
2613
2618
  * * SQL Data Type: nvarchar(100)`),
2614
2619
  ConversationDetail: z.string().nullable().describe(`
2615
2620
  * * Field Name: ConversationDetail
2616
- * * Display Name: Conversation Detail
2621
+ * * Display Name: Conversation Detail Name
2617
2622
  * * SQL Data Type: nvarchar(MAX)`),
2618
2623
  LastRun: z.string().nullable().describe(`
2619
2624
  * * Field Name: LastRun
2620
- * * Display Name: Last Run
2625
+ * * Display Name: Last Run Name
2621
2626
  * * SQL Data Type: nvarchar(255)`),
2622
2627
  Configuration: z.string().nullable().describe(`
2623
2628
  * * Field Name: Configuration
2624
- * * Display Name: Configuration
2629
+ * * Display Name: Configuration Name
2625
2630
  * * SQL Data Type: nvarchar(100)`),
2626
2631
  OverrideModel: z.string().nullable().describe(`
2627
2632
  * * Field Name: OverrideModel
2628
- * * Display Name: Override Model
2633
+ * * Display Name: Override Model Name
2629
2634
  * * SQL Data Type: nvarchar(50)`),
2630
2635
  OverrideVendor: z.string().nullable().describe(`
2631
2636
  * * Field Name: OverrideVendor
2632
- * * Display Name: Override Vendor
2637
+ * * Display Name: Override Vendor Name
2633
2638
  * * SQL Data Type: nvarchar(50)`),
2634
2639
  ScheduledJobRun: z.string().nullable().describe(`
2635
2640
  * * Field Name: ScheduledJobRun
2636
- * * Display Name: Scheduled Job Run
2641
+ * * Display Name: Scheduled Job Run Name
2637
2642
  * * SQL Data Type: nvarchar(200)`),
2638
2643
  TestRun: z.string().nullable().describe(`
2639
2644
  * * Field Name: TestRun
2640
- * * Display Name: Test Run
2645
+ * * Display Name: Test Run Name
2641
2646
  * * SQL Data Type: nvarchar(255)`),
2642
2647
  PrimaryScopeEntity: z.string().nullable().describe(`
2643
2648
  * * Field Name: PrimaryScopeEntity
2644
- * * Display Name: Primary Scope Entity
2649
+ * * Display Name: Primary Scope Entity Name
2645
2650
  * * SQL Data Type: nvarchar(255)`),
2646
2651
  RootParentRunID: z.string().nullable().describe(`
2647
2652
  * * Field Name: RootParentRunID
2648
- * * Display Name: Root Parent Run ID
2653
+ * * Display Name: Root Parent Run
2649
2654
  * * SQL Data Type: uniqueidentifier`),
2650
2655
  RootLastRunID: z.string().nullable().describe(`
2651
2656
  * * Field Name: RootLastRunID
2652
- * * Display Name: Root Last Run ID
2657
+ * * Display Name: Root Last Run
2653
2658
  * * SQL Data Type: uniqueidentifier`),
2654
2659
  });
2655
2660
  /**
@@ -8218,7 +8223,7 @@ export const MJCompanyIntegrationSchema = z.object({
8218
8223
  * * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)`),
8219
8224
  IsActive: z.boolean().nullable().describe(`
8220
8225
  * * Field Name: IsActive
8221
- * * Display Name: Active
8226
+ * * Display Name: Is Active
8222
8227
  * * SQL Data Type: bit
8223
8228
  * * Description: Controls whether this integration is currently active for the company.`),
8224
8229
  AccessToken: z.string().nullable().describe(`
@@ -8299,13 +8304,71 @@ export const MJCompanyIntegrationSchema = z.object({
8299
8304
  * * SQL Data Type: uniqueidentifier
8300
8305
  * * Related Entity/Foreign Key: MJ: Credentials (vwCredentials.ID)
8301
8306
  * * Description: Optional reference to a Credential record that stores encrypted authentication values for this company integration. Replaces the legacy inline auth fields (AccessToken, RefreshToken, APIKey, etc.).`),
8307
+ ScheduleEnabled: z.boolean().describe(`
8308
+ * * Field Name: ScheduleEnabled
8309
+ * * Display Name: Schedule Enabled
8310
+ * * SQL Data Type: bit
8311
+ * * Default Value: 0
8312
+ * * Description: Whether automatic sync scheduling is enabled for this integration`),
8313
+ ScheduleType: z.union([z.literal('Cron'), z.literal('Interval'), z.literal('Manual')]).describe(`
8314
+ * * Field Name: ScheduleType
8315
+ * * Display Name: Schedule Type
8316
+ * * SQL Data Type: nvarchar(20)
8317
+ * * Default Value: Manual
8318
+ * * Value List Type: List
8319
+ * * Possible Values
8320
+ * * Cron
8321
+ * * Interval
8322
+ * * Manual
8323
+ * * Description: Type of schedule: Manual (no auto-sync), Interval (every N minutes), Cron (cron expression)`),
8324
+ ScheduleIntervalMinutes: z.number().nullable().describe(`
8325
+ * * Field Name: ScheduleIntervalMinutes
8326
+ * * Display Name: Schedule Interval (Minutes)
8327
+ * * SQL Data Type: int
8328
+ * * Description: Interval in minutes for Interval schedule type`),
8329
+ CronExpression: z.string().nullable().describe(`
8330
+ * * Field Name: CronExpression
8331
+ * * Display Name: Cron Expression
8332
+ * * SQL Data Type: nvarchar(200)
8333
+ * * Description: Cron expression for Cron schedule type (e.g., "0 *\/6 * * *" for every 6 hours)`),
8334
+ NextScheduledRunAt: z.date().nullable().describe(`
8335
+ * * Field Name: NextScheduledRunAt
8336
+ * * Display Name: Next Scheduled Run
8337
+ * * SQL Data Type: datetimeoffset
8338
+ * * Description: When the next scheduled sync should run. Updated after each run based on schedule config.`),
8339
+ LastScheduledRunAt: z.date().nullable().describe(`
8340
+ * * Field Name: LastScheduledRunAt
8341
+ * * Display Name: Last Scheduled Run
8342
+ * * SQL Data Type: datetimeoffset
8343
+ * * Description: When the last scheduled sync was initiated`),
8344
+ IsLocked: z.boolean().describe(`
8345
+ * * Field Name: IsLocked
8346
+ * * Display Name: Is Locked
8347
+ * * SQL Data Type: bit
8348
+ * * Default Value: 0
8349
+ * * Description: Whether a sync is currently locked/running for this integration`),
8350
+ LockedAt: z.date().nullable().describe(`
8351
+ * * Field Name: LockedAt
8352
+ * * Display Name: Locked At
8353
+ * * SQL Data Type: datetimeoffset
8354
+ * * Description: When the lock was acquired`),
8355
+ LockedByInstance: z.string().nullable().describe(`
8356
+ * * Field Name: LockedByInstance
8357
+ * * Display Name: Locked By Instance
8358
+ * * SQL Data Type: nvarchar(200)
8359
+ * * Description: Server instance identifier that holds the lock (hostname-pid)`),
8360
+ LockExpiresAt: z.date().nullable().describe(`
8361
+ * * Field Name: LockExpiresAt
8362
+ * * Display Name: Lock Expires At
8363
+ * * SQL Data Type: datetimeoffset
8364
+ * * Description: When the lock should be considered stale and eligible for cleanup`),
8302
8365
  Company: z.string().describe(`
8303
8366
  * * Field Name: Company
8304
- * * Display Name: Company Name
8367
+ * * Display Name: Company
8305
8368
  * * SQL Data Type: nvarchar(50)`),
8306
8369
  Integration: z.string().describe(`
8307
8370
  * * Field Name: Integration
8308
- * * Display Name: Integration Name
8371
+ * * Display Name: Integration
8309
8372
  * * SQL Data Type: nvarchar(100)`),
8310
8373
  DriverClassName: z.string().nullable().describe(`
8311
8374
  * * Field Name: DriverClassName
@@ -8317,7 +8380,7 @@ export const MJCompanyIntegrationSchema = z.object({
8317
8380
  * * SQL Data Type: nvarchar(100)`),
8318
8381
  LastRunID: z.string().nullable().describe(`
8319
8382
  * * Field Name: LastRunID
8320
- * * Display Name: Last Run
8383
+ * * Display Name: Last Run ID
8321
8384
  * * SQL Data Type: uniqueidentifier`),
8322
8385
  LastRunStartedAt: z.date().nullable().describe(`
8323
8386
  * * Field Name: LastRunStartedAt
@@ -14084,6 +14147,273 @@ export const MJGeneratedCodeSchema = z.object({
14084
14147
  * * Display Name: Linked Entity
14085
14148
  * * SQL Data Type: nvarchar(255)`),
14086
14149
  });
14150
+ /**
14151
+ * zod schema definition for the entity MJ: Integration Object Fields
14152
+ */
14153
+ export const MJIntegrationObjectFieldSchema = z.object({
14154
+ ID: z.string().describe(`
14155
+ * * Field Name: ID
14156
+ * * Display Name: ID
14157
+ * * SQL Data Type: uniqueidentifier
14158
+ * * Default Value: newsequentialid()
14159
+ * * Description: Primary key`),
14160
+ IntegrationObjectID: z.string().describe(`
14161
+ * * Field Name: IntegrationObjectID
14162
+ * * Display Name: Integration Object
14163
+ * * SQL Data Type: uniqueidentifier
14164
+ * * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
14165
+ * * Description: Foreign key to the IntegrationObject this field belongs to`),
14166
+ Name: z.string().describe(`
14167
+ * * Field Name: Name
14168
+ * * Display Name: Name
14169
+ * * SQL Data Type: nvarchar(255)
14170
+ * * Description: Field name as returned by the external API`),
14171
+ DisplayName: z.string().nullable().describe(`
14172
+ * * Field Name: DisplayName
14173
+ * * Display Name: Display Name
14174
+ * * SQL Data Type: nvarchar(255)
14175
+ * * Description: Human-friendly display label for the field`),
14176
+ Description: z.string().nullable().describe(`
14177
+ * * Field Name: Description
14178
+ * * Display Name: Description
14179
+ * * SQL Data Type: nvarchar(MAX)
14180
+ * * Description: Description of what this field represents`),
14181
+ Category: z.string().nullable().describe(`
14182
+ * * Field Name: Category
14183
+ * * Display Name: Category
14184
+ * * SQL Data Type: nvarchar(100)
14185
+ * * Description: UI grouping category within the object`),
14186
+ Type: z.string().describe(`
14187
+ * * Field Name: Type
14188
+ * * Display Name: Type
14189
+ * * SQL Data Type: nvarchar(100)
14190
+ * * Description: Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField.`),
14191
+ Length: z.number().nullable().describe(`
14192
+ * * Field Name: Length
14193
+ * * Display Name: Length
14194
+ * * SQL Data Type: int
14195
+ * * Description: Maximum length for string types`),
14196
+ Precision: z.number().nullable().describe(`
14197
+ * * Field Name: Precision
14198
+ * * Display Name: Precision
14199
+ * * SQL Data Type: int
14200
+ * * Description: Numeric precision`),
14201
+ Scale: z.number().nullable().describe(`
14202
+ * * Field Name: Scale
14203
+ * * Display Name: Scale
14204
+ * * SQL Data Type: int
14205
+ * * Description: Numeric scale`),
14206
+ AllowsNull: z.boolean().describe(`
14207
+ * * Field Name: AllowsNull
14208
+ * * Display Name: Allows Null
14209
+ * * SQL Data Type: bit
14210
+ * * Default Value: 1
14211
+ * * Description: Whether the field can contain NULL values`),
14212
+ DefaultValue: z.string().nullable().describe(`
14213
+ * * Field Name: DefaultValue
14214
+ * * Display Name: Default Value
14215
+ * * SQL Data Type: nvarchar(255)
14216
+ * * Description: Default value from the source system`),
14217
+ IsPrimaryKey: z.boolean().describe(`
14218
+ * * Field Name: IsPrimaryKey
14219
+ * * Display Name: Primary Key
14220
+ * * SQL Data Type: bit
14221
+ * * Default Value: 0
14222
+ * * Description: Whether this field is part of the object primary key`),
14223
+ IsUniqueKey: z.boolean().describe(`
14224
+ * * Field Name: IsUniqueKey
14225
+ * * Display Name: Unique Key
14226
+ * * SQL Data Type: bit
14227
+ * * Default Value: 0
14228
+ * * Description: Whether values must be unique across all records`),
14229
+ IsReadOnly: z.boolean().describe(`
14230
+ * * Field Name: IsReadOnly
14231
+ * * Display Name: Read Only
14232
+ * * SQL Data Type: bit
14233
+ * * Default Value: 0
14234
+ * * Description: Whether this field cannot be written back to the source system`),
14235
+ IsRequired: z.boolean().describe(`
14236
+ * * Field Name: IsRequired
14237
+ * * Display Name: Required
14238
+ * * SQL Data Type: bit
14239
+ * * Default Value: 0
14240
+ * * Description: Whether this field is required for create/update operations`),
14241
+ RelatedIntegrationObjectID: z.string().nullable().describe(`
14242
+ * * Field Name: RelatedIntegrationObjectID
14243
+ * * Display Name: Related Integration Object
14244
+ * * SQL Data Type: uniqueidentifier
14245
+ * * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
14246
+ * * Description: Foreign key to another IntegrationObject, establishing a relationship. Used for DAG-based dependency ordering and template variable resolution in parent APIPath patterns.`),
14247
+ RelatedIntegrationObjectFieldName: z.string().nullable().describe(`
14248
+ * * Field Name: RelatedIntegrationObjectFieldName
14249
+ * * Display Name: Related Field Name
14250
+ * * SQL Data Type: nvarchar(255)
14251
+ * * Description: The field name on the related IntegrationObject that this FK points to (typically the PK field)`),
14252
+ Sequence: z.number().describe(`
14253
+ * * Field Name: Sequence
14254
+ * * Display Name: Sequence
14255
+ * * SQL Data Type: int
14256
+ * * Default Value: 0
14257
+ * * Description: Display and processing order within the object. Lower numbers appear first.`),
14258
+ Configuration: z.string().nullable().describe(`
14259
+ * * Field Name: Configuration
14260
+ * * Display Name: Configuration
14261
+ * * SQL Data Type: nvarchar(MAX)
14262
+ * * Description: Freeform JSON for connector-specific field configuration`),
14263
+ Status: z.union([z.literal('Active'), z.literal('Deprecated'), z.literal('Disabled')]).describe(`
14264
+ * * Field Name: Status
14265
+ * * Display Name: Status
14266
+ * * SQL Data Type: nvarchar(25)
14267
+ * * Default Value: Active
14268
+ * * Value List Type: List
14269
+ * * Possible Values
14270
+ * * Active
14271
+ * * Deprecated
14272
+ * * Disabled
14273
+ * * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.`),
14274
+ __mj_CreatedAt: z.date().describe(`
14275
+ * * Field Name: __mj_CreatedAt
14276
+ * * Display Name: Created At
14277
+ * * SQL Data Type: datetimeoffset
14278
+ * * Default Value: getutcdate()`),
14279
+ __mj_UpdatedAt: z.date().describe(`
14280
+ * * Field Name: __mj_UpdatedAt
14281
+ * * Display Name: Updated At
14282
+ * * SQL Data Type: datetimeoffset
14283
+ * * Default Value: getutcdate()`),
14284
+ IntegrationObject: z.string().describe(`
14285
+ * * Field Name: IntegrationObject
14286
+ * * Display Name: Integration Object Name
14287
+ * * SQL Data Type: nvarchar(255)`),
14288
+ RelatedIntegrationObject: z.string().nullable().describe(`
14289
+ * * Field Name: RelatedIntegrationObject
14290
+ * * Display Name: Related Object Name
14291
+ * * SQL Data Type: nvarchar(255)`),
14292
+ });
14293
+ /**
14294
+ * zod schema definition for the entity MJ: Integration Objects
14295
+ */
14296
+ export const MJIntegrationObjectSchema = z.object({
14297
+ ID: z.string().describe(`
14298
+ * * Field Name: ID
14299
+ * * Display Name: ID
14300
+ * * SQL Data Type: uniqueidentifier
14301
+ * * Default Value: newsequentialid()
14302
+ * * Description: Primary key`),
14303
+ IntegrationID: z.string().describe(`
14304
+ * * Field Name: IntegrationID
14305
+ * * Display Name: Integration
14306
+ * * SQL Data Type: uniqueidentifier
14307
+ * * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)
14308
+ * * Description: Foreign key to the Integration that owns this object`),
14309
+ Name: z.string().describe(`
14310
+ * * Field Name: Name
14311
+ * * Display Name: Internal Name
14312
+ * * SQL Data Type: nvarchar(255)
14313
+ * * Description: Internal/programmatic name of the external object (e.g., Members, Events)`),
14314
+ DisplayName: z.string().nullable().describe(`
14315
+ * * Field Name: DisplayName
14316
+ * * Display Name: Display Name
14317
+ * * SQL Data Type: nvarchar(255)
14318
+ * * Description: Human-friendly display label`),
14319
+ Description: z.string().nullable().describe(`
14320
+ * * Field Name: Description
14321
+ * * Display Name: Description
14322
+ * * SQL Data Type: nvarchar(MAX)
14323
+ * * Description: Description of what this external object represents`),
14324
+ Category: z.string().nullable().describe(`
14325
+ * * Field Name: Category
14326
+ * * Display Name: Category
14327
+ * * SQL Data Type: nvarchar(100)
14328
+ * * Description: UI grouping category (e.g., Membership, Events, Finance)`),
14329
+ APIPath: z.string().describe(`
14330
+ * * Field Name: APIPath
14331
+ * * Display Name: API Path
14332
+ * * SQL Data Type: nvarchar(500)
14333
+ * * Description: API endpoint path, may include template variables like {ProfileID} that are resolved at runtime from parent object records`),
14334
+ ResponseDataKey: z.string().nullable().describe(`
14335
+ * * Field Name: ResponseDataKey
14336
+ * * Display Name: Response Data Key
14337
+ * * SQL Data Type: nvarchar(255)
14338
+ * * Description: JSON key used to extract the data array from the API response envelope. NULL means the response is a root-level array.`),
14339
+ DefaultPageSize: z.number().describe(`
14340
+ * * Field Name: DefaultPageSize
14341
+ * * Display Name: Default Page Size
14342
+ * * SQL Data Type: int
14343
+ * * Default Value: 100
14344
+ * * Description: Number of records to request per page from the API`),
14345
+ SupportsPagination: z.boolean().describe(`
14346
+ * * Field Name: SupportsPagination
14347
+ * * Display Name: Supports Pagination
14348
+ * * SQL Data Type: bit
14349
+ * * Default Value: 1
14350
+ * * Description: Whether this endpoint supports paginated fetching`),
14351
+ PaginationType: z.union([z.literal('Cursor'), z.literal('None'), z.literal('Offset'), z.literal('PageNumber')]).describe(`
14352
+ * * Field Name: PaginationType
14353
+ * * Display Name: Pagination Type
14354
+ * * SQL Data Type: nvarchar(20)
14355
+ * * Default Value: PageNumber
14356
+ * * Value List Type: List
14357
+ * * Possible Values
14358
+ * * Cursor
14359
+ * * None
14360
+ * * Offset
14361
+ * * PageNumber
14362
+ * * Description: Pagination strategy: PageNumber (page index), Offset (record offset), Cursor (opaque token), or None`),
14363
+ SupportsIncrementalSync: z.boolean().describe(`
14364
+ * * Field Name: SupportsIncrementalSync
14365
+ * * Display Name: Supports Incremental Sync
14366
+ * * SQL Data Type: bit
14367
+ * * Default Value: 0
14368
+ * * Description: Whether this object supports watermark-based incremental sync`),
14369
+ SupportsWrite: z.boolean().describe(`
14370
+ * * Field Name: SupportsWrite
14371
+ * * Display Name: Supports Write
14372
+ * * SQL Data Type: bit
14373
+ * * Default Value: 0
14374
+ * * Description: Whether data can be pushed back to this object via the API`),
14375
+ DefaultQueryParams: z.string().nullable().describe(`
14376
+ * * Field Name: DefaultQueryParams
14377
+ * * Display Name: Default Query Parameters
14378
+ * * SQL Data Type: nvarchar(MAX)
14379
+ * * Description: JSON object of default query parameters to include with every API request for this object`),
14380
+ Configuration: z.string().nullable().describe(`
14381
+ * * Field Name: Configuration
14382
+ * * Display Name: Configuration
14383
+ * * SQL Data Type: nvarchar(MAX)
14384
+ * * Description: Freeform JSON for connector-specific configuration not covered by standard columns`),
14385
+ Sequence: z.number().describe(`
14386
+ * * Field Name: Sequence
14387
+ * * Display Name: Sequence
14388
+ * * SQL Data Type: int
14389
+ * * Default Value: 0
14390
+ * * Description: Processing and display order. Lower numbers are processed first.`),
14391
+ Status: z.union([z.literal('Active'), z.literal('Deprecated'), z.literal('Disabled')]).describe(`
14392
+ * * Field Name: Status
14393
+ * * Display Name: Status
14394
+ * * SQL Data Type: nvarchar(25)
14395
+ * * Default Value: Active
14396
+ * * Value List Type: List
14397
+ * * Possible Values
14398
+ * * Active
14399
+ * * Deprecated
14400
+ * * Disabled
14401
+ * * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.`),
14402
+ __mj_CreatedAt: z.date().describe(`
14403
+ * * Field Name: __mj_CreatedAt
14404
+ * * Display Name: Created At
14405
+ * * SQL Data Type: datetimeoffset
14406
+ * * Default Value: getutcdate()`),
14407
+ __mj_UpdatedAt: z.date().describe(`
14408
+ * * Field Name: __mj_UpdatedAt
14409
+ * * Display Name: Updated At
14410
+ * * SQL Data Type: datetimeoffset
14411
+ * * Default Value: getutcdate()`),
14412
+ Integration: z.string().describe(`
14413
+ * * Field Name: Integration
14414
+ * * Display Name: Integration Name
14415
+ * * SQL Data Type: nvarchar(100)`),
14416
+ });
14087
14417
  /**
14088
14418
  * zod schema definition for the entity MJ: Integration Source Types
14089
14419
  */
@@ -27324,7 +27654,7 @@ let MJAIAgentRunStepEntity = class MJAIAgentRunStepEntity extends BaseEntity {
27324
27654
  }
27325
27655
  /**
27326
27656
  * Validate() method override for MJ: AI Agent Run Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
27327
- * * FinalPayloadValidationResult: The FinalPayloadValidationResult field can be empty, but if a value is set it must be one of the allowed outcomes: Warn, Fail, Retry, or Pass. This ensures that only valid validation results are stored.
27657
+ * * FinalPayloadValidationResult: The final payload validation result must be one of the approved statuses: Warn, Fail, Retry, or Pass, to ensure consistent reporting of validation outcomes.
27328
27658
  * * StepNumber: This rule ensures that the step number must be greater than zero.
27329
27659
  * @public
27330
27660
  * @method
@@ -27332,25 +27662,23 @@ let MJAIAgentRunStepEntity = class MJAIAgentRunStepEntity extends BaseEntity {
27332
27662
  */
27333
27663
  Validate() {
27334
27664
  const result = super.Validate();
27335
- this.ValidateFinalPayloadValidationResultAllowedValues(result);
27665
+ this.ValidateFinalPayloadValidationResultStatus(result);
27336
27666
  this.ValidateStepNumberGreaterThanZero(result);
27337
27667
  result.Success = result.Success && (result.Errors.length === 0);
27338
27668
  return result;
27339
27669
  }
27340
27670
  /**
27341
- * The FinalPayloadValidationResult field can be empty, but if a value is set it must be one of the allowed outcomes: Warn, Fail, Retry, or Pass. This ensures that only valid validation results are stored.
27671
+ * The final payload validation result must be one of the approved statuses: Warn, Fail, Retry, or Pass, to ensure consistent reporting of validation outcomes.
27342
27672
  * @param result - the ValidationResult object to add any errors or warnings to
27343
27673
  * @public
27344
27674
  * @method
27345
27675
  */
27346
- ValidateFinalPayloadValidationResultAllowedValues(result) {
27347
- // Ensure the value is either null or one of the permitted statuses
27348
- if (this.FinalPayloadValidationResult != null &&
27349
- !(this.FinalPayloadValidationResult === 'Warn' ||
27350
- this.FinalPayloadValidationResult === 'Fail' ||
27351
- this.FinalPayloadValidationResult === 'Retry' ||
27352
- this.FinalPayloadValidationResult === 'Pass')) {
27353
- result.Errors.push(new ValidationErrorInfo("FinalPayloadValidationResult", "FinalPayloadValidationResult must be one of: Warn, Fail, Retry, Pass, or left empty.", this.FinalPayloadValidationResult, ValidationErrorType.Failure));
27676
+ ValidateFinalPayloadValidationResultStatus(result) {
27677
+ if (this.FinalPayloadValidationResult != null) {
27678
+ const allowedValues = ["Warn", "Fail", "Retry", "Pass"];
27679
+ if (allowedValues.indexOf(this.FinalPayloadValidationResult) === -1) {
27680
+ result.Errors.push(new ValidationErrorInfo("FinalPayloadValidationResult", "The validation result must be one of the following values: " + allowedValues.join(", ") + ".", this.FinalPayloadValidationResult, ValidationErrorType.Failure));
27681
+ }
27354
27682
  }
27355
27683
  }
27356
27684
  /**
@@ -27819,7 +28147,7 @@ let MJAIAgentRunEntity = class MJAIAgentRunEntity extends BaseEntity {
27819
28147
  }
27820
28148
  /**
27821
28149
  * * Field Name: ParentRunID
27822
- * * Display Name: Parent Run ID
28150
+ * * Display Name: Parent Run
27823
28151
  * * SQL Data Type: uniqueidentifier
27824
28152
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
27825
28153
  * * Description: Reference to the parent agent run if this is a sub-agent execution. NULL for root-level agent runs. Enables hierarchical execution tracking.
@@ -28020,7 +28348,7 @@ let MJAIAgentRunEntity = class MJAIAgentRunEntity extends BaseEntity {
28020
28348
  }
28021
28349
  /**
28022
28350
  * * Field Name: TotalTokensUsedRollup
28023
- * * Display Name: Total Tokens Used Rollup
28351
+ * * Display Name: Total Tokens Used (Rollup)
28024
28352
  * * SQL Data Type: int
28025
28353
  * * Description: Total tokens used including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalTokensUsed. For parent agents, this includes the sum of all descendant agent tokens. Calculated as TotalPromptTokensUsedRollup + TotalCompletionTokensUsedRollup.
28026
28354
  */
@@ -28032,7 +28360,7 @@ let MJAIAgentRunEntity = class MJAIAgentRunEntity extends BaseEntity {
28032
28360
  }
28033
28361
  /**
28034
28362
  * * Field Name: TotalPromptTokensUsedRollup
28035
- * * Display Name: Total Prompt Tokens Used Rollup
28363
+ * * Display Name: Total Prompt Tokens Used (Rollup)
28036
28364
  * * SQL Data Type: int
28037
28365
  * * Description: Total prompt/input tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalPromptTokensUsed. For parent agents, this includes the sum of all descendant agent prompt tokens.
28038
28366
  */
@@ -28044,7 +28372,7 @@ let MJAIAgentRunEntity = class MJAIAgentRunEntity extends BaseEntity {
28044
28372
  }
28045
28373
  /**
28046
28374
  * * Field Name: TotalCompletionTokensUsedRollup
28047
- * * Display Name: Total Completion Tokens Used Rollup
28375
+ * * Display Name: Total Completion Tokens Used (Rollup)
28048
28376
  * * SQL Data Type: int
28049
28377
  * * Description: Total completion/output tokens including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCompletionTokensUsed. For parent agents, this includes the sum of all descendant agent completion tokens.
28050
28378
  */
@@ -28056,7 +28384,7 @@ let MJAIAgentRunEntity = class MJAIAgentRunEntity extends BaseEntity {
28056
28384
  }
28057
28385
  /**
28058
28386
  * * Field Name: TotalCostRollup
28059
- * * Display Name: Total Cost Rollup
28387
+ * * Display Name: Total Cost (Rollup)
28060
28388
  * * SQL Data Type: decimal(19, 8)
28061
28389
  * * Description: Total cost including this agent run and all sub-agent runs. For leaf agents (no sub-agents), this equals TotalCost. For parent agents, this includes the sum of all descendant agent costs. Note: This assumes all costs are in the same currency for accurate rollup.
28062
28390
  */
@@ -28068,7 +28396,7 @@ let MJAIAgentRunEntity = class MJAIAgentRunEntity extends BaseEntity {
28068
28396
  }
28069
28397
  /**
28070
28398
  * * Field Name: ConversationDetailID
28071
- * * Display Name: Conversation Detail ID
28399
+ * * Display Name: Conversation Detail
28072
28400
  * * SQL Data Type: uniqueidentifier
28073
28401
  * * Related Entity/Foreign Key: MJ: Conversation Details (vwConversationDetails.ID)
28074
28402
  * * Description: Optional tracking of a specific conversation detail (e.g. a specific message) that spawned this agent run
@@ -28156,7 +28484,7 @@ let MJAIAgentRunEntity = class MJAIAgentRunEntity extends BaseEntity {
28156
28484
  }
28157
28485
  /**
28158
28486
  * * Field Name: LastRunID
28159
- * * Display Name: Last Run ID
28487
+ * * Display Name: Last Run
28160
28488
  * * SQL Data Type: uniqueidentifier
28161
28489
  * * Related Entity/Foreign Key: MJ: AI Agent Runs (vwAIAgentRuns.ID)
28162
28490
  * * Description: Links to the previous run in a chain. Different from ParentRunID which is for sub-agent hierarchy.
@@ -28195,7 +28523,7 @@ each time the agent processes a prompt step.
28195
28523
  }
28196
28524
  /**
28197
28525
  * * Field Name: ConfigurationID
28198
- * * Display Name: Configuration ID
28526
+ * * Display Name: Configuration
28199
28527
  * * SQL Data Type: uniqueidentifier
28200
28528
  * * Related Entity/Foreign Key: MJ: AI Configurations (vwAIConfigurations.ID)
28201
28529
  * * Description: The AI Configuration used for this agent execution. When set, this configuration was used for all prompts executed by this agent and its sub-agents.
@@ -28208,7 +28536,7 @@ each time the agent processes a prompt step.
28208
28536
  }
28209
28537
  /**
28210
28538
  * * Field Name: OverrideModelID
28211
- * * Display Name: Override Model ID
28539
+ * * Display Name: Override Model
28212
28540
  * * SQL Data Type: uniqueidentifier
28213
28541
  * * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
28214
28542
  * * Description: Runtime model override that was used for this execution. When set, this model took precedence over all other model selection methods.
@@ -28221,7 +28549,7 @@ each time the agent processes a prompt step.
28221
28549
  }
28222
28550
  /**
28223
28551
  * * Field Name: OverrideVendorID
28224
- * * Display Name: Override Vendor ID
28552
+ * * Display Name: Override Vendor
28225
28553
  * * SQL Data Type: uniqueidentifier
28226
28554
  * * Related Entity/Foreign Key: MJ: AI Vendors (vwAIVendors.ID)
28227
28555
  * * Description: Runtime vendor override that was used for this execution. When set along with OverrideModelID, this vendor was used to provide the model.
@@ -28246,7 +28574,7 @@ each time the agent processes a prompt step.
28246
28574
  }
28247
28575
  /**
28248
28576
  * * Field Name: Verbose
28249
- * * Display Name: Verbose
28577
+ * * Display Name: Verbose Logging
28250
28578
  * * SQL Data Type: bit
28251
28579
  * * Default Value: 0
28252
28580
  * * Description: Indicates whether verbose logging was enabled during this agent execution. When true, detailed decision-making and execution flow was logged.
@@ -28295,7 +28623,7 @@ each time the agent processes a prompt step.
28295
28623
  }
28296
28624
  /**
28297
28625
  * * Field Name: ScheduledJobRunID
28298
- * * Display Name: Scheduled Job Run ID
28626
+ * * Display Name: Scheduled Job Run
28299
28627
  * * SQL Data Type: uniqueidentifier
28300
28628
  * * Related Entity/Foreign Key: MJ: Scheduled Job Runs (vwScheduledJobRuns.ID)
28301
28629
  * * Description: Links to the scheduled job run that triggered this agent execution. NULL for manually-triggered agent runs. Enables tracking which scheduled jobs spawned which agent executions.
@@ -28308,7 +28636,7 @@ each time the agent processes a prompt step.
28308
28636
  }
28309
28637
  /**
28310
28638
  * * Field Name: TestRunID
28311
- * * Display Name: Test Run ID
28639
+ * * Display Name: Test Run
28312
28640
  * * SQL Data Type: uniqueidentifier
28313
28641
  * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
28314
28642
  * * Description: Optional Foreign Key - Links this agent run to a test run if this execution was part of a test. Allows navigation from agent execution to test context.
@@ -28321,7 +28649,7 @@ each time the agent processes a prompt step.
28321
28649
  }
28322
28650
  /**
28323
28651
  * * Field Name: PrimaryScopeEntityID
28324
- * * Display Name: Primary Scope Entity ID
28652
+ * * Display Name: Primary Scope Entity
28325
28653
  * * SQL Data Type: uniqueidentifier
28326
28654
  * * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
28327
28655
  * * Description: Foreign key to Entity table identifying which entity type is used for primary scoping (e.g., Organizations, Tenants)
@@ -28334,7 +28662,7 @@ each time the agent processes a prompt step.
28334
28662
  }
28335
28663
  /**
28336
28664
  * * Field Name: PrimaryScopeRecordID
28337
- * * Display Name: Primary Scope Record ID
28665
+ * * Display Name: Primary Scope Record
28338
28666
  * * SQL Data Type: nvarchar(100)
28339
28667
  * * Description: The record ID within the primary scope entity (e.g., the specific OrganizationID). Indexed for fast multi-tenant filtering.
28340
28668
  */
@@ -28357,8 +28685,20 @@ each time the agent processes a prompt step.
28357
28685
  this.Set('SecondaryScopes', value);
28358
28686
  }
28359
28687
  /**
28688
+ * * Field Name: ExternalReferenceID
28689
+ * * Display Name: External Reference ID
28690
+ * * SQL Data Type: nvarchar(200)
28691
+ * * Description: Optional reference ID from an external system that initiated this agent run. Enables correlation between the caller's agent run and this execution. For example, when Skip SaaS is called via SkipProxyAgent, this stores the MJ-side Agent Run ID.
28692
+ */
28693
+ get ExternalReferenceID() {
28694
+ return this.Get('ExternalReferenceID');
28695
+ }
28696
+ set ExternalReferenceID(value) {
28697
+ this.Set('ExternalReferenceID', value);
28698
+ }
28699
+ /**
28360
28700
  * * Field Name: Agent
28361
- * * Display Name: Agent
28701
+ * * Display Name: Agent Name
28362
28702
  * * SQL Data Type: nvarchar(255)
28363
28703
  */
28364
28704
  get Agent() {
@@ -28366,7 +28706,7 @@ each time the agent processes a prompt step.
28366
28706
  }
28367
28707
  /**
28368
28708
  * * Field Name: ParentRun
28369
- * * Display Name: Parent Run
28709
+ * * Display Name: Parent Run Name
28370
28710
  * * SQL Data Type: nvarchar(255)
28371
28711
  */
28372
28712
  get ParentRun() {
@@ -28374,7 +28714,7 @@ each time the agent processes a prompt step.
28374
28714
  }
28375
28715
  /**
28376
28716
  * * Field Name: Conversation
28377
- * * Display Name: Conversation
28717
+ * * Display Name: Conversation Name
28378
28718
  * * SQL Data Type: nvarchar(255)
28379
28719
  */
28380
28720
  get Conversation() {
@@ -28382,7 +28722,7 @@ each time the agent processes a prompt step.
28382
28722
  }
28383
28723
  /**
28384
28724
  * * Field Name: User
28385
- * * Display Name: User
28725
+ * * Display Name: User Name
28386
28726
  * * SQL Data Type: nvarchar(100)
28387
28727
  */
28388
28728
  get User() {
@@ -28390,7 +28730,7 @@ each time the agent processes a prompt step.
28390
28730
  }
28391
28731
  /**
28392
28732
  * * Field Name: ConversationDetail
28393
- * * Display Name: Conversation Detail
28733
+ * * Display Name: Conversation Detail Name
28394
28734
  * * SQL Data Type: nvarchar(MAX)
28395
28735
  */
28396
28736
  get ConversationDetail() {
@@ -28398,7 +28738,7 @@ each time the agent processes a prompt step.
28398
28738
  }
28399
28739
  /**
28400
28740
  * * Field Name: LastRun
28401
- * * Display Name: Last Run
28741
+ * * Display Name: Last Run Name
28402
28742
  * * SQL Data Type: nvarchar(255)
28403
28743
  */
28404
28744
  get LastRun() {
@@ -28406,7 +28746,7 @@ each time the agent processes a prompt step.
28406
28746
  }
28407
28747
  /**
28408
28748
  * * Field Name: Configuration
28409
- * * Display Name: Configuration
28749
+ * * Display Name: Configuration Name
28410
28750
  * * SQL Data Type: nvarchar(100)
28411
28751
  */
28412
28752
  get Configuration() {
@@ -28414,7 +28754,7 @@ each time the agent processes a prompt step.
28414
28754
  }
28415
28755
  /**
28416
28756
  * * Field Name: OverrideModel
28417
- * * Display Name: Override Model
28757
+ * * Display Name: Override Model Name
28418
28758
  * * SQL Data Type: nvarchar(50)
28419
28759
  */
28420
28760
  get OverrideModel() {
@@ -28422,7 +28762,7 @@ each time the agent processes a prompt step.
28422
28762
  }
28423
28763
  /**
28424
28764
  * * Field Name: OverrideVendor
28425
- * * Display Name: Override Vendor
28765
+ * * Display Name: Override Vendor Name
28426
28766
  * * SQL Data Type: nvarchar(50)
28427
28767
  */
28428
28768
  get OverrideVendor() {
@@ -28430,7 +28770,7 @@ each time the agent processes a prompt step.
28430
28770
  }
28431
28771
  /**
28432
28772
  * * Field Name: ScheduledJobRun
28433
- * * Display Name: Scheduled Job Run
28773
+ * * Display Name: Scheduled Job Run Name
28434
28774
  * * SQL Data Type: nvarchar(200)
28435
28775
  */
28436
28776
  get ScheduledJobRun() {
@@ -28438,7 +28778,7 @@ each time the agent processes a prompt step.
28438
28778
  }
28439
28779
  /**
28440
28780
  * * Field Name: TestRun
28441
- * * Display Name: Test Run
28781
+ * * Display Name: Test Run Name
28442
28782
  * * SQL Data Type: nvarchar(255)
28443
28783
  */
28444
28784
  get TestRun() {
@@ -28446,7 +28786,7 @@ each time the agent processes a prompt step.
28446
28786
  }
28447
28787
  /**
28448
28788
  * * Field Name: PrimaryScopeEntity
28449
- * * Display Name: Primary Scope Entity
28789
+ * * Display Name: Primary Scope Entity Name
28450
28790
  * * SQL Data Type: nvarchar(255)
28451
28791
  */
28452
28792
  get PrimaryScopeEntity() {
@@ -28454,7 +28794,7 @@ each time the agent processes a prompt step.
28454
28794
  }
28455
28795
  /**
28456
28796
  * * Field Name: RootParentRunID
28457
- * * Display Name: Root Parent Run ID
28797
+ * * Display Name: Root Parent Run
28458
28798
  * * SQL Data Type: uniqueidentifier
28459
28799
  */
28460
28800
  get RootParentRunID() {
@@ -28462,7 +28802,7 @@ each time the agent processes a prompt step.
28462
28802
  }
28463
28803
  /**
28464
28804
  * * Field Name: RootLastRunID
28465
- * * Display Name: Root Last Run ID
28805
+ * * Display Name: Root Last Run
28466
28806
  * * SQL Data Type: uniqueidentifier
28467
28807
  */
28468
28808
  get RootLastRunID() {
@@ -42766,7 +43106,7 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
42766
43106
  }
42767
43107
  /**
42768
43108
  * * Field Name: IsActive
42769
- * * Display Name: Active
43109
+ * * Display Name: Is Active
42770
43110
  * * SQL Data Type: bit
42771
43111
  * * Description: Controls whether this integration is currently active for the company.
42772
43112
  */
@@ -42954,8 +43294,136 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
42954
43294
  this.Set('CredentialID', value);
42955
43295
  }
42956
43296
  /**
43297
+ * * Field Name: ScheduleEnabled
43298
+ * * Display Name: Schedule Enabled
43299
+ * * SQL Data Type: bit
43300
+ * * Default Value: 0
43301
+ * * Description: Whether automatic sync scheduling is enabled for this integration
43302
+ */
43303
+ get ScheduleEnabled() {
43304
+ return this.Get('ScheduleEnabled');
43305
+ }
43306
+ set ScheduleEnabled(value) {
43307
+ this.Set('ScheduleEnabled', value);
43308
+ }
43309
+ /**
43310
+ * * Field Name: ScheduleType
43311
+ * * Display Name: Schedule Type
43312
+ * * SQL Data Type: nvarchar(20)
43313
+ * * Default Value: Manual
43314
+ * * Value List Type: List
43315
+ * * Possible Values
43316
+ * * Cron
43317
+ * * Interval
43318
+ * * Manual
43319
+ * * Description: Type of schedule: Manual (no auto-sync), Interval (every N minutes), Cron (cron expression)
43320
+ */
43321
+ get ScheduleType() {
43322
+ return this.Get('ScheduleType');
43323
+ }
43324
+ set ScheduleType(value) {
43325
+ this.Set('ScheduleType', value);
43326
+ }
43327
+ /**
43328
+ * * Field Name: ScheduleIntervalMinutes
43329
+ * * Display Name: Schedule Interval (Minutes)
43330
+ * * SQL Data Type: int
43331
+ * * Description: Interval in minutes for Interval schedule type
43332
+ */
43333
+ get ScheduleIntervalMinutes() {
43334
+ return this.Get('ScheduleIntervalMinutes');
43335
+ }
43336
+ set ScheduleIntervalMinutes(value) {
43337
+ this.Set('ScheduleIntervalMinutes', value);
43338
+ }
43339
+ /**
43340
+ * * Field Name: CronExpression
43341
+ * * Display Name: Cron Expression
43342
+ * * SQL Data Type: nvarchar(200)
43343
+ * * Description: Cron expression for Cron schedule type (e.g., "0 *\/6 * * *" for every 6 hours)
43344
+ */
43345
+ get CronExpression() {
43346
+ return this.Get('CronExpression');
43347
+ }
43348
+ set CronExpression(value) {
43349
+ this.Set('CronExpression', value);
43350
+ }
43351
+ /**
43352
+ * * Field Name: NextScheduledRunAt
43353
+ * * Display Name: Next Scheduled Run
43354
+ * * SQL Data Type: datetimeoffset
43355
+ * * Description: When the next scheduled sync should run. Updated after each run based on schedule config.
43356
+ */
43357
+ get NextScheduledRunAt() {
43358
+ return this.Get('NextScheduledRunAt');
43359
+ }
43360
+ set NextScheduledRunAt(value) {
43361
+ this.Set('NextScheduledRunAt', value);
43362
+ }
43363
+ /**
43364
+ * * Field Name: LastScheduledRunAt
43365
+ * * Display Name: Last Scheduled Run
43366
+ * * SQL Data Type: datetimeoffset
43367
+ * * Description: When the last scheduled sync was initiated
43368
+ */
43369
+ get LastScheduledRunAt() {
43370
+ return this.Get('LastScheduledRunAt');
43371
+ }
43372
+ set LastScheduledRunAt(value) {
43373
+ this.Set('LastScheduledRunAt', value);
43374
+ }
43375
+ /**
43376
+ * * Field Name: IsLocked
43377
+ * * Display Name: Is Locked
43378
+ * * SQL Data Type: bit
43379
+ * * Default Value: 0
43380
+ * * Description: Whether a sync is currently locked/running for this integration
43381
+ */
43382
+ get IsLocked() {
43383
+ return this.Get('IsLocked');
43384
+ }
43385
+ set IsLocked(value) {
43386
+ this.Set('IsLocked', value);
43387
+ }
43388
+ /**
43389
+ * * Field Name: LockedAt
43390
+ * * Display Name: Locked At
43391
+ * * SQL Data Type: datetimeoffset
43392
+ * * Description: When the lock was acquired
43393
+ */
43394
+ get LockedAt() {
43395
+ return this.Get('LockedAt');
43396
+ }
43397
+ set LockedAt(value) {
43398
+ this.Set('LockedAt', value);
43399
+ }
43400
+ /**
43401
+ * * Field Name: LockedByInstance
43402
+ * * Display Name: Locked By Instance
43403
+ * * SQL Data Type: nvarchar(200)
43404
+ * * Description: Server instance identifier that holds the lock (hostname-pid)
43405
+ */
43406
+ get LockedByInstance() {
43407
+ return this.Get('LockedByInstance');
43408
+ }
43409
+ set LockedByInstance(value) {
43410
+ this.Set('LockedByInstance', value);
43411
+ }
43412
+ /**
43413
+ * * Field Name: LockExpiresAt
43414
+ * * Display Name: Lock Expires At
43415
+ * * SQL Data Type: datetimeoffset
43416
+ * * Description: When the lock should be considered stale and eligible for cleanup
43417
+ */
43418
+ get LockExpiresAt() {
43419
+ return this.Get('LockExpiresAt');
43420
+ }
43421
+ set LockExpiresAt(value) {
43422
+ this.Set('LockExpiresAt', value);
43423
+ }
43424
+ /**
42957
43425
  * * Field Name: Company
42958
- * * Display Name: Company Name
43426
+ * * Display Name: Company
42959
43427
  * * SQL Data Type: nvarchar(50)
42960
43428
  */
42961
43429
  get Company() {
@@ -42963,7 +43431,7 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
42963
43431
  }
42964
43432
  /**
42965
43433
  * * Field Name: Integration
42966
- * * Display Name: Integration Name
43434
+ * * Display Name: Integration
42967
43435
  * * SQL Data Type: nvarchar(100)
42968
43436
  */
42969
43437
  get Integration() {
@@ -42987,7 +43455,7 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
42987
43455
  }
42988
43456
  /**
42989
43457
  * * Field Name: LastRunID
42990
- * * Display Name: Last Run
43458
+ * * Display Name: Last Run ID
42991
43459
  * * SQL Data Type: uniqueidentifier
42992
43460
  */
42993
43461
  get LastRunID() {
@@ -57421,6 +57889,623 @@ MJGeneratedCodeEntity = __decorate([
57421
57889
  RegisterClass(BaseEntity, 'MJ: Generated Codes')
57422
57890
  ], MJGeneratedCodeEntity);
57423
57891
  export { MJGeneratedCodeEntity };
57892
+ /**
57893
+ * MJ: Integration Object Fields - strongly typed entity sub-class
57894
+ * * Schema: __mj
57895
+ * * Base Table: IntegrationObjectField
57896
+ * * Base View: vwIntegrationObjectFields
57897
+ * * @description Describes a field on an integration object, mirroring EntityField column patterns for type compatibility
57898
+ * * Primary Key: ID
57899
+ * @extends {BaseEntity}
57900
+ * @class
57901
+ * @public
57902
+ */
57903
+ let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extends BaseEntity {
57904
+ /**
57905
+ * Loads the MJ: Integration Object Fields record from the database
57906
+ * @param ID: string - primary key value to load the MJ: Integration Object Fields record.
57907
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
57908
+ * @returns {Promise<boolean>} - true if successful, false otherwise
57909
+ * @public
57910
+ * @async
57911
+ * @memberof MJIntegrationObjectFieldEntity
57912
+ * @method
57913
+ * @override
57914
+ */
57915
+ async Load(ID, EntityRelationshipsToLoad) {
57916
+ const compositeKey = new CompositeKey();
57917
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
57918
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
57919
+ }
57920
+ /**
57921
+ * * Field Name: ID
57922
+ * * Display Name: ID
57923
+ * * SQL Data Type: uniqueidentifier
57924
+ * * Default Value: newsequentialid()
57925
+ * * Description: Primary key
57926
+ */
57927
+ get ID() {
57928
+ return this.Get('ID');
57929
+ }
57930
+ set ID(value) {
57931
+ this.Set('ID', value);
57932
+ }
57933
+ /**
57934
+ * * Field Name: IntegrationObjectID
57935
+ * * Display Name: Integration Object
57936
+ * * SQL Data Type: uniqueidentifier
57937
+ * * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
57938
+ * * Description: Foreign key to the IntegrationObject this field belongs to
57939
+ */
57940
+ get IntegrationObjectID() {
57941
+ return this.Get('IntegrationObjectID');
57942
+ }
57943
+ set IntegrationObjectID(value) {
57944
+ this.Set('IntegrationObjectID', value);
57945
+ }
57946
+ /**
57947
+ * * Field Name: Name
57948
+ * * Display Name: Name
57949
+ * * SQL Data Type: nvarchar(255)
57950
+ * * Description: Field name as returned by the external API
57951
+ */
57952
+ get Name() {
57953
+ return this.Get('Name');
57954
+ }
57955
+ set Name(value) {
57956
+ this.Set('Name', value);
57957
+ }
57958
+ /**
57959
+ * * Field Name: DisplayName
57960
+ * * Display Name: Display Name
57961
+ * * SQL Data Type: nvarchar(255)
57962
+ * * Description: Human-friendly display label for the field
57963
+ */
57964
+ get DisplayName() {
57965
+ return this.Get('DisplayName');
57966
+ }
57967
+ set DisplayName(value) {
57968
+ this.Set('DisplayName', value);
57969
+ }
57970
+ /**
57971
+ * * Field Name: Description
57972
+ * * Display Name: Description
57973
+ * * SQL Data Type: nvarchar(MAX)
57974
+ * * Description: Description of what this field represents
57975
+ */
57976
+ get Description() {
57977
+ return this.Get('Description');
57978
+ }
57979
+ set Description(value) {
57980
+ this.Set('Description', value);
57981
+ }
57982
+ /**
57983
+ * * Field Name: Category
57984
+ * * Display Name: Category
57985
+ * * SQL Data Type: nvarchar(100)
57986
+ * * Description: UI grouping category within the object
57987
+ */
57988
+ get Category() {
57989
+ return this.Get('Category');
57990
+ }
57991
+ set Category(value) {
57992
+ this.Set('Category', value);
57993
+ }
57994
+ /**
57995
+ * * Field Name: Type
57996
+ * * Display Name: Type
57997
+ * * SQL Data Type: nvarchar(100)
57998
+ * * Description: Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField.
57999
+ */
58000
+ get Type() {
58001
+ return this.Get('Type');
58002
+ }
58003
+ set Type(value) {
58004
+ this.Set('Type', value);
58005
+ }
58006
+ /**
58007
+ * * Field Name: Length
58008
+ * * Display Name: Length
58009
+ * * SQL Data Type: int
58010
+ * * Description: Maximum length for string types
58011
+ */
58012
+ get Length() {
58013
+ return this.Get('Length');
58014
+ }
58015
+ set Length(value) {
58016
+ this.Set('Length', value);
58017
+ }
58018
+ /**
58019
+ * * Field Name: Precision
58020
+ * * Display Name: Precision
58021
+ * * SQL Data Type: int
58022
+ * * Description: Numeric precision
58023
+ */
58024
+ get Precision() {
58025
+ return this.Get('Precision');
58026
+ }
58027
+ set Precision(value) {
58028
+ this.Set('Precision', value);
58029
+ }
58030
+ /**
58031
+ * * Field Name: Scale
58032
+ * * Display Name: Scale
58033
+ * * SQL Data Type: int
58034
+ * * Description: Numeric scale
58035
+ */
58036
+ get Scale() {
58037
+ return this.Get('Scale');
58038
+ }
58039
+ set Scale(value) {
58040
+ this.Set('Scale', value);
58041
+ }
58042
+ /**
58043
+ * * Field Name: AllowsNull
58044
+ * * Display Name: Allows Null
58045
+ * * SQL Data Type: bit
58046
+ * * Default Value: 1
58047
+ * * Description: Whether the field can contain NULL values
58048
+ */
58049
+ get AllowsNull() {
58050
+ return this.Get('AllowsNull');
58051
+ }
58052
+ set AllowsNull(value) {
58053
+ this.Set('AllowsNull', value);
58054
+ }
58055
+ /**
58056
+ * * Field Name: DefaultValue
58057
+ * * Display Name: Default Value
58058
+ * * SQL Data Type: nvarchar(255)
58059
+ * * Description: Default value from the source system
58060
+ */
58061
+ get DefaultValue() {
58062
+ return this.Get('DefaultValue');
58063
+ }
58064
+ set DefaultValue(value) {
58065
+ this.Set('DefaultValue', value);
58066
+ }
58067
+ /**
58068
+ * * Field Name: IsPrimaryKey
58069
+ * * Display Name: Primary Key
58070
+ * * SQL Data Type: bit
58071
+ * * Default Value: 0
58072
+ * * Description: Whether this field is part of the object primary key
58073
+ */
58074
+ get IsPrimaryKey() {
58075
+ return this.Get('IsPrimaryKey');
58076
+ }
58077
+ set IsPrimaryKey(value) {
58078
+ this.Set('IsPrimaryKey', value);
58079
+ }
58080
+ /**
58081
+ * * Field Name: IsUniqueKey
58082
+ * * Display Name: Unique Key
58083
+ * * SQL Data Type: bit
58084
+ * * Default Value: 0
58085
+ * * Description: Whether values must be unique across all records
58086
+ */
58087
+ get IsUniqueKey() {
58088
+ return this.Get('IsUniqueKey');
58089
+ }
58090
+ set IsUniqueKey(value) {
58091
+ this.Set('IsUniqueKey', value);
58092
+ }
58093
+ /**
58094
+ * * Field Name: IsReadOnly
58095
+ * * Display Name: Read Only
58096
+ * * SQL Data Type: bit
58097
+ * * Default Value: 0
58098
+ * * Description: Whether this field cannot be written back to the source system
58099
+ */
58100
+ get IsReadOnly() {
58101
+ return this.Get('IsReadOnly');
58102
+ }
58103
+ set IsReadOnly(value) {
58104
+ this.Set('IsReadOnly', value);
58105
+ }
58106
+ /**
58107
+ * * Field Name: IsRequired
58108
+ * * Display Name: Required
58109
+ * * SQL Data Type: bit
58110
+ * * Default Value: 0
58111
+ * * Description: Whether this field is required for create/update operations
58112
+ */
58113
+ get IsRequired() {
58114
+ return this.Get('IsRequired');
58115
+ }
58116
+ set IsRequired(value) {
58117
+ this.Set('IsRequired', value);
58118
+ }
58119
+ /**
58120
+ * * Field Name: RelatedIntegrationObjectID
58121
+ * * Display Name: Related Integration Object
58122
+ * * SQL Data Type: uniqueidentifier
58123
+ * * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
58124
+ * * Description: Foreign key to another IntegrationObject, establishing a relationship. Used for DAG-based dependency ordering and template variable resolution in parent APIPath patterns.
58125
+ */
58126
+ get RelatedIntegrationObjectID() {
58127
+ return this.Get('RelatedIntegrationObjectID');
58128
+ }
58129
+ set RelatedIntegrationObjectID(value) {
58130
+ this.Set('RelatedIntegrationObjectID', value);
58131
+ }
58132
+ /**
58133
+ * * Field Name: RelatedIntegrationObjectFieldName
58134
+ * * Display Name: Related Field Name
58135
+ * * SQL Data Type: nvarchar(255)
58136
+ * * Description: The field name on the related IntegrationObject that this FK points to (typically the PK field)
58137
+ */
58138
+ get RelatedIntegrationObjectFieldName() {
58139
+ return this.Get('RelatedIntegrationObjectFieldName');
58140
+ }
58141
+ set RelatedIntegrationObjectFieldName(value) {
58142
+ this.Set('RelatedIntegrationObjectFieldName', value);
58143
+ }
58144
+ /**
58145
+ * * Field Name: Sequence
58146
+ * * Display Name: Sequence
58147
+ * * SQL Data Type: int
58148
+ * * Default Value: 0
58149
+ * * Description: Display and processing order within the object. Lower numbers appear first.
58150
+ */
58151
+ get Sequence() {
58152
+ return this.Get('Sequence');
58153
+ }
58154
+ set Sequence(value) {
58155
+ this.Set('Sequence', value);
58156
+ }
58157
+ /**
58158
+ * * Field Name: Configuration
58159
+ * * Display Name: Configuration
58160
+ * * SQL Data Type: nvarchar(MAX)
58161
+ * * Description: Freeform JSON for connector-specific field configuration
58162
+ */
58163
+ get Configuration() {
58164
+ return this.Get('Configuration');
58165
+ }
58166
+ set Configuration(value) {
58167
+ this.Set('Configuration', value);
58168
+ }
58169
+ /**
58170
+ * * Field Name: Status
58171
+ * * Display Name: Status
58172
+ * * SQL Data Type: nvarchar(25)
58173
+ * * Default Value: Active
58174
+ * * Value List Type: List
58175
+ * * Possible Values
58176
+ * * Active
58177
+ * * Deprecated
58178
+ * * Disabled
58179
+ * * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.
58180
+ */
58181
+ get Status() {
58182
+ return this.Get('Status');
58183
+ }
58184
+ set Status(value) {
58185
+ this.Set('Status', value);
58186
+ }
58187
+ /**
58188
+ * * Field Name: __mj_CreatedAt
58189
+ * * Display Name: Created At
58190
+ * * SQL Data Type: datetimeoffset
58191
+ * * Default Value: getutcdate()
58192
+ */
58193
+ get __mj_CreatedAt() {
58194
+ return this.Get('__mj_CreatedAt');
58195
+ }
58196
+ /**
58197
+ * * Field Name: __mj_UpdatedAt
58198
+ * * Display Name: Updated At
58199
+ * * SQL Data Type: datetimeoffset
58200
+ * * Default Value: getutcdate()
58201
+ */
58202
+ get __mj_UpdatedAt() {
58203
+ return this.Get('__mj_UpdatedAt');
58204
+ }
58205
+ /**
58206
+ * * Field Name: IntegrationObject
58207
+ * * Display Name: Integration Object Name
58208
+ * * SQL Data Type: nvarchar(255)
58209
+ */
58210
+ get IntegrationObject() {
58211
+ return this.Get('IntegrationObject');
58212
+ }
58213
+ /**
58214
+ * * Field Name: RelatedIntegrationObject
58215
+ * * Display Name: Related Object Name
58216
+ * * SQL Data Type: nvarchar(255)
58217
+ */
58218
+ get RelatedIntegrationObject() {
58219
+ return this.Get('RelatedIntegrationObject');
58220
+ }
58221
+ };
58222
+ MJIntegrationObjectFieldEntity = __decorate([
58223
+ RegisterClass(BaseEntity, 'MJ: Integration Object Fields')
58224
+ ], MJIntegrationObjectFieldEntity);
58225
+ export { MJIntegrationObjectFieldEntity };
58226
+ /**
58227
+ * MJ: Integration Objects - strongly typed entity sub-class
58228
+ * * Schema: __mj
58229
+ * * Base Table: IntegrationObject
58230
+ * * Base View: vwIntegrationObjects
58231
+ * * @description Describes an external object or endpoint exposed by an integration (e.g., Members, Events, Invoices)
58232
+ * * Primary Key: ID
58233
+ * @extends {BaseEntity}
58234
+ * @class
58235
+ * @public
58236
+ */
58237
+ let MJIntegrationObjectEntity = class MJIntegrationObjectEntity extends BaseEntity {
58238
+ /**
58239
+ * Loads the MJ: Integration Objects record from the database
58240
+ * @param ID: string - primary key value to load the MJ: Integration Objects record.
58241
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
58242
+ * @returns {Promise<boolean>} - true if successful, false otherwise
58243
+ * @public
58244
+ * @async
58245
+ * @memberof MJIntegrationObjectEntity
58246
+ * @method
58247
+ * @override
58248
+ */
58249
+ async Load(ID, EntityRelationshipsToLoad) {
58250
+ const compositeKey = new CompositeKey();
58251
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
58252
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
58253
+ }
58254
+ /**
58255
+ * * Field Name: ID
58256
+ * * Display Name: ID
58257
+ * * SQL Data Type: uniqueidentifier
58258
+ * * Default Value: newsequentialid()
58259
+ * * Description: Primary key
58260
+ */
58261
+ get ID() {
58262
+ return this.Get('ID');
58263
+ }
58264
+ set ID(value) {
58265
+ this.Set('ID', value);
58266
+ }
58267
+ /**
58268
+ * * Field Name: IntegrationID
58269
+ * * Display Name: Integration
58270
+ * * SQL Data Type: uniqueidentifier
58271
+ * * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)
58272
+ * * Description: Foreign key to the Integration that owns this object
58273
+ */
58274
+ get IntegrationID() {
58275
+ return this.Get('IntegrationID');
58276
+ }
58277
+ set IntegrationID(value) {
58278
+ this.Set('IntegrationID', value);
58279
+ }
58280
+ /**
58281
+ * * Field Name: Name
58282
+ * * Display Name: Internal Name
58283
+ * * SQL Data Type: nvarchar(255)
58284
+ * * Description: Internal/programmatic name of the external object (e.g., Members, Events)
58285
+ */
58286
+ get Name() {
58287
+ return this.Get('Name');
58288
+ }
58289
+ set Name(value) {
58290
+ this.Set('Name', value);
58291
+ }
58292
+ /**
58293
+ * * Field Name: DisplayName
58294
+ * * Display Name: Display Name
58295
+ * * SQL Data Type: nvarchar(255)
58296
+ * * Description: Human-friendly display label
58297
+ */
58298
+ get DisplayName() {
58299
+ return this.Get('DisplayName');
58300
+ }
58301
+ set DisplayName(value) {
58302
+ this.Set('DisplayName', value);
58303
+ }
58304
+ /**
58305
+ * * Field Name: Description
58306
+ * * Display Name: Description
58307
+ * * SQL Data Type: nvarchar(MAX)
58308
+ * * Description: Description of what this external object represents
58309
+ */
58310
+ get Description() {
58311
+ return this.Get('Description');
58312
+ }
58313
+ set Description(value) {
58314
+ this.Set('Description', value);
58315
+ }
58316
+ /**
58317
+ * * Field Name: Category
58318
+ * * Display Name: Category
58319
+ * * SQL Data Type: nvarchar(100)
58320
+ * * Description: UI grouping category (e.g., Membership, Events, Finance)
58321
+ */
58322
+ get Category() {
58323
+ return this.Get('Category');
58324
+ }
58325
+ set Category(value) {
58326
+ this.Set('Category', value);
58327
+ }
58328
+ /**
58329
+ * * Field Name: APIPath
58330
+ * * Display Name: API Path
58331
+ * * SQL Data Type: nvarchar(500)
58332
+ * * Description: API endpoint path, may include template variables like {ProfileID} that are resolved at runtime from parent object records
58333
+ */
58334
+ get APIPath() {
58335
+ return this.Get('APIPath');
58336
+ }
58337
+ set APIPath(value) {
58338
+ this.Set('APIPath', value);
58339
+ }
58340
+ /**
58341
+ * * Field Name: ResponseDataKey
58342
+ * * Display Name: Response Data Key
58343
+ * * SQL Data Type: nvarchar(255)
58344
+ * * Description: JSON key used to extract the data array from the API response envelope. NULL means the response is a root-level array.
58345
+ */
58346
+ get ResponseDataKey() {
58347
+ return this.Get('ResponseDataKey');
58348
+ }
58349
+ set ResponseDataKey(value) {
58350
+ this.Set('ResponseDataKey', value);
58351
+ }
58352
+ /**
58353
+ * * Field Name: DefaultPageSize
58354
+ * * Display Name: Default Page Size
58355
+ * * SQL Data Type: int
58356
+ * * Default Value: 100
58357
+ * * Description: Number of records to request per page from the API
58358
+ */
58359
+ get DefaultPageSize() {
58360
+ return this.Get('DefaultPageSize');
58361
+ }
58362
+ set DefaultPageSize(value) {
58363
+ this.Set('DefaultPageSize', value);
58364
+ }
58365
+ /**
58366
+ * * Field Name: SupportsPagination
58367
+ * * Display Name: Supports Pagination
58368
+ * * SQL Data Type: bit
58369
+ * * Default Value: 1
58370
+ * * Description: Whether this endpoint supports paginated fetching
58371
+ */
58372
+ get SupportsPagination() {
58373
+ return this.Get('SupportsPagination');
58374
+ }
58375
+ set SupportsPagination(value) {
58376
+ this.Set('SupportsPagination', value);
58377
+ }
58378
+ /**
58379
+ * * Field Name: PaginationType
58380
+ * * Display Name: Pagination Type
58381
+ * * SQL Data Type: nvarchar(20)
58382
+ * * Default Value: PageNumber
58383
+ * * Value List Type: List
58384
+ * * Possible Values
58385
+ * * Cursor
58386
+ * * None
58387
+ * * Offset
58388
+ * * PageNumber
58389
+ * * Description: Pagination strategy: PageNumber (page index), Offset (record offset), Cursor (opaque token), or None
58390
+ */
58391
+ get PaginationType() {
58392
+ return this.Get('PaginationType');
58393
+ }
58394
+ set PaginationType(value) {
58395
+ this.Set('PaginationType', value);
58396
+ }
58397
+ /**
58398
+ * * Field Name: SupportsIncrementalSync
58399
+ * * Display Name: Supports Incremental Sync
58400
+ * * SQL Data Type: bit
58401
+ * * Default Value: 0
58402
+ * * Description: Whether this object supports watermark-based incremental sync
58403
+ */
58404
+ get SupportsIncrementalSync() {
58405
+ return this.Get('SupportsIncrementalSync');
58406
+ }
58407
+ set SupportsIncrementalSync(value) {
58408
+ this.Set('SupportsIncrementalSync', value);
58409
+ }
58410
+ /**
58411
+ * * Field Name: SupportsWrite
58412
+ * * Display Name: Supports Write
58413
+ * * SQL Data Type: bit
58414
+ * * Default Value: 0
58415
+ * * Description: Whether data can be pushed back to this object via the API
58416
+ */
58417
+ get SupportsWrite() {
58418
+ return this.Get('SupportsWrite');
58419
+ }
58420
+ set SupportsWrite(value) {
58421
+ this.Set('SupportsWrite', value);
58422
+ }
58423
+ /**
58424
+ * * Field Name: DefaultQueryParams
58425
+ * * Display Name: Default Query Parameters
58426
+ * * SQL Data Type: nvarchar(MAX)
58427
+ * * Description: JSON object of default query parameters to include with every API request for this object
58428
+ */
58429
+ get DefaultQueryParams() {
58430
+ return this.Get('DefaultQueryParams');
58431
+ }
58432
+ set DefaultQueryParams(value) {
58433
+ this.Set('DefaultQueryParams', value);
58434
+ }
58435
+ /**
58436
+ * * Field Name: Configuration
58437
+ * * Display Name: Configuration
58438
+ * * SQL Data Type: nvarchar(MAX)
58439
+ * * Description: Freeform JSON for connector-specific configuration not covered by standard columns
58440
+ */
58441
+ get Configuration() {
58442
+ return this.Get('Configuration');
58443
+ }
58444
+ set Configuration(value) {
58445
+ this.Set('Configuration', value);
58446
+ }
58447
+ /**
58448
+ * * Field Name: Sequence
58449
+ * * Display Name: Sequence
58450
+ * * SQL Data Type: int
58451
+ * * Default Value: 0
58452
+ * * Description: Processing and display order. Lower numbers are processed first.
58453
+ */
58454
+ get Sequence() {
58455
+ return this.Get('Sequence');
58456
+ }
58457
+ set Sequence(value) {
58458
+ this.Set('Sequence', value);
58459
+ }
58460
+ /**
58461
+ * * Field Name: Status
58462
+ * * Display Name: Status
58463
+ * * SQL Data Type: nvarchar(25)
58464
+ * * Default Value: Active
58465
+ * * Value List Type: List
58466
+ * * Possible Values
58467
+ * * Active
58468
+ * * Deprecated
58469
+ * * Disabled
58470
+ * * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.
58471
+ */
58472
+ get Status() {
58473
+ return this.Get('Status');
58474
+ }
58475
+ set Status(value) {
58476
+ this.Set('Status', value);
58477
+ }
58478
+ /**
58479
+ * * Field Name: __mj_CreatedAt
58480
+ * * Display Name: Created At
58481
+ * * SQL Data Type: datetimeoffset
58482
+ * * Default Value: getutcdate()
58483
+ */
58484
+ get __mj_CreatedAt() {
58485
+ return this.Get('__mj_CreatedAt');
58486
+ }
58487
+ /**
58488
+ * * Field Name: __mj_UpdatedAt
58489
+ * * Display Name: Updated At
58490
+ * * SQL Data Type: datetimeoffset
58491
+ * * Default Value: getutcdate()
58492
+ */
58493
+ get __mj_UpdatedAt() {
58494
+ return this.Get('__mj_UpdatedAt');
58495
+ }
58496
+ /**
58497
+ * * Field Name: Integration
58498
+ * * Display Name: Integration Name
58499
+ * * SQL Data Type: nvarchar(100)
58500
+ */
58501
+ get Integration() {
58502
+ return this.Get('Integration');
58503
+ }
58504
+ };
58505
+ MJIntegrationObjectEntity = __decorate([
58506
+ RegisterClass(BaseEntity, 'MJ: Integration Objects')
58507
+ ], MJIntegrationObjectEntity);
58508
+ export { MJIntegrationObjectEntity };
57424
58509
  /**
57425
58510
  * MJ: Integration Source Types - strongly typed entity sub-class
57426
58511
  * * Schema: __mj