@memberjunction/core-entities 5.8.0 → 5.9.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.
- package/dist/generated/entity_subclasses.d.ts +712 -8
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +1078 -8
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -8218,7 +8218,7 @@ export const MJCompanyIntegrationSchema = z.object({
|
|
|
8218
8218
|
* * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)`),
|
|
8219
8219
|
IsActive: z.boolean().nullable().describe(`
|
|
8220
8220
|
* * Field Name: IsActive
|
|
8221
|
-
* * Display Name: Active
|
|
8221
|
+
* * Display Name: Is Active
|
|
8222
8222
|
* * SQL Data Type: bit
|
|
8223
8223
|
* * Description: Controls whether this integration is currently active for the company.`),
|
|
8224
8224
|
AccessToken: z.string().nullable().describe(`
|
|
@@ -8299,13 +8299,71 @@ export const MJCompanyIntegrationSchema = z.object({
|
|
|
8299
8299
|
* * SQL Data Type: uniqueidentifier
|
|
8300
8300
|
* * Related Entity/Foreign Key: MJ: Credentials (vwCredentials.ID)
|
|
8301
8301
|
* * 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.).`),
|
|
8302
|
+
ScheduleEnabled: z.boolean().describe(`
|
|
8303
|
+
* * Field Name: ScheduleEnabled
|
|
8304
|
+
* * Display Name: Schedule Enabled
|
|
8305
|
+
* * SQL Data Type: bit
|
|
8306
|
+
* * Default Value: 0
|
|
8307
|
+
* * Description: Whether automatic sync scheduling is enabled for this integration`),
|
|
8308
|
+
ScheduleType: z.union([z.literal('Cron'), z.literal('Interval'), z.literal('Manual')]).describe(`
|
|
8309
|
+
* * Field Name: ScheduleType
|
|
8310
|
+
* * Display Name: Schedule Type
|
|
8311
|
+
* * SQL Data Type: nvarchar(20)
|
|
8312
|
+
* * Default Value: Manual
|
|
8313
|
+
* * Value List Type: List
|
|
8314
|
+
* * Possible Values
|
|
8315
|
+
* * Cron
|
|
8316
|
+
* * Interval
|
|
8317
|
+
* * Manual
|
|
8318
|
+
* * Description: Type of schedule: Manual (no auto-sync), Interval (every N minutes), Cron (cron expression)`),
|
|
8319
|
+
ScheduleIntervalMinutes: z.number().nullable().describe(`
|
|
8320
|
+
* * Field Name: ScheduleIntervalMinutes
|
|
8321
|
+
* * Display Name: Schedule Interval (Minutes)
|
|
8322
|
+
* * SQL Data Type: int
|
|
8323
|
+
* * Description: Interval in minutes for Interval schedule type`),
|
|
8324
|
+
CronExpression: z.string().nullable().describe(`
|
|
8325
|
+
* * Field Name: CronExpression
|
|
8326
|
+
* * Display Name: Cron Expression
|
|
8327
|
+
* * SQL Data Type: nvarchar(200)
|
|
8328
|
+
* * Description: Cron expression for Cron schedule type (e.g., "0 *\/6 * * *" for every 6 hours)`),
|
|
8329
|
+
NextScheduledRunAt: z.date().nullable().describe(`
|
|
8330
|
+
* * Field Name: NextScheduledRunAt
|
|
8331
|
+
* * Display Name: Next Scheduled Run
|
|
8332
|
+
* * SQL Data Type: datetimeoffset
|
|
8333
|
+
* * Description: When the next scheduled sync should run. Updated after each run based on schedule config.`),
|
|
8334
|
+
LastScheduledRunAt: z.date().nullable().describe(`
|
|
8335
|
+
* * Field Name: LastScheduledRunAt
|
|
8336
|
+
* * Display Name: Last Scheduled Run
|
|
8337
|
+
* * SQL Data Type: datetimeoffset
|
|
8338
|
+
* * Description: When the last scheduled sync was initiated`),
|
|
8339
|
+
IsLocked: z.boolean().describe(`
|
|
8340
|
+
* * Field Name: IsLocked
|
|
8341
|
+
* * Display Name: Is Locked
|
|
8342
|
+
* * SQL Data Type: bit
|
|
8343
|
+
* * Default Value: 0
|
|
8344
|
+
* * Description: Whether a sync is currently locked/running for this integration`),
|
|
8345
|
+
LockedAt: z.date().nullable().describe(`
|
|
8346
|
+
* * Field Name: LockedAt
|
|
8347
|
+
* * Display Name: Locked At
|
|
8348
|
+
* * SQL Data Type: datetimeoffset
|
|
8349
|
+
* * Description: When the lock was acquired`),
|
|
8350
|
+
LockedByInstance: z.string().nullable().describe(`
|
|
8351
|
+
* * Field Name: LockedByInstance
|
|
8352
|
+
* * Display Name: Locked By Instance
|
|
8353
|
+
* * SQL Data Type: nvarchar(200)
|
|
8354
|
+
* * Description: Server instance identifier that holds the lock (hostname-pid)`),
|
|
8355
|
+
LockExpiresAt: z.date().nullable().describe(`
|
|
8356
|
+
* * Field Name: LockExpiresAt
|
|
8357
|
+
* * Display Name: Lock Expires At
|
|
8358
|
+
* * SQL Data Type: datetimeoffset
|
|
8359
|
+
* * Description: When the lock should be considered stale and eligible for cleanup`),
|
|
8302
8360
|
Company: z.string().describe(`
|
|
8303
8361
|
* * Field Name: Company
|
|
8304
|
-
* * Display Name: Company
|
|
8362
|
+
* * Display Name: Company
|
|
8305
8363
|
* * SQL Data Type: nvarchar(50)`),
|
|
8306
8364
|
Integration: z.string().describe(`
|
|
8307
8365
|
* * Field Name: Integration
|
|
8308
|
-
* * Display Name: Integration
|
|
8366
|
+
* * Display Name: Integration
|
|
8309
8367
|
* * SQL Data Type: nvarchar(100)`),
|
|
8310
8368
|
DriverClassName: z.string().nullable().describe(`
|
|
8311
8369
|
* * Field Name: DriverClassName
|
|
@@ -8317,7 +8375,7 @@ export const MJCompanyIntegrationSchema = z.object({
|
|
|
8317
8375
|
* * SQL Data Type: nvarchar(100)`),
|
|
8318
8376
|
LastRunID: z.string().nullable().describe(`
|
|
8319
8377
|
* * Field Name: LastRunID
|
|
8320
|
-
* * Display Name: Last Run
|
|
8378
|
+
* * Display Name: Last Run ID
|
|
8321
8379
|
* * SQL Data Type: uniqueidentifier`),
|
|
8322
8380
|
LastRunStartedAt: z.date().nullable().describe(`
|
|
8323
8381
|
* * Field Name: LastRunStartedAt
|
|
@@ -14084,6 +14142,273 @@ export const MJGeneratedCodeSchema = z.object({
|
|
|
14084
14142
|
* * Display Name: Linked Entity
|
|
14085
14143
|
* * SQL Data Type: nvarchar(255)`),
|
|
14086
14144
|
});
|
|
14145
|
+
/**
|
|
14146
|
+
* zod schema definition for the entity MJ: Integration Object Fields
|
|
14147
|
+
*/
|
|
14148
|
+
export const MJIntegrationObjectFieldSchema = z.object({
|
|
14149
|
+
ID: z.string().describe(`
|
|
14150
|
+
* * Field Name: ID
|
|
14151
|
+
* * Display Name: ID
|
|
14152
|
+
* * SQL Data Type: uniqueidentifier
|
|
14153
|
+
* * Default Value: newsequentialid()
|
|
14154
|
+
* * Description: Primary key`),
|
|
14155
|
+
IntegrationObjectID: z.string().describe(`
|
|
14156
|
+
* * Field Name: IntegrationObjectID
|
|
14157
|
+
* * Display Name: Integration Object
|
|
14158
|
+
* * SQL Data Type: uniqueidentifier
|
|
14159
|
+
* * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
|
|
14160
|
+
* * Description: Foreign key to the IntegrationObject this field belongs to`),
|
|
14161
|
+
Name: z.string().describe(`
|
|
14162
|
+
* * Field Name: Name
|
|
14163
|
+
* * Display Name: Name
|
|
14164
|
+
* * SQL Data Type: nvarchar(255)
|
|
14165
|
+
* * Description: Field name as returned by the external API`),
|
|
14166
|
+
DisplayName: z.string().nullable().describe(`
|
|
14167
|
+
* * Field Name: DisplayName
|
|
14168
|
+
* * Display Name: Display Name
|
|
14169
|
+
* * SQL Data Type: nvarchar(255)
|
|
14170
|
+
* * Description: Human-friendly display label for the field`),
|
|
14171
|
+
Description: z.string().nullable().describe(`
|
|
14172
|
+
* * Field Name: Description
|
|
14173
|
+
* * Display Name: Description
|
|
14174
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
14175
|
+
* * Description: Description of what this field represents`),
|
|
14176
|
+
Category: z.string().nullable().describe(`
|
|
14177
|
+
* * Field Name: Category
|
|
14178
|
+
* * Display Name: Category
|
|
14179
|
+
* * SQL Data Type: nvarchar(100)
|
|
14180
|
+
* * Description: UI grouping category within the object`),
|
|
14181
|
+
Type: z.string().describe(`
|
|
14182
|
+
* * Field Name: Type
|
|
14183
|
+
* * Display Name: Type
|
|
14184
|
+
* * SQL Data Type: nvarchar(100)
|
|
14185
|
+
* * Description: Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField.`),
|
|
14186
|
+
Length: z.number().nullable().describe(`
|
|
14187
|
+
* * Field Name: Length
|
|
14188
|
+
* * Display Name: Length
|
|
14189
|
+
* * SQL Data Type: int
|
|
14190
|
+
* * Description: Maximum length for string types`),
|
|
14191
|
+
Precision: z.number().nullable().describe(`
|
|
14192
|
+
* * Field Name: Precision
|
|
14193
|
+
* * Display Name: Precision
|
|
14194
|
+
* * SQL Data Type: int
|
|
14195
|
+
* * Description: Numeric precision`),
|
|
14196
|
+
Scale: z.number().nullable().describe(`
|
|
14197
|
+
* * Field Name: Scale
|
|
14198
|
+
* * Display Name: Scale
|
|
14199
|
+
* * SQL Data Type: int
|
|
14200
|
+
* * Description: Numeric scale`),
|
|
14201
|
+
AllowsNull: z.boolean().describe(`
|
|
14202
|
+
* * Field Name: AllowsNull
|
|
14203
|
+
* * Display Name: Allows Null
|
|
14204
|
+
* * SQL Data Type: bit
|
|
14205
|
+
* * Default Value: 1
|
|
14206
|
+
* * Description: Whether the field can contain NULL values`),
|
|
14207
|
+
DefaultValue: z.string().nullable().describe(`
|
|
14208
|
+
* * Field Name: DefaultValue
|
|
14209
|
+
* * Display Name: Default Value
|
|
14210
|
+
* * SQL Data Type: nvarchar(255)
|
|
14211
|
+
* * Description: Default value from the source system`),
|
|
14212
|
+
IsPrimaryKey: z.boolean().describe(`
|
|
14213
|
+
* * Field Name: IsPrimaryKey
|
|
14214
|
+
* * Display Name: Primary Key
|
|
14215
|
+
* * SQL Data Type: bit
|
|
14216
|
+
* * Default Value: 0
|
|
14217
|
+
* * Description: Whether this field is part of the object primary key`),
|
|
14218
|
+
IsUniqueKey: z.boolean().describe(`
|
|
14219
|
+
* * Field Name: IsUniqueKey
|
|
14220
|
+
* * Display Name: Unique Key
|
|
14221
|
+
* * SQL Data Type: bit
|
|
14222
|
+
* * Default Value: 0
|
|
14223
|
+
* * Description: Whether values must be unique across all records`),
|
|
14224
|
+
IsReadOnly: z.boolean().describe(`
|
|
14225
|
+
* * Field Name: IsReadOnly
|
|
14226
|
+
* * Display Name: Read Only
|
|
14227
|
+
* * SQL Data Type: bit
|
|
14228
|
+
* * Default Value: 0
|
|
14229
|
+
* * Description: Whether this field cannot be written back to the source system`),
|
|
14230
|
+
IsRequired: z.boolean().describe(`
|
|
14231
|
+
* * Field Name: IsRequired
|
|
14232
|
+
* * Display Name: Required
|
|
14233
|
+
* * SQL Data Type: bit
|
|
14234
|
+
* * Default Value: 0
|
|
14235
|
+
* * Description: Whether this field is required for create/update operations`),
|
|
14236
|
+
RelatedIntegrationObjectID: z.string().nullable().describe(`
|
|
14237
|
+
* * Field Name: RelatedIntegrationObjectID
|
|
14238
|
+
* * Display Name: Related Integration Object
|
|
14239
|
+
* * SQL Data Type: uniqueidentifier
|
|
14240
|
+
* * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
|
|
14241
|
+
* * Description: Foreign key to another IntegrationObject, establishing a relationship. Used for DAG-based dependency ordering and template variable resolution in parent APIPath patterns.`),
|
|
14242
|
+
RelatedIntegrationObjectFieldName: z.string().nullable().describe(`
|
|
14243
|
+
* * Field Name: RelatedIntegrationObjectFieldName
|
|
14244
|
+
* * Display Name: Related Field Name
|
|
14245
|
+
* * SQL Data Type: nvarchar(255)
|
|
14246
|
+
* * Description: The field name on the related IntegrationObject that this FK points to (typically the PK field)`),
|
|
14247
|
+
Sequence: z.number().describe(`
|
|
14248
|
+
* * Field Name: Sequence
|
|
14249
|
+
* * Display Name: Sequence
|
|
14250
|
+
* * SQL Data Type: int
|
|
14251
|
+
* * Default Value: 0
|
|
14252
|
+
* * Description: Display and processing order within the object. Lower numbers appear first.`),
|
|
14253
|
+
Configuration: z.string().nullable().describe(`
|
|
14254
|
+
* * Field Name: Configuration
|
|
14255
|
+
* * Display Name: Configuration
|
|
14256
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
14257
|
+
* * Description: Freeform JSON for connector-specific field configuration`),
|
|
14258
|
+
Status: z.union([z.literal('Active'), z.literal('Deprecated'), z.literal('Disabled')]).describe(`
|
|
14259
|
+
* * Field Name: Status
|
|
14260
|
+
* * Display Name: Status
|
|
14261
|
+
* * SQL Data Type: nvarchar(25)
|
|
14262
|
+
* * Default Value: Active
|
|
14263
|
+
* * Value List Type: List
|
|
14264
|
+
* * Possible Values
|
|
14265
|
+
* * Active
|
|
14266
|
+
* * Deprecated
|
|
14267
|
+
* * Disabled
|
|
14268
|
+
* * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.`),
|
|
14269
|
+
__mj_CreatedAt: z.date().describe(`
|
|
14270
|
+
* * Field Name: __mj_CreatedAt
|
|
14271
|
+
* * Display Name: Created At
|
|
14272
|
+
* * SQL Data Type: datetimeoffset
|
|
14273
|
+
* * Default Value: getutcdate()`),
|
|
14274
|
+
__mj_UpdatedAt: z.date().describe(`
|
|
14275
|
+
* * Field Name: __mj_UpdatedAt
|
|
14276
|
+
* * Display Name: Updated At
|
|
14277
|
+
* * SQL Data Type: datetimeoffset
|
|
14278
|
+
* * Default Value: getutcdate()`),
|
|
14279
|
+
IntegrationObject: z.string().describe(`
|
|
14280
|
+
* * Field Name: IntegrationObject
|
|
14281
|
+
* * Display Name: Integration Object Name
|
|
14282
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
14283
|
+
RelatedIntegrationObject: z.string().nullable().describe(`
|
|
14284
|
+
* * Field Name: RelatedIntegrationObject
|
|
14285
|
+
* * Display Name: Related Object Name
|
|
14286
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
14287
|
+
});
|
|
14288
|
+
/**
|
|
14289
|
+
* zod schema definition for the entity MJ: Integration Objects
|
|
14290
|
+
*/
|
|
14291
|
+
export const MJIntegrationObjectSchema = z.object({
|
|
14292
|
+
ID: z.string().describe(`
|
|
14293
|
+
* * Field Name: ID
|
|
14294
|
+
* * Display Name: ID
|
|
14295
|
+
* * SQL Data Type: uniqueidentifier
|
|
14296
|
+
* * Default Value: newsequentialid()
|
|
14297
|
+
* * Description: Primary key`),
|
|
14298
|
+
IntegrationID: z.string().describe(`
|
|
14299
|
+
* * Field Name: IntegrationID
|
|
14300
|
+
* * Display Name: Integration
|
|
14301
|
+
* * SQL Data Type: uniqueidentifier
|
|
14302
|
+
* * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)
|
|
14303
|
+
* * Description: Foreign key to the Integration that owns this object`),
|
|
14304
|
+
Name: z.string().describe(`
|
|
14305
|
+
* * Field Name: Name
|
|
14306
|
+
* * Display Name: Internal Name
|
|
14307
|
+
* * SQL Data Type: nvarchar(255)
|
|
14308
|
+
* * Description: Internal/programmatic name of the external object (e.g., Members, Events)`),
|
|
14309
|
+
DisplayName: z.string().nullable().describe(`
|
|
14310
|
+
* * Field Name: DisplayName
|
|
14311
|
+
* * Display Name: Display Name
|
|
14312
|
+
* * SQL Data Type: nvarchar(255)
|
|
14313
|
+
* * Description: Human-friendly display label`),
|
|
14314
|
+
Description: z.string().nullable().describe(`
|
|
14315
|
+
* * Field Name: Description
|
|
14316
|
+
* * Display Name: Description
|
|
14317
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
14318
|
+
* * Description: Description of what this external object represents`),
|
|
14319
|
+
Category: z.string().nullable().describe(`
|
|
14320
|
+
* * Field Name: Category
|
|
14321
|
+
* * Display Name: Category
|
|
14322
|
+
* * SQL Data Type: nvarchar(100)
|
|
14323
|
+
* * Description: UI grouping category (e.g., Membership, Events, Finance)`),
|
|
14324
|
+
APIPath: z.string().describe(`
|
|
14325
|
+
* * Field Name: APIPath
|
|
14326
|
+
* * Display Name: API Path
|
|
14327
|
+
* * SQL Data Type: nvarchar(500)
|
|
14328
|
+
* * Description: API endpoint path, may include template variables like {ProfileID} that are resolved at runtime from parent object records`),
|
|
14329
|
+
ResponseDataKey: z.string().nullable().describe(`
|
|
14330
|
+
* * Field Name: ResponseDataKey
|
|
14331
|
+
* * Display Name: Response Data Key
|
|
14332
|
+
* * SQL Data Type: nvarchar(255)
|
|
14333
|
+
* * Description: JSON key used to extract the data array from the API response envelope. NULL means the response is a root-level array.`),
|
|
14334
|
+
DefaultPageSize: z.number().describe(`
|
|
14335
|
+
* * Field Name: DefaultPageSize
|
|
14336
|
+
* * Display Name: Default Page Size
|
|
14337
|
+
* * SQL Data Type: int
|
|
14338
|
+
* * Default Value: 100
|
|
14339
|
+
* * Description: Number of records to request per page from the API`),
|
|
14340
|
+
SupportsPagination: z.boolean().describe(`
|
|
14341
|
+
* * Field Name: SupportsPagination
|
|
14342
|
+
* * Display Name: Supports Pagination
|
|
14343
|
+
* * SQL Data Type: bit
|
|
14344
|
+
* * Default Value: 1
|
|
14345
|
+
* * Description: Whether this endpoint supports paginated fetching`),
|
|
14346
|
+
PaginationType: z.union([z.literal('Cursor'), z.literal('None'), z.literal('Offset'), z.literal('PageNumber')]).describe(`
|
|
14347
|
+
* * Field Name: PaginationType
|
|
14348
|
+
* * Display Name: Pagination Type
|
|
14349
|
+
* * SQL Data Type: nvarchar(20)
|
|
14350
|
+
* * Default Value: PageNumber
|
|
14351
|
+
* * Value List Type: List
|
|
14352
|
+
* * Possible Values
|
|
14353
|
+
* * Cursor
|
|
14354
|
+
* * None
|
|
14355
|
+
* * Offset
|
|
14356
|
+
* * PageNumber
|
|
14357
|
+
* * Description: Pagination strategy: PageNumber (page index), Offset (record offset), Cursor (opaque token), or None`),
|
|
14358
|
+
SupportsIncrementalSync: z.boolean().describe(`
|
|
14359
|
+
* * Field Name: SupportsIncrementalSync
|
|
14360
|
+
* * Display Name: Supports Incremental Sync
|
|
14361
|
+
* * SQL Data Type: bit
|
|
14362
|
+
* * Default Value: 0
|
|
14363
|
+
* * Description: Whether this object supports watermark-based incremental sync`),
|
|
14364
|
+
SupportsWrite: z.boolean().describe(`
|
|
14365
|
+
* * Field Name: SupportsWrite
|
|
14366
|
+
* * Display Name: Supports Write
|
|
14367
|
+
* * SQL Data Type: bit
|
|
14368
|
+
* * Default Value: 0
|
|
14369
|
+
* * Description: Whether data can be pushed back to this object via the API`),
|
|
14370
|
+
DefaultQueryParams: z.string().nullable().describe(`
|
|
14371
|
+
* * Field Name: DefaultQueryParams
|
|
14372
|
+
* * Display Name: Default Query Parameters
|
|
14373
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
14374
|
+
* * Description: JSON object of default query parameters to include with every API request for this object`),
|
|
14375
|
+
Configuration: z.string().nullable().describe(`
|
|
14376
|
+
* * Field Name: Configuration
|
|
14377
|
+
* * Display Name: Configuration
|
|
14378
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
14379
|
+
* * Description: Freeform JSON for connector-specific configuration not covered by standard columns`),
|
|
14380
|
+
Sequence: z.number().describe(`
|
|
14381
|
+
* * Field Name: Sequence
|
|
14382
|
+
* * Display Name: Sequence
|
|
14383
|
+
* * SQL Data Type: int
|
|
14384
|
+
* * Default Value: 0
|
|
14385
|
+
* * Description: Processing and display order. Lower numbers are processed first.`),
|
|
14386
|
+
Status: z.union([z.literal('Active'), z.literal('Deprecated'), z.literal('Disabled')]).describe(`
|
|
14387
|
+
* * Field Name: Status
|
|
14388
|
+
* * Display Name: Status
|
|
14389
|
+
* * SQL Data Type: nvarchar(25)
|
|
14390
|
+
* * Default Value: Active
|
|
14391
|
+
* * Value List Type: List
|
|
14392
|
+
* * Possible Values
|
|
14393
|
+
* * Active
|
|
14394
|
+
* * Deprecated
|
|
14395
|
+
* * Disabled
|
|
14396
|
+
* * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.`),
|
|
14397
|
+
__mj_CreatedAt: z.date().describe(`
|
|
14398
|
+
* * Field Name: __mj_CreatedAt
|
|
14399
|
+
* * Display Name: Created At
|
|
14400
|
+
* * SQL Data Type: datetimeoffset
|
|
14401
|
+
* * Default Value: getutcdate()`),
|
|
14402
|
+
__mj_UpdatedAt: z.date().describe(`
|
|
14403
|
+
* * Field Name: __mj_UpdatedAt
|
|
14404
|
+
* * Display Name: Updated At
|
|
14405
|
+
* * SQL Data Type: datetimeoffset
|
|
14406
|
+
* * Default Value: getutcdate()`),
|
|
14407
|
+
Integration: z.string().describe(`
|
|
14408
|
+
* * Field Name: Integration
|
|
14409
|
+
* * Display Name: Integration Name
|
|
14410
|
+
* * SQL Data Type: nvarchar(100)`),
|
|
14411
|
+
});
|
|
14087
14412
|
/**
|
|
14088
14413
|
* zod schema definition for the entity MJ: Integration Source Types
|
|
14089
14414
|
*/
|
|
@@ -42766,7 +43091,7 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
|
|
|
42766
43091
|
}
|
|
42767
43092
|
/**
|
|
42768
43093
|
* * Field Name: IsActive
|
|
42769
|
-
* * Display Name: Active
|
|
43094
|
+
* * Display Name: Is Active
|
|
42770
43095
|
* * SQL Data Type: bit
|
|
42771
43096
|
* * Description: Controls whether this integration is currently active for the company.
|
|
42772
43097
|
*/
|
|
@@ -42954,8 +43279,136 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
|
|
|
42954
43279
|
this.Set('CredentialID', value);
|
|
42955
43280
|
}
|
|
42956
43281
|
/**
|
|
43282
|
+
* * Field Name: ScheduleEnabled
|
|
43283
|
+
* * Display Name: Schedule Enabled
|
|
43284
|
+
* * SQL Data Type: bit
|
|
43285
|
+
* * Default Value: 0
|
|
43286
|
+
* * Description: Whether automatic sync scheduling is enabled for this integration
|
|
43287
|
+
*/
|
|
43288
|
+
get ScheduleEnabled() {
|
|
43289
|
+
return this.Get('ScheduleEnabled');
|
|
43290
|
+
}
|
|
43291
|
+
set ScheduleEnabled(value) {
|
|
43292
|
+
this.Set('ScheduleEnabled', value);
|
|
43293
|
+
}
|
|
43294
|
+
/**
|
|
43295
|
+
* * Field Name: ScheduleType
|
|
43296
|
+
* * Display Name: Schedule Type
|
|
43297
|
+
* * SQL Data Type: nvarchar(20)
|
|
43298
|
+
* * Default Value: Manual
|
|
43299
|
+
* * Value List Type: List
|
|
43300
|
+
* * Possible Values
|
|
43301
|
+
* * Cron
|
|
43302
|
+
* * Interval
|
|
43303
|
+
* * Manual
|
|
43304
|
+
* * Description: Type of schedule: Manual (no auto-sync), Interval (every N minutes), Cron (cron expression)
|
|
43305
|
+
*/
|
|
43306
|
+
get ScheduleType() {
|
|
43307
|
+
return this.Get('ScheduleType');
|
|
43308
|
+
}
|
|
43309
|
+
set ScheduleType(value) {
|
|
43310
|
+
this.Set('ScheduleType', value);
|
|
43311
|
+
}
|
|
43312
|
+
/**
|
|
43313
|
+
* * Field Name: ScheduleIntervalMinutes
|
|
43314
|
+
* * Display Name: Schedule Interval (Minutes)
|
|
43315
|
+
* * SQL Data Type: int
|
|
43316
|
+
* * Description: Interval in minutes for Interval schedule type
|
|
43317
|
+
*/
|
|
43318
|
+
get ScheduleIntervalMinutes() {
|
|
43319
|
+
return this.Get('ScheduleIntervalMinutes');
|
|
43320
|
+
}
|
|
43321
|
+
set ScheduleIntervalMinutes(value) {
|
|
43322
|
+
this.Set('ScheduleIntervalMinutes', value);
|
|
43323
|
+
}
|
|
43324
|
+
/**
|
|
43325
|
+
* * Field Name: CronExpression
|
|
43326
|
+
* * Display Name: Cron Expression
|
|
43327
|
+
* * SQL Data Type: nvarchar(200)
|
|
43328
|
+
* * Description: Cron expression for Cron schedule type (e.g., "0 *\/6 * * *" for every 6 hours)
|
|
43329
|
+
*/
|
|
43330
|
+
get CronExpression() {
|
|
43331
|
+
return this.Get('CronExpression');
|
|
43332
|
+
}
|
|
43333
|
+
set CronExpression(value) {
|
|
43334
|
+
this.Set('CronExpression', value);
|
|
43335
|
+
}
|
|
43336
|
+
/**
|
|
43337
|
+
* * Field Name: NextScheduledRunAt
|
|
43338
|
+
* * Display Name: Next Scheduled Run
|
|
43339
|
+
* * SQL Data Type: datetimeoffset
|
|
43340
|
+
* * Description: When the next scheduled sync should run. Updated after each run based on schedule config.
|
|
43341
|
+
*/
|
|
43342
|
+
get NextScheduledRunAt() {
|
|
43343
|
+
return this.Get('NextScheduledRunAt');
|
|
43344
|
+
}
|
|
43345
|
+
set NextScheduledRunAt(value) {
|
|
43346
|
+
this.Set('NextScheduledRunAt', value);
|
|
43347
|
+
}
|
|
43348
|
+
/**
|
|
43349
|
+
* * Field Name: LastScheduledRunAt
|
|
43350
|
+
* * Display Name: Last Scheduled Run
|
|
43351
|
+
* * SQL Data Type: datetimeoffset
|
|
43352
|
+
* * Description: When the last scheduled sync was initiated
|
|
43353
|
+
*/
|
|
43354
|
+
get LastScheduledRunAt() {
|
|
43355
|
+
return this.Get('LastScheduledRunAt');
|
|
43356
|
+
}
|
|
43357
|
+
set LastScheduledRunAt(value) {
|
|
43358
|
+
this.Set('LastScheduledRunAt', value);
|
|
43359
|
+
}
|
|
43360
|
+
/**
|
|
43361
|
+
* * Field Name: IsLocked
|
|
43362
|
+
* * Display Name: Is Locked
|
|
43363
|
+
* * SQL Data Type: bit
|
|
43364
|
+
* * Default Value: 0
|
|
43365
|
+
* * Description: Whether a sync is currently locked/running for this integration
|
|
43366
|
+
*/
|
|
43367
|
+
get IsLocked() {
|
|
43368
|
+
return this.Get('IsLocked');
|
|
43369
|
+
}
|
|
43370
|
+
set IsLocked(value) {
|
|
43371
|
+
this.Set('IsLocked', value);
|
|
43372
|
+
}
|
|
43373
|
+
/**
|
|
43374
|
+
* * Field Name: LockedAt
|
|
43375
|
+
* * Display Name: Locked At
|
|
43376
|
+
* * SQL Data Type: datetimeoffset
|
|
43377
|
+
* * Description: When the lock was acquired
|
|
43378
|
+
*/
|
|
43379
|
+
get LockedAt() {
|
|
43380
|
+
return this.Get('LockedAt');
|
|
43381
|
+
}
|
|
43382
|
+
set LockedAt(value) {
|
|
43383
|
+
this.Set('LockedAt', value);
|
|
43384
|
+
}
|
|
43385
|
+
/**
|
|
43386
|
+
* * Field Name: LockedByInstance
|
|
43387
|
+
* * Display Name: Locked By Instance
|
|
43388
|
+
* * SQL Data Type: nvarchar(200)
|
|
43389
|
+
* * Description: Server instance identifier that holds the lock (hostname-pid)
|
|
43390
|
+
*/
|
|
43391
|
+
get LockedByInstance() {
|
|
43392
|
+
return this.Get('LockedByInstance');
|
|
43393
|
+
}
|
|
43394
|
+
set LockedByInstance(value) {
|
|
43395
|
+
this.Set('LockedByInstance', value);
|
|
43396
|
+
}
|
|
43397
|
+
/**
|
|
43398
|
+
* * Field Name: LockExpiresAt
|
|
43399
|
+
* * Display Name: Lock Expires At
|
|
43400
|
+
* * SQL Data Type: datetimeoffset
|
|
43401
|
+
* * Description: When the lock should be considered stale and eligible for cleanup
|
|
43402
|
+
*/
|
|
43403
|
+
get LockExpiresAt() {
|
|
43404
|
+
return this.Get('LockExpiresAt');
|
|
43405
|
+
}
|
|
43406
|
+
set LockExpiresAt(value) {
|
|
43407
|
+
this.Set('LockExpiresAt', value);
|
|
43408
|
+
}
|
|
43409
|
+
/**
|
|
42957
43410
|
* * Field Name: Company
|
|
42958
|
-
* * Display Name: Company
|
|
43411
|
+
* * Display Name: Company
|
|
42959
43412
|
* * SQL Data Type: nvarchar(50)
|
|
42960
43413
|
*/
|
|
42961
43414
|
get Company() {
|
|
@@ -42963,7 +43416,7 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
|
|
|
42963
43416
|
}
|
|
42964
43417
|
/**
|
|
42965
43418
|
* * Field Name: Integration
|
|
42966
|
-
* * Display Name: Integration
|
|
43419
|
+
* * Display Name: Integration
|
|
42967
43420
|
* * SQL Data Type: nvarchar(100)
|
|
42968
43421
|
*/
|
|
42969
43422
|
get Integration() {
|
|
@@ -42987,7 +43440,7 @@ let MJCompanyIntegrationEntity = class MJCompanyIntegrationEntity extends BaseEn
|
|
|
42987
43440
|
}
|
|
42988
43441
|
/**
|
|
42989
43442
|
* * Field Name: LastRunID
|
|
42990
|
-
* * Display Name: Last Run
|
|
43443
|
+
* * Display Name: Last Run ID
|
|
42991
43444
|
* * SQL Data Type: uniqueidentifier
|
|
42992
43445
|
*/
|
|
42993
43446
|
get LastRunID() {
|
|
@@ -57421,6 +57874,623 @@ MJGeneratedCodeEntity = __decorate([
|
|
|
57421
57874
|
RegisterClass(BaseEntity, 'MJ: Generated Codes')
|
|
57422
57875
|
], MJGeneratedCodeEntity);
|
|
57423
57876
|
export { MJGeneratedCodeEntity };
|
|
57877
|
+
/**
|
|
57878
|
+
* MJ: Integration Object Fields - strongly typed entity sub-class
|
|
57879
|
+
* * Schema: __mj
|
|
57880
|
+
* * Base Table: IntegrationObjectField
|
|
57881
|
+
* * Base View: vwIntegrationObjectFields
|
|
57882
|
+
* * @description Describes a field on an integration object, mirroring EntityField column patterns for type compatibility
|
|
57883
|
+
* * Primary Key: ID
|
|
57884
|
+
* @extends {BaseEntity}
|
|
57885
|
+
* @class
|
|
57886
|
+
* @public
|
|
57887
|
+
*/
|
|
57888
|
+
let MJIntegrationObjectFieldEntity = class MJIntegrationObjectFieldEntity extends BaseEntity {
|
|
57889
|
+
/**
|
|
57890
|
+
* Loads the MJ: Integration Object Fields record from the database
|
|
57891
|
+
* @param ID: string - primary key value to load the MJ: Integration Object Fields record.
|
|
57892
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
57893
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
57894
|
+
* @public
|
|
57895
|
+
* @async
|
|
57896
|
+
* @memberof MJIntegrationObjectFieldEntity
|
|
57897
|
+
* @method
|
|
57898
|
+
* @override
|
|
57899
|
+
*/
|
|
57900
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
57901
|
+
const compositeKey = new CompositeKey();
|
|
57902
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
57903
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
57904
|
+
}
|
|
57905
|
+
/**
|
|
57906
|
+
* * Field Name: ID
|
|
57907
|
+
* * Display Name: ID
|
|
57908
|
+
* * SQL Data Type: uniqueidentifier
|
|
57909
|
+
* * Default Value: newsequentialid()
|
|
57910
|
+
* * Description: Primary key
|
|
57911
|
+
*/
|
|
57912
|
+
get ID() {
|
|
57913
|
+
return this.Get('ID');
|
|
57914
|
+
}
|
|
57915
|
+
set ID(value) {
|
|
57916
|
+
this.Set('ID', value);
|
|
57917
|
+
}
|
|
57918
|
+
/**
|
|
57919
|
+
* * Field Name: IntegrationObjectID
|
|
57920
|
+
* * Display Name: Integration Object
|
|
57921
|
+
* * SQL Data Type: uniqueidentifier
|
|
57922
|
+
* * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
|
|
57923
|
+
* * Description: Foreign key to the IntegrationObject this field belongs to
|
|
57924
|
+
*/
|
|
57925
|
+
get IntegrationObjectID() {
|
|
57926
|
+
return this.Get('IntegrationObjectID');
|
|
57927
|
+
}
|
|
57928
|
+
set IntegrationObjectID(value) {
|
|
57929
|
+
this.Set('IntegrationObjectID', value);
|
|
57930
|
+
}
|
|
57931
|
+
/**
|
|
57932
|
+
* * Field Name: Name
|
|
57933
|
+
* * Display Name: Name
|
|
57934
|
+
* * SQL Data Type: nvarchar(255)
|
|
57935
|
+
* * Description: Field name as returned by the external API
|
|
57936
|
+
*/
|
|
57937
|
+
get Name() {
|
|
57938
|
+
return this.Get('Name');
|
|
57939
|
+
}
|
|
57940
|
+
set Name(value) {
|
|
57941
|
+
this.Set('Name', value);
|
|
57942
|
+
}
|
|
57943
|
+
/**
|
|
57944
|
+
* * Field Name: DisplayName
|
|
57945
|
+
* * Display Name: Display Name
|
|
57946
|
+
* * SQL Data Type: nvarchar(255)
|
|
57947
|
+
* * Description: Human-friendly display label for the field
|
|
57948
|
+
*/
|
|
57949
|
+
get DisplayName() {
|
|
57950
|
+
return this.Get('DisplayName');
|
|
57951
|
+
}
|
|
57952
|
+
set DisplayName(value) {
|
|
57953
|
+
this.Set('DisplayName', value);
|
|
57954
|
+
}
|
|
57955
|
+
/**
|
|
57956
|
+
* * Field Name: Description
|
|
57957
|
+
* * Display Name: Description
|
|
57958
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
57959
|
+
* * Description: Description of what this field represents
|
|
57960
|
+
*/
|
|
57961
|
+
get Description() {
|
|
57962
|
+
return this.Get('Description');
|
|
57963
|
+
}
|
|
57964
|
+
set Description(value) {
|
|
57965
|
+
this.Set('Description', value);
|
|
57966
|
+
}
|
|
57967
|
+
/**
|
|
57968
|
+
* * Field Name: Category
|
|
57969
|
+
* * Display Name: Category
|
|
57970
|
+
* * SQL Data Type: nvarchar(100)
|
|
57971
|
+
* * Description: UI grouping category within the object
|
|
57972
|
+
*/
|
|
57973
|
+
get Category() {
|
|
57974
|
+
return this.Get('Category');
|
|
57975
|
+
}
|
|
57976
|
+
set Category(value) {
|
|
57977
|
+
this.Set('Category', value);
|
|
57978
|
+
}
|
|
57979
|
+
/**
|
|
57980
|
+
* * Field Name: Type
|
|
57981
|
+
* * Display Name: Type
|
|
57982
|
+
* * SQL Data Type: nvarchar(100)
|
|
57983
|
+
* * Description: Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField.
|
|
57984
|
+
*/
|
|
57985
|
+
get Type() {
|
|
57986
|
+
return this.Get('Type');
|
|
57987
|
+
}
|
|
57988
|
+
set Type(value) {
|
|
57989
|
+
this.Set('Type', value);
|
|
57990
|
+
}
|
|
57991
|
+
/**
|
|
57992
|
+
* * Field Name: Length
|
|
57993
|
+
* * Display Name: Length
|
|
57994
|
+
* * SQL Data Type: int
|
|
57995
|
+
* * Description: Maximum length for string types
|
|
57996
|
+
*/
|
|
57997
|
+
get Length() {
|
|
57998
|
+
return this.Get('Length');
|
|
57999
|
+
}
|
|
58000
|
+
set Length(value) {
|
|
58001
|
+
this.Set('Length', value);
|
|
58002
|
+
}
|
|
58003
|
+
/**
|
|
58004
|
+
* * Field Name: Precision
|
|
58005
|
+
* * Display Name: Precision
|
|
58006
|
+
* * SQL Data Type: int
|
|
58007
|
+
* * Description: Numeric precision
|
|
58008
|
+
*/
|
|
58009
|
+
get Precision() {
|
|
58010
|
+
return this.Get('Precision');
|
|
58011
|
+
}
|
|
58012
|
+
set Precision(value) {
|
|
58013
|
+
this.Set('Precision', value);
|
|
58014
|
+
}
|
|
58015
|
+
/**
|
|
58016
|
+
* * Field Name: Scale
|
|
58017
|
+
* * Display Name: Scale
|
|
58018
|
+
* * SQL Data Type: int
|
|
58019
|
+
* * Description: Numeric scale
|
|
58020
|
+
*/
|
|
58021
|
+
get Scale() {
|
|
58022
|
+
return this.Get('Scale');
|
|
58023
|
+
}
|
|
58024
|
+
set Scale(value) {
|
|
58025
|
+
this.Set('Scale', value);
|
|
58026
|
+
}
|
|
58027
|
+
/**
|
|
58028
|
+
* * Field Name: AllowsNull
|
|
58029
|
+
* * Display Name: Allows Null
|
|
58030
|
+
* * SQL Data Type: bit
|
|
58031
|
+
* * Default Value: 1
|
|
58032
|
+
* * Description: Whether the field can contain NULL values
|
|
58033
|
+
*/
|
|
58034
|
+
get AllowsNull() {
|
|
58035
|
+
return this.Get('AllowsNull');
|
|
58036
|
+
}
|
|
58037
|
+
set AllowsNull(value) {
|
|
58038
|
+
this.Set('AllowsNull', value);
|
|
58039
|
+
}
|
|
58040
|
+
/**
|
|
58041
|
+
* * Field Name: DefaultValue
|
|
58042
|
+
* * Display Name: Default Value
|
|
58043
|
+
* * SQL Data Type: nvarchar(255)
|
|
58044
|
+
* * Description: Default value from the source system
|
|
58045
|
+
*/
|
|
58046
|
+
get DefaultValue() {
|
|
58047
|
+
return this.Get('DefaultValue');
|
|
58048
|
+
}
|
|
58049
|
+
set DefaultValue(value) {
|
|
58050
|
+
this.Set('DefaultValue', value);
|
|
58051
|
+
}
|
|
58052
|
+
/**
|
|
58053
|
+
* * Field Name: IsPrimaryKey
|
|
58054
|
+
* * Display Name: Primary Key
|
|
58055
|
+
* * SQL Data Type: bit
|
|
58056
|
+
* * Default Value: 0
|
|
58057
|
+
* * Description: Whether this field is part of the object primary key
|
|
58058
|
+
*/
|
|
58059
|
+
get IsPrimaryKey() {
|
|
58060
|
+
return this.Get('IsPrimaryKey');
|
|
58061
|
+
}
|
|
58062
|
+
set IsPrimaryKey(value) {
|
|
58063
|
+
this.Set('IsPrimaryKey', value);
|
|
58064
|
+
}
|
|
58065
|
+
/**
|
|
58066
|
+
* * Field Name: IsUniqueKey
|
|
58067
|
+
* * Display Name: Unique Key
|
|
58068
|
+
* * SQL Data Type: bit
|
|
58069
|
+
* * Default Value: 0
|
|
58070
|
+
* * Description: Whether values must be unique across all records
|
|
58071
|
+
*/
|
|
58072
|
+
get IsUniqueKey() {
|
|
58073
|
+
return this.Get('IsUniqueKey');
|
|
58074
|
+
}
|
|
58075
|
+
set IsUniqueKey(value) {
|
|
58076
|
+
this.Set('IsUniqueKey', value);
|
|
58077
|
+
}
|
|
58078
|
+
/**
|
|
58079
|
+
* * Field Name: IsReadOnly
|
|
58080
|
+
* * Display Name: Read Only
|
|
58081
|
+
* * SQL Data Type: bit
|
|
58082
|
+
* * Default Value: 0
|
|
58083
|
+
* * Description: Whether this field cannot be written back to the source system
|
|
58084
|
+
*/
|
|
58085
|
+
get IsReadOnly() {
|
|
58086
|
+
return this.Get('IsReadOnly');
|
|
58087
|
+
}
|
|
58088
|
+
set IsReadOnly(value) {
|
|
58089
|
+
this.Set('IsReadOnly', value);
|
|
58090
|
+
}
|
|
58091
|
+
/**
|
|
58092
|
+
* * Field Name: IsRequired
|
|
58093
|
+
* * Display Name: Required
|
|
58094
|
+
* * SQL Data Type: bit
|
|
58095
|
+
* * Default Value: 0
|
|
58096
|
+
* * Description: Whether this field is required for create/update operations
|
|
58097
|
+
*/
|
|
58098
|
+
get IsRequired() {
|
|
58099
|
+
return this.Get('IsRequired');
|
|
58100
|
+
}
|
|
58101
|
+
set IsRequired(value) {
|
|
58102
|
+
this.Set('IsRequired', value);
|
|
58103
|
+
}
|
|
58104
|
+
/**
|
|
58105
|
+
* * Field Name: RelatedIntegrationObjectID
|
|
58106
|
+
* * Display Name: Related Integration Object
|
|
58107
|
+
* * SQL Data Type: uniqueidentifier
|
|
58108
|
+
* * Related Entity/Foreign Key: MJ: Integration Objects (vwIntegrationObjects.ID)
|
|
58109
|
+
* * Description: Foreign key to another IntegrationObject, establishing a relationship. Used for DAG-based dependency ordering and template variable resolution in parent APIPath patterns.
|
|
58110
|
+
*/
|
|
58111
|
+
get RelatedIntegrationObjectID() {
|
|
58112
|
+
return this.Get('RelatedIntegrationObjectID');
|
|
58113
|
+
}
|
|
58114
|
+
set RelatedIntegrationObjectID(value) {
|
|
58115
|
+
this.Set('RelatedIntegrationObjectID', value);
|
|
58116
|
+
}
|
|
58117
|
+
/**
|
|
58118
|
+
* * Field Name: RelatedIntegrationObjectFieldName
|
|
58119
|
+
* * Display Name: Related Field Name
|
|
58120
|
+
* * SQL Data Type: nvarchar(255)
|
|
58121
|
+
* * Description: The field name on the related IntegrationObject that this FK points to (typically the PK field)
|
|
58122
|
+
*/
|
|
58123
|
+
get RelatedIntegrationObjectFieldName() {
|
|
58124
|
+
return this.Get('RelatedIntegrationObjectFieldName');
|
|
58125
|
+
}
|
|
58126
|
+
set RelatedIntegrationObjectFieldName(value) {
|
|
58127
|
+
this.Set('RelatedIntegrationObjectFieldName', value);
|
|
58128
|
+
}
|
|
58129
|
+
/**
|
|
58130
|
+
* * Field Name: Sequence
|
|
58131
|
+
* * Display Name: Sequence
|
|
58132
|
+
* * SQL Data Type: int
|
|
58133
|
+
* * Default Value: 0
|
|
58134
|
+
* * Description: Display and processing order within the object. Lower numbers appear first.
|
|
58135
|
+
*/
|
|
58136
|
+
get Sequence() {
|
|
58137
|
+
return this.Get('Sequence');
|
|
58138
|
+
}
|
|
58139
|
+
set Sequence(value) {
|
|
58140
|
+
this.Set('Sequence', value);
|
|
58141
|
+
}
|
|
58142
|
+
/**
|
|
58143
|
+
* * Field Name: Configuration
|
|
58144
|
+
* * Display Name: Configuration
|
|
58145
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
58146
|
+
* * Description: Freeform JSON for connector-specific field configuration
|
|
58147
|
+
*/
|
|
58148
|
+
get Configuration() {
|
|
58149
|
+
return this.Get('Configuration');
|
|
58150
|
+
}
|
|
58151
|
+
set Configuration(value) {
|
|
58152
|
+
this.Set('Configuration', value);
|
|
58153
|
+
}
|
|
58154
|
+
/**
|
|
58155
|
+
* * Field Name: Status
|
|
58156
|
+
* * Display Name: Status
|
|
58157
|
+
* * SQL Data Type: nvarchar(25)
|
|
58158
|
+
* * Default Value: Active
|
|
58159
|
+
* * Value List Type: List
|
|
58160
|
+
* * Possible Values
|
|
58161
|
+
* * Active
|
|
58162
|
+
* * Deprecated
|
|
58163
|
+
* * Disabled
|
|
58164
|
+
* * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.
|
|
58165
|
+
*/
|
|
58166
|
+
get Status() {
|
|
58167
|
+
return this.Get('Status');
|
|
58168
|
+
}
|
|
58169
|
+
set Status(value) {
|
|
58170
|
+
this.Set('Status', value);
|
|
58171
|
+
}
|
|
58172
|
+
/**
|
|
58173
|
+
* * Field Name: __mj_CreatedAt
|
|
58174
|
+
* * Display Name: Created At
|
|
58175
|
+
* * SQL Data Type: datetimeoffset
|
|
58176
|
+
* * Default Value: getutcdate()
|
|
58177
|
+
*/
|
|
58178
|
+
get __mj_CreatedAt() {
|
|
58179
|
+
return this.Get('__mj_CreatedAt');
|
|
58180
|
+
}
|
|
58181
|
+
/**
|
|
58182
|
+
* * Field Name: __mj_UpdatedAt
|
|
58183
|
+
* * Display Name: Updated At
|
|
58184
|
+
* * SQL Data Type: datetimeoffset
|
|
58185
|
+
* * Default Value: getutcdate()
|
|
58186
|
+
*/
|
|
58187
|
+
get __mj_UpdatedAt() {
|
|
58188
|
+
return this.Get('__mj_UpdatedAt');
|
|
58189
|
+
}
|
|
58190
|
+
/**
|
|
58191
|
+
* * Field Name: IntegrationObject
|
|
58192
|
+
* * Display Name: Integration Object Name
|
|
58193
|
+
* * SQL Data Type: nvarchar(255)
|
|
58194
|
+
*/
|
|
58195
|
+
get IntegrationObject() {
|
|
58196
|
+
return this.Get('IntegrationObject');
|
|
58197
|
+
}
|
|
58198
|
+
/**
|
|
58199
|
+
* * Field Name: RelatedIntegrationObject
|
|
58200
|
+
* * Display Name: Related Object Name
|
|
58201
|
+
* * SQL Data Type: nvarchar(255)
|
|
58202
|
+
*/
|
|
58203
|
+
get RelatedIntegrationObject() {
|
|
58204
|
+
return this.Get('RelatedIntegrationObject');
|
|
58205
|
+
}
|
|
58206
|
+
};
|
|
58207
|
+
MJIntegrationObjectFieldEntity = __decorate([
|
|
58208
|
+
RegisterClass(BaseEntity, 'MJ: Integration Object Fields')
|
|
58209
|
+
], MJIntegrationObjectFieldEntity);
|
|
58210
|
+
export { MJIntegrationObjectFieldEntity };
|
|
58211
|
+
/**
|
|
58212
|
+
* MJ: Integration Objects - strongly typed entity sub-class
|
|
58213
|
+
* * Schema: __mj
|
|
58214
|
+
* * Base Table: IntegrationObject
|
|
58215
|
+
* * Base View: vwIntegrationObjects
|
|
58216
|
+
* * @description Describes an external object or endpoint exposed by an integration (e.g., Members, Events, Invoices)
|
|
58217
|
+
* * Primary Key: ID
|
|
58218
|
+
* @extends {BaseEntity}
|
|
58219
|
+
* @class
|
|
58220
|
+
* @public
|
|
58221
|
+
*/
|
|
58222
|
+
let MJIntegrationObjectEntity = class MJIntegrationObjectEntity extends BaseEntity {
|
|
58223
|
+
/**
|
|
58224
|
+
* Loads the MJ: Integration Objects record from the database
|
|
58225
|
+
* @param ID: string - primary key value to load the MJ: Integration Objects record.
|
|
58226
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
58227
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
58228
|
+
* @public
|
|
58229
|
+
* @async
|
|
58230
|
+
* @memberof MJIntegrationObjectEntity
|
|
58231
|
+
* @method
|
|
58232
|
+
* @override
|
|
58233
|
+
*/
|
|
58234
|
+
async Load(ID, EntityRelationshipsToLoad) {
|
|
58235
|
+
const compositeKey = new CompositeKey();
|
|
58236
|
+
compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
|
|
58237
|
+
return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
|
|
58238
|
+
}
|
|
58239
|
+
/**
|
|
58240
|
+
* * Field Name: ID
|
|
58241
|
+
* * Display Name: ID
|
|
58242
|
+
* * SQL Data Type: uniqueidentifier
|
|
58243
|
+
* * Default Value: newsequentialid()
|
|
58244
|
+
* * Description: Primary key
|
|
58245
|
+
*/
|
|
58246
|
+
get ID() {
|
|
58247
|
+
return this.Get('ID');
|
|
58248
|
+
}
|
|
58249
|
+
set ID(value) {
|
|
58250
|
+
this.Set('ID', value);
|
|
58251
|
+
}
|
|
58252
|
+
/**
|
|
58253
|
+
* * Field Name: IntegrationID
|
|
58254
|
+
* * Display Name: Integration
|
|
58255
|
+
* * SQL Data Type: uniqueidentifier
|
|
58256
|
+
* * Related Entity/Foreign Key: MJ: Integrations (vwIntegrations.ID)
|
|
58257
|
+
* * Description: Foreign key to the Integration that owns this object
|
|
58258
|
+
*/
|
|
58259
|
+
get IntegrationID() {
|
|
58260
|
+
return this.Get('IntegrationID');
|
|
58261
|
+
}
|
|
58262
|
+
set IntegrationID(value) {
|
|
58263
|
+
this.Set('IntegrationID', value);
|
|
58264
|
+
}
|
|
58265
|
+
/**
|
|
58266
|
+
* * Field Name: Name
|
|
58267
|
+
* * Display Name: Internal Name
|
|
58268
|
+
* * SQL Data Type: nvarchar(255)
|
|
58269
|
+
* * Description: Internal/programmatic name of the external object (e.g., Members, Events)
|
|
58270
|
+
*/
|
|
58271
|
+
get Name() {
|
|
58272
|
+
return this.Get('Name');
|
|
58273
|
+
}
|
|
58274
|
+
set Name(value) {
|
|
58275
|
+
this.Set('Name', value);
|
|
58276
|
+
}
|
|
58277
|
+
/**
|
|
58278
|
+
* * Field Name: DisplayName
|
|
58279
|
+
* * Display Name: Display Name
|
|
58280
|
+
* * SQL Data Type: nvarchar(255)
|
|
58281
|
+
* * Description: Human-friendly display label
|
|
58282
|
+
*/
|
|
58283
|
+
get DisplayName() {
|
|
58284
|
+
return this.Get('DisplayName');
|
|
58285
|
+
}
|
|
58286
|
+
set DisplayName(value) {
|
|
58287
|
+
this.Set('DisplayName', value);
|
|
58288
|
+
}
|
|
58289
|
+
/**
|
|
58290
|
+
* * Field Name: Description
|
|
58291
|
+
* * Display Name: Description
|
|
58292
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
58293
|
+
* * Description: Description of what this external object represents
|
|
58294
|
+
*/
|
|
58295
|
+
get Description() {
|
|
58296
|
+
return this.Get('Description');
|
|
58297
|
+
}
|
|
58298
|
+
set Description(value) {
|
|
58299
|
+
this.Set('Description', value);
|
|
58300
|
+
}
|
|
58301
|
+
/**
|
|
58302
|
+
* * Field Name: Category
|
|
58303
|
+
* * Display Name: Category
|
|
58304
|
+
* * SQL Data Type: nvarchar(100)
|
|
58305
|
+
* * Description: UI grouping category (e.g., Membership, Events, Finance)
|
|
58306
|
+
*/
|
|
58307
|
+
get Category() {
|
|
58308
|
+
return this.Get('Category');
|
|
58309
|
+
}
|
|
58310
|
+
set Category(value) {
|
|
58311
|
+
this.Set('Category', value);
|
|
58312
|
+
}
|
|
58313
|
+
/**
|
|
58314
|
+
* * Field Name: APIPath
|
|
58315
|
+
* * Display Name: API Path
|
|
58316
|
+
* * SQL Data Type: nvarchar(500)
|
|
58317
|
+
* * Description: API endpoint path, may include template variables like {ProfileID} that are resolved at runtime from parent object records
|
|
58318
|
+
*/
|
|
58319
|
+
get APIPath() {
|
|
58320
|
+
return this.Get('APIPath');
|
|
58321
|
+
}
|
|
58322
|
+
set APIPath(value) {
|
|
58323
|
+
this.Set('APIPath', value);
|
|
58324
|
+
}
|
|
58325
|
+
/**
|
|
58326
|
+
* * Field Name: ResponseDataKey
|
|
58327
|
+
* * Display Name: Response Data Key
|
|
58328
|
+
* * SQL Data Type: nvarchar(255)
|
|
58329
|
+
* * Description: JSON key used to extract the data array from the API response envelope. NULL means the response is a root-level array.
|
|
58330
|
+
*/
|
|
58331
|
+
get ResponseDataKey() {
|
|
58332
|
+
return this.Get('ResponseDataKey');
|
|
58333
|
+
}
|
|
58334
|
+
set ResponseDataKey(value) {
|
|
58335
|
+
this.Set('ResponseDataKey', value);
|
|
58336
|
+
}
|
|
58337
|
+
/**
|
|
58338
|
+
* * Field Name: DefaultPageSize
|
|
58339
|
+
* * Display Name: Default Page Size
|
|
58340
|
+
* * SQL Data Type: int
|
|
58341
|
+
* * Default Value: 100
|
|
58342
|
+
* * Description: Number of records to request per page from the API
|
|
58343
|
+
*/
|
|
58344
|
+
get DefaultPageSize() {
|
|
58345
|
+
return this.Get('DefaultPageSize');
|
|
58346
|
+
}
|
|
58347
|
+
set DefaultPageSize(value) {
|
|
58348
|
+
this.Set('DefaultPageSize', value);
|
|
58349
|
+
}
|
|
58350
|
+
/**
|
|
58351
|
+
* * Field Name: SupportsPagination
|
|
58352
|
+
* * Display Name: Supports Pagination
|
|
58353
|
+
* * SQL Data Type: bit
|
|
58354
|
+
* * Default Value: 1
|
|
58355
|
+
* * Description: Whether this endpoint supports paginated fetching
|
|
58356
|
+
*/
|
|
58357
|
+
get SupportsPagination() {
|
|
58358
|
+
return this.Get('SupportsPagination');
|
|
58359
|
+
}
|
|
58360
|
+
set SupportsPagination(value) {
|
|
58361
|
+
this.Set('SupportsPagination', value);
|
|
58362
|
+
}
|
|
58363
|
+
/**
|
|
58364
|
+
* * Field Name: PaginationType
|
|
58365
|
+
* * Display Name: Pagination Type
|
|
58366
|
+
* * SQL Data Type: nvarchar(20)
|
|
58367
|
+
* * Default Value: PageNumber
|
|
58368
|
+
* * Value List Type: List
|
|
58369
|
+
* * Possible Values
|
|
58370
|
+
* * Cursor
|
|
58371
|
+
* * None
|
|
58372
|
+
* * Offset
|
|
58373
|
+
* * PageNumber
|
|
58374
|
+
* * Description: Pagination strategy: PageNumber (page index), Offset (record offset), Cursor (opaque token), or None
|
|
58375
|
+
*/
|
|
58376
|
+
get PaginationType() {
|
|
58377
|
+
return this.Get('PaginationType');
|
|
58378
|
+
}
|
|
58379
|
+
set PaginationType(value) {
|
|
58380
|
+
this.Set('PaginationType', value);
|
|
58381
|
+
}
|
|
58382
|
+
/**
|
|
58383
|
+
* * Field Name: SupportsIncrementalSync
|
|
58384
|
+
* * Display Name: Supports Incremental Sync
|
|
58385
|
+
* * SQL Data Type: bit
|
|
58386
|
+
* * Default Value: 0
|
|
58387
|
+
* * Description: Whether this object supports watermark-based incremental sync
|
|
58388
|
+
*/
|
|
58389
|
+
get SupportsIncrementalSync() {
|
|
58390
|
+
return this.Get('SupportsIncrementalSync');
|
|
58391
|
+
}
|
|
58392
|
+
set SupportsIncrementalSync(value) {
|
|
58393
|
+
this.Set('SupportsIncrementalSync', value);
|
|
58394
|
+
}
|
|
58395
|
+
/**
|
|
58396
|
+
* * Field Name: SupportsWrite
|
|
58397
|
+
* * Display Name: Supports Write
|
|
58398
|
+
* * SQL Data Type: bit
|
|
58399
|
+
* * Default Value: 0
|
|
58400
|
+
* * Description: Whether data can be pushed back to this object via the API
|
|
58401
|
+
*/
|
|
58402
|
+
get SupportsWrite() {
|
|
58403
|
+
return this.Get('SupportsWrite');
|
|
58404
|
+
}
|
|
58405
|
+
set SupportsWrite(value) {
|
|
58406
|
+
this.Set('SupportsWrite', value);
|
|
58407
|
+
}
|
|
58408
|
+
/**
|
|
58409
|
+
* * Field Name: DefaultQueryParams
|
|
58410
|
+
* * Display Name: Default Query Parameters
|
|
58411
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
58412
|
+
* * Description: JSON object of default query parameters to include with every API request for this object
|
|
58413
|
+
*/
|
|
58414
|
+
get DefaultQueryParams() {
|
|
58415
|
+
return this.Get('DefaultQueryParams');
|
|
58416
|
+
}
|
|
58417
|
+
set DefaultQueryParams(value) {
|
|
58418
|
+
this.Set('DefaultQueryParams', value);
|
|
58419
|
+
}
|
|
58420
|
+
/**
|
|
58421
|
+
* * Field Name: Configuration
|
|
58422
|
+
* * Display Name: Configuration
|
|
58423
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
58424
|
+
* * Description: Freeform JSON for connector-specific configuration not covered by standard columns
|
|
58425
|
+
*/
|
|
58426
|
+
get Configuration() {
|
|
58427
|
+
return this.Get('Configuration');
|
|
58428
|
+
}
|
|
58429
|
+
set Configuration(value) {
|
|
58430
|
+
this.Set('Configuration', value);
|
|
58431
|
+
}
|
|
58432
|
+
/**
|
|
58433
|
+
* * Field Name: Sequence
|
|
58434
|
+
* * Display Name: Sequence
|
|
58435
|
+
* * SQL Data Type: int
|
|
58436
|
+
* * Default Value: 0
|
|
58437
|
+
* * Description: Processing and display order. Lower numbers are processed first.
|
|
58438
|
+
*/
|
|
58439
|
+
get Sequence() {
|
|
58440
|
+
return this.Get('Sequence');
|
|
58441
|
+
}
|
|
58442
|
+
set Sequence(value) {
|
|
58443
|
+
this.Set('Sequence', value);
|
|
58444
|
+
}
|
|
58445
|
+
/**
|
|
58446
|
+
* * Field Name: Status
|
|
58447
|
+
* * Display Name: Status
|
|
58448
|
+
* * SQL Data Type: nvarchar(25)
|
|
58449
|
+
* * Default Value: Active
|
|
58450
|
+
* * Value List Type: List
|
|
58451
|
+
* * Possible Values
|
|
58452
|
+
* * Active
|
|
58453
|
+
* * Deprecated
|
|
58454
|
+
* * Disabled
|
|
58455
|
+
* * Description: Active, Deprecated, or Disabled. Mirrors EntityField status values.
|
|
58456
|
+
*/
|
|
58457
|
+
get Status() {
|
|
58458
|
+
return this.Get('Status');
|
|
58459
|
+
}
|
|
58460
|
+
set Status(value) {
|
|
58461
|
+
this.Set('Status', value);
|
|
58462
|
+
}
|
|
58463
|
+
/**
|
|
58464
|
+
* * Field Name: __mj_CreatedAt
|
|
58465
|
+
* * Display Name: Created At
|
|
58466
|
+
* * SQL Data Type: datetimeoffset
|
|
58467
|
+
* * Default Value: getutcdate()
|
|
58468
|
+
*/
|
|
58469
|
+
get __mj_CreatedAt() {
|
|
58470
|
+
return this.Get('__mj_CreatedAt');
|
|
58471
|
+
}
|
|
58472
|
+
/**
|
|
58473
|
+
* * Field Name: __mj_UpdatedAt
|
|
58474
|
+
* * Display Name: Updated At
|
|
58475
|
+
* * SQL Data Type: datetimeoffset
|
|
58476
|
+
* * Default Value: getutcdate()
|
|
58477
|
+
*/
|
|
58478
|
+
get __mj_UpdatedAt() {
|
|
58479
|
+
return this.Get('__mj_UpdatedAt');
|
|
58480
|
+
}
|
|
58481
|
+
/**
|
|
58482
|
+
* * Field Name: Integration
|
|
58483
|
+
* * Display Name: Integration Name
|
|
58484
|
+
* * SQL Data Type: nvarchar(100)
|
|
58485
|
+
*/
|
|
58486
|
+
get Integration() {
|
|
58487
|
+
return this.Get('Integration');
|
|
58488
|
+
}
|
|
58489
|
+
};
|
|
58490
|
+
MJIntegrationObjectEntity = __decorate([
|
|
58491
|
+
RegisterClass(BaseEntity, 'MJ: Integration Objects')
|
|
58492
|
+
], MJIntegrationObjectEntity);
|
|
58493
|
+
export { MJIntegrationObjectEntity };
|
|
57424
58494
|
/**
|
|
57425
58495
|
* MJ: Integration Source Types - strongly typed entity sub-class
|
|
57426
58496
|
* * Schema: __mj
|