@memberjunction/server 5.14.0 → 5.16.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/auth/index.d.ts +0 -3
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +5 -7
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/initializeProviders.js +2 -2
- package/dist/auth/initializeProviders.js.map +1 -1
- package/dist/config.d.ts +37 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +8 -0
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +3 -3
- package/dist/context.js.map +1 -1
- package/dist/generated/generated.d.ts +169 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +909 -1
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/resolvers/DatasetResolver.d.ts +5 -0
- package/dist/resolvers/DatasetResolver.d.ts.map +1 -1
- package/dist/resolvers/DatasetResolver.js +35 -0
- package/dist/resolvers/DatasetResolver.js.map +1 -1
- package/package.json +60 -59
- package/src/__tests__/unifiedAuth.test.ts +3 -2
- package/src/auth/__tests__/backward-compatibility.test.ts +2 -3
- package/src/auth/index.ts +5 -8
- package/src/auth/initializeProviders.ts +2 -2
- package/src/config.ts +8 -0
- package/src/context.ts +3 -3
- package/src/generated/generated.ts +635 -2
- package/src/index.ts +21 -3
- package/src/resolvers/DatasetResolver.ts +36 -0
- package/dist/auth/AuthProviderFactory.d.ts +0 -68
- package/dist/auth/AuthProviderFactory.d.ts.map +0 -1
- package/dist/auth/AuthProviderFactory.js +0 -155
- package/dist/auth/AuthProviderFactory.js.map +0 -1
- package/dist/auth/BaseAuthProvider.d.ts +0 -41
- package/dist/auth/BaseAuthProvider.d.ts.map +0 -1
- package/dist/auth/BaseAuthProvider.js +0 -102
- package/dist/auth/BaseAuthProvider.js.map +0 -1
- package/dist/auth/IAuthProvider.d.ts +0 -46
- package/dist/auth/IAuthProvider.d.ts.map +0 -1
- package/dist/auth/IAuthProvider.js +0 -2
- package/dist/auth/IAuthProvider.js.map +0 -1
- package/dist/auth/providers/Auth0Provider.d.ts +0 -18
- package/dist/auth/providers/Auth0Provider.d.ts.map +0 -1
- package/dist/auth/providers/Auth0Provider.js +0 -52
- package/dist/auth/providers/Auth0Provider.js.map +0 -1
- package/dist/auth/providers/CognitoProvider.d.ts +0 -18
- package/dist/auth/providers/CognitoProvider.d.ts.map +0 -1
- package/dist/auth/providers/CognitoProvider.js +0 -56
- package/dist/auth/providers/CognitoProvider.js.map +0 -1
- package/dist/auth/providers/GoogleProvider.d.ts +0 -18
- package/dist/auth/providers/GoogleProvider.d.ts.map +0 -1
- package/dist/auth/providers/GoogleProvider.js +0 -51
- package/dist/auth/providers/GoogleProvider.js.map +0 -1
- package/dist/auth/providers/MSALProvider.d.ts +0 -18
- package/dist/auth/providers/MSALProvider.d.ts.map +0 -1
- package/dist/auth/providers/MSALProvider.js +0 -52
- package/dist/auth/providers/MSALProvider.js.map +0 -1
- package/dist/auth/providers/OktaProvider.d.ts +0 -18
- package/dist/auth/providers/OktaProvider.d.ts.map +0 -1
- package/dist/auth/providers/OktaProvider.js +0 -52
- package/dist/auth/providers/OktaProvider.js.map +0 -1
- package/dist/auth/tokenExpiredError.d.ts +0 -5
- package/dist/auth/tokenExpiredError.d.ts.map +0 -1
- package/dist/auth/tokenExpiredError.js +0 -12
- package/dist/auth/tokenExpiredError.js.map +0 -1
- package/src/auth/AuthProviderFactory.ts +0 -182
- package/src/auth/BaseAuthProvider.ts +0 -137
- package/src/auth/IAuthProvider.ts +0 -54
- package/src/auth/providers/Auth0Provider.ts +0 -45
- package/src/auth/providers/CognitoProvider.ts +0 -50
- package/src/auth/providers/GoogleProvider.ts +0 -45
- package/src/auth/providers/MSALProvider.ts +0 -45
- package/src/auth/providers/OktaProvider.ts +0 -46
- package/src/auth/tokenExpiredError.ts +0 -12
|
@@ -14799,7 +14799,7 @@ __decorate([
|
|
|
14799
14799
|
], MJAICredentialBinding_.prototype, "AIVendor", void 0);
|
|
14800
14800
|
__decorate([
|
|
14801
14801
|
Field({ nullable: true }),
|
|
14802
|
-
MaxLength(
|
|
14802
|
+
MaxLength(100),
|
|
14803
14803
|
__metadata("design:type", String)
|
|
14804
14804
|
], MJAICredentialBinding_.prototype, "AIModelVendor", void 0);
|
|
14805
14805
|
__decorate([
|
|
@@ -17221,6 +17221,14 @@ __decorate([
|
|
|
17221
17221
|
MaxLength(36),
|
|
17222
17222
|
__metadata("design:type", String)
|
|
17223
17223
|
], MJAIModelType_.prototype, "DefaultOutputModalityID", void 0);
|
|
17224
|
+
__decorate([
|
|
17225
|
+
Field(() => Boolean, { description: `Whether models of this type generally support assistant prefill. This is a default value that individual AI Model Vendor records can override. For LLM types, many providers support prefill; for image/audio types, this is typically false.` }),
|
|
17226
|
+
__metadata("design:type", Boolean)
|
|
17227
|
+
], MJAIModelType_.prototype, "SupportsPrefill", void 0);
|
|
17228
|
+
__decorate([
|
|
17229
|
+
Field({ nullable: true, description: `Default fallback instruction text used when PrefillFallbackMode is SystemInstruction and the provider does not support native prefill. Use {{prefill}} as a placeholder for the actual prefill text. Example: "IMPORTANT: You must begin your response with exactly: {{prefill}}". Individual AI Model Vendor records can override this. If null, a generic fallback is used.` }),
|
|
17230
|
+
__metadata("design:type", String)
|
|
17231
|
+
], MJAIModelType_.prototype, "PrefillFallbackText", void 0);
|
|
17224
17232
|
__decorate([
|
|
17225
17233
|
Field(),
|
|
17226
17234
|
MaxLength(50),
|
|
@@ -17268,6 +17276,14 @@ __decorate([
|
|
|
17268
17276
|
Field({ nullable: true }),
|
|
17269
17277
|
__metadata("design:type", String)
|
|
17270
17278
|
], CreateMJAIModelTypeInput.prototype, "DefaultOutputModalityID", void 0);
|
|
17279
|
+
__decorate([
|
|
17280
|
+
Field(() => Boolean, { nullable: true }),
|
|
17281
|
+
__metadata("design:type", Boolean)
|
|
17282
|
+
], CreateMJAIModelTypeInput.prototype, "SupportsPrefill", void 0);
|
|
17283
|
+
__decorate([
|
|
17284
|
+
Field({ nullable: true }),
|
|
17285
|
+
__metadata("design:type", String)
|
|
17286
|
+
], CreateMJAIModelTypeInput.prototype, "PrefillFallbackText", void 0);
|
|
17271
17287
|
CreateMJAIModelTypeInput = __decorate([
|
|
17272
17288
|
InputType()
|
|
17273
17289
|
], CreateMJAIModelTypeInput);
|
|
@@ -17297,6 +17313,14 @@ __decorate([
|
|
|
17297
17313
|
Field({ nullable: true }),
|
|
17298
17314
|
__metadata("design:type", String)
|
|
17299
17315
|
], UpdateMJAIModelTypeInput.prototype, "DefaultOutputModalityID", void 0);
|
|
17316
|
+
__decorate([
|
|
17317
|
+
Field(() => Boolean, { nullable: true }),
|
|
17318
|
+
__metadata("design:type", Boolean)
|
|
17319
|
+
], UpdateMJAIModelTypeInput.prototype, "SupportsPrefill", void 0);
|
|
17320
|
+
__decorate([
|
|
17321
|
+
Field({ nullable: true }),
|
|
17322
|
+
__metadata("design:type", String)
|
|
17323
|
+
], UpdateMJAIModelTypeInput.prototype, "PrefillFallbackText", void 0);
|
|
17300
17324
|
__decorate([
|
|
17301
17325
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
17302
17326
|
__metadata("design:type", Array)
|
|
@@ -17574,6 +17598,14 @@ __decorate([
|
|
|
17574
17598
|
MaxLength(36),
|
|
17575
17599
|
__metadata("design:type", String)
|
|
17576
17600
|
], MJAIModelVendor_.prototype, "TypeID", void 0);
|
|
17601
|
+
__decorate([
|
|
17602
|
+
Field(() => Boolean, { nullable: true, description: `Whether this specific model-vendor implementation supports assistant prefill. Overrides the AI Model Type default when set. NULL means inherit from the AI Model Type. For example, Claude via Anthropic supports prefill (true), but GPT-4 via OpenAI does not (false).` }),
|
|
17603
|
+
__metadata("design:type", Boolean)
|
|
17604
|
+
], MJAIModelVendor_.prototype, "SupportsPrefill", void 0);
|
|
17605
|
+
__decorate([
|
|
17606
|
+
Field({ nullable: true, description: `Model-specific fallback instruction text used when PrefillFallbackMode is SystemInstruction and the provider does not support native prefill. Overrides the AI Model Type default. Use {{prefill}} as a placeholder. Allows tuning the fallback instruction per model since different models respond better to different phrasing.` }),
|
|
17607
|
+
__metadata("design:type", String)
|
|
17608
|
+
], MJAIModelVendor_.prototype, "PrefillFallbackText", void 0);
|
|
17577
17609
|
__decorate([
|
|
17578
17610
|
Field(),
|
|
17579
17611
|
MaxLength(50),
|
|
@@ -17658,6 +17690,14 @@ __decorate([
|
|
|
17658
17690
|
Field({ nullable: true }),
|
|
17659
17691
|
__metadata("design:type", String)
|
|
17660
17692
|
], CreateMJAIModelVendorInput.prototype, "TypeID", void 0);
|
|
17693
|
+
__decorate([
|
|
17694
|
+
Field(() => Boolean, { nullable: true }),
|
|
17695
|
+
__metadata("design:type", Boolean)
|
|
17696
|
+
], CreateMJAIModelVendorInput.prototype, "SupportsPrefill", void 0);
|
|
17697
|
+
__decorate([
|
|
17698
|
+
Field({ nullable: true }),
|
|
17699
|
+
__metadata("design:type", String)
|
|
17700
|
+
], CreateMJAIModelVendorInput.prototype, "PrefillFallbackText", void 0);
|
|
17661
17701
|
CreateMJAIModelVendorInput = __decorate([
|
|
17662
17702
|
InputType()
|
|
17663
17703
|
], CreateMJAIModelVendorInput);
|
|
@@ -17723,6 +17763,14 @@ __decorate([
|
|
|
17723
17763
|
Field({ nullable: true }),
|
|
17724
17764
|
__metadata("design:type", String)
|
|
17725
17765
|
], UpdateMJAIModelVendorInput.prototype, "TypeID", void 0);
|
|
17766
|
+
__decorate([
|
|
17767
|
+
Field(() => Boolean, { nullable: true }),
|
|
17768
|
+
__metadata("design:type", Boolean)
|
|
17769
|
+
], UpdateMJAIModelVendorInput.prototype, "SupportsPrefill", void 0);
|
|
17770
|
+
__decorate([
|
|
17771
|
+
Field({ nullable: true }),
|
|
17772
|
+
__metadata("design:type", String)
|
|
17773
|
+
], UpdateMJAIModelVendorInput.prototype, "PrefillFallbackText", void 0);
|
|
17726
17774
|
__decorate([
|
|
17727
17775
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
17728
17776
|
__metadata("design:type", Array)
|
|
@@ -17950,6 +17998,14 @@ __decorate([
|
|
|
17950
17998
|
MaxLength(36),
|
|
17951
17999
|
__metadata("design:type", String)
|
|
17952
18000
|
], MJAIModel_.prototype, "PriorVersionID", void 0);
|
|
18001
|
+
__decorate([
|
|
18002
|
+
Field(() => Boolean, { nullable: true, description: `Whether this model supports assistant prefill. Overrides the AI Model Type default when set. NULL means inherit from the AI Model Type. Can be further overridden per-vendor in AI Model Vendor.` }),
|
|
18003
|
+
__metadata("design:type", Boolean)
|
|
18004
|
+
], MJAIModel_.prototype, "SupportsPrefill", void 0);
|
|
18005
|
+
__decorate([
|
|
18006
|
+
Field({ nullable: true, description: `Model-level fallback instruction text used when PrefillFallbackMode is SystemInstruction and the provider does not support native prefill. Overrides the AI Model Type default, can be further overridden per-vendor in AI Model Vendor. Use {{prefill}} as a placeholder.` }),
|
|
18007
|
+
__metadata("design:type", String)
|
|
18008
|
+
], MJAIModel_.prototype, "PrefillFallbackText", void 0);
|
|
17953
18009
|
__decorate([
|
|
17954
18010
|
Field(),
|
|
17955
18011
|
MaxLength(50),
|
|
@@ -18125,6 +18181,14 @@ __decorate([
|
|
|
18125
18181
|
Field({ nullable: true }),
|
|
18126
18182
|
__metadata("design:type", String)
|
|
18127
18183
|
], CreateMJAIModelInput.prototype, "PriorVersionID", void 0);
|
|
18184
|
+
__decorate([
|
|
18185
|
+
Field(() => Boolean, { nullable: true }),
|
|
18186
|
+
__metadata("design:type", Boolean)
|
|
18187
|
+
], CreateMJAIModelInput.prototype, "SupportsPrefill", void 0);
|
|
18188
|
+
__decorate([
|
|
18189
|
+
Field({ nullable: true }),
|
|
18190
|
+
__metadata("design:type", String)
|
|
18191
|
+
], CreateMJAIModelInput.prototype, "PrefillFallbackText", void 0);
|
|
18128
18192
|
__decorate([
|
|
18129
18193
|
Field({ nullable: true }),
|
|
18130
18194
|
__metadata("design:type", String)
|
|
@@ -18206,6 +18270,14 @@ __decorate([
|
|
|
18206
18270
|
Field({ nullable: true }),
|
|
18207
18271
|
__metadata("design:type", String)
|
|
18208
18272
|
], UpdateMJAIModelInput.prototype, "PriorVersionID", void 0);
|
|
18273
|
+
__decorate([
|
|
18274
|
+
Field(() => Boolean, { nullable: true }),
|
|
18275
|
+
__metadata("design:type", Boolean)
|
|
18276
|
+
], UpdateMJAIModelInput.prototype, "SupportsPrefill", void 0);
|
|
18277
|
+
__decorate([
|
|
18278
|
+
Field({ nullable: true }),
|
|
18279
|
+
__metadata("design:type", String)
|
|
18280
|
+
], UpdateMJAIModelInput.prototype, "PrefillFallbackText", void 0);
|
|
18209
18281
|
__decorate([
|
|
18210
18282
|
Field({ nullable: true }),
|
|
18211
18283
|
__metadata("design:type", String)
|
|
@@ -20191,6 +20263,10 @@ __decorate([
|
|
|
20191
20263
|
MaxLength(36),
|
|
20192
20264
|
__metadata("design:type", String)
|
|
20193
20265
|
], MJAIPromptRun_.prototype, "TestRunID", void 0);
|
|
20266
|
+
__decorate([
|
|
20267
|
+
Field({ nullable: true, description: `The assistant prefill text that was used during this prompt execution. Records whether native prefill or fallback was applied. NULL means no prefill was used.` }),
|
|
20268
|
+
__metadata("design:type", String)
|
|
20269
|
+
], MJAIPromptRun_.prototype, "AssistantPrefill", void 0);
|
|
20194
20270
|
__decorate([
|
|
20195
20271
|
Field(),
|
|
20196
20272
|
MaxLength(255),
|
|
@@ -20614,6 +20690,10 @@ __decorate([
|
|
|
20614
20690
|
Field({ nullable: true }),
|
|
20615
20691
|
__metadata("design:type", String)
|
|
20616
20692
|
], CreateMJAIPromptRunInput.prototype, "TestRunID", void 0);
|
|
20693
|
+
__decorate([
|
|
20694
|
+
Field({ nullable: true }),
|
|
20695
|
+
__metadata("design:type", String)
|
|
20696
|
+
], CreateMJAIPromptRunInput.prototype, "AssistantPrefill", void 0);
|
|
20617
20697
|
CreateMJAIPromptRunInput = __decorate([
|
|
20618
20698
|
InputType()
|
|
20619
20699
|
], CreateMJAIPromptRunInput);
|
|
@@ -20951,6 +21031,10 @@ __decorate([
|
|
|
20951
21031
|
Field({ nullable: true }),
|
|
20952
21032
|
__metadata("design:type", String)
|
|
20953
21033
|
], UpdateMJAIPromptRunInput.prototype, "TestRunID", void 0);
|
|
21034
|
+
__decorate([
|
|
21035
|
+
Field({ nullable: true }),
|
|
21036
|
+
__metadata("design:type", String)
|
|
21037
|
+
], UpdateMJAIPromptRunInput.prototype, "AssistantPrefill", void 0);
|
|
20954
21038
|
__decorate([
|
|
20955
21039
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
20956
21040
|
__metadata("design:type", Array)
|
|
@@ -21639,6 +21723,15 @@ __decorate([
|
|
|
21639
21723
|
Field(() => Int, { nullable: true, description: `Effort level for this specific prompt (1-100, where 1=minimal effort, 100=maximum effort). Higher values request more thorough reasoning and analysis. Can be overridden by agent DefaultPromptEffortLevel or runtime parameters.` }),
|
|
21640
21724
|
__metadata("design:type", Number)
|
|
21641
21725
|
], MJAIPrompt_.prototype, "EffortLevel", void 0);
|
|
21726
|
+
__decorate([
|
|
21727
|
+
Field({ nullable: true, description: `Optional text to prefill the assistant response. The model will continue generating from where this text ends. Used with StopSequences for structured output extraction (e.g., prefill with \`\`\`json to get raw JSON). Only effective with providers that support prefill natively; see PrefillFallbackMode for non-supporting providers.` }),
|
|
21728
|
+
__metadata("design:type", String)
|
|
21729
|
+
], MJAIPrompt_.prototype, "AssistantPrefill", void 0);
|
|
21730
|
+
__decorate([
|
|
21731
|
+
Field({ description: `Controls behavior when the selected provider does not support native assistant prefill. Ignore = silently skip prefill, SystemInstruction = inject a system message instructing the model to start its response with the prefill text (uses fallback text from AI Model Vendor or AI Model Type), None = no fallback (prefill only works with supported providers).` }),
|
|
21732
|
+
MaxLength(20),
|
|
21733
|
+
__metadata("design:type", String)
|
|
21734
|
+
], MJAIPrompt_.prototype, "PrefillFallbackMode", void 0);
|
|
21642
21735
|
__decorate([
|
|
21643
21736
|
Field(),
|
|
21644
21737
|
MaxLength(255),
|
|
@@ -21930,6 +22023,14 @@ __decorate([
|
|
|
21930
22023
|
Field(() => Int, { nullable: true }),
|
|
21931
22024
|
__metadata("design:type", Number)
|
|
21932
22025
|
], CreateMJAIPromptInput.prototype, "EffortLevel", void 0);
|
|
22026
|
+
__decorate([
|
|
22027
|
+
Field({ nullable: true }),
|
|
22028
|
+
__metadata("design:type", String)
|
|
22029
|
+
], CreateMJAIPromptInput.prototype, "AssistantPrefill", void 0);
|
|
22030
|
+
__decorate([
|
|
22031
|
+
Field({ nullable: true }),
|
|
22032
|
+
__metadata("design:type", String)
|
|
22033
|
+
], CreateMJAIPromptInput.prototype, "PrefillFallbackMode", void 0);
|
|
21933
22034
|
CreateMJAIPromptInput = __decorate([
|
|
21934
22035
|
InputType()
|
|
21935
22036
|
], CreateMJAIPromptInput);
|
|
@@ -22135,6 +22236,14 @@ __decorate([
|
|
|
22135
22236
|
Field(() => Int, { nullable: true }),
|
|
22136
22237
|
__metadata("design:type", Number)
|
|
22137
22238
|
], UpdateMJAIPromptInput.prototype, "EffortLevel", void 0);
|
|
22239
|
+
__decorate([
|
|
22240
|
+
Field({ nullable: true }),
|
|
22241
|
+
__metadata("design:type", String)
|
|
22242
|
+
], UpdateMJAIPromptInput.prototype, "AssistantPrefill", void 0);
|
|
22243
|
+
__decorate([
|
|
22244
|
+
Field({ nullable: true }),
|
|
22245
|
+
__metadata("design:type", String)
|
|
22246
|
+
], UpdateMJAIPromptInput.prototype, "PrefillFallbackMode", void 0);
|
|
22138
22247
|
__decorate([
|
|
22139
22248
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
22140
22249
|
__metadata("design:type", Array)
|
|
@@ -34724,6 +34833,11 @@ __decorate([
|
|
|
34724
34833
|
Field({ nullable: true, description: `Optional configuration data in JSON format for the request that started the integration run for audit purposes.` }),
|
|
34725
34834
|
__metadata("design:type", String)
|
|
34726
34835
|
], MJCompanyIntegrationRun_.prototype, "ConfigData", void 0);
|
|
34836
|
+
__decorate([
|
|
34837
|
+
Field({ nullable: true, description: `Links to the scheduled job run that triggered this integration sync. NULL for manually-triggered syncs.` }),
|
|
34838
|
+
MaxLength(36),
|
|
34839
|
+
__metadata("design:type", String)
|
|
34840
|
+
], MJCompanyIntegrationRun_.prototype, "ScheduledJobRunID", void 0);
|
|
34727
34841
|
__decorate([
|
|
34728
34842
|
Field(),
|
|
34729
34843
|
MaxLength(100),
|
|
@@ -34800,6 +34914,10 @@ __decorate([
|
|
|
34800
34914
|
Field({ nullable: true }),
|
|
34801
34915
|
__metadata("design:type", String)
|
|
34802
34916
|
], CreateMJCompanyIntegrationRunInput.prototype, "ConfigData", void 0);
|
|
34917
|
+
__decorate([
|
|
34918
|
+
Field({ nullable: true }),
|
|
34919
|
+
__metadata("design:type", String)
|
|
34920
|
+
], CreateMJCompanyIntegrationRunInput.prototype, "ScheduledJobRunID", void 0);
|
|
34803
34921
|
CreateMJCompanyIntegrationRunInput = __decorate([
|
|
34804
34922
|
InputType()
|
|
34805
34923
|
], CreateMJCompanyIntegrationRunInput);
|
|
@@ -34849,6 +34967,10 @@ __decorate([
|
|
|
34849
34967
|
Field({ nullable: true }),
|
|
34850
34968
|
__metadata("design:type", String)
|
|
34851
34969
|
], UpdateMJCompanyIntegrationRunInput.prototype, "ConfigData", void 0);
|
|
34970
|
+
__decorate([
|
|
34971
|
+
Field({ nullable: true }),
|
|
34972
|
+
__metadata("design:type", String)
|
|
34973
|
+
], UpdateMJCompanyIntegrationRunInput.prototype, "ScheduledJobRunID", void 0);
|
|
34852
34974
|
__decorate([
|
|
34853
34975
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
34854
34976
|
__metadata("design:type", Array)
|
|
@@ -35459,6 +35581,11 @@ __decorate([
|
|
|
35459
35581
|
Field({ nullable: true, description: `When the lock should be considered stale and eligible for cleanup` }),
|
|
35460
35582
|
__metadata("design:type", Date)
|
|
35461
35583
|
], MJCompanyIntegration_.prototype, "LockExpiresAt", void 0);
|
|
35584
|
+
__decorate([
|
|
35585
|
+
Field({ nullable: true, description: `Associates this company integration with a scheduled job for automatic sync execution. NULL if no schedule is configured.` }),
|
|
35586
|
+
MaxLength(36),
|
|
35587
|
+
__metadata("design:type", String)
|
|
35588
|
+
], MJCompanyIntegration_.prototype, "ScheduledJobID", void 0);
|
|
35462
35589
|
__decorate([
|
|
35463
35590
|
Field(),
|
|
35464
35591
|
MaxLength(50),
|
|
@@ -35629,6 +35756,10 @@ __decorate([
|
|
|
35629
35756
|
Field({ nullable: true }),
|
|
35630
35757
|
__metadata("design:type", Date)
|
|
35631
35758
|
], CreateMJCompanyIntegrationInput.prototype, "LockExpiresAt", void 0);
|
|
35759
|
+
__decorate([
|
|
35760
|
+
Field({ nullable: true }),
|
|
35761
|
+
__metadata("design:type", String)
|
|
35762
|
+
], CreateMJCompanyIntegrationInput.prototype, "ScheduledJobID", void 0);
|
|
35632
35763
|
CreateMJCompanyIntegrationInput = __decorate([
|
|
35633
35764
|
InputType()
|
|
35634
35765
|
], CreateMJCompanyIntegrationInput);
|
|
@@ -35746,6 +35877,10 @@ __decorate([
|
|
|
35746
35877
|
Field({ nullable: true }),
|
|
35747
35878
|
__metadata("design:type", Date)
|
|
35748
35879
|
], UpdateMJCompanyIntegrationInput.prototype, "LockExpiresAt", void 0);
|
|
35880
|
+
__decorate([
|
|
35881
|
+
Field({ nullable: true }),
|
|
35882
|
+
__metadata("design:type", String)
|
|
35883
|
+
], UpdateMJCompanyIntegrationInput.prototype, "ScheduledJobID", void 0);
|
|
35749
35884
|
__decorate([
|
|
35750
35885
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
35751
35886
|
__metadata("design:type", Array)
|
|
@@ -51987,6 +52122,14 @@ __decorate([
|
|
|
51987
52122
|
Field(() => [MJEntityRelationship_]),
|
|
51988
52123
|
__metadata("design:type", Array)
|
|
51989
52124
|
], MJEntity_.prototype, "MJEntityRelationships_RelatedEntityIDArray", void 0);
|
|
52125
|
+
__decorate([
|
|
52126
|
+
Field(() => [MJEntityOrganicKeyRelatedEntity_]),
|
|
52127
|
+
__metadata("design:type", Array)
|
|
52128
|
+
], MJEntity_.prototype, "MJEntityOrganicKeyRelatedEntities_RelatedEntityIDArray", void 0);
|
|
52129
|
+
__decorate([
|
|
52130
|
+
Field(() => [MJEntityOrganicKey_]),
|
|
52131
|
+
__metadata("design:type", Array)
|
|
52132
|
+
], MJEntity_.prototype, "MJEntityOrganicKeys_EntityIDArray", void 0);
|
|
51990
52133
|
__decorate([
|
|
51991
52134
|
Field(() => [MJGeneratedCode_]),
|
|
51992
52135
|
__metadata("design:type", Array)
|
|
@@ -52892,6 +53035,22 @@ let MJEntityResolverBase = class MJEntityResolverBase extends ResolverBase {
|
|
|
52892
53035
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Entity Relationships', rows, this.GetUserFromPayload(userPayload));
|
|
52893
53036
|
return result;
|
|
52894
53037
|
}
|
|
53038
|
+
async MJEntityOrganicKeyRelatedEntities_RelatedEntityIDArray(mjentity_, { userPayload, providers }, pubSub) {
|
|
53039
|
+
this.CheckUserReadPermissions('MJ: Entity Organic Key Related Entities', userPayload);
|
|
53040
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53041
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityOrganicKeyRelatedEntities')} WHERE ${provider.QuoteIdentifier('RelatedEntityID')}='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Organic Key Related Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
53042
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53043
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Entity Organic Key Related Entities', rows, this.GetUserFromPayload(userPayload));
|
|
53044
|
+
return result;
|
|
53045
|
+
}
|
|
53046
|
+
async MJEntityOrganicKeys_EntityIDArray(mjentity_, { userPayload, providers }, pubSub) {
|
|
53047
|
+
this.CheckUserReadPermissions('MJ: Entity Organic Keys', userPayload);
|
|
53048
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53049
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityOrganicKeys')} WHERE ${provider.QuoteIdentifier('EntityID')}='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Organic Keys', userPayload, EntityPermissionType.Read, 'AND');
|
|
53050
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
53051
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Entity Organic Keys', rows, this.GetUserFromPayload(userPayload));
|
|
53052
|
+
return result;
|
|
53053
|
+
}
|
|
52895
53054
|
async MJGeneratedCodes_LinkedEntityIDArray(mjentity_, { userPayload, providers }, pubSub) {
|
|
52896
53055
|
this.CheckUserReadPermissions('MJ: Generated Codes', userPayload);
|
|
52897
53056
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -53402,6 +53561,24 @@ __decorate([
|
|
|
53402
53561
|
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
53403
53562
|
__metadata("design:returntype", Promise)
|
|
53404
53563
|
], MJEntityResolverBase.prototype, "MJEntityRelationships_RelatedEntityIDArray", null);
|
|
53564
|
+
__decorate([
|
|
53565
|
+
FieldResolver(() => [MJEntityOrganicKeyRelatedEntity_]),
|
|
53566
|
+
__param(0, Root()),
|
|
53567
|
+
__param(1, Ctx()),
|
|
53568
|
+
__param(2, PubSub()),
|
|
53569
|
+
__metadata("design:type", Function),
|
|
53570
|
+
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
53571
|
+
__metadata("design:returntype", Promise)
|
|
53572
|
+
], MJEntityResolverBase.prototype, "MJEntityOrganicKeyRelatedEntities_RelatedEntityIDArray", null);
|
|
53573
|
+
__decorate([
|
|
53574
|
+
FieldResolver(() => [MJEntityOrganicKey_]),
|
|
53575
|
+
__param(0, Root()),
|
|
53576
|
+
__param(1, Ctx()),
|
|
53577
|
+
__param(2, PubSub()),
|
|
53578
|
+
__metadata("design:type", Function),
|
|
53579
|
+
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
53580
|
+
__metadata("design:returntype", Promise)
|
|
53581
|
+
], MJEntityResolverBase.prototype, "MJEntityOrganicKeys_EntityIDArray", null);
|
|
53405
53582
|
__decorate([
|
|
53406
53583
|
FieldResolver(() => [MJGeneratedCode_]),
|
|
53407
53584
|
__param(0, Root()),
|
|
@@ -57970,6 +58147,695 @@ MJEntityFieldResolver = __decorate([
|
|
|
57970
58147
|
], MJEntityFieldResolver);
|
|
57971
58148
|
export { MJEntityFieldResolver };
|
|
57972
58149
|
//****************************************************************************
|
|
58150
|
+
// ENTITY CLASS for MJ: Entity Organic Key Related Entities
|
|
58151
|
+
//****************************************************************************
|
|
58152
|
+
let MJEntityOrganicKeyRelatedEntity_ = class MJEntityOrganicKeyRelatedEntity_ {
|
|
58153
|
+
};
|
|
58154
|
+
__decorate([
|
|
58155
|
+
Field(),
|
|
58156
|
+
MaxLength(36),
|
|
58157
|
+
__metadata("design:type", String)
|
|
58158
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "ID", void 0);
|
|
58159
|
+
__decorate([
|
|
58160
|
+
Field(),
|
|
58161
|
+
MaxLength(36),
|
|
58162
|
+
__metadata("design:type", String)
|
|
58163
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "EntityOrganicKeyID", void 0);
|
|
58164
|
+
__decorate([
|
|
58165
|
+
Field(),
|
|
58166
|
+
MaxLength(36),
|
|
58167
|
+
__metadata("design:type", String)
|
|
58168
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "RelatedEntityID", void 0);
|
|
58169
|
+
__decorate([
|
|
58170
|
+
Field({ nullable: true, description: `Comma-delimited field names in the related entity, positionally matching MatchFieldNames on the parent key. NULL when using transitive matching.` }),
|
|
58171
|
+
MaxLength(500),
|
|
58172
|
+
__metadata("design:type", String)
|
|
58173
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "RelatedEntityFieldNames", void 0);
|
|
58174
|
+
__decorate([
|
|
58175
|
+
Field({ nullable: true, description: `Schema-qualified name of a SQL view or table that bridges the organic key to the related entity (e.g., "dbo.vwContactRecipientBridge"). This object encapsulates any number of join hops. NULL for direct matches.` }),
|
|
58176
|
+
MaxLength(500),
|
|
58177
|
+
__metadata("design:type", String)
|
|
58178
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "TransitiveObjectName", void 0);
|
|
58179
|
+
__decorate([
|
|
58180
|
+
Field({ nullable: true, description: `Comma-delimited field names in the transitive object that match the organic key values, positionally aligned with MatchFieldNames. NULL for direct matches.` }),
|
|
58181
|
+
MaxLength(500),
|
|
58182
|
+
__metadata("design:type", String)
|
|
58183
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "TransitiveObjectMatchFieldNames", void 0);
|
|
58184
|
+
__decorate([
|
|
58185
|
+
Field({ nullable: true, description: `The field in the transitive object that produces the value to join against the related entity. NULL for direct matches.` }),
|
|
58186
|
+
MaxLength(255),
|
|
58187
|
+
__metadata("design:type", String)
|
|
58188
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "TransitiveObjectOutputFieldName", void 0);
|
|
58189
|
+
__decorate([
|
|
58190
|
+
Field({ nullable: true, description: `The field in the related entity that matches TransitiveObjectOutputFieldName. NULL for direct matches.` }),
|
|
58191
|
+
MaxLength(255),
|
|
58192
|
+
__metadata("design:type", String)
|
|
58193
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "RelatedEntityJoinFieldName", void 0);
|
|
58194
|
+
__decorate([
|
|
58195
|
+
Field({ nullable: true, description: `Tab/section label override. If NULL, defaults to the related entity's display name.` }),
|
|
58196
|
+
MaxLength(255),
|
|
58197
|
+
__metadata("design:type", String)
|
|
58198
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "DisplayName", void 0);
|
|
58199
|
+
__decorate([
|
|
58200
|
+
Field({ description: `Where to render the organic key tab relative to FK relationship tabs. After Field Tabs or Before Field Tabs.` }),
|
|
58201
|
+
MaxLength(50),
|
|
58202
|
+
__metadata("design:type", String)
|
|
58203
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "DisplayLocation", void 0);
|
|
58204
|
+
__decorate([
|
|
58205
|
+
Field({ nullable: true, description: `FK to component registry for a custom display component. NULL uses the default EntityDataGrid.` }),
|
|
58206
|
+
MaxLength(36),
|
|
58207
|
+
__metadata("design:type", String)
|
|
58208
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "DisplayComponentID", void 0);
|
|
58209
|
+
__decorate([
|
|
58210
|
+
Field({ nullable: true, description: `JSON configuration passed to the display component.` }),
|
|
58211
|
+
__metadata("design:type", String)
|
|
58212
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "DisplayComponentConfiguration", void 0);
|
|
58213
|
+
__decorate([
|
|
58214
|
+
Field(() => Int, { description: `Tab ordering within this organic key's related entities. Lower values appear first.` }),
|
|
58215
|
+
__metadata("design:type", Number)
|
|
58216
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "Sequence", void 0);
|
|
58217
|
+
__decorate([
|
|
58218
|
+
Field(),
|
|
58219
|
+
__metadata("design:type", Date)
|
|
58220
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "_mj__CreatedAt", void 0);
|
|
58221
|
+
__decorate([
|
|
58222
|
+
Field(),
|
|
58223
|
+
__metadata("design:type", Date)
|
|
58224
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "_mj__UpdatedAt", void 0);
|
|
58225
|
+
__decorate([
|
|
58226
|
+
Field(),
|
|
58227
|
+
MaxLength(255),
|
|
58228
|
+
__metadata("design:type", String)
|
|
58229
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "EntityOrganicKey", void 0);
|
|
58230
|
+
__decorate([
|
|
58231
|
+
Field(),
|
|
58232
|
+
MaxLength(255),
|
|
58233
|
+
__metadata("design:type", String)
|
|
58234
|
+
], MJEntityOrganicKeyRelatedEntity_.prototype, "RelatedEntity", void 0);
|
|
58235
|
+
MJEntityOrganicKeyRelatedEntity_ = __decorate([
|
|
58236
|
+
ObjectType({ description: `Maps a related entity to an organic key, defining how records are matched — either by direct field comparison or transitively via a SQL view/table that bridges multiple hops.` })
|
|
58237
|
+
], MJEntityOrganicKeyRelatedEntity_);
|
|
58238
|
+
export { MJEntityOrganicKeyRelatedEntity_ };
|
|
58239
|
+
//****************************************************************************
|
|
58240
|
+
// INPUT TYPE for MJ: Entity Organic Key Related Entities
|
|
58241
|
+
//****************************************************************************
|
|
58242
|
+
let CreateMJEntityOrganicKeyRelatedEntityInput = class CreateMJEntityOrganicKeyRelatedEntityInput {
|
|
58243
|
+
};
|
|
58244
|
+
__decorate([
|
|
58245
|
+
Field({ nullable: true }),
|
|
58246
|
+
__metadata("design:type", String)
|
|
58247
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "ID", void 0);
|
|
58248
|
+
__decorate([
|
|
58249
|
+
Field({ nullable: true }),
|
|
58250
|
+
__metadata("design:type", String)
|
|
58251
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "EntityOrganicKeyID", void 0);
|
|
58252
|
+
__decorate([
|
|
58253
|
+
Field({ nullable: true }),
|
|
58254
|
+
__metadata("design:type", String)
|
|
58255
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "RelatedEntityID", void 0);
|
|
58256
|
+
__decorate([
|
|
58257
|
+
Field({ nullable: true }),
|
|
58258
|
+
__metadata("design:type", String)
|
|
58259
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "RelatedEntityFieldNames", void 0);
|
|
58260
|
+
__decorate([
|
|
58261
|
+
Field({ nullable: true }),
|
|
58262
|
+
__metadata("design:type", String)
|
|
58263
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "TransitiveObjectName", void 0);
|
|
58264
|
+
__decorate([
|
|
58265
|
+
Field({ nullable: true }),
|
|
58266
|
+
__metadata("design:type", String)
|
|
58267
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "TransitiveObjectMatchFieldNames", void 0);
|
|
58268
|
+
__decorate([
|
|
58269
|
+
Field({ nullable: true }),
|
|
58270
|
+
__metadata("design:type", String)
|
|
58271
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "TransitiveObjectOutputFieldName", void 0);
|
|
58272
|
+
__decorate([
|
|
58273
|
+
Field({ nullable: true }),
|
|
58274
|
+
__metadata("design:type", String)
|
|
58275
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "RelatedEntityJoinFieldName", void 0);
|
|
58276
|
+
__decorate([
|
|
58277
|
+
Field({ nullable: true }),
|
|
58278
|
+
__metadata("design:type", String)
|
|
58279
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayName", void 0);
|
|
58280
|
+
__decorate([
|
|
58281
|
+
Field({ nullable: true }),
|
|
58282
|
+
__metadata("design:type", String)
|
|
58283
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayLocation", void 0);
|
|
58284
|
+
__decorate([
|
|
58285
|
+
Field({ nullable: true }),
|
|
58286
|
+
__metadata("design:type", String)
|
|
58287
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayComponentID", void 0);
|
|
58288
|
+
__decorate([
|
|
58289
|
+
Field({ nullable: true }),
|
|
58290
|
+
__metadata("design:type", String)
|
|
58291
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayComponentConfiguration", void 0);
|
|
58292
|
+
__decorate([
|
|
58293
|
+
Field(() => Int, { nullable: true }),
|
|
58294
|
+
__metadata("design:type", Number)
|
|
58295
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput.prototype, "Sequence", void 0);
|
|
58296
|
+
CreateMJEntityOrganicKeyRelatedEntityInput = __decorate([
|
|
58297
|
+
InputType()
|
|
58298
|
+
], CreateMJEntityOrganicKeyRelatedEntityInput);
|
|
58299
|
+
export { CreateMJEntityOrganicKeyRelatedEntityInput };
|
|
58300
|
+
//****************************************************************************
|
|
58301
|
+
// INPUT TYPE for MJ: Entity Organic Key Related Entities
|
|
58302
|
+
//****************************************************************************
|
|
58303
|
+
let UpdateMJEntityOrganicKeyRelatedEntityInput = class UpdateMJEntityOrganicKeyRelatedEntityInput {
|
|
58304
|
+
};
|
|
58305
|
+
__decorate([
|
|
58306
|
+
Field(),
|
|
58307
|
+
__metadata("design:type", String)
|
|
58308
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "ID", void 0);
|
|
58309
|
+
__decorate([
|
|
58310
|
+
Field({ nullable: true }),
|
|
58311
|
+
__metadata("design:type", String)
|
|
58312
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "EntityOrganicKeyID", void 0);
|
|
58313
|
+
__decorate([
|
|
58314
|
+
Field({ nullable: true }),
|
|
58315
|
+
__metadata("design:type", String)
|
|
58316
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "RelatedEntityID", void 0);
|
|
58317
|
+
__decorate([
|
|
58318
|
+
Field({ nullable: true }),
|
|
58319
|
+
__metadata("design:type", String)
|
|
58320
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "RelatedEntityFieldNames", void 0);
|
|
58321
|
+
__decorate([
|
|
58322
|
+
Field({ nullable: true }),
|
|
58323
|
+
__metadata("design:type", String)
|
|
58324
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "TransitiveObjectName", void 0);
|
|
58325
|
+
__decorate([
|
|
58326
|
+
Field({ nullable: true }),
|
|
58327
|
+
__metadata("design:type", String)
|
|
58328
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "TransitiveObjectMatchFieldNames", void 0);
|
|
58329
|
+
__decorate([
|
|
58330
|
+
Field({ nullable: true }),
|
|
58331
|
+
__metadata("design:type", String)
|
|
58332
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "TransitiveObjectOutputFieldName", void 0);
|
|
58333
|
+
__decorate([
|
|
58334
|
+
Field({ nullable: true }),
|
|
58335
|
+
__metadata("design:type", String)
|
|
58336
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "RelatedEntityJoinFieldName", void 0);
|
|
58337
|
+
__decorate([
|
|
58338
|
+
Field({ nullable: true }),
|
|
58339
|
+
__metadata("design:type", String)
|
|
58340
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayName", void 0);
|
|
58341
|
+
__decorate([
|
|
58342
|
+
Field({ nullable: true }),
|
|
58343
|
+
__metadata("design:type", String)
|
|
58344
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayLocation", void 0);
|
|
58345
|
+
__decorate([
|
|
58346
|
+
Field({ nullable: true }),
|
|
58347
|
+
__metadata("design:type", String)
|
|
58348
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayComponentID", void 0);
|
|
58349
|
+
__decorate([
|
|
58350
|
+
Field({ nullable: true }),
|
|
58351
|
+
__metadata("design:type", String)
|
|
58352
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "DisplayComponentConfiguration", void 0);
|
|
58353
|
+
__decorate([
|
|
58354
|
+
Field(() => Int, { nullable: true }),
|
|
58355
|
+
__metadata("design:type", Number)
|
|
58356
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "Sequence", void 0);
|
|
58357
|
+
__decorate([
|
|
58358
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
58359
|
+
__metadata("design:type", Array)
|
|
58360
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput.prototype, "OldValues___", void 0);
|
|
58361
|
+
UpdateMJEntityOrganicKeyRelatedEntityInput = __decorate([
|
|
58362
|
+
InputType()
|
|
58363
|
+
], UpdateMJEntityOrganicKeyRelatedEntityInput);
|
|
58364
|
+
export { UpdateMJEntityOrganicKeyRelatedEntityInput };
|
|
58365
|
+
//****************************************************************************
|
|
58366
|
+
// RESOLVER for MJ: Entity Organic Key Related Entities
|
|
58367
|
+
//****************************************************************************
|
|
58368
|
+
let RunMJEntityOrganicKeyRelatedEntityViewResult = class RunMJEntityOrganicKeyRelatedEntityViewResult {
|
|
58369
|
+
};
|
|
58370
|
+
__decorate([
|
|
58371
|
+
Field(() => [MJEntityOrganicKeyRelatedEntity_]),
|
|
58372
|
+
__metadata("design:type", Array)
|
|
58373
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult.prototype, "Results", void 0);
|
|
58374
|
+
__decorate([
|
|
58375
|
+
Field(() => String, { nullable: true }),
|
|
58376
|
+
__metadata("design:type", String)
|
|
58377
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult.prototype, "UserViewRunID", void 0);
|
|
58378
|
+
__decorate([
|
|
58379
|
+
Field(() => Int, { nullable: true }),
|
|
58380
|
+
__metadata("design:type", Number)
|
|
58381
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult.prototype, "RowCount", void 0);
|
|
58382
|
+
__decorate([
|
|
58383
|
+
Field(() => Int, { nullable: true }),
|
|
58384
|
+
__metadata("design:type", Number)
|
|
58385
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult.prototype, "TotalRowCount", void 0);
|
|
58386
|
+
__decorate([
|
|
58387
|
+
Field(() => Int, { nullable: true }),
|
|
58388
|
+
__metadata("design:type", Number)
|
|
58389
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult.prototype, "ExecutionTime", void 0);
|
|
58390
|
+
__decorate([
|
|
58391
|
+
Field({ nullable: true }),
|
|
58392
|
+
__metadata("design:type", String)
|
|
58393
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult.prototype, "ErrorMessage", void 0);
|
|
58394
|
+
__decorate([
|
|
58395
|
+
Field(() => Boolean, { nullable: false }),
|
|
58396
|
+
__metadata("design:type", Boolean)
|
|
58397
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult.prototype, "Success", void 0);
|
|
58398
|
+
RunMJEntityOrganicKeyRelatedEntityViewResult = __decorate([
|
|
58399
|
+
ObjectType()
|
|
58400
|
+
], RunMJEntityOrganicKeyRelatedEntityViewResult);
|
|
58401
|
+
export { RunMJEntityOrganicKeyRelatedEntityViewResult };
|
|
58402
|
+
let MJEntityOrganicKeyRelatedEntityResolver = class MJEntityOrganicKeyRelatedEntityResolver extends ResolverBase {
|
|
58403
|
+
async RunMJEntityOrganicKeyRelatedEntityViewByID(input, { providers, userPayload }, pubSub) {
|
|
58404
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58405
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
58406
|
+
}
|
|
58407
|
+
async RunMJEntityOrganicKeyRelatedEntityViewByName(input, { providers, userPayload }, pubSub) {
|
|
58408
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58409
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
58410
|
+
}
|
|
58411
|
+
async RunMJEntityOrganicKeyRelatedEntityDynamicView(input, { providers, userPayload }, pubSub) {
|
|
58412
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58413
|
+
input.EntityName = 'MJ: Entity Organic Key Related Entities';
|
|
58414
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
58415
|
+
}
|
|
58416
|
+
async MJEntityOrganicKeyRelatedEntity(ID, { userPayload, providers }, pubSub) {
|
|
58417
|
+
this.CheckUserReadPermissions('MJ: Entity Organic Key Related Entities', userPayload);
|
|
58418
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58419
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityOrganicKeyRelatedEntities')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Organic Key Related Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
58420
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58421
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Organic Key Related Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58422
|
+
return result;
|
|
58423
|
+
}
|
|
58424
|
+
async CreateMJEntityOrganicKeyRelatedEntity(input, { providers, userPayload }, pubSub) {
|
|
58425
|
+
const provider = GetReadWriteProvider(providers);
|
|
58426
|
+
return this.CreateRecord('MJ: Entity Organic Key Related Entities', input, provider, userPayload, pubSub);
|
|
58427
|
+
}
|
|
58428
|
+
async UpdateMJEntityOrganicKeyRelatedEntity(input, { providers, userPayload }, pubSub) {
|
|
58429
|
+
const provider = GetReadWriteProvider(providers);
|
|
58430
|
+
return this.UpdateRecord('MJ: Entity Organic Key Related Entities', input, provider, userPayload, pubSub);
|
|
58431
|
+
}
|
|
58432
|
+
async DeleteMJEntityOrganicKeyRelatedEntity(ID, options, { providers, userPayload }, pubSub) {
|
|
58433
|
+
const provider = GetReadWriteProvider(providers);
|
|
58434
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
58435
|
+
return this.DeleteRecord('MJ: Entity Organic Key Related Entities', key, options, provider, userPayload, pubSub);
|
|
58436
|
+
}
|
|
58437
|
+
};
|
|
58438
|
+
__decorate([
|
|
58439
|
+
Query(() => RunMJEntityOrganicKeyRelatedEntityViewResult),
|
|
58440
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
58441
|
+
__param(1, Ctx()),
|
|
58442
|
+
__param(2, PubSub()),
|
|
58443
|
+
__metadata("design:type", Function),
|
|
58444
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
58445
|
+
__metadata("design:returntype", Promise)
|
|
58446
|
+
], MJEntityOrganicKeyRelatedEntityResolver.prototype, "RunMJEntityOrganicKeyRelatedEntityViewByID", null);
|
|
58447
|
+
__decorate([
|
|
58448
|
+
Query(() => RunMJEntityOrganicKeyRelatedEntityViewResult),
|
|
58449
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
58450
|
+
__param(1, Ctx()),
|
|
58451
|
+
__param(2, PubSub()),
|
|
58452
|
+
__metadata("design:type", Function),
|
|
58453
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
58454
|
+
__metadata("design:returntype", Promise)
|
|
58455
|
+
], MJEntityOrganicKeyRelatedEntityResolver.prototype, "RunMJEntityOrganicKeyRelatedEntityViewByName", null);
|
|
58456
|
+
__decorate([
|
|
58457
|
+
Query(() => RunMJEntityOrganicKeyRelatedEntityViewResult),
|
|
58458
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
58459
|
+
__param(1, Ctx()),
|
|
58460
|
+
__param(2, PubSub()),
|
|
58461
|
+
__metadata("design:type", Function),
|
|
58462
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
58463
|
+
__metadata("design:returntype", Promise)
|
|
58464
|
+
], MJEntityOrganicKeyRelatedEntityResolver.prototype, "RunMJEntityOrganicKeyRelatedEntityDynamicView", null);
|
|
58465
|
+
__decorate([
|
|
58466
|
+
Query(() => MJEntityOrganicKeyRelatedEntity_, { nullable: true }),
|
|
58467
|
+
__param(0, Arg('ID', () => String)),
|
|
58468
|
+
__param(1, Ctx()),
|
|
58469
|
+
__param(2, PubSub()),
|
|
58470
|
+
__metadata("design:type", Function),
|
|
58471
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
58472
|
+
__metadata("design:returntype", Promise)
|
|
58473
|
+
], MJEntityOrganicKeyRelatedEntityResolver.prototype, "MJEntityOrganicKeyRelatedEntity", null);
|
|
58474
|
+
__decorate([
|
|
58475
|
+
Mutation(() => MJEntityOrganicKeyRelatedEntity_),
|
|
58476
|
+
__param(0, Arg('input', () => CreateMJEntityOrganicKeyRelatedEntityInput)),
|
|
58477
|
+
__param(1, Ctx()),
|
|
58478
|
+
__param(2, PubSub()),
|
|
58479
|
+
__metadata("design:type", Function),
|
|
58480
|
+
__metadata("design:paramtypes", [CreateMJEntityOrganicKeyRelatedEntityInput, Object, PubSubEngine]),
|
|
58481
|
+
__metadata("design:returntype", Promise)
|
|
58482
|
+
], MJEntityOrganicKeyRelatedEntityResolver.prototype, "CreateMJEntityOrganicKeyRelatedEntity", null);
|
|
58483
|
+
__decorate([
|
|
58484
|
+
Mutation(() => MJEntityOrganicKeyRelatedEntity_),
|
|
58485
|
+
__param(0, Arg('input', () => UpdateMJEntityOrganicKeyRelatedEntityInput)),
|
|
58486
|
+
__param(1, Ctx()),
|
|
58487
|
+
__param(2, PubSub()),
|
|
58488
|
+
__metadata("design:type", Function),
|
|
58489
|
+
__metadata("design:paramtypes", [UpdateMJEntityOrganicKeyRelatedEntityInput, Object, PubSubEngine]),
|
|
58490
|
+
__metadata("design:returntype", Promise)
|
|
58491
|
+
], MJEntityOrganicKeyRelatedEntityResolver.prototype, "UpdateMJEntityOrganicKeyRelatedEntity", null);
|
|
58492
|
+
__decorate([
|
|
58493
|
+
Mutation(() => MJEntityOrganicKeyRelatedEntity_),
|
|
58494
|
+
__param(0, Arg('ID', () => String)),
|
|
58495
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
58496
|
+
__param(2, Ctx()),
|
|
58497
|
+
__param(3, PubSub()),
|
|
58498
|
+
__metadata("design:type", Function),
|
|
58499
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
58500
|
+
__metadata("design:returntype", Promise)
|
|
58501
|
+
], MJEntityOrganicKeyRelatedEntityResolver.prototype, "DeleteMJEntityOrganicKeyRelatedEntity", null);
|
|
58502
|
+
MJEntityOrganicKeyRelatedEntityResolver = __decorate([
|
|
58503
|
+
Resolver(MJEntityOrganicKeyRelatedEntity_)
|
|
58504
|
+
], MJEntityOrganicKeyRelatedEntityResolver);
|
|
58505
|
+
export { MJEntityOrganicKeyRelatedEntityResolver };
|
|
58506
|
+
//****************************************************************************
|
|
58507
|
+
// ENTITY CLASS for MJ: Entity Organic Keys
|
|
58508
|
+
//****************************************************************************
|
|
58509
|
+
let MJEntityOrganicKey_ = class MJEntityOrganicKey_ {
|
|
58510
|
+
};
|
|
58511
|
+
__decorate([
|
|
58512
|
+
Field(),
|
|
58513
|
+
MaxLength(36),
|
|
58514
|
+
__metadata("design:type", String)
|
|
58515
|
+
], MJEntityOrganicKey_.prototype, "ID", void 0);
|
|
58516
|
+
__decorate([
|
|
58517
|
+
Field(),
|
|
58518
|
+
MaxLength(36),
|
|
58519
|
+
__metadata("design:type", String)
|
|
58520
|
+
], MJEntityOrganicKey_.prototype, "EntityID", void 0);
|
|
58521
|
+
__decorate([
|
|
58522
|
+
Field({ description: `Human-readable label for this organic key (e.g., "Email Match", "SSN Match"). Must be unique per entity.` }),
|
|
58523
|
+
MaxLength(255),
|
|
58524
|
+
__metadata("design:type", String)
|
|
58525
|
+
], MJEntityOrganicKey_.prototype, "Name", void 0);
|
|
58526
|
+
__decorate([
|
|
58527
|
+
Field({ nullable: true, description: `Optional explanation of the key's purpose and matching semantics.` }),
|
|
58528
|
+
__metadata("design:type", String)
|
|
58529
|
+
], MJEntityOrganicKey_.prototype, "Description", void 0);
|
|
58530
|
+
__decorate([
|
|
58531
|
+
Field({ description: `Comma-delimited field names in the owning entity that constitute the key. Single value for simple keys (e.g., "EmailAddress"), multiple for compound keys (e.g., "FirstName,LastName,DateOfBirth"). Field names must match EntityField.Name values.` }),
|
|
58532
|
+
MaxLength(500),
|
|
58533
|
+
__metadata("design:type", String)
|
|
58534
|
+
], MJEntityOrganicKey_.prototype, "MatchFieldNames", void 0);
|
|
58535
|
+
__decorate([
|
|
58536
|
+
Field({ description: `How field values are normalized before comparison. LowerCaseTrim = LOWER(TRIM(x)), Trim = TRIM(x), ExactMatch = no transformation, Custom = uses CustomNormalizationExpression.` }),
|
|
58537
|
+
MaxLength(50),
|
|
58538
|
+
__metadata("design:type", String)
|
|
58539
|
+
], MJEntityOrganicKey_.prototype, "NormalizationStrategy", void 0);
|
|
58540
|
+
__decorate([
|
|
58541
|
+
Field({ nullable: true, description: `SQL expression template when NormalizationStrategy is Custom. Uses {{FieldName}} as placeholder. Example: "REPLACE(REPLACE({{FieldName}}, '-', ''), ' ', '')" for phone number normalization.` }),
|
|
58542
|
+
__metadata("design:type", String)
|
|
58543
|
+
], MJEntityOrganicKey_.prototype, "CustomNormalizationExpression", void 0);
|
|
58544
|
+
__decorate([
|
|
58545
|
+
Field(() => Boolean, { description: `When true, a future discovery process will automatically scan entities and create EntityOrganicKeyRelatedEntity rows for entities with matching field patterns.` }),
|
|
58546
|
+
__metadata("design:type", Boolean)
|
|
58547
|
+
], MJEntityOrganicKey_.prototype, "AutoCreateRelatedViewOnForm", void 0);
|
|
58548
|
+
__decorate([
|
|
58549
|
+
Field(() => Int, { description: `Ordering when an entity has multiple organic keys. Lower values = higher priority.` }),
|
|
58550
|
+
__metadata("design:type", Number)
|
|
58551
|
+
], MJEntityOrganicKey_.prototype, "Sequence", void 0);
|
|
58552
|
+
__decorate([
|
|
58553
|
+
Field({ description: `Active or Disabled. Disabled keys are ignored at runtime.` }),
|
|
58554
|
+
MaxLength(20),
|
|
58555
|
+
__metadata("design:type", String)
|
|
58556
|
+
], MJEntityOrganicKey_.prototype, "Status", void 0);
|
|
58557
|
+
__decorate([
|
|
58558
|
+
Field(),
|
|
58559
|
+
__metadata("design:type", Date)
|
|
58560
|
+
], MJEntityOrganicKey_.prototype, "_mj__CreatedAt", void 0);
|
|
58561
|
+
__decorate([
|
|
58562
|
+
Field(),
|
|
58563
|
+
__metadata("design:type", Date)
|
|
58564
|
+
], MJEntityOrganicKey_.prototype, "_mj__UpdatedAt", void 0);
|
|
58565
|
+
__decorate([
|
|
58566
|
+
Field(),
|
|
58567
|
+
MaxLength(255),
|
|
58568
|
+
__metadata("design:type", String)
|
|
58569
|
+
], MJEntityOrganicKey_.prototype, "Entity", void 0);
|
|
58570
|
+
__decorate([
|
|
58571
|
+
Field(() => [MJEntityOrganicKeyRelatedEntity_]),
|
|
58572
|
+
__metadata("design:type", Array)
|
|
58573
|
+
], MJEntityOrganicKey_.prototype, "MJEntityOrganicKeyRelatedEntities_EntityOrganicKeyIDArray", void 0);
|
|
58574
|
+
MJEntityOrganicKey_ = __decorate([
|
|
58575
|
+
ObjectType({ description: `Defines organic keys on entities — sets of fields that constitute natural identifiers for cross-system matching (e.g., email, phone, SSN). Enables related record views across integration boundaries without foreign keys.` })
|
|
58576
|
+
], MJEntityOrganicKey_);
|
|
58577
|
+
export { MJEntityOrganicKey_ };
|
|
58578
|
+
//****************************************************************************
|
|
58579
|
+
// INPUT TYPE for MJ: Entity Organic Keys
|
|
58580
|
+
//****************************************************************************
|
|
58581
|
+
let CreateMJEntityOrganicKeyInput = class CreateMJEntityOrganicKeyInput {
|
|
58582
|
+
};
|
|
58583
|
+
__decorate([
|
|
58584
|
+
Field({ nullable: true }),
|
|
58585
|
+
__metadata("design:type", String)
|
|
58586
|
+
], CreateMJEntityOrganicKeyInput.prototype, "ID", void 0);
|
|
58587
|
+
__decorate([
|
|
58588
|
+
Field({ nullable: true }),
|
|
58589
|
+
__metadata("design:type", String)
|
|
58590
|
+
], CreateMJEntityOrganicKeyInput.prototype, "EntityID", void 0);
|
|
58591
|
+
__decorate([
|
|
58592
|
+
Field({ nullable: true }),
|
|
58593
|
+
__metadata("design:type", String)
|
|
58594
|
+
], CreateMJEntityOrganicKeyInput.prototype, "Name", void 0);
|
|
58595
|
+
__decorate([
|
|
58596
|
+
Field({ nullable: true }),
|
|
58597
|
+
__metadata("design:type", String)
|
|
58598
|
+
], CreateMJEntityOrganicKeyInput.prototype, "Description", void 0);
|
|
58599
|
+
__decorate([
|
|
58600
|
+
Field({ nullable: true }),
|
|
58601
|
+
__metadata("design:type", String)
|
|
58602
|
+
], CreateMJEntityOrganicKeyInput.prototype, "MatchFieldNames", void 0);
|
|
58603
|
+
__decorate([
|
|
58604
|
+
Field({ nullable: true }),
|
|
58605
|
+
__metadata("design:type", String)
|
|
58606
|
+
], CreateMJEntityOrganicKeyInput.prototype, "NormalizationStrategy", void 0);
|
|
58607
|
+
__decorate([
|
|
58608
|
+
Field({ nullable: true }),
|
|
58609
|
+
__metadata("design:type", String)
|
|
58610
|
+
], CreateMJEntityOrganicKeyInput.prototype, "CustomNormalizationExpression", void 0);
|
|
58611
|
+
__decorate([
|
|
58612
|
+
Field(() => Boolean, { nullable: true }),
|
|
58613
|
+
__metadata("design:type", Boolean)
|
|
58614
|
+
], CreateMJEntityOrganicKeyInput.prototype, "AutoCreateRelatedViewOnForm", void 0);
|
|
58615
|
+
__decorate([
|
|
58616
|
+
Field(() => Int, { nullable: true }),
|
|
58617
|
+
__metadata("design:type", Number)
|
|
58618
|
+
], CreateMJEntityOrganicKeyInput.prototype, "Sequence", void 0);
|
|
58619
|
+
__decorate([
|
|
58620
|
+
Field({ nullable: true }),
|
|
58621
|
+
__metadata("design:type", String)
|
|
58622
|
+
], CreateMJEntityOrganicKeyInput.prototype, "Status", void 0);
|
|
58623
|
+
CreateMJEntityOrganicKeyInput = __decorate([
|
|
58624
|
+
InputType()
|
|
58625
|
+
], CreateMJEntityOrganicKeyInput);
|
|
58626
|
+
export { CreateMJEntityOrganicKeyInput };
|
|
58627
|
+
//****************************************************************************
|
|
58628
|
+
// INPUT TYPE for MJ: Entity Organic Keys
|
|
58629
|
+
//****************************************************************************
|
|
58630
|
+
let UpdateMJEntityOrganicKeyInput = class UpdateMJEntityOrganicKeyInput {
|
|
58631
|
+
};
|
|
58632
|
+
__decorate([
|
|
58633
|
+
Field(),
|
|
58634
|
+
__metadata("design:type", String)
|
|
58635
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "ID", void 0);
|
|
58636
|
+
__decorate([
|
|
58637
|
+
Field({ nullable: true }),
|
|
58638
|
+
__metadata("design:type", String)
|
|
58639
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "EntityID", void 0);
|
|
58640
|
+
__decorate([
|
|
58641
|
+
Field({ nullable: true }),
|
|
58642
|
+
__metadata("design:type", String)
|
|
58643
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "Name", void 0);
|
|
58644
|
+
__decorate([
|
|
58645
|
+
Field({ nullable: true }),
|
|
58646
|
+
__metadata("design:type", String)
|
|
58647
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "Description", void 0);
|
|
58648
|
+
__decorate([
|
|
58649
|
+
Field({ nullable: true }),
|
|
58650
|
+
__metadata("design:type", String)
|
|
58651
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "MatchFieldNames", void 0);
|
|
58652
|
+
__decorate([
|
|
58653
|
+
Field({ nullable: true }),
|
|
58654
|
+
__metadata("design:type", String)
|
|
58655
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "NormalizationStrategy", void 0);
|
|
58656
|
+
__decorate([
|
|
58657
|
+
Field({ nullable: true }),
|
|
58658
|
+
__metadata("design:type", String)
|
|
58659
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "CustomNormalizationExpression", void 0);
|
|
58660
|
+
__decorate([
|
|
58661
|
+
Field(() => Boolean, { nullable: true }),
|
|
58662
|
+
__metadata("design:type", Boolean)
|
|
58663
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "AutoCreateRelatedViewOnForm", void 0);
|
|
58664
|
+
__decorate([
|
|
58665
|
+
Field(() => Int, { nullable: true }),
|
|
58666
|
+
__metadata("design:type", Number)
|
|
58667
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "Sequence", void 0);
|
|
58668
|
+
__decorate([
|
|
58669
|
+
Field({ nullable: true }),
|
|
58670
|
+
__metadata("design:type", String)
|
|
58671
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "Status", void 0);
|
|
58672
|
+
__decorate([
|
|
58673
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
58674
|
+
__metadata("design:type", Array)
|
|
58675
|
+
], UpdateMJEntityOrganicKeyInput.prototype, "OldValues___", void 0);
|
|
58676
|
+
UpdateMJEntityOrganicKeyInput = __decorate([
|
|
58677
|
+
InputType()
|
|
58678
|
+
], UpdateMJEntityOrganicKeyInput);
|
|
58679
|
+
export { UpdateMJEntityOrganicKeyInput };
|
|
58680
|
+
//****************************************************************************
|
|
58681
|
+
// RESOLVER for MJ: Entity Organic Keys
|
|
58682
|
+
//****************************************************************************
|
|
58683
|
+
let RunMJEntityOrganicKeyViewResult = class RunMJEntityOrganicKeyViewResult {
|
|
58684
|
+
};
|
|
58685
|
+
__decorate([
|
|
58686
|
+
Field(() => [MJEntityOrganicKey_]),
|
|
58687
|
+
__metadata("design:type", Array)
|
|
58688
|
+
], RunMJEntityOrganicKeyViewResult.prototype, "Results", void 0);
|
|
58689
|
+
__decorate([
|
|
58690
|
+
Field(() => String, { nullable: true }),
|
|
58691
|
+
__metadata("design:type", String)
|
|
58692
|
+
], RunMJEntityOrganicKeyViewResult.prototype, "UserViewRunID", void 0);
|
|
58693
|
+
__decorate([
|
|
58694
|
+
Field(() => Int, { nullable: true }),
|
|
58695
|
+
__metadata("design:type", Number)
|
|
58696
|
+
], RunMJEntityOrganicKeyViewResult.prototype, "RowCount", void 0);
|
|
58697
|
+
__decorate([
|
|
58698
|
+
Field(() => Int, { nullable: true }),
|
|
58699
|
+
__metadata("design:type", Number)
|
|
58700
|
+
], RunMJEntityOrganicKeyViewResult.prototype, "TotalRowCount", void 0);
|
|
58701
|
+
__decorate([
|
|
58702
|
+
Field(() => Int, { nullable: true }),
|
|
58703
|
+
__metadata("design:type", Number)
|
|
58704
|
+
], RunMJEntityOrganicKeyViewResult.prototype, "ExecutionTime", void 0);
|
|
58705
|
+
__decorate([
|
|
58706
|
+
Field({ nullable: true }),
|
|
58707
|
+
__metadata("design:type", String)
|
|
58708
|
+
], RunMJEntityOrganicKeyViewResult.prototype, "ErrorMessage", void 0);
|
|
58709
|
+
__decorate([
|
|
58710
|
+
Field(() => Boolean, { nullable: false }),
|
|
58711
|
+
__metadata("design:type", Boolean)
|
|
58712
|
+
], RunMJEntityOrganicKeyViewResult.prototype, "Success", void 0);
|
|
58713
|
+
RunMJEntityOrganicKeyViewResult = __decorate([
|
|
58714
|
+
ObjectType()
|
|
58715
|
+
], RunMJEntityOrganicKeyViewResult);
|
|
58716
|
+
export { RunMJEntityOrganicKeyViewResult };
|
|
58717
|
+
let MJEntityOrganicKeyResolver = class MJEntityOrganicKeyResolver extends ResolverBase {
|
|
58718
|
+
async RunMJEntityOrganicKeyViewByID(input, { providers, userPayload }, pubSub) {
|
|
58719
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58720
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
58721
|
+
}
|
|
58722
|
+
async RunMJEntityOrganicKeyViewByName(input, { providers, userPayload }, pubSub) {
|
|
58723
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58724
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
58725
|
+
}
|
|
58726
|
+
async RunMJEntityOrganicKeyDynamicView(input, { providers, userPayload }, pubSub) {
|
|
58727
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58728
|
+
input.EntityName = 'MJ: Entity Organic Keys';
|
|
58729
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
58730
|
+
}
|
|
58731
|
+
async MJEntityOrganicKey(ID, { userPayload, providers }, pubSub) {
|
|
58732
|
+
this.CheckUserReadPermissions('MJ: Entity Organic Keys', userPayload);
|
|
58733
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58734
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityOrganicKeys')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Organic Keys', userPayload, EntityPermissionType.Read, 'AND');
|
|
58735
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58736
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Entity Organic Keys', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
58737
|
+
return result;
|
|
58738
|
+
}
|
|
58739
|
+
async MJEntityOrganicKeyRelatedEntities_EntityOrganicKeyIDArray(mjentityorganickey_, { userPayload, providers }, pubSub) {
|
|
58740
|
+
this.CheckUserReadPermissions('MJ: Entity Organic Key Related Entities', userPayload);
|
|
58741
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
58742
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwEntityOrganicKeyRelatedEntities')} WHERE ${provider.QuoteIdentifier('EntityOrganicKeyID')}='${mjentityorganickey_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Organic Key Related Entities', userPayload, EntityPermissionType.Read, 'AND');
|
|
58743
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
58744
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Entity Organic Key Related Entities', rows, this.GetUserFromPayload(userPayload));
|
|
58745
|
+
return result;
|
|
58746
|
+
}
|
|
58747
|
+
async CreateMJEntityOrganicKey(input, { providers, userPayload }, pubSub) {
|
|
58748
|
+
const provider = GetReadWriteProvider(providers);
|
|
58749
|
+
return this.CreateRecord('MJ: Entity Organic Keys', input, provider, userPayload, pubSub);
|
|
58750
|
+
}
|
|
58751
|
+
async UpdateMJEntityOrganicKey(input, { providers, userPayload }, pubSub) {
|
|
58752
|
+
const provider = GetReadWriteProvider(providers);
|
|
58753
|
+
return this.UpdateRecord('MJ: Entity Organic Keys', input, provider, userPayload, pubSub);
|
|
58754
|
+
}
|
|
58755
|
+
async DeleteMJEntityOrganicKey(ID, options, { providers, userPayload }, pubSub) {
|
|
58756
|
+
const provider = GetReadWriteProvider(providers);
|
|
58757
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
58758
|
+
return this.DeleteRecord('MJ: Entity Organic Keys', key, options, provider, userPayload, pubSub);
|
|
58759
|
+
}
|
|
58760
|
+
};
|
|
58761
|
+
__decorate([
|
|
58762
|
+
Query(() => RunMJEntityOrganicKeyViewResult),
|
|
58763
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
58764
|
+
__param(1, Ctx()),
|
|
58765
|
+
__param(2, PubSub()),
|
|
58766
|
+
__metadata("design:type", Function),
|
|
58767
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
58768
|
+
__metadata("design:returntype", Promise)
|
|
58769
|
+
], MJEntityOrganicKeyResolver.prototype, "RunMJEntityOrganicKeyViewByID", null);
|
|
58770
|
+
__decorate([
|
|
58771
|
+
Query(() => RunMJEntityOrganicKeyViewResult),
|
|
58772
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
58773
|
+
__param(1, Ctx()),
|
|
58774
|
+
__param(2, PubSub()),
|
|
58775
|
+
__metadata("design:type", Function),
|
|
58776
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
58777
|
+
__metadata("design:returntype", Promise)
|
|
58778
|
+
], MJEntityOrganicKeyResolver.prototype, "RunMJEntityOrganicKeyViewByName", null);
|
|
58779
|
+
__decorate([
|
|
58780
|
+
Query(() => RunMJEntityOrganicKeyViewResult),
|
|
58781
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
58782
|
+
__param(1, Ctx()),
|
|
58783
|
+
__param(2, PubSub()),
|
|
58784
|
+
__metadata("design:type", Function),
|
|
58785
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
58786
|
+
__metadata("design:returntype", Promise)
|
|
58787
|
+
], MJEntityOrganicKeyResolver.prototype, "RunMJEntityOrganicKeyDynamicView", null);
|
|
58788
|
+
__decorate([
|
|
58789
|
+
Query(() => MJEntityOrganicKey_, { nullable: true }),
|
|
58790
|
+
__param(0, Arg('ID', () => String)),
|
|
58791
|
+
__param(1, Ctx()),
|
|
58792
|
+
__param(2, PubSub()),
|
|
58793
|
+
__metadata("design:type", Function),
|
|
58794
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
58795
|
+
__metadata("design:returntype", Promise)
|
|
58796
|
+
], MJEntityOrganicKeyResolver.prototype, "MJEntityOrganicKey", null);
|
|
58797
|
+
__decorate([
|
|
58798
|
+
FieldResolver(() => [MJEntityOrganicKeyRelatedEntity_]),
|
|
58799
|
+
__param(0, Root()),
|
|
58800
|
+
__param(1, Ctx()),
|
|
58801
|
+
__param(2, PubSub()),
|
|
58802
|
+
__metadata("design:type", Function),
|
|
58803
|
+
__metadata("design:paramtypes", [MJEntityOrganicKey_, Object, PubSubEngine]),
|
|
58804
|
+
__metadata("design:returntype", Promise)
|
|
58805
|
+
], MJEntityOrganicKeyResolver.prototype, "MJEntityOrganicKeyRelatedEntities_EntityOrganicKeyIDArray", null);
|
|
58806
|
+
__decorate([
|
|
58807
|
+
Mutation(() => MJEntityOrganicKey_),
|
|
58808
|
+
__param(0, Arg('input', () => CreateMJEntityOrganicKeyInput)),
|
|
58809
|
+
__param(1, Ctx()),
|
|
58810
|
+
__param(2, PubSub()),
|
|
58811
|
+
__metadata("design:type", Function),
|
|
58812
|
+
__metadata("design:paramtypes", [CreateMJEntityOrganicKeyInput, Object, PubSubEngine]),
|
|
58813
|
+
__metadata("design:returntype", Promise)
|
|
58814
|
+
], MJEntityOrganicKeyResolver.prototype, "CreateMJEntityOrganicKey", null);
|
|
58815
|
+
__decorate([
|
|
58816
|
+
Mutation(() => MJEntityOrganicKey_),
|
|
58817
|
+
__param(0, Arg('input', () => UpdateMJEntityOrganicKeyInput)),
|
|
58818
|
+
__param(1, Ctx()),
|
|
58819
|
+
__param(2, PubSub()),
|
|
58820
|
+
__metadata("design:type", Function),
|
|
58821
|
+
__metadata("design:paramtypes", [UpdateMJEntityOrganicKeyInput, Object, PubSubEngine]),
|
|
58822
|
+
__metadata("design:returntype", Promise)
|
|
58823
|
+
], MJEntityOrganicKeyResolver.prototype, "UpdateMJEntityOrganicKey", null);
|
|
58824
|
+
__decorate([
|
|
58825
|
+
Mutation(() => MJEntityOrganicKey_),
|
|
58826
|
+
__param(0, Arg('ID', () => String)),
|
|
58827
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
58828
|
+
__param(2, Ctx()),
|
|
58829
|
+
__param(3, PubSub()),
|
|
58830
|
+
__metadata("design:type", Function),
|
|
58831
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
58832
|
+
__metadata("design:returntype", Promise)
|
|
58833
|
+
], MJEntityOrganicKeyResolver.prototype, "DeleteMJEntityOrganicKey", null);
|
|
58834
|
+
MJEntityOrganicKeyResolver = __decorate([
|
|
58835
|
+
Resolver(MJEntityOrganicKey_)
|
|
58836
|
+
], MJEntityOrganicKeyResolver);
|
|
58837
|
+
export { MJEntityOrganicKeyResolver };
|
|
58838
|
+
//****************************************************************************
|
|
57973
58839
|
// ENTITY CLASS for MJ: Entity Permissions
|
|
57974
58840
|
//****************************************************************************
|
|
57975
58841
|
let MJEntityPermission_ = class MJEntityPermission_ {
|
|
@@ -83485,6 +84351,10 @@ __decorate([
|
|
|
83485
84351
|
Field(() => [MJAIAgentRun_]),
|
|
83486
84352
|
__metadata("design:type", Array)
|
|
83487
84353
|
], MJScheduledJobRun_.prototype, "MJAIAgentRuns_ScheduledJobRunIDArray", void 0);
|
|
84354
|
+
__decorate([
|
|
84355
|
+
Field(() => [MJCompanyIntegrationRun_]),
|
|
84356
|
+
__metadata("design:type", Array)
|
|
84357
|
+
], MJScheduledJobRun_.prototype, "MJCompanyIntegrationRuns_ScheduledJobRunIDArray", void 0);
|
|
83488
84358
|
MJScheduledJobRun_ = __decorate([
|
|
83489
84359
|
ObjectType({ description: `Records execution history for scheduled jobs. Provides uniform tracking across all job types. Each record represents one execution attempt of a scheduled job.` })
|
|
83490
84360
|
], MJScheduledJobRun_);
|
|
@@ -83658,6 +84528,14 @@ let MJScheduledJobRunResolver = class MJScheduledJobRunResolver extends Resolver
|
|
|
83658
84528
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows, this.GetUserFromPayload(userPayload));
|
|
83659
84529
|
return result;
|
|
83660
84530
|
}
|
|
84531
|
+
async MJCompanyIntegrationRuns_ScheduledJobRunIDArray(mjscheduledjobrun_, { userPayload, providers }, pubSub) {
|
|
84532
|
+
this.CheckUserReadPermissions('MJ: Company Integration Runs', userPayload);
|
|
84533
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
84534
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrationRuns')} WHERE ${provider.QuoteIdentifier('ScheduledJobRunID')}='${mjscheduledjobrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integration Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
84535
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
84536
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Company Integration Runs', rows, this.GetUserFromPayload(userPayload));
|
|
84537
|
+
return result;
|
|
84538
|
+
}
|
|
83661
84539
|
async CreateMJScheduledJobRun(input, { providers, userPayload }, pubSub) {
|
|
83662
84540
|
const provider = GetReadWriteProvider(providers);
|
|
83663
84541
|
return this.CreateRecord('MJ: Scheduled Job Runs', input, provider, userPayload, pubSub);
|
|
@@ -83717,6 +84595,15 @@ __decorate([
|
|
|
83717
84595
|
__metadata("design:paramtypes", [MJScheduledJobRun_, Object, PubSubEngine]),
|
|
83718
84596
|
__metadata("design:returntype", Promise)
|
|
83719
84597
|
], MJScheduledJobRunResolver.prototype, "MJAIAgentRuns_ScheduledJobRunIDArray", null);
|
|
84598
|
+
__decorate([
|
|
84599
|
+
FieldResolver(() => [MJCompanyIntegrationRun_]),
|
|
84600
|
+
__param(0, Root()),
|
|
84601
|
+
__param(1, Ctx()),
|
|
84602
|
+
__param(2, PubSub()),
|
|
84603
|
+
__metadata("design:type", Function),
|
|
84604
|
+
__metadata("design:paramtypes", [MJScheduledJobRun_, Object, PubSubEngine]),
|
|
84605
|
+
__metadata("design:returntype", Promise)
|
|
84606
|
+
], MJScheduledJobRunResolver.prototype, "MJCompanyIntegrationRuns_ScheduledJobRunIDArray", null);
|
|
83720
84607
|
__decorate([
|
|
83721
84608
|
Mutation(() => MJScheduledJobRun_),
|
|
83722
84609
|
__param(0, Arg('input', () => CreateMJScheduledJobRunInput)),
|
|
@@ -84186,6 +85073,10 @@ __decorate([
|
|
|
84186
85073
|
Field(() => [MJScheduledJobRun_]),
|
|
84187
85074
|
__metadata("design:type", Array)
|
|
84188
85075
|
], MJScheduledJob_.prototype, "MJScheduledJobRuns_ScheduledJobIDArray", void 0);
|
|
85076
|
+
__decorate([
|
|
85077
|
+
Field(() => [MJCompanyIntegration_]),
|
|
85078
|
+
__metadata("design:type", Array)
|
|
85079
|
+
], MJScheduledJob_.prototype, "MJCompanyIntegrations_ScheduledJobIDArray", void 0);
|
|
84189
85080
|
MJScheduledJob_ = __decorate([
|
|
84190
85081
|
ObjectType({ description: `Defines schedules for automated job execution across all schedulable types. Each record represents a scheduled job with its cron expression, configuration, and execution tracking.` })
|
|
84191
85082
|
], MJScheduledJob_);
|
|
@@ -84487,6 +85378,14 @@ let MJScheduledJobResolver = class MJScheduledJobResolver extends ResolverBase {
|
|
|
84487
85378
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Scheduled Job Runs', rows, this.GetUserFromPayload(userPayload));
|
|
84488
85379
|
return result;
|
|
84489
85380
|
}
|
|
85381
|
+
async MJCompanyIntegrations_ScheduledJobIDArray(mjscheduledjob_, { userPayload, providers }, pubSub) {
|
|
85382
|
+
this.CheckUserReadPermissions('MJ: Company Integrations', userPayload);
|
|
85383
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85384
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCompanyIntegrations')} WHERE ${provider.QuoteIdentifier('ScheduledJobID')}='${mjscheduledjob_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Company Integrations', userPayload, EntityPermissionType.Read, 'AND');
|
|
85385
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
85386
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Company Integrations', rows, this.GetUserFromPayload(userPayload));
|
|
85387
|
+
return result;
|
|
85388
|
+
}
|
|
84490
85389
|
async CreateMJScheduledJob(input, { providers, userPayload }, pubSub) {
|
|
84491
85390
|
const provider = GetReadWriteProvider(providers);
|
|
84492
85391
|
return this.CreateRecord('MJ: Scheduled Jobs', input, provider, userPayload, pubSub);
|
|
@@ -84546,6 +85445,15 @@ __decorate([
|
|
|
84546
85445
|
__metadata("design:paramtypes", [MJScheduledJob_, Object, PubSubEngine]),
|
|
84547
85446
|
__metadata("design:returntype", Promise)
|
|
84548
85447
|
], MJScheduledJobResolver.prototype, "MJScheduledJobRuns_ScheduledJobIDArray", null);
|
|
85448
|
+
__decorate([
|
|
85449
|
+
FieldResolver(() => [MJCompanyIntegration_]),
|
|
85450
|
+
__param(0, Root()),
|
|
85451
|
+
__param(1, Ctx()),
|
|
85452
|
+
__param(2, PubSub()),
|
|
85453
|
+
__metadata("design:type", Function),
|
|
85454
|
+
__metadata("design:paramtypes", [MJScheduledJob_, Object, PubSubEngine]),
|
|
85455
|
+
__metadata("design:returntype", Promise)
|
|
85456
|
+
], MJScheduledJobResolver.prototype, "MJCompanyIntegrations_ScheduledJobIDArray", null);
|
|
84549
85457
|
__decorate([
|
|
84550
85458
|
Mutation(() => MJScheduledJob_),
|
|
84551
85459
|
__param(0, Arg('input', () => CreateMJScheduledJobInput)),
|