@mj-biz-apps/common-server 5.57.1 → 5.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/graphql-schemas/__mj_BizAppsCommon.d.ts +49 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsCommon.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsCommon.js +274 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsCommon.js.map +1 -1
- package/package.json +5 -5
|
@@ -5603,6 +5603,280 @@ mjBizAppsCommonAddressResolver = __decorate([
|
|
|
5603
5603
|
], mjBizAppsCommonAddressResolver);
|
|
5604
5604
|
export { mjBizAppsCommonAddressResolver };
|
|
5605
5605
|
//****************************************************************************
|
|
5606
|
+
// ENTITY CLASS for MJ_BizApps_Common: Company Sender Identities
|
|
5607
|
+
//****************************************************************************
|
|
5608
|
+
let mjBizAppsCommonCompanySenderIdentity_ = class mjBizAppsCommonCompanySenderIdentity_ {
|
|
5609
|
+
};
|
|
5610
|
+
__decorate([
|
|
5611
|
+
Field({ description: "Unique identifier for the sender identity." }),
|
|
5612
|
+
MaxLength(36),
|
|
5613
|
+
__metadata("design:type", String)
|
|
5614
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "ID", void 0);
|
|
5615
|
+
__decorate([
|
|
5616
|
+
Field({ nullable: true, description: "The company that owns this sender identity." }),
|
|
5617
|
+
MaxLength(36),
|
|
5618
|
+
__metadata("design:type", String)
|
|
5619
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "CompanyID", void 0);
|
|
5620
|
+
__decorate([
|
|
5621
|
+
Field({ nullable: true, description: "What Address holds: Mailbox is one full email address, Domain is a bare domain any address on which may be used." }),
|
|
5622
|
+
MaxLength(20),
|
|
5623
|
+
__metadata("design:type", String)
|
|
5624
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "Kind", void 0);
|
|
5625
|
+
__decorate([
|
|
5626
|
+
Field({ nullable: true, description: "The sender address, stored trimmed and lower-cased by the entity; a full mailbox when Kind = Mailbox, a bare domain when Kind = Domain. Unique per company." }),
|
|
5627
|
+
MaxLength(320),
|
|
5628
|
+
__metadata("design:type", String)
|
|
5629
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "Address", void 0);
|
|
5630
|
+
__decorate([
|
|
5631
|
+
Field({ nullable: true, description: "Optional friendly name shown with the address in the From line." }),
|
|
5632
|
+
MaxLength(200),
|
|
5633
|
+
__metadata("design:type", String)
|
|
5634
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "DisplayName", void 0);
|
|
5635
|
+
__decorate([
|
|
5636
|
+
Field(() => Boolean, { nullable: true, description: "Marks the company's default sender: at most one per company (UQ_CompanySenderIdentity_Default); only a Mailbox row is a usable default." }),
|
|
5637
|
+
__metadata("design:type", Boolean)
|
|
5638
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "IsDefault", void 0);
|
|
5639
|
+
__decorate([
|
|
5640
|
+
Field(),
|
|
5641
|
+
__metadata("design:type", Date)
|
|
5642
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "_mj__CreatedAt", void 0);
|
|
5643
|
+
__decorate([
|
|
5644
|
+
Field(),
|
|
5645
|
+
__metadata("design:type", Date)
|
|
5646
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "_mj__UpdatedAt", void 0);
|
|
5647
|
+
__decorate([
|
|
5648
|
+
Field({ nullable: true }),
|
|
5649
|
+
MaxLength(50),
|
|
5650
|
+
__metadata("design:type", String)
|
|
5651
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "Company", void 0);
|
|
5652
|
+
__decorate([
|
|
5653
|
+
Field(() => [String], { nullable: true, description: `Field-level security: when non-null, the fields on this entity the calling user may read. Any other field arriving as null was withheld by the server rather than genuinely empty. Null for callers with no field restrictions.` }),
|
|
5654
|
+
__metadata("design:type", Array)
|
|
5655
|
+
], mjBizAppsCommonCompanySenderIdentity_.prototype, "ReadableFields___", void 0);
|
|
5656
|
+
mjBizAppsCommonCompanySenderIdentity_ = __decorate([
|
|
5657
|
+
ObjectType({ description: "An address or domain a company may send email as. One row per sender identity; a company can have several." })
|
|
5658
|
+
], mjBizAppsCommonCompanySenderIdentity_);
|
|
5659
|
+
export { mjBizAppsCommonCompanySenderIdentity_ };
|
|
5660
|
+
//****************************************************************************
|
|
5661
|
+
// INPUT TYPE for MJ_BizApps_Common: Company Sender Identities
|
|
5662
|
+
//****************************************************************************
|
|
5663
|
+
let CreatemjBizAppsCommonCompanySenderIdentityInput = class CreatemjBizAppsCommonCompanySenderIdentityInput {
|
|
5664
|
+
};
|
|
5665
|
+
__decorate([
|
|
5666
|
+
Field({ nullable: true }),
|
|
5667
|
+
__metadata("design:type", String)
|
|
5668
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput.prototype, "ID", void 0);
|
|
5669
|
+
__decorate([
|
|
5670
|
+
Field({ nullable: true }),
|
|
5671
|
+
__metadata("design:type", String)
|
|
5672
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput.prototype, "CompanyID", void 0);
|
|
5673
|
+
__decorate([
|
|
5674
|
+
Field({ nullable: true }),
|
|
5675
|
+
__metadata("design:type", String)
|
|
5676
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput.prototype, "Kind", void 0);
|
|
5677
|
+
__decorate([
|
|
5678
|
+
Field({ nullable: true }),
|
|
5679
|
+
__metadata("design:type", String)
|
|
5680
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput.prototype, "Address", void 0);
|
|
5681
|
+
__decorate([
|
|
5682
|
+
Field({ nullable: true }),
|
|
5683
|
+
__metadata("design:type", String)
|
|
5684
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput.prototype, "DisplayName", void 0);
|
|
5685
|
+
__decorate([
|
|
5686
|
+
Field(() => Boolean, { nullable: true }),
|
|
5687
|
+
__metadata("design:type", Boolean)
|
|
5688
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput.prototype, "IsDefault", void 0);
|
|
5689
|
+
__decorate([
|
|
5690
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
5691
|
+
__metadata("design:type", RestoreContextInput)
|
|
5692
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput.prototype, "RestoreContext___", void 0);
|
|
5693
|
+
CreatemjBizAppsCommonCompanySenderIdentityInput = __decorate([
|
|
5694
|
+
InputType()
|
|
5695
|
+
], CreatemjBizAppsCommonCompanySenderIdentityInput);
|
|
5696
|
+
export { CreatemjBizAppsCommonCompanySenderIdentityInput };
|
|
5697
|
+
//****************************************************************************
|
|
5698
|
+
// INPUT TYPE for MJ_BizApps_Common: Company Sender Identities
|
|
5699
|
+
//****************************************************************************
|
|
5700
|
+
let UpdatemjBizAppsCommonCompanySenderIdentityInput = class UpdatemjBizAppsCommonCompanySenderIdentityInput {
|
|
5701
|
+
};
|
|
5702
|
+
__decorate([
|
|
5703
|
+
Field(),
|
|
5704
|
+
__metadata("design:type", String)
|
|
5705
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "ID", void 0);
|
|
5706
|
+
__decorate([
|
|
5707
|
+
Field({ nullable: true }),
|
|
5708
|
+
__metadata("design:type", String)
|
|
5709
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "CompanyID", void 0);
|
|
5710
|
+
__decorate([
|
|
5711
|
+
Field({ nullable: true }),
|
|
5712
|
+
__metadata("design:type", String)
|
|
5713
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "Kind", void 0);
|
|
5714
|
+
__decorate([
|
|
5715
|
+
Field({ nullable: true }),
|
|
5716
|
+
__metadata("design:type", String)
|
|
5717
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "Address", void 0);
|
|
5718
|
+
__decorate([
|
|
5719
|
+
Field({ nullable: true }),
|
|
5720
|
+
__metadata("design:type", String)
|
|
5721
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "DisplayName", void 0);
|
|
5722
|
+
__decorate([
|
|
5723
|
+
Field(() => Boolean, { nullable: true }),
|
|
5724
|
+
__metadata("design:type", Boolean)
|
|
5725
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "IsDefault", void 0);
|
|
5726
|
+
__decorate([
|
|
5727
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
5728
|
+
__metadata("design:type", Array)
|
|
5729
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "OldValues___", void 0);
|
|
5730
|
+
__decorate([
|
|
5731
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
5732
|
+
__metadata("design:type", RestoreContextInput)
|
|
5733
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput.prototype, "RestoreContext___", void 0);
|
|
5734
|
+
UpdatemjBizAppsCommonCompanySenderIdentityInput = __decorate([
|
|
5735
|
+
InputType()
|
|
5736
|
+
], UpdatemjBizAppsCommonCompanySenderIdentityInput);
|
|
5737
|
+
export { UpdatemjBizAppsCommonCompanySenderIdentityInput };
|
|
5738
|
+
//****************************************************************************
|
|
5739
|
+
// RESOLVER for MJ_BizApps_Common: Company Sender Identities
|
|
5740
|
+
//****************************************************************************
|
|
5741
|
+
let RunmjBizAppsCommonCompanySenderIdentityViewResult = class RunmjBizAppsCommonCompanySenderIdentityViewResult {
|
|
5742
|
+
};
|
|
5743
|
+
__decorate([
|
|
5744
|
+
Field(() => [mjBizAppsCommonCompanySenderIdentity_]),
|
|
5745
|
+
__metadata("design:type", Array)
|
|
5746
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult.prototype, "Results", void 0);
|
|
5747
|
+
__decorate([
|
|
5748
|
+
Field(() => String, { nullable: true }),
|
|
5749
|
+
__metadata("design:type", String)
|
|
5750
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult.prototype, "UserViewRunID", void 0);
|
|
5751
|
+
__decorate([
|
|
5752
|
+
Field(() => Int, { nullable: true }),
|
|
5753
|
+
__metadata("design:type", Number)
|
|
5754
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult.prototype, "RowCount", void 0);
|
|
5755
|
+
__decorate([
|
|
5756
|
+
Field(() => Int, { nullable: true }),
|
|
5757
|
+
__metadata("design:type", Number)
|
|
5758
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult.prototype, "TotalRowCount", void 0);
|
|
5759
|
+
__decorate([
|
|
5760
|
+
Field(() => Int, { nullable: true }),
|
|
5761
|
+
__metadata("design:type", Number)
|
|
5762
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult.prototype, "ExecutionTime", void 0);
|
|
5763
|
+
__decorate([
|
|
5764
|
+
Field({ nullable: true }),
|
|
5765
|
+
__metadata("design:type", String)
|
|
5766
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult.prototype, "ErrorMessage", void 0);
|
|
5767
|
+
__decorate([
|
|
5768
|
+
Field(() => Boolean, { nullable: false }),
|
|
5769
|
+
__metadata("design:type", Boolean)
|
|
5770
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult.prototype, "Success", void 0);
|
|
5771
|
+
RunmjBizAppsCommonCompanySenderIdentityViewResult = __decorate([
|
|
5772
|
+
ObjectType()
|
|
5773
|
+
], RunmjBizAppsCommonCompanySenderIdentityViewResult);
|
|
5774
|
+
export { RunmjBizAppsCommonCompanySenderIdentityViewResult };
|
|
5775
|
+
let mjBizAppsCommonCompanySenderIdentityResolver = class mjBizAppsCommonCompanySenderIdentityResolver extends ResolverBase {
|
|
5776
|
+
async RunmjBizAppsCommonCompanySenderIdentityViewByID(input, { providers, userPayload }, pubSub) {
|
|
5777
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5778
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
5779
|
+
}
|
|
5780
|
+
async RunmjBizAppsCommonCompanySenderIdentityViewByName(input, { providers, userPayload }, pubSub) {
|
|
5781
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5782
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
5783
|
+
}
|
|
5784
|
+
async RunmjBizAppsCommonCompanySenderIdentityDynamicView(input, { providers, userPayload }, pubSub) {
|
|
5785
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5786
|
+
input.EntityName = 'MJ_BizApps_Common: Company Sender Identities';
|
|
5787
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
5788
|
+
}
|
|
5789
|
+
async mjBizAppsCommonCompanySenderIdentity(ID, { userPayload, providers }, pubSub) {
|
|
5790
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Company Sender Identities', userPayload);
|
|
5791
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5792
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwCompanySenderIdentities')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Company Sender Identities', userPayload, EntityPermissionType.Read, 'AND');
|
|
5793
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
5794
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Company Sender Identities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
5795
|
+
return result;
|
|
5796
|
+
}
|
|
5797
|
+
async CreatemjBizAppsCommonCompanySenderIdentity(input, { providers, userPayload }, pubSub) {
|
|
5798
|
+
const provider = GetReadWriteProvider(providers);
|
|
5799
|
+
return this.CreateRecord('MJ_BizApps_Common: Company Sender Identities', input, provider, userPayload, pubSub);
|
|
5800
|
+
}
|
|
5801
|
+
async UpdatemjBizAppsCommonCompanySenderIdentity(input, { providers, userPayload }, pubSub) {
|
|
5802
|
+
const provider = GetReadWriteProvider(providers);
|
|
5803
|
+
return this.UpdateRecord('MJ_BizApps_Common: Company Sender Identities', input, provider, userPayload, pubSub);
|
|
5804
|
+
}
|
|
5805
|
+
async DeletemjBizAppsCommonCompanySenderIdentity(ID, options, { providers, userPayload }, pubSub) {
|
|
5806
|
+
const provider = GetReadWriteProvider(providers);
|
|
5807
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
5808
|
+
return this.DeleteRecord('MJ_BizApps_Common: Company Sender Identities', key, options, provider, userPayload, pubSub);
|
|
5809
|
+
}
|
|
5810
|
+
};
|
|
5811
|
+
__decorate([
|
|
5812
|
+
Query(() => RunmjBizAppsCommonCompanySenderIdentityViewResult),
|
|
5813
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
5814
|
+
__param(1, Ctx()),
|
|
5815
|
+
__param(2, PubSub()),
|
|
5816
|
+
__metadata("design:type", Function),
|
|
5817
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
5818
|
+
__metadata("design:returntype", Promise)
|
|
5819
|
+
], mjBizAppsCommonCompanySenderIdentityResolver.prototype, "RunmjBizAppsCommonCompanySenderIdentityViewByID", null);
|
|
5820
|
+
__decorate([
|
|
5821
|
+
Query(() => RunmjBizAppsCommonCompanySenderIdentityViewResult),
|
|
5822
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
5823
|
+
__param(1, Ctx()),
|
|
5824
|
+
__param(2, PubSub()),
|
|
5825
|
+
__metadata("design:type", Function),
|
|
5826
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
5827
|
+
__metadata("design:returntype", Promise)
|
|
5828
|
+
], mjBizAppsCommonCompanySenderIdentityResolver.prototype, "RunmjBizAppsCommonCompanySenderIdentityViewByName", null);
|
|
5829
|
+
__decorate([
|
|
5830
|
+
Query(() => RunmjBizAppsCommonCompanySenderIdentityViewResult),
|
|
5831
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
5832
|
+
__param(1, Ctx()),
|
|
5833
|
+
__param(2, PubSub()),
|
|
5834
|
+
__metadata("design:type", Function),
|
|
5835
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
5836
|
+
__metadata("design:returntype", Promise)
|
|
5837
|
+
], mjBizAppsCommonCompanySenderIdentityResolver.prototype, "RunmjBizAppsCommonCompanySenderIdentityDynamicView", null);
|
|
5838
|
+
__decorate([
|
|
5839
|
+
Query(() => mjBizAppsCommonCompanySenderIdentity_, { nullable: true }),
|
|
5840
|
+
__param(0, Arg('ID', () => String)),
|
|
5841
|
+
__param(1, Ctx()),
|
|
5842
|
+
__param(2, PubSub()),
|
|
5843
|
+
__metadata("design:type", Function),
|
|
5844
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
5845
|
+
__metadata("design:returntype", Promise)
|
|
5846
|
+
], mjBizAppsCommonCompanySenderIdentityResolver.prototype, "mjBizAppsCommonCompanySenderIdentity", null);
|
|
5847
|
+
__decorate([
|
|
5848
|
+
Mutation(() => mjBizAppsCommonCompanySenderIdentity_),
|
|
5849
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonCompanySenderIdentityInput)),
|
|
5850
|
+
__param(1, Ctx()),
|
|
5851
|
+
__param(2, PubSub()),
|
|
5852
|
+
__metadata("design:type", Function),
|
|
5853
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonCompanySenderIdentityInput, Object, PubSubEngine]),
|
|
5854
|
+
__metadata("design:returntype", Promise)
|
|
5855
|
+
], mjBizAppsCommonCompanySenderIdentityResolver.prototype, "CreatemjBizAppsCommonCompanySenderIdentity", null);
|
|
5856
|
+
__decorate([
|
|
5857
|
+
Mutation(() => mjBizAppsCommonCompanySenderIdentity_),
|
|
5858
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonCompanySenderIdentityInput)),
|
|
5859
|
+
__param(1, Ctx()),
|
|
5860
|
+
__param(2, PubSub()),
|
|
5861
|
+
__metadata("design:type", Function),
|
|
5862
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonCompanySenderIdentityInput, Object, PubSubEngine]),
|
|
5863
|
+
__metadata("design:returntype", Promise)
|
|
5864
|
+
], mjBizAppsCommonCompanySenderIdentityResolver.prototype, "UpdatemjBizAppsCommonCompanySenderIdentity", null);
|
|
5865
|
+
__decorate([
|
|
5866
|
+
Mutation(() => mjBizAppsCommonCompanySenderIdentity_),
|
|
5867
|
+
__param(0, Arg('ID', () => String)),
|
|
5868
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
5869
|
+
__param(2, Ctx()),
|
|
5870
|
+
__param(3, PubSub()),
|
|
5871
|
+
__metadata("design:type", Function),
|
|
5872
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
5873
|
+
__metadata("design:returntype", Promise)
|
|
5874
|
+
], mjBizAppsCommonCompanySenderIdentityResolver.prototype, "DeletemjBizAppsCommonCompanySenderIdentity", null);
|
|
5875
|
+
mjBizAppsCommonCompanySenderIdentityResolver = __decorate([
|
|
5876
|
+
Resolver(mjBizAppsCommonCompanySenderIdentity_)
|
|
5877
|
+
], mjBizAppsCommonCompanySenderIdentityResolver);
|
|
5878
|
+
export { mjBizAppsCommonCompanySenderIdentityResolver };
|
|
5879
|
+
//****************************************************************************
|
|
5606
5880
|
// ENTITY CLASS for MJ_BizApps_Common: Contact Methods
|
|
5607
5881
|
//****************************************************************************
|
|
5608
5882
|
let mjBizAppsCommonContactMethod_ = class mjBizAppsCommonContactMethod_ {
|