@memberjunction/server 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.
Files changed (69) hide show
  1. package/README.md +1 -0
  2. package/dist/apolloServer/index.d.ts +10 -2
  3. package/dist/apolloServer/index.d.ts.map +1 -1
  4. package/dist/apolloServer/index.js +22 -8
  5. package/dist/apolloServer/index.js.map +1 -1
  6. package/dist/config.d.ts +125 -0
  7. package/dist/config.d.ts.map +1 -1
  8. package/dist/config.js +23 -0
  9. package/dist/config.js.map +1 -1
  10. package/dist/context.d.ts +17 -0
  11. package/dist/context.d.ts.map +1 -1
  12. package/dist/context.js +144 -62
  13. package/dist/context.js.map +1 -1
  14. package/dist/generated/generated.d.ts +207 -0
  15. package/dist/generated/generated.d.ts.map +1 -1
  16. package/dist/generated/generated.js +1112 -76
  17. package/dist/generated/generated.js.map +1 -1
  18. package/dist/generic/CacheInvalidationResolver.d.ts +32 -0
  19. package/dist/generic/CacheInvalidationResolver.d.ts.map +1 -0
  20. package/dist/generic/CacheInvalidationResolver.js +80 -0
  21. package/dist/generic/CacheInvalidationResolver.js.map +1 -0
  22. package/dist/generic/PubSubManager.d.ts +27 -0
  23. package/dist/generic/PubSubManager.d.ts.map +1 -0
  24. package/dist/generic/PubSubManager.js +42 -0
  25. package/dist/generic/PubSubManager.js.map +1 -0
  26. package/dist/generic/ResolverBase.d.ts +14 -0
  27. package/dist/generic/ResolverBase.d.ts.map +1 -1
  28. package/dist/generic/ResolverBase.js +50 -0
  29. package/dist/generic/ResolverBase.js.map +1 -1
  30. package/dist/hooks.d.ts +65 -0
  31. package/dist/hooks.d.ts.map +1 -0
  32. package/dist/hooks.js +14 -0
  33. package/dist/hooks.js.map +1 -0
  34. package/dist/index.d.ts +6 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +172 -45
  37. package/dist/index.js.map +1 -1
  38. package/dist/multiTenancy/index.d.ts +47 -0
  39. package/dist/multiTenancy/index.d.ts.map +1 -0
  40. package/dist/multiTenancy/index.js +152 -0
  41. package/dist/multiTenancy/index.js.map +1 -0
  42. package/dist/resolvers/IntegrationDiscoveryResolver.d.ts +123 -0
  43. package/dist/resolvers/IntegrationDiscoveryResolver.d.ts.map +1 -0
  44. package/dist/resolvers/IntegrationDiscoveryResolver.js +624 -0
  45. package/dist/resolvers/IntegrationDiscoveryResolver.js.map +1 -0
  46. package/dist/rest/RESTEndpointHandler.d.ts +3 -1
  47. package/dist/rest/RESTEndpointHandler.d.ts.map +1 -1
  48. package/dist/rest/RESTEndpointHandler.js +14 -33
  49. package/dist/rest/RESTEndpointHandler.js.map +1 -1
  50. package/dist/types.d.ts +9 -0
  51. package/dist/types.d.ts.map +1 -1
  52. package/dist/types.js.map +1 -1
  53. package/package.json +61 -57
  54. package/src/__tests__/multiTenancy.security.test.ts +334 -0
  55. package/src/__tests__/multiTenancy.test.ts +225 -0
  56. package/src/__tests__/unifiedAuth.test.ts +416 -0
  57. package/src/apolloServer/index.ts +32 -16
  58. package/src/config.ts +25 -0
  59. package/src/context.ts +205 -98
  60. package/src/generated/generated.ts +736 -1
  61. package/src/generic/CacheInvalidationResolver.ts +66 -0
  62. package/src/generic/PubSubManager.ts +47 -0
  63. package/src/generic/ResolverBase.ts +53 -0
  64. package/src/hooks.ts +77 -0
  65. package/src/index.ts +198 -49
  66. package/src/multiTenancy/index.ts +183 -0
  67. package/src/resolvers/IntegrationDiscoveryResolver.ts +584 -0
  68. package/src/rest/RESTEndpointHandler.ts +23 -42
  69. package/src/types.ts +10 -0
@@ -34557,6 +34557,49 @@ __decorate([
34557
34557
  MaxLength(36),
34558
34558
  __metadata("design:type", String)
34559
34559
  ], MJCompanyIntegration_.prototype, "CredentialID", void 0);
34560
+ __decorate([
34561
+ Field(() => Boolean, { description: `Whether automatic sync scheduling is enabled for this integration` }),
34562
+ __metadata("design:type", Boolean)
34563
+ ], MJCompanyIntegration_.prototype, "ScheduleEnabled", void 0);
34564
+ __decorate([
34565
+ Field({ description: `Type of schedule: Manual (no auto-sync), Interval (every N minutes), Cron (cron expression)` }),
34566
+ MaxLength(20),
34567
+ __metadata("design:type", String)
34568
+ ], MJCompanyIntegration_.prototype, "ScheduleType", void 0);
34569
+ __decorate([
34570
+ Field(() => Int, { nullable: true, description: `Interval in minutes for Interval schedule type` }),
34571
+ __metadata("design:type", Number)
34572
+ ], MJCompanyIntegration_.prototype, "ScheduleIntervalMinutes", void 0);
34573
+ __decorate([
34574
+ Field({ nullable: true, description: `Cron expression for Cron schedule type (e.g., "0 */6 * * *" for every 6 hours)` }),
34575
+ MaxLength(200),
34576
+ __metadata("design:type", String)
34577
+ ], MJCompanyIntegration_.prototype, "CronExpression", void 0);
34578
+ __decorate([
34579
+ Field({ nullable: true, description: `When the next scheduled sync should run. Updated after each run based on schedule config.` }),
34580
+ __metadata("design:type", Date)
34581
+ ], MJCompanyIntegration_.prototype, "NextScheduledRunAt", void 0);
34582
+ __decorate([
34583
+ Field({ nullable: true, description: `When the last scheduled sync was initiated` }),
34584
+ __metadata("design:type", Date)
34585
+ ], MJCompanyIntegration_.prototype, "LastScheduledRunAt", void 0);
34586
+ __decorate([
34587
+ Field(() => Boolean, { description: `Whether a sync is currently locked/running for this integration` }),
34588
+ __metadata("design:type", Boolean)
34589
+ ], MJCompanyIntegration_.prototype, "IsLocked", void 0);
34590
+ __decorate([
34591
+ Field({ nullable: true, description: `When the lock was acquired` }),
34592
+ __metadata("design:type", Date)
34593
+ ], MJCompanyIntegration_.prototype, "LockedAt", void 0);
34594
+ __decorate([
34595
+ Field({ nullable: true, description: `Server instance identifier that holds the lock (hostname-pid)` }),
34596
+ MaxLength(200),
34597
+ __metadata("design:type", String)
34598
+ ], MJCompanyIntegration_.prototype, "LockedByInstance", void 0);
34599
+ __decorate([
34600
+ Field({ nullable: true, description: `When the lock should be considered stale and eligible for cleanup` }),
34601
+ __metadata("design:type", Date)
34602
+ ], MJCompanyIntegration_.prototype, "LockExpiresAt", void 0);
34560
34603
  __decorate([
34561
34604
  Field(),
34562
34605
  MaxLength(50),
@@ -34687,6 +34730,46 @@ __decorate([
34687
34730
  Field({ nullable: true }),
34688
34731
  __metadata("design:type", String)
34689
34732
  ], CreateMJCompanyIntegrationInput.prototype, "CredentialID", void 0);
34733
+ __decorate([
34734
+ Field(() => Boolean, { nullable: true }),
34735
+ __metadata("design:type", Boolean)
34736
+ ], CreateMJCompanyIntegrationInput.prototype, "ScheduleEnabled", void 0);
34737
+ __decorate([
34738
+ Field({ nullable: true }),
34739
+ __metadata("design:type", String)
34740
+ ], CreateMJCompanyIntegrationInput.prototype, "ScheduleType", void 0);
34741
+ __decorate([
34742
+ Field(() => Int, { nullable: true }),
34743
+ __metadata("design:type", Number)
34744
+ ], CreateMJCompanyIntegrationInput.prototype, "ScheduleIntervalMinutes", void 0);
34745
+ __decorate([
34746
+ Field({ nullable: true }),
34747
+ __metadata("design:type", String)
34748
+ ], CreateMJCompanyIntegrationInput.prototype, "CronExpression", void 0);
34749
+ __decorate([
34750
+ Field({ nullable: true }),
34751
+ __metadata("design:type", Date)
34752
+ ], CreateMJCompanyIntegrationInput.prototype, "NextScheduledRunAt", void 0);
34753
+ __decorate([
34754
+ Field({ nullable: true }),
34755
+ __metadata("design:type", Date)
34756
+ ], CreateMJCompanyIntegrationInput.prototype, "LastScheduledRunAt", void 0);
34757
+ __decorate([
34758
+ Field(() => Boolean, { nullable: true }),
34759
+ __metadata("design:type", Boolean)
34760
+ ], CreateMJCompanyIntegrationInput.prototype, "IsLocked", void 0);
34761
+ __decorate([
34762
+ Field({ nullable: true }),
34763
+ __metadata("design:type", Date)
34764
+ ], CreateMJCompanyIntegrationInput.prototype, "LockedAt", void 0);
34765
+ __decorate([
34766
+ Field({ nullable: true }),
34767
+ __metadata("design:type", String)
34768
+ ], CreateMJCompanyIntegrationInput.prototype, "LockedByInstance", void 0);
34769
+ __decorate([
34770
+ Field({ nullable: true }),
34771
+ __metadata("design:type", Date)
34772
+ ], CreateMJCompanyIntegrationInput.prototype, "LockExpiresAt", void 0);
34690
34773
  CreateMJCompanyIntegrationInput = __decorate([
34691
34774
  InputType()
34692
34775
  ], CreateMJCompanyIntegrationInput);
@@ -34764,6 +34847,46 @@ __decorate([
34764
34847
  Field({ nullable: true }),
34765
34848
  __metadata("design:type", String)
34766
34849
  ], UpdateMJCompanyIntegrationInput.prototype, "CredentialID", void 0);
34850
+ __decorate([
34851
+ Field(() => Boolean, { nullable: true }),
34852
+ __metadata("design:type", Boolean)
34853
+ ], UpdateMJCompanyIntegrationInput.prototype, "ScheduleEnabled", void 0);
34854
+ __decorate([
34855
+ Field({ nullable: true }),
34856
+ __metadata("design:type", String)
34857
+ ], UpdateMJCompanyIntegrationInput.prototype, "ScheduleType", void 0);
34858
+ __decorate([
34859
+ Field(() => Int, { nullable: true }),
34860
+ __metadata("design:type", Number)
34861
+ ], UpdateMJCompanyIntegrationInput.prototype, "ScheduleIntervalMinutes", void 0);
34862
+ __decorate([
34863
+ Field({ nullable: true }),
34864
+ __metadata("design:type", String)
34865
+ ], UpdateMJCompanyIntegrationInput.prototype, "CronExpression", void 0);
34866
+ __decorate([
34867
+ Field({ nullable: true }),
34868
+ __metadata("design:type", Date)
34869
+ ], UpdateMJCompanyIntegrationInput.prototype, "NextScheduledRunAt", void 0);
34870
+ __decorate([
34871
+ Field({ nullable: true }),
34872
+ __metadata("design:type", Date)
34873
+ ], UpdateMJCompanyIntegrationInput.prototype, "LastScheduledRunAt", void 0);
34874
+ __decorate([
34875
+ Field(() => Boolean, { nullable: true }),
34876
+ __metadata("design:type", Boolean)
34877
+ ], UpdateMJCompanyIntegrationInput.prototype, "IsLocked", void 0);
34878
+ __decorate([
34879
+ Field({ nullable: true }),
34880
+ __metadata("design:type", Date)
34881
+ ], UpdateMJCompanyIntegrationInput.prototype, "LockedAt", void 0);
34882
+ __decorate([
34883
+ Field({ nullable: true }),
34884
+ __metadata("design:type", String)
34885
+ ], UpdateMJCompanyIntegrationInput.prototype, "LockedByInstance", void 0);
34886
+ __decorate([
34887
+ Field({ nullable: true }),
34888
+ __metadata("design:type", Date)
34889
+ ], UpdateMJCompanyIntegrationInput.prototype, "LockExpiresAt", void 0);
34767
34890
  __decorate([
34768
34891
  Field(() => [KeyValuePairInput], { nullable: true }),
34769
34892
  __metadata("design:type", Array)
@@ -61864,163 +61987,1055 @@ MJGeneratedCodeResolver = __decorate([
61864
61987
  ], MJGeneratedCodeResolver);
61865
61988
  export { MJGeneratedCodeResolver };
61866
61989
  //****************************************************************************
61867
- // ENTITY CLASS for MJ: Integration Source Types
61990
+ // ENTITY CLASS for MJ: Integration Object Fields
61868
61991
  //****************************************************************************
61869
- let MJIntegrationSourceType_ = class MJIntegrationSourceType_ {
61992
+ let MJIntegrationObjectField_ = class MJIntegrationObjectField_ {
61870
61993
  };
61871
61994
  __decorate([
61872
- Field(),
61995
+ Field({ description: `Primary key` }),
61873
61996
  MaxLength(36),
61874
61997
  __metadata("design:type", String)
61875
- ], MJIntegrationSourceType_.prototype, "ID", void 0);
61998
+ ], MJIntegrationObjectField_.prototype, "ID", void 0);
61876
61999
  __decorate([
61877
- Field({ description: `Display name for this source type (e.g. SaaS API, Relational Database, File Feed).` }),
61878
- MaxLength(200),
62000
+ Field({ description: `Foreign key to the IntegrationObject this field belongs to` }),
62001
+ MaxLength(36),
61879
62002
  __metadata("design:type", String)
61880
- ], MJIntegrationSourceType_.prototype, "Name", void 0);
62003
+ ], MJIntegrationObjectField_.prototype, "IntegrationObjectID", void 0);
61881
62004
  __decorate([
61882
- Field({ nullable: true, description: `Optional longer description of this source type.` }),
62005
+ Field({ description: `Field name as returned by the external API` }),
62006
+ MaxLength(255),
61883
62007
  __metadata("design:type", String)
61884
- ], MJIntegrationSourceType_.prototype, "Description", void 0);
62008
+ ], MJIntegrationObjectField_.prototype, "Name", void 0);
61885
62009
  __decorate([
61886
- Field({ description: `Fully-qualified class name registered via @RegisterClass that implements BaseIntegrationConnector for this source type.` }),
61887
- MaxLength(500),
62010
+ Field({ nullable: true, description: `Human-friendly display label for the field` }),
62011
+ MaxLength(255),
61888
62012
  __metadata("design:type", String)
61889
- ], MJIntegrationSourceType_.prototype, "DriverClass", void 0);
62013
+ ], MJIntegrationObjectField_.prototype, "DisplayName", void 0);
61890
62014
  __decorate([
61891
- Field({ nullable: true, description: `Font Awesome icon class for UI display.` }),
61892
- MaxLength(200),
62015
+ Field({ nullable: true, description: `Description of what this field represents` }),
61893
62016
  __metadata("design:type", String)
61894
- ], MJIntegrationSourceType_.prototype, "IconClass", void 0);
62017
+ ], MJIntegrationObjectField_.prototype, "Description", void 0);
61895
62018
  __decorate([
61896
- Field({ description: `Whether this source type is available for use. Active or Inactive.` }),
61897
- MaxLength(50),
62019
+ Field({ nullable: true, description: `UI grouping category within the object` }),
62020
+ MaxLength(100),
61898
62021
  __metadata("design:type", String)
61899
- ], MJIntegrationSourceType_.prototype, "Status", void 0);
62022
+ ], MJIntegrationObjectField_.prototype, "Category", void 0);
62023
+ __decorate([
62024
+ Field({ description: `Data type of the field (e.g., nvarchar, int, datetime, decimal, bit). Uses same type vocabulary as EntityField.` }),
62025
+ MaxLength(100),
62026
+ __metadata("design:type", String)
62027
+ ], MJIntegrationObjectField_.prototype, "Type", void 0);
62028
+ __decorate([
62029
+ Field(() => Int, { nullable: true, description: `Maximum length for string types` }),
62030
+ __metadata("design:type", Number)
62031
+ ], MJIntegrationObjectField_.prototype, "Length", void 0);
62032
+ __decorate([
62033
+ Field(() => Int, { nullable: true, description: `Numeric precision` }),
62034
+ __metadata("design:type", Number)
62035
+ ], MJIntegrationObjectField_.prototype, "Precision", void 0);
62036
+ __decorate([
62037
+ Field(() => Int, { nullable: true, description: `Numeric scale` }),
62038
+ __metadata("design:type", Number)
62039
+ ], MJIntegrationObjectField_.prototype, "Scale", void 0);
62040
+ __decorate([
62041
+ Field(() => Boolean, { description: `Whether the field can contain NULL values` }),
62042
+ __metadata("design:type", Boolean)
62043
+ ], MJIntegrationObjectField_.prototype, "AllowsNull", void 0);
62044
+ __decorate([
62045
+ Field({ nullable: true, description: `Default value from the source system` }),
62046
+ MaxLength(255),
62047
+ __metadata("design:type", String)
62048
+ ], MJIntegrationObjectField_.prototype, "DefaultValue", void 0);
62049
+ __decorate([
62050
+ Field(() => Boolean, { description: `Whether this field is part of the object primary key` }),
62051
+ __metadata("design:type", Boolean)
62052
+ ], MJIntegrationObjectField_.prototype, "IsPrimaryKey", void 0);
62053
+ __decorate([
62054
+ Field(() => Boolean, { description: `Whether values must be unique across all records` }),
62055
+ __metadata("design:type", Boolean)
62056
+ ], MJIntegrationObjectField_.prototype, "IsUniqueKey", void 0);
62057
+ __decorate([
62058
+ Field(() => Boolean, { description: `Whether this field cannot be written back to the source system` }),
62059
+ __metadata("design:type", Boolean)
62060
+ ], MJIntegrationObjectField_.prototype, "IsReadOnly", void 0);
62061
+ __decorate([
62062
+ Field(() => Boolean, { description: `Whether this field is required for create/update operations` }),
62063
+ __metadata("design:type", Boolean)
62064
+ ], MJIntegrationObjectField_.prototype, "IsRequired", void 0);
62065
+ __decorate([
62066
+ Field({ nullable: true, description: `Foreign key to another IntegrationObject, establishing a relationship. Used for DAG-based dependency ordering and template variable resolution in parent APIPath patterns.` }),
62067
+ MaxLength(36),
62068
+ __metadata("design:type", String)
62069
+ ], MJIntegrationObjectField_.prototype, "RelatedIntegrationObjectID", void 0);
62070
+ __decorate([
62071
+ Field({ nullable: true, description: `The field name on the related IntegrationObject that this FK points to (typically the PK field)` }),
62072
+ MaxLength(255),
62073
+ __metadata("design:type", String)
62074
+ ], MJIntegrationObjectField_.prototype, "RelatedIntegrationObjectFieldName", void 0);
62075
+ __decorate([
62076
+ Field(() => Int, { description: `Display and processing order within the object. Lower numbers appear first.` }),
62077
+ __metadata("design:type", Number)
62078
+ ], MJIntegrationObjectField_.prototype, "Sequence", void 0);
62079
+ __decorate([
62080
+ Field({ nullable: true, description: `Freeform JSON for connector-specific field configuration` }),
62081
+ __metadata("design:type", String)
62082
+ ], MJIntegrationObjectField_.prototype, "Configuration", void 0);
62083
+ __decorate([
62084
+ Field({ description: `Active, Deprecated, or Disabled. Mirrors EntityField status values.` }),
62085
+ MaxLength(25),
62086
+ __metadata("design:type", String)
62087
+ ], MJIntegrationObjectField_.prototype, "Status", void 0);
61900
62088
  __decorate([
61901
62089
  Field(),
61902
62090
  __metadata("design:type", Date)
61903
- ], MJIntegrationSourceType_.prototype, "_mj__CreatedAt", void 0);
62091
+ ], MJIntegrationObjectField_.prototype, "_mj__CreatedAt", void 0);
61904
62092
  __decorate([
61905
62093
  Field(),
61906
62094
  __metadata("design:type", Date)
61907
- ], MJIntegrationSourceType_.prototype, "_mj__UpdatedAt", void 0);
62095
+ ], MJIntegrationObjectField_.prototype, "_mj__UpdatedAt", void 0);
61908
62096
  __decorate([
61909
- Field(() => [MJCompanyIntegration_]),
61910
- __metadata("design:type", Array)
61911
- ], MJIntegrationSourceType_.prototype, "MJCompanyIntegrations_SourceTypeIDArray", void 0);
61912
- MJIntegrationSourceType_ = __decorate([
61913
- ObjectType({ description: `Defines categories of integration sources such as SaaS API, Relational Database, or File Feed.` })
61914
- ], MJIntegrationSourceType_);
61915
- export { MJIntegrationSourceType_ };
62097
+ Field(),
62098
+ MaxLength(255),
62099
+ __metadata("design:type", String)
62100
+ ], MJIntegrationObjectField_.prototype, "IntegrationObject", void 0);
62101
+ __decorate([
62102
+ Field({ nullable: true }),
62103
+ MaxLength(255),
62104
+ __metadata("design:type", String)
62105
+ ], MJIntegrationObjectField_.prototype, "RelatedIntegrationObject", void 0);
62106
+ MJIntegrationObjectField_ = __decorate([
62107
+ ObjectType({ description: `Describes a field on an integration object, mirroring EntityField column patterns for type compatibility` })
62108
+ ], MJIntegrationObjectField_);
62109
+ export { MJIntegrationObjectField_ };
61916
62110
  //****************************************************************************
61917
- // INPUT TYPE for MJ: Integration Source Types
62111
+ // INPUT TYPE for MJ: Integration Object Fields
61918
62112
  //****************************************************************************
61919
- let CreateMJIntegrationSourceTypeInput = class CreateMJIntegrationSourceTypeInput {
62113
+ let CreateMJIntegrationObjectFieldInput = class CreateMJIntegrationObjectFieldInput {
61920
62114
  };
61921
62115
  __decorate([
61922
62116
  Field({ nullable: true }),
61923
62117
  __metadata("design:type", String)
61924
- ], CreateMJIntegrationSourceTypeInput.prototype, "ID", void 0);
62118
+ ], CreateMJIntegrationObjectFieldInput.prototype, "ID", void 0);
61925
62119
  __decorate([
61926
62120
  Field({ nullable: true }),
61927
62121
  __metadata("design:type", String)
61928
- ], CreateMJIntegrationSourceTypeInput.prototype, "Name", void 0);
62122
+ ], CreateMJIntegrationObjectFieldInput.prototype, "IntegrationObjectID", void 0);
61929
62123
  __decorate([
61930
62124
  Field({ nullable: true }),
61931
62125
  __metadata("design:type", String)
61932
- ], CreateMJIntegrationSourceTypeInput.prototype, "Description", void 0);
62126
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Name", void 0);
61933
62127
  __decorate([
61934
62128
  Field({ nullable: true }),
61935
62129
  __metadata("design:type", String)
61936
- ], CreateMJIntegrationSourceTypeInput.prototype, "DriverClass", void 0);
62130
+ ], CreateMJIntegrationObjectFieldInput.prototype, "DisplayName", void 0);
61937
62131
  __decorate([
61938
62132
  Field({ nullable: true }),
61939
62133
  __metadata("design:type", String)
61940
- ], CreateMJIntegrationSourceTypeInput.prototype, "IconClass", void 0);
62134
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Description", void 0);
61941
62135
  __decorate([
61942
62136
  Field({ nullable: true }),
61943
62137
  __metadata("design:type", String)
61944
- ], CreateMJIntegrationSourceTypeInput.prototype, "Status", void 0);
61945
- CreateMJIntegrationSourceTypeInput = __decorate([
61946
- InputType()
61947
- ], CreateMJIntegrationSourceTypeInput);
61948
- export { CreateMJIntegrationSourceTypeInput };
61949
- //****************************************************************************
61950
- // INPUT TYPE for MJ: Integration Source Types
61951
- //****************************************************************************
61952
- let UpdateMJIntegrationSourceTypeInput = class UpdateMJIntegrationSourceTypeInput {
61953
- };
62138
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Category", void 0);
61954
62139
  __decorate([
61955
- Field(),
62140
+ Field({ nullable: true }),
61956
62141
  __metadata("design:type", String)
61957
- ], UpdateMJIntegrationSourceTypeInput.prototype, "ID", void 0);
62142
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Type", void 0);
62143
+ __decorate([
62144
+ Field(() => Int, { nullable: true }),
62145
+ __metadata("design:type", Number)
62146
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Length", void 0);
62147
+ __decorate([
62148
+ Field(() => Int, { nullable: true }),
62149
+ __metadata("design:type", Number)
62150
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Precision", void 0);
62151
+ __decorate([
62152
+ Field(() => Int, { nullable: true }),
62153
+ __metadata("design:type", Number)
62154
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Scale", void 0);
62155
+ __decorate([
62156
+ Field(() => Boolean, { nullable: true }),
62157
+ __metadata("design:type", Boolean)
62158
+ ], CreateMJIntegrationObjectFieldInput.prototype, "AllowsNull", void 0);
61958
62159
  __decorate([
61959
62160
  Field({ nullable: true }),
61960
62161
  __metadata("design:type", String)
61961
- ], UpdateMJIntegrationSourceTypeInput.prototype, "Name", void 0);
62162
+ ], CreateMJIntegrationObjectFieldInput.prototype, "DefaultValue", void 0);
62163
+ __decorate([
62164
+ Field(() => Boolean, { nullable: true }),
62165
+ __metadata("design:type", Boolean)
62166
+ ], CreateMJIntegrationObjectFieldInput.prototype, "IsPrimaryKey", void 0);
62167
+ __decorate([
62168
+ Field(() => Boolean, { nullable: true }),
62169
+ __metadata("design:type", Boolean)
62170
+ ], CreateMJIntegrationObjectFieldInput.prototype, "IsUniqueKey", void 0);
62171
+ __decorate([
62172
+ Field(() => Boolean, { nullable: true }),
62173
+ __metadata("design:type", Boolean)
62174
+ ], CreateMJIntegrationObjectFieldInput.prototype, "IsReadOnly", void 0);
62175
+ __decorate([
62176
+ Field(() => Boolean, { nullable: true }),
62177
+ __metadata("design:type", Boolean)
62178
+ ], CreateMJIntegrationObjectFieldInput.prototype, "IsRequired", void 0);
61962
62179
  __decorate([
61963
62180
  Field({ nullable: true }),
61964
62181
  __metadata("design:type", String)
61965
- ], UpdateMJIntegrationSourceTypeInput.prototype, "Description", void 0);
62182
+ ], CreateMJIntegrationObjectFieldInput.prototype, "RelatedIntegrationObjectID", void 0);
61966
62183
  __decorate([
61967
62184
  Field({ nullable: true }),
61968
62185
  __metadata("design:type", String)
61969
- ], UpdateMJIntegrationSourceTypeInput.prototype, "DriverClass", void 0);
62186
+ ], CreateMJIntegrationObjectFieldInput.prototype, "RelatedIntegrationObjectFieldName", void 0);
62187
+ __decorate([
62188
+ Field(() => Int, { nullable: true }),
62189
+ __metadata("design:type", Number)
62190
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Sequence", void 0);
61970
62191
  __decorate([
61971
62192
  Field({ nullable: true }),
61972
62193
  __metadata("design:type", String)
61973
- ], UpdateMJIntegrationSourceTypeInput.prototype, "IconClass", void 0);
62194
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Configuration", void 0);
61974
62195
  __decorate([
61975
62196
  Field({ nullable: true }),
61976
62197
  __metadata("design:type", String)
61977
- ], UpdateMJIntegrationSourceTypeInput.prototype, "Status", void 0);
61978
- __decorate([
61979
- Field(() => [KeyValuePairInput], { nullable: true }),
61980
- __metadata("design:type", Array)
61981
- ], UpdateMJIntegrationSourceTypeInput.prototype, "OldValues___", void 0);
61982
- UpdateMJIntegrationSourceTypeInput = __decorate([
62198
+ ], CreateMJIntegrationObjectFieldInput.prototype, "Status", void 0);
62199
+ CreateMJIntegrationObjectFieldInput = __decorate([
61983
62200
  InputType()
61984
- ], UpdateMJIntegrationSourceTypeInput);
61985
- export { UpdateMJIntegrationSourceTypeInput };
62201
+ ], CreateMJIntegrationObjectFieldInput);
62202
+ export { CreateMJIntegrationObjectFieldInput };
61986
62203
  //****************************************************************************
61987
- // RESOLVER for MJ: Integration Source Types
62204
+ // INPUT TYPE for MJ: Integration Object Fields
61988
62205
  //****************************************************************************
61989
- let RunMJIntegrationSourceTypeViewResult = class RunMJIntegrationSourceTypeViewResult {
62206
+ let UpdateMJIntegrationObjectFieldInput = class UpdateMJIntegrationObjectFieldInput {
61990
62207
  };
61991
62208
  __decorate([
61992
- Field(() => [MJIntegrationSourceType_]),
61993
- __metadata("design:type", Array)
61994
- ], RunMJIntegrationSourceTypeViewResult.prototype, "Results", void 0);
62209
+ Field(),
62210
+ __metadata("design:type", String)
62211
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "ID", void 0);
61995
62212
  __decorate([
61996
- Field(() => String, { nullable: true }),
62213
+ Field({ nullable: true }),
61997
62214
  __metadata("design:type", String)
61998
- ], RunMJIntegrationSourceTypeViewResult.prototype, "UserViewRunID", void 0);
62215
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "IntegrationObjectID", void 0);
62216
+ __decorate([
62217
+ Field({ nullable: true }),
62218
+ __metadata("design:type", String)
62219
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Name", void 0);
62220
+ __decorate([
62221
+ Field({ nullable: true }),
62222
+ __metadata("design:type", String)
62223
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "DisplayName", void 0);
62224
+ __decorate([
62225
+ Field({ nullable: true }),
62226
+ __metadata("design:type", String)
62227
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Description", void 0);
62228
+ __decorate([
62229
+ Field({ nullable: true }),
62230
+ __metadata("design:type", String)
62231
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Category", void 0);
62232
+ __decorate([
62233
+ Field({ nullable: true }),
62234
+ __metadata("design:type", String)
62235
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Type", void 0);
61999
62236
  __decorate([
62000
62237
  Field(() => Int, { nullable: true }),
62001
62238
  __metadata("design:type", Number)
62002
- ], RunMJIntegrationSourceTypeViewResult.prototype, "RowCount", void 0);
62239
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Length", void 0);
62003
62240
  __decorate([
62004
62241
  Field(() => Int, { nullable: true }),
62005
62242
  __metadata("design:type", Number)
62006
- ], RunMJIntegrationSourceTypeViewResult.prototype, "TotalRowCount", void 0);
62243
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Precision", void 0);
62007
62244
  __decorate([
62008
62245
  Field(() => Int, { nullable: true }),
62009
62246
  __metadata("design:type", Number)
62010
- ], RunMJIntegrationSourceTypeViewResult.prototype, "ExecutionTime", void 0);
62247
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Scale", void 0);
62248
+ __decorate([
62249
+ Field(() => Boolean, { nullable: true }),
62250
+ __metadata("design:type", Boolean)
62251
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "AllowsNull", void 0);
62011
62252
  __decorate([
62012
62253
  Field({ nullable: true }),
62013
62254
  __metadata("design:type", String)
62014
- ], RunMJIntegrationSourceTypeViewResult.prototype, "ErrorMessage", void 0);
62255
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "DefaultValue", void 0);
62015
62256
  __decorate([
62016
- Field(() => Boolean, { nullable: false }),
62257
+ Field(() => Boolean, { nullable: true }),
62017
62258
  __metadata("design:type", Boolean)
62018
- ], RunMJIntegrationSourceTypeViewResult.prototype, "Success", void 0);
62019
- RunMJIntegrationSourceTypeViewResult = __decorate([
62020
- ObjectType()
62021
- ], RunMJIntegrationSourceTypeViewResult);
62022
- export { RunMJIntegrationSourceTypeViewResult };
62023
- let MJIntegrationSourceTypeResolver = class MJIntegrationSourceTypeResolver extends ResolverBase {
62259
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "IsPrimaryKey", void 0);
62260
+ __decorate([
62261
+ Field(() => Boolean, { nullable: true }),
62262
+ __metadata("design:type", Boolean)
62263
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "IsUniqueKey", void 0);
62264
+ __decorate([
62265
+ Field(() => Boolean, { nullable: true }),
62266
+ __metadata("design:type", Boolean)
62267
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "IsReadOnly", void 0);
62268
+ __decorate([
62269
+ Field(() => Boolean, { nullable: true }),
62270
+ __metadata("design:type", Boolean)
62271
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "IsRequired", void 0);
62272
+ __decorate([
62273
+ Field({ nullable: true }),
62274
+ __metadata("design:type", String)
62275
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "RelatedIntegrationObjectID", void 0);
62276
+ __decorate([
62277
+ Field({ nullable: true }),
62278
+ __metadata("design:type", String)
62279
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "RelatedIntegrationObjectFieldName", void 0);
62280
+ __decorate([
62281
+ Field(() => Int, { nullable: true }),
62282
+ __metadata("design:type", Number)
62283
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Sequence", void 0);
62284
+ __decorate([
62285
+ Field({ nullable: true }),
62286
+ __metadata("design:type", String)
62287
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Configuration", void 0);
62288
+ __decorate([
62289
+ Field({ nullable: true }),
62290
+ __metadata("design:type", String)
62291
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "Status", void 0);
62292
+ __decorate([
62293
+ Field(() => [KeyValuePairInput], { nullable: true }),
62294
+ __metadata("design:type", Array)
62295
+ ], UpdateMJIntegrationObjectFieldInput.prototype, "OldValues___", void 0);
62296
+ UpdateMJIntegrationObjectFieldInput = __decorate([
62297
+ InputType()
62298
+ ], UpdateMJIntegrationObjectFieldInput);
62299
+ export { UpdateMJIntegrationObjectFieldInput };
62300
+ //****************************************************************************
62301
+ // RESOLVER for MJ: Integration Object Fields
62302
+ //****************************************************************************
62303
+ let RunMJIntegrationObjectFieldViewResult = class RunMJIntegrationObjectFieldViewResult {
62304
+ };
62305
+ __decorate([
62306
+ Field(() => [MJIntegrationObjectField_]),
62307
+ __metadata("design:type", Array)
62308
+ ], RunMJIntegrationObjectFieldViewResult.prototype, "Results", void 0);
62309
+ __decorate([
62310
+ Field(() => String, { nullable: true }),
62311
+ __metadata("design:type", String)
62312
+ ], RunMJIntegrationObjectFieldViewResult.prototype, "UserViewRunID", void 0);
62313
+ __decorate([
62314
+ Field(() => Int, { nullable: true }),
62315
+ __metadata("design:type", Number)
62316
+ ], RunMJIntegrationObjectFieldViewResult.prototype, "RowCount", void 0);
62317
+ __decorate([
62318
+ Field(() => Int, { nullable: true }),
62319
+ __metadata("design:type", Number)
62320
+ ], RunMJIntegrationObjectFieldViewResult.prototype, "TotalRowCount", void 0);
62321
+ __decorate([
62322
+ Field(() => Int, { nullable: true }),
62323
+ __metadata("design:type", Number)
62324
+ ], RunMJIntegrationObjectFieldViewResult.prototype, "ExecutionTime", void 0);
62325
+ __decorate([
62326
+ Field({ nullable: true }),
62327
+ __metadata("design:type", String)
62328
+ ], RunMJIntegrationObjectFieldViewResult.prototype, "ErrorMessage", void 0);
62329
+ __decorate([
62330
+ Field(() => Boolean, { nullable: false }),
62331
+ __metadata("design:type", Boolean)
62332
+ ], RunMJIntegrationObjectFieldViewResult.prototype, "Success", void 0);
62333
+ RunMJIntegrationObjectFieldViewResult = __decorate([
62334
+ ObjectType()
62335
+ ], RunMJIntegrationObjectFieldViewResult);
62336
+ export { RunMJIntegrationObjectFieldViewResult };
62337
+ let MJIntegrationObjectFieldResolver = class MJIntegrationObjectFieldResolver extends ResolverBase {
62338
+ async RunMJIntegrationObjectFieldViewByID(input, { providers, userPayload }, pubSub) {
62339
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62340
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
62341
+ }
62342
+ async RunMJIntegrationObjectFieldViewByName(input, { providers, userPayload }, pubSub) {
62343
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62344
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
62345
+ }
62346
+ async RunMJIntegrationObjectFieldDynamicView(input, { providers, userPayload }, pubSub) {
62347
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62348
+ input.EntityName = 'MJ: Integration Object Fields';
62349
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
62350
+ }
62351
+ async MJIntegrationObjectField(ID, { userPayload, providers }, pubSub) {
62352
+ this.CheckUserReadPermissions('MJ: Integration Object Fields', userPayload);
62353
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62354
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjectFields')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Object Fields', userPayload, EntityPermissionType.Read, 'AND');
62355
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
62356
+ const result = await this.MapFieldNamesToCodeNames('MJ: Integration Object Fields', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
62357
+ return result;
62358
+ }
62359
+ async CreateMJIntegrationObjectField(input, { providers, userPayload }, pubSub) {
62360
+ const provider = GetReadWriteProvider(providers);
62361
+ return this.CreateRecord('MJ: Integration Object Fields', input, provider, userPayload, pubSub);
62362
+ }
62363
+ async UpdateMJIntegrationObjectField(input, { providers, userPayload }, pubSub) {
62364
+ const provider = GetReadWriteProvider(providers);
62365
+ return this.UpdateRecord('MJ: Integration Object Fields', input, provider, userPayload, pubSub);
62366
+ }
62367
+ async DeleteMJIntegrationObjectField(ID, options, { providers, userPayload }, pubSub) {
62368
+ const provider = GetReadWriteProvider(providers);
62369
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
62370
+ return this.DeleteRecord('MJ: Integration Object Fields', key, options, provider, userPayload, pubSub);
62371
+ }
62372
+ };
62373
+ __decorate([
62374
+ Query(() => RunMJIntegrationObjectFieldViewResult),
62375
+ __param(0, Arg('input', () => RunViewByIDInput)),
62376
+ __param(1, Ctx()),
62377
+ __param(2, PubSub()),
62378
+ __metadata("design:type", Function),
62379
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
62380
+ __metadata("design:returntype", Promise)
62381
+ ], MJIntegrationObjectFieldResolver.prototype, "RunMJIntegrationObjectFieldViewByID", null);
62382
+ __decorate([
62383
+ Query(() => RunMJIntegrationObjectFieldViewResult),
62384
+ __param(0, Arg('input', () => RunViewByNameInput)),
62385
+ __param(1, Ctx()),
62386
+ __param(2, PubSub()),
62387
+ __metadata("design:type", Function),
62388
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
62389
+ __metadata("design:returntype", Promise)
62390
+ ], MJIntegrationObjectFieldResolver.prototype, "RunMJIntegrationObjectFieldViewByName", null);
62391
+ __decorate([
62392
+ Query(() => RunMJIntegrationObjectFieldViewResult),
62393
+ __param(0, Arg('input', () => RunDynamicViewInput)),
62394
+ __param(1, Ctx()),
62395
+ __param(2, PubSub()),
62396
+ __metadata("design:type", Function),
62397
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
62398
+ __metadata("design:returntype", Promise)
62399
+ ], MJIntegrationObjectFieldResolver.prototype, "RunMJIntegrationObjectFieldDynamicView", null);
62400
+ __decorate([
62401
+ Query(() => MJIntegrationObjectField_, { nullable: true }),
62402
+ __param(0, Arg('ID', () => String)),
62403
+ __param(1, Ctx()),
62404
+ __param(2, PubSub()),
62405
+ __metadata("design:type", Function),
62406
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
62407
+ __metadata("design:returntype", Promise)
62408
+ ], MJIntegrationObjectFieldResolver.prototype, "MJIntegrationObjectField", null);
62409
+ __decorate([
62410
+ Mutation(() => MJIntegrationObjectField_),
62411
+ __param(0, Arg('input', () => CreateMJIntegrationObjectFieldInput)),
62412
+ __param(1, Ctx()),
62413
+ __param(2, PubSub()),
62414
+ __metadata("design:type", Function),
62415
+ __metadata("design:paramtypes", [CreateMJIntegrationObjectFieldInput, Object, PubSubEngine]),
62416
+ __metadata("design:returntype", Promise)
62417
+ ], MJIntegrationObjectFieldResolver.prototype, "CreateMJIntegrationObjectField", null);
62418
+ __decorate([
62419
+ Mutation(() => MJIntegrationObjectField_),
62420
+ __param(0, Arg('input', () => UpdateMJIntegrationObjectFieldInput)),
62421
+ __param(1, Ctx()),
62422
+ __param(2, PubSub()),
62423
+ __metadata("design:type", Function),
62424
+ __metadata("design:paramtypes", [UpdateMJIntegrationObjectFieldInput, Object, PubSubEngine]),
62425
+ __metadata("design:returntype", Promise)
62426
+ ], MJIntegrationObjectFieldResolver.prototype, "UpdateMJIntegrationObjectField", null);
62427
+ __decorate([
62428
+ Mutation(() => MJIntegrationObjectField_),
62429
+ __param(0, Arg('ID', () => String)),
62430
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
62431
+ __param(2, Ctx()),
62432
+ __param(3, PubSub()),
62433
+ __metadata("design:type", Function),
62434
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
62435
+ __metadata("design:returntype", Promise)
62436
+ ], MJIntegrationObjectFieldResolver.prototype, "DeleteMJIntegrationObjectField", null);
62437
+ MJIntegrationObjectFieldResolver = __decorate([
62438
+ Resolver(MJIntegrationObjectField_)
62439
+ ], MJIntegrationObjectFieldResolver);
62440
+ export { MJIntegrationObjectFieldResolver };
62441
+ //****************************************************************************
62442
+ // ENTITY CLASS for MJ: Integration Objects
62443
+ //****************************************************************************
62444
+ let MJIntegrationObject_ = class MJIntegrationObject_ {
62445
+ };
62446
+ __decorate([
62447
+ Field({ description: `Primary key` }),
62448
+ MaxLength(36),
62449
+ __metadata("design:type", String)
62450
+ ], MJIntegrationObject_.prototype, "ID", void 0);
62451
+ __decorate([
62452
+ Field({ description: `Foreign key to the Integration that owns this object` }),
62453
+ MaxLength(36),
62454
+ __metadata("design:type", String)
62455
+ ], MJIntegrationObject_.prototype, "IntegrationID", void 0);
62456
+ __decorate([
62457
+ Field({ description: `Internal/programmatic name of the external object (e.g., Members, Events)` }),
62458
+ MaxLength(255),
62459
+ __metadata("design:type", String)
62460
+ ], MJIntegrationObject_.prototype, "Name", void 0);
62461
+ __decorate([
62462
+ Field({ nullable: true, description: `Human-friendly display label` }),
62463
+ MaxLength(255),
62464
+ __metadata("design:type", String)
62465
+ ], MJIntegrationObject_.prototype, "DisplayName", void 0);
62466
+ __decorate([
62467
+ Field({ nullable: true, description: `Description of what this external object represents` }),
62468
+ __metadata("design:type", String)
62469
+ ], MJIntegrationObject_.prototype, "Description", void 0);
62470
+ __decorate([
62471
+ Field({ nullable: true, description: `UI grouping category (e.g., Membership, Events, Finance)` }),
62472
+ MaxLength(100),
62473
+ __metadata("design:type", String)
62474
+ ], MJIntegrationObject_.prototype, "Category", void 0);
62475
+ __decorate([
62476
+ Field({ description: `API endpoint path, may include template variables like {ProfileID} that are resolved at runtime from parent object records` }),
62477
+ MaxLength(500),
62478
+ __metadata("design:type", String)
62479
+ ], MJIntegrationObject_.prototype, "APIPath", void 0);
62480
+ __decorate([
62481
+ Field({ nullable: true, description: `JSON key used to extract the data array from the API response envelope. NULL means the response is a root-level array.` }),
62482
+ MaxLength(255),
62483
+ __metadata("design:type", String)
62484
+ ], MJIntegrationObject_.prototype, "ResponseDataKey", void 0);
62485
+ __decorate([
62486
+ Field(() => Int, { description: `Number of records to request per page from the API` }),
62487
+ __metadata("design:type", Number)
62488
+ ], MJIntegrationObject_.prototype, "DefaultPageSize", void 0);
62489
+ __decorate([
62490
+ Field(() => Boolean, { description: `Whether this endpoint supports paginated fetching` }),
62491
+ __metadata("design:type", Boolean)
62492
+ ], MJIntegrationObject_.prototype, "SupportsPagination", void 0);
62493
+ __decorate([
62494
+ Field({ description: `Pagination strategy: PageNumber (page index), Offset (record offset), Cursor (opaque token), or None` }),
62495
+ MaxLength(20),
62496
+ __metadata("design:type", String)
62497
+ ], MJIntegrationObject_.prototype, "PaginationType", void 0);
62498
+ __decorate([
62499
+ Field(() => Boolean, { description: `Whether this object supports watermark-based incremental sync` }),
62500
+ __metadata("design:type", Boolean)
62501
+ ], MJIntegrationObject_.prototype, "SupportsIncrementalSync", void 0);
62502
+ __decorate([
62503
+ Field(() => Boolean, { description: `Whether data can be pushed back to this object via the API` }),
62504
+ __metadata("design:type", Boolean)
62505
+ ], MJIntegrationObject_.prototype, "SupportsWrite", void 0);
62506
+ __decorate([
62507
+ Field({ nullable: true, description: `JSON object of default query parameters to include with every API request for this object` }),
62508
+ __metadata("design:type", String)
62509
+ ], MJIntegrationObject_.prototype, "DefaultQueryParams", void 0);
62510
+ __decorate([
62511
+ Field({ nullable: true, description: `Freeform JSON for connector-specific configuration not covered by standard columns` }),
62512
+ __metadata("design:type", String)
62513
+ ], MJIntegrationObject_.prototype, "Configuration", void 0);
62514
+ __decorate([
62515
+ Field(() => Int, { description: `Processing and display order. Lower numbers are processed first.` }),
62516
+ __metadata("design:type", Number)
62517
+ ], MJIntegrationObject_.prototype, "Sequence", void 0);
62518
+ __decorate([
62519
+ Field({ description: `Active, Deprecated, or Disabled. Mirrors EntityField status values.` }),
62520
+ MaxLength(25),
62521
+ __metadata("design:type", String)
62522
+ ], MJIntegrationObject_.prototype, "Status", void 0);
62523
+ __decorate([
62524
+ Field(),
62525
+ __metadata("design:type", Date)
62526
+ ], MJIntegrationObject_.prototype, "_mj__CreatedAt", void 0);
62527
+ __decorate([
62528
+ Field(),
62529
+ __metadata("design:type", Date)
62530
+ ], MJIntegrationObject_.prototype, "_mj__UpdatedAt", void 0);
62531
+ __decorate([
62532
+ Field(),
62533
+ MaxLength(100),
62534
+ __metadata("design:type", String)
62535
+ ], MJIntegrationObject_.prototype, "Integration", void 0);
62536
+ __decorate([
62537
+ Field(() => [MJIntegrationObjectField_]),
62538
+ __metadata("design:type", Array)
62539
+ ], MJIntegrationObject_.prototype, "MJIntegrationObjectFields_IntegrationObjectIDArray", void 0);
62540
+ __decorate([
62541
+ Field(() => [MJIntegrationObjectField_]),
62542
+ __metadata("design:type", Array)
62543
+ ], MJIntegrationObject_.prototype, "MJIntegrationObjectFields_RelatedIntegrationObjectIDArray", void 0);
62544
+ MJIntegrationObject_ = __decorate([
62545
+ ObjectType({ description: `Describes an external object or endpoint exposed by an integration (e.g., Members, Events, Invoices)` })
62546
+ ], MJIntegrationObject_);
62547
+ export { MJIntegrationObject_ };
62548
+ //****************************************************************************
62549
+ // INPUT TYPE for MJ: Integration Objects
62550
+ //****************************************************************************
62551
+ let CreateMJIntegrationObjectInput = class CreateMJIntegrationObjectInput {
62552
+ };
62553
+ __decorate([
62554
+ Field({ nullable: true }),
62555
+ __metadata("design:type", String)
62556
+ ], CreateMJIntegrationObjectInput.prototype, "ID", void 0);
62557
+ __decorate([
62558
+ Field({ nullable: true }),
62559
+ __metadata("design:type", String)
62560
+ ], CreateMJIntegrationObjectInput.prototype, "IntegrationID", void 0);
62561
+ __decorate([
62562
+ Field({ nullable: true }),
62563
+ __metadata("design:type", String)
62564
+ ], CreateMJIntegrationObjectInput.prototype, "Name", void 0);
62565
+ __decorate([
62566
+ Field({ nullable: true }),
62567
+ __metadata("design:type", String)
62568
+ ], CreateMJIntegrationObjectInput.prototype, "DisplayName", void 0);
62569
+ __decorate([
62570
+ Field({ nullable: true }),
62571
+ __metadata("design:type", String)
62572
+ ], CreateMJIntegrationObjectInput.prototype, "Description", void 0);
62573
+ __decorate([
62574
+ Field({ nullable: true }),
62575
+ __metadata("design:type", String)
62576
+ ], CreateMJIntegrationObjectInput.prototype, "Category", void 0);
62577
+ __decorate([
62578
+ Field({ nullable: true }),
62579
+ __metadata("design:type", String)
62580
+ ], CreateMJIntegrationObjectInput.prototype, "APIPath", void 0);
62581
+ __decorate([
62582
+ Field({ nullable: true }),
62583
+ __metadata("design:type", String)
62584
+ ], CreateMJIntegrationObjectInput.prototype, "ResponseDataKey", void 0);
62585
+ __decorate([
62586
+ Field(() => Int, { nullable: true }),
62587
+ __metadata("design:type", Number)
62588
+ ], CreateMJIntegrationObjectInput.prototype, "DefaultPageSize", void 0);
62589
+ __decorate([
62590
+ Field(() => Boolean, { nullable: true }),
62591
+ __metadata("design:type", Boolean)
62592
+ ], CreateMJIntegrationObjectInput.prototype, "SupportsPagination", void 0);
62593
+ __decorate([
62594
+ Field({ nullable: true }),
62595
+ __metadata("design:type", String)
62596
+ ], CreateMJIntegrationObjectInput.prototype, "PaginationType", void 0);
62597
+ __decorate([
62598
+ Field(() => Boolean, { nullable: true }),
62599
+ __metadata("design:type", Boolean)
62600
+ ], CreateMJIntegrationObjectInput.prototype, "SupportsIncrementalSync", void 0);
62601
+ __decorate([
62602
+ Field(() => Boolean, { nullable: true }),
62603
+ __metadata("design:type", Boolean)
62604
+ ], CreateMJIntegrationObjectInput.prototype, "SupportsWrite", void 0);
62605
+ __decorate([
62606
+ Field({ nullable: true }),
62607
+ __metadata("design:type", String)
62608
+ ], CreateMJIntegrationObjectInput.prototype, "DefaultQueryParams", void 0);
62609
+ __decorate([
62610
+ Field({ nullable: true }),
62611
+ __metadata("design:type", String)
62612
+ ], CreateMJIntegrationObjectInput.prototype, "Configuration", void 0);
62613
+ __decorate([
62614
+ Field(() => Int, { nullable: true }),
62615
+ __metadata("design:type", Number)
62616
+ ], CreateMJIntegrationObjectInput.prototype, "Sequence", void 0);
62617
+ __decorate([
62618
+ Field({ nullable: true }),
62619
+ __metadata("design:type", String)
62620
+ ], CreateMJIntegrationObjectInput.prototype, "Status", void 0);
62621
+ CreateMJIntegrationObjectInput = __decorate([
62622
+ InputType()
62623
+ ], CreateMJIntegrationObjectInput);
62624
+ export { CreateMJIntegrationObjectInput };
62625
+ //****************************************************************************
62626
+ // INPUT TYPE for MJ: Integration Objects
62627
+ //****************************************************************************
62628
+ let UpdateMJIntegrationObjectInput = class UpdateMJIntegrationObjectInput {
62629
+ };
62630
+ __decorate([
62631
+ Field(),
62632
+ __metadata("design:type", String)
62633
+ ], UpdateMJIntegrationObjectInput.prototype, "ID", void 0);
62634
+ __decorate([
62635
+ Field({ nullable: true }),
62636
+ __metadata("design:type", String)
62637
+ ], UpdateMJIntegrationObjectInput.prototype, "IntegrationID", void 0);
62638
+ __decorate([
62639
+ Field({ nullable: true }),
62640
+ __metadata("design:type", String)
62641
+ ], UpdateMJIntegrationObjectInput.prototype, "Name", void 0);
62642
+ __decorate([
62643
+ Field({ nullable: true }),
62644
+ __metadata("design:type", String)
62645
+ ], UpdateMJIntegrationObjectInput.prototype, "DisplayName", void 0);
62646
+ __decorate([
62647
+ Field({ nullable: true }),
62648
+ __metadata("design:type", String)
62649
+ ], UpdateMJIntegrationObjectInput.prototype, "Description", void 0);
62650
+ __decorate([
62651
+ Field({ nullable: true }),
62652
+ __metadata("design:type", String)
62653
+ ], UpdateMJIntegrationObjectInput.prototype, "Category", void 0);
62654
+ __decorate([
62655
+ Field({ nullable: true }),
62656
+ __metadata("design:type", String)
62657
+ ], UpdateMJIntegrationObjectInput.prototype, "APIPath", void 0);
62658
+ __decorate([
62659
+ Field({ nullable: true }),
62660
+ __metadata("design:type", String)
62661
+ ], UpdateMJIntegrationObjectInput.prototype, "ResponseDataKey", void 0);
62662
+ __decorate([
62663
+ Field(() => Int, { nullable: true }),
62664
+ __metadata("design:type", Number)
62665
+ ], UpdateMJIntegrationObjectInput.prototype, "DefaultPageSize", void 0);
62666
+ __decorate([
62667
+ Field(() => Boolean, { nullable: true }),
62668
+ __metadata("design:type", Boolean)
62669
+ ], UpdateMJIntegrationObjectInput.prototype, "SupportsPagination", void 0);
62670
+ __decorate([
62671
+ Field({ nullable: true }),
62672
+ __metadata("design:type", String)
62673
+ ], UpdateMJIntegrationObjectInput.prototype, "PaginationType", void 0);
62674
+ __decorate([
62675
+ Field(() => Boolean, { nullable: true }),
62676
+ __metadata("design:type", Boolean)
62677
+ ], UpdateMJIntegrationObjectInput.prototype, "SupportsIncrementalSync", void 0);
62678
+ __decorate([
62679
+ Field(() => Boolean, { nullable: true }),
62680
+ __metadata("design:type", Boolean)
62681
+ ], UpdateMJIntegrationObjectInput.prototype, "SupportsWrite", void 0);
62682
+ __decorate([
62683
+ Field({ nullable: true }),
62684
+ __metadata("design:type", String)
62685
+ ], UpdateMJIntegrationObjectInput.prototype, "DefaultQueryParams", void 0);
62686
+ __decorate([
62687
+ Field({ nullable: true }),
62688
+ __metadata("design:type", String)
62689
+ ], UpdateMJIntegrationObjectInput.prototype, "Configuration", void 0);
62690
+ __decorate([
62691
+ Field(() => Int, { nullable: true }),
62692
+ __metadata("design:type", Number)
62693
+ ], UpdateMJIntegrationObjectInput.prototype, "Sequence", void 0);
62694
+ __decorate([
62695
+ Field({ nullable: true }),
62696
+ __metadata("design:type", String)
62697
+ ], UpdateMJIntegrationObjectInput.prototype, "Status", void 0);
62698
+ __decorate([
62699
+ Field(() => [KeyValuePairInput], { nullable: true }),
62700
+ __metadata("design:type", Array)
62701
+ ], UpdateMJIntegrationObjectInput.prototype, "OldValues___", void 0);
62702
+ UpdateMJIntegrationObjectInput = __decorate([
62703
+ InputType()
62704
+ ], UpdateMJIntegrationObjectInput);
62705
+ export { UpdateMJIntegrationObjectInput };
62706
+ //****************************************************************************
62707
+ // RESOLVER for MJ: Integration Objects
62708
+ //****************************************************************************
62709
+ let RunMJIntegrationObjectViewResult = class RunMJIntegrationObjectViewResult {
62710
+ };
62711
+ __decorate([
62712
+ Field(() => [MJIntegrationObject_]),
62713
+ __metadata("design:type", Array)
62714
+ ], RunMJIntegrationObjectViewResult.prototype, "Results", void 0);
62715
+ __decorate([
62716
+ Field(() => String, { nullable: true }),
62717
+ __metadata("design:type", String)
62718
+ ], RunMJIntegrationObjectViewResult.prototype, "UserViewRunID", void 0);
62719
+ __decorate([
62720
+ Field(() => Int, { nullable: true }),
62721
+ __metadata("design:type", Number)
62722
+ ], RunMJIntegrationObjectViewResult.prototype, "RowCount", void 0);
62723
+ __decorate([
62724
+ Field(() => Int, { nullable: true }),
62725
+ __metadata("design:type", Number)
62726
+ ], RunMJIntegrationObjectViewResult.prototype, "TotalRowCount", void 0);
62727
+ __decorate([
62728
+ Field(() => Int, { nullable: true }),
62729
+ __metadata("design:type", Number)
62730
+ ], RunMJIntegrationObjectViewResult.prototype, "ExecutionTime", void 0);
62731
+ __decorate([
62732
+ Field({ nullable: true }),
62733
+ __metadata("design:type", String)
62734
+ ], RunMJIntegrationObjectViewResult.prototype, "ErrorMessage", void 0);
62735
+ __decorate([
62736
+ Field(() => Boolean, { nullable: false }),
62737
+ __metadata("design:type", Boolean)
62738
+ ], RunMJIntegrationObjectViewResult.prototype, "Success", void 0);
62739
+ RunMJIntegrationObjectViewResult = __decorate([
62740
+ ObjectType()
62741
+ ], RunMJIntegrationObjectViewResult);
62742
+ export { RunMJIntegrationObjectViewResult };
62743
+ let MJIntegrationObjectResolver = class MJIntegrationObjectResolver extends ResolverBase {
62744
+ async RunMJIntegrationObjectViewByID(input, { providers, userPayload }, pubSub) {
62745
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62746
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
62747
+ }
62748
+ async RunMJIntegrationObjectViewByName(input, { providers, userPayload }, pubSub) {
62749
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62750
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
62751
+ }
62752
+ async RunMJIntegrationObjectDynamicView(input, { providers, userPayload }, pubSub) {
62753
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62754
+ input.EntityName = 'MJ: Integration Objects';
62755
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
62756
+ }
62757
+ async MJIntegrationObject(ID, { userPayload, providers }, pubSub) {
62758
+ this.CheckUserReadPermissions('MJ: Integration Objects', userPayload);
62759
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62760
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjects')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Objects', userPayload, EntityPermissionType.Read, 'AND');
62761
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
62762
+ const result = await this.MapFieldNamesToCodeNames('MJ: Integration Objects', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
62763
+ return result;
62764
+ }
62765
+ async MJIntegrationObjectFields_IntegrationObjectIDArray(mjintegrationobject_, { userPayload, providers }, pubSub) {
62766
+ this.CheckUserReadPermissions('MJ: Integration Object Fields', userPayload);
62767
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62768
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjectFields')} WHERE ${provider.QuoteIdentifier('IntegrationObjectID')}='${mjintegrationobject_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Object Fields', userPayload, EntityPermissionType.Read, 'AND');
62769
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
62770
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Integration Object Fields', rows, this.GetUserFromPayload(userPayload));
62771
+ return result;
62772
+ }
62773
+ async MJIntegrationObjectFields_RelatedIntegrationObjectIDArray(mjintegrationobject_, { userPayload, providers }, pubSub) {
62774
+ this.CheckUserReadPermissions('MJ: Integration Object Fields', userPayload);
62775
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62776
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjectFields')} WHERE ${provider.QuoteIdentifier('RelatedIntegrationObjectID')}='${mjintegrationobject_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Object Fields', userPayload, EntityPermissionType.Read, 'AND');
62777
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
62778
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Integration Object Fields', rows, this.GetUserFromPayload(userPayload));
62779
+ return result;
62780
+ }
62781
+ async CreateMJIntegrationObject(input, { providers, userPayload }, pubSub) {
62782
+ const provider = GetReadWriteProvider(providers);
62783
+ return this.CreateRecord('MJ: Integration Objects', input, provider, userPayload, pubSub);
62784
+ }
62785
+ async UpdateMJIntegrationObject(input, { providers, userPayload }, pubSub) {
62786
+ const provider = GetReadWriteProvider(providers);
62787
+ return this.UpdateRecord('MJ: Integration Objects', input, provider, userPayload, pubSub);
62788
+ }
62789
+ async DeleteMJIntegrationObject(ID, options, { providers, userPayload }, pubSub) {
62790
+ const provider = GetReadWriteProvider(providers);
62791
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
62792
+ return this.DeleteRecord('MJ: Integration Objects', key, options, provider, userPayload, pubSub);
62793
+ }
62794
+ };
62795
+ __decorate([
62796
+ Query(() => RunMJIntegrationObjectViewResult),
62797
+ __param(0, Arg('input', () => RunViewByIDInput)),
62798
+ __param(1, Ctx()),
62799
+ __param(2, PubSub()),
62800
+ __metadata("design:type", Function),
62801
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
62802
+ __metadata("design:returntype", Promise)
62803
+ ], MJIntegrationObjectResolver.prototype, "RunMJIntegrationObjectViewByID", null);
62804
+ __decorate([
62805
+ Query(() => RunMJIntegrationObjectViewResult),
62806
+ __param(0, Arg('input', () => RunViewByNameInput)),
62807
+ __param(1, Ctx()),
62808
+ __param(2, PubSub()),
62809
+ __metadata("design:type", Function),
62810
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
62811
+ __metadata("design:returntype", Promise)
62812
+ ], MJIntegrationObjectResolver.prototype, "RunMJIntegrationObjectViewByName", null);
62813
+ __decorate([
62814
+ Query(() => RunMJIntegrationObjectViewResult),
62815
+ __param(0, Arg('input', () => RunDynamicViewInput)),
62816
+ __param(1, Ctx()),
62817
+ __param(2, PubSub()),
62818
+ __metadata("design:type", Function),
62819
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
62820
+ __metadata("design:returntype", Promise)
62821
+ ], MJIntegrationObjectResolver.prototype, "RunMJIntegrationObjectDynamicView", null);
62822
+ __decorate([
62823
+ Query(() => MJIntegrationObject_, { nullable: true }),
62824
+ __param(0, Arg('ID', () => String)),
62825
+ __param(1, Ctx()),
62826
+ __param(2, PubSub()),
62827
+ __metadata("design:type", Function),
62828
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
62829
+ __metadata("design:returntype", Promise)
62830
+ ], MJIntegrationObjectResolver.prototype, "MJIntegrationObject", null);
62831
+ __decorate([
62832
+ FieldResolver(() => [MJIntegrationObjectField_]),
62833
+ __param(0, Root()),
62834
+ __param(1, Ctx()),
62835
+ __param(2, PubSub()),
62836
+ __metadata("design:type", Function),
62837
+ __metadata("design:paramtypes", [MJIntegrationObject_, Object, PubSubEngine]),
62838
+ __metadata("design:returntype", Promise)
62839
+ ], MJIntegrationObjectResolver.prototype, "MJIntegrationObjectFields_IntegrationObjectIDArray", null);
62840
+ __decorate([
62841
+ FieldResolver(() => [MJIntegrationObjectField_]),
62842
+ __param(0, Root()),
62843
+ __param(1, Ctx()),
62844
+ __param(2, PubSub()),
62845
+ __metadata("design:type", Function),
62846
+ __metadata("design:paramtypes", [MJIntegrationObject_, Object, PubSubEngine]),
62847
+ __metadata("design:returntype", Promise)
62848
+ ], MJIntegrationObjectResolver.prototype, "MJIntegrationObjectFields_RelatedIntegrationObjectIDArray", null);
62849
+ __decorate([
62850
+ Mutation(() => MJIntegrationObject_),
62851
+ __param(0, Arg('input', () => CreateMJIntegrationObjectInput)),
62852
+ __param(1, Ctx()),
62853
+ __param(2, PubSub()),
62854
+ __metadata("design:type", Function),
62855
+ __metadata("design:paramtypes", [CreateMJIntegrationObjectInput, Object, PubSubEngine]),
62856
+ __metadata("design:returntype", Promise)
62857
+ ], MJIntegrationObjectResolver.prototype, "CreateMJIntegrationObject", null);
62858
+ __decorate([
62859
+ Mutation(() => MJIntegrationObject_),
62860
+ __param(0, Arg('input', () => UpdateMJIntegrationObjectInput)),
62861
+ __param(1, Ctx()),
62862
+ __param(2, PubSub()),
62863
+ __metadata("design:type", Function),
62864
+ __metadata("design:paramtypes", [UpdateMJIntegrationObjectInput, Object, PubSubEngine]),
62865
+ __metadata("design:returntype", Promise)
62866
+ ], MJIntegrationObjectResolver.prototype, "UpdateMJIntegrationObject", null);
62867
+ __decorate([
62868
+ Mutation(() => MJIntegrationObject_),
62869
+ __param(0, Arg('ID', () => String)),
62870
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
62871
+ __param(2, Ctx()),
62872
+ __param(3, PubSub()),
62873
+ __metadata("design:type", Function),
62874
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
62875
+ __metadata("design:returntype", Promise)
62876
+ ], MJIntegrationObjectResolver.prototype, "DeleteMJIntegrationObject", null);
62877
+ MJIntegrationObjectResolver = __decorate([
62878
+ Resolver(MJIntegrationObject_)
62879
+ ], MJIntegrationObjectResolver);
62880
+ export { MJIntegrationObjectResolver };
62881
+ //****************************************************************************
62882
+ // ENTITY CLASS for MJ: Integration Source Types
62883
+ //****************************************************************************
62884
+ let MJIntegrationSourceType_ = class MJIntegrationSourceType_ {
62885
+ };
62886
+ __decorate([
62887
+ Field(),
62888
+ MaxLength(36),
62889
+ __metadata("design:type", String)
62890
+ ], MJIntegrationSourceType_.prototype, "ID", void 0);
62891
+ __decorate([
62892
+ Field({ description: `Display name for this source type (e.g. SaaS API, Relational Database, File Feed).` }),
62893
+ MaxLength(200),
62894
+ __metadata("design:type", String)
62895
+ ], MJIntegrationSourceType_.prototype, "Name", void 0);
62896
+ __decorate([
62897
+ Field({ nullable: true, description: `Optional longer description of this source type.` }),
62898
+ __metadata("design:type", String)
62899
+ ], MJIntegrationSourceType_.prototype, "Description", void 0);
62900
+ __decorate([
62901
+ Field({ description: `Fully-qualified class name registered via @RegisterClass that implements BaseIntegrationConnector for this source type.` }),
62902
+ MaxLength(500),
62903
+ __metadata("design:type", String)
62904
+ ], MJIntegrationSourceType_.prototype, "DriverClass", void 0);
62905
+ __decorate([
62906
+ Field({ nullable: true, description: `Font Awesome icon class for UI display.` }),
62907
+ MaxLength(200),
62908
+ __metadata("design:type", String)
62909
+ ], MJIntegrationSourceType_.prototype, "IconClass", void 0);
62910
+ __decorate([
62911
+ Field({ description: `Whether this source type is available for use. Active or Inactive.` }),
62912
+ MaxLength(50),
62913
+ __metadata("design:type", String)
62914
+ ], MJIntegrationSourceType_.prototype, "Status", void 0);
62915
+ __decorate([
62916
+ Field(),
62917
+ __metadata("design:type", Date)
62918
+ ], MJIntegrationSourceType_.prototype, "_mj__CreatedAt", void 0);
62919
+ __decorate([
62920
+ Field(),
62921
+ __metadata("design:type", Date)
62922
+ ], MJIntegrationSourceType_.prototype, "_mj__UpdatedAt", void 0);
62923
+ __decorate([
62924
+ Field(() => [MJCompanyIntegration_]),
62925
+ __metadata("design:type", Array)
62926
+ ], MJIntegrationSourceType_.prototype, "MJCompanyIntegrations_SourceTypeIDArray", void 0);
62927
+ MJIntegrationSourceType_ = __decorate([
62928
+ ObjectType({ description: `Defines categories of integration sources such as SaaS API, Relational Database, or File Feed.` })
62929
+ ], MJIntegrationSourceType_);
62930
+ export { MJIntegrationSourceType_ };
62931
+ //****************************************************************************
62932
+ // INPUT TYPE for MJ: Integration Source Types
62933
+ //****************************************************************************
62934
+ let CreateMJIntegrationSourceTypeInput = class CreateMJIntegrationSourceTypeInput {
62935
+ };
62936
+ __decorate([
62937
+ Field({ nullable: true }),
62938
+ __metadata("design:type", String)
62939
+ ], CreateMJIntegrationSourceTypeInput.prototype, "ID", void 0);
62940
+ __decorate([
62941
+ Field({ nullable: true }),
62942
+ __metadata("design:type", String)
62943
+ ], CreateMJIntegrationSourceTypeInput.prototype, "Name", void 0);
62944
+ __decorate([
62945
+ Field({ nullable: true }),
62946
+ __metadata("design:type", String)
62947
+ ], CreateMJIntegrationSourceTypeInput.prototype, "Description", void 0);
62948
+ __decorate([
62949
+ Field({ nullable: true }),
62950
+ __metadata("design:type", String)
62951
+ ], CreateMJIntegrationSourceTypeInput.prototype, "DriverClass", void 0);
62952
+ __decorate([
62953
+ Field({ nullable: true }),
62954
+ __metadata("design:type", String)
62955
+ ], CreateMJIntegrationSourceTypeInput.prototype, "IconClass", void 0);
62956
+ __decorate([
62957
+ Field({ nullable: true }),
62958
+ __metadata("design:type", String)
62959
+ ], CreateMJIntegrationSourceTypeInput.prototype, "Status", void 0);
62960
+ CreateMJIntegrationSourceTypeInput = __decorate([
62961
+ InputType()
62962
+ ], CreateMJIntegrationSourceTypeInput);
62963
+ export { CreateMJIntegrationSourceTypeInput };
62964
+ //****************************************************************************
62965
+ // INPUT TYPE for MJ: Integration Source Types
62966
+ //****************************************************************************
62967
+ let UpdateMJIntegrationSourceTypeInput = class UpdateMJIntegrationSourceTypeInput {
62968
+ };
62969
+ __decorate([
62970
+ Field(),
62971
+ __metadata("design:type", String)
62972
+ ], UpdateMJIntegrationSourceTypeInput.prototype, "ID", void 0);
62973
+ __decorate([
62974
+ Field({ nullable: true }),
62975
+ __metadata("design:type", String)
62976
+ ], UpdateMJIntegrationSourceTypeInput.prototype, "Name", void 0);
62977
+ __decorate([
62978
+ Field({ nullable: true }),
62979
+ __metadata("design:type", String)
62980
+ ], UpdateMJIntegrationSourceTypeInput.prototype, "Description", void 0);
62981
+ __decorate([
62982
+ Field({ nullable: true }),
62983
+ __metadata("design:type", String)
62984
+ ], UpdateMJIntegrationSourceTypeInput.prototype, "DriverClass", void 0);
62985
+ __decorate([
62986
+ Field({ nullable: true }),
62987
+ __metadata("design:type", String)
62988
+ ], UpdateMJIntegrationSourceTypeInput.prototype, "IconClass", void 0);
62989
+ __decorate([
62990
+ Field({ nullable: true }),
62991
+ __metadata("design:type", String)
62992
+ ], UpdateMJIntegrationSourceTypeInput.prototype, "Status", void 0);
62993
+ __decorate([
62994
+ Field(() => [KeyValuePairInput], { nullable: true }),
62995
+ __metadata("design:type", Array)
62996
+ ], UpdateMJIntegrationSourceTypeInput.prototype, "OldValues___", void 0);
62997
+ UpdateMJIntegrationSourceTypeInput = __decorate([
62998
+ InputType()
62999
+ ], UpdateMJIntegrationSourceTypeInput);
63000
+ export { UpdateMJIntegrationSourceTypeInput };
63001
+ //****************************************************************************
63002
+ // RESOLVER for MJ: Integration Source Types
63003
+ //****************************************************************************
63004
+ let RunMJIntegrationSourceTypeViewResult = class RunMJIntegrationSourceTypeViewResult {
63005
+ };
63006
+ __decorate([
63007
+ Field(() => [MJIntegrationSourceType_]),
63008
+ __metadata("design:type", Array)
63009
+ ], RunMJIntegrationSourceTypeViewResult.prototype, "Results", void 0);
63010
+ __decorate([
63011
+ Field(() => String, { nullable: true }),
63012
+ __metadata("design:type", String)
63013
+ ], RunMJIntegrationSourceTypeViewResult.prototype, "UserViewRunID", void 0);
63014
+ __decorate([
63015
+ Field(() => Int, { nullable: true }),
63016
+ __metadata("design:type", Number)
63017
+ ], RunMJIntegrationSourceTypeViewResult.prototype, "RowCount", void 0);
63018
+ __decorate([
63019
+ Field(() => Int, { nullable: true }),
63020
+ __metadata("design:type", Number)
63021
+ ], RunMJIntegrationSourceTypeViewResult.prototype, "TotalRowCount", void 0);
63022
+ __decorate([
63023
+ Field(() => Int, { nullable: true }),
63024
+ __metadata("design:type", Number)
63025
+ ], RunMJIntegrationSourceTypeViewResult.prototype, "ExecutionTime", void 0);
63026
+ __decorate([
63027
+ Field({ nullable: true }),
63028
+ __metadata("design:type", String)
63029
+ ], RunMJIntegrationSourceTypeViewResult.prototype, "ErrorMessage", void 0);
63030
+ __decorate([
63031
+ Field(() => Boolean, { nullable: false }),
63032
+ __metadata("design:type", Boolean)
63033
+ ], RunMJIntegrationSourceTypeViewResult.prototype, "Success", void 0);
63034
+ RunMJIntegrationSourceTypeViewResult = __decorate([
63035
+ ObjectType()
63036
+ ], RunMJIntegrationSourceTypeViewResult);
63037
+ export { RunMJIntegrationSourceTypeViewResult };
63038
+ let MJIntegrationSourceTypeResolver = class MJIntegrationSourceTypeResolver extends ResolverBase {
62024
63039
  async RunMJIntegrationSourceTypeViewByID(input, { providers, userPayload }, pubSub) {
62025
63040
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
62026
63041
  return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
@@ -62489,6 +63504,10 @@ __decorate([
62489
63504
  Field(() => [MJRecordChange_]),
62490
63505
  __metadata("design:type", Array)
62491
63506
  ], MJIntegration_.prototype, "MJRecordChanges_IntegrationIDArray", void 0);
63507
+ __decorate([
63508
+ Field(() => [MJIntegrationObject_]),
63509
+ __metadata("design:type", Array)
63510
+ ], MJIntegration_.prototype, "MJIntegrationObjects_IntegrationIDArray", void 0);
62492
63511
  MJIntegration_ = __decorate([
62493
63512
  ObjectType({ description: `Catalog of all integrations that have been configured in the system.` })
62494
63513
  ], MJIntegration_);
@@ -62678,6 +63697,14 @@ let MJIntegrationResolver = class MJIntegrationResolver extends ResolverBase {
62678
63697
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Record Changes', rows, this.GetUserFromPayload(userPayload));
62679
63698
  return result;
62680
63699
  }
63700
+ async MJIntegrationObjects_IntegrationIDArray(mjintegration_, { userPayload, providers }, pubSub) {
63701
+ this.CheckUserReadPermissions('MJ: Integration Objects', userPayload);
63702
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63703
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwIntegrationObjects')} WHERE ${provider.QuoteIdentifier('IntegrationID')}='${mjintegration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Integration Objects', userPayload, EntityPermissionType.Read, 'AND');
63704
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
63705
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Integration Objects', rows, this.GetUserFromPayload(userPayload));
63706
+ return result;
63707
+ }
62681
63708
  async CreateMJIntegration(input, { providers, userPayload }, pubSub) {
62682
63709
  const provider = GetReadWriteProvider(providers);
62683
63710
  return this.CreateRecord('MJ: Integrations', input, provider, userPayload, pubSub);
@@ -62763,6 +63790,15 @@ __decorate([
62763
63790
  __metadata("design:paramtypes", [MJIntegration_, Object, PubSubEngine]),
62764
63791
  __metadata("design:returntype", Promise)
62765
63792
  ], MJIntegrationResolver.prototype, "MJRecordChanges_IntegrationIDArray", null);
63793
+ __decorate([
63794
+ FieldResolver(() => [MJIntegrationObject_]),
63795
+ __param(0, Root()),
63796
+ __param(1, Ctx()),
63797
+ __param(2, PubSub()),
63798
+ __metadata("design:type", Function),
63799
+ __metadata("design:paramtypes", [MJIntegration_, Object, PubSubEngine]),
63800
+ __metadata("design:returntype", Promise)
63801
+ ], MJIntegrationResolver.prototype, "MJIntegrationObjects_IntegrationIDArray", null);
62766
63802
  __decorate([
62767
63803
  Mutation(() => MJIntegration_),
62768
63804
  __param(0, Arg('input', () => CreateMJIntegrationInput)),