@mj-biz-apps/common-server 5.60.0 → 5.61.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 +149 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsCommon.d.ts.map +1 -1
- package/dist/generated/graphql-schemas/__mj_BizAppsCommon.js +830 -0
- package/dist/generated/graphql-schemas/__mj_BizAppsCommon.js.map +1 -1
- package/package.json +5 -5
|
@@ -5877,6 +5877,818 @@ mjBizAppsCommonCompanySenderIdentityResolver = __decorate([
|
|
|
5877
5877
|
], mjBizAppsCommonCompanySenderIdentityResolver);
|
|
5878
5878
|
export { mjBizAppsCommonCompanySenderIdentityResolver };
|
|
5879
5879
|
//****************************************************************************
|
|
5880
|
+
// ENTITY CLASS for MJ_BizApps_Common: Consent Purposes
|
|
5881
|
+
//****************************************************************************
|
|
5882
|
+
let mjBizAppsCommonConsentPurpose_ = class mjBizAppsCommonConsentPurpose_ {
|
|
5883
|
+
};
|
|
5884
|
+
__decorate([
|
|
5885
|
+
Field(),
|
|
5886
|
+
MaxLength(36),
|
|
5887
|
+
__metadata("design:type", String)
|
|
5888
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "ID", void 0);
|
|
5889
|
+
__decorate([
|
|
5890
|
+
Field({ nullable: true, description: "Display name of the purpose, unique within the installation." }),
|
|
5891
|
+
MaxLength(100),
|
|
5892
|
+
__metadata("design:type", String)
|
|
5893
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "Name", void 0);
|
|
5894
|
+
__decorate([
|
|
5895
|
+
Field({ nullable: true, description: "What kinds of messages this purpose covers." }),
|
|
5896
|
+
__metadata("design:type", String)
|
|
5897
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "Description", void 0);
|
|
5898
|
+
__decorate([
|
|
5899
|
+
Field(() => Int, { nullable: true, description: "Sort order in dropdown lists. Lower values appear first." }),
|
|
5900
|
+
__metadata("design:type", Number)
|
|
5901
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "Sequence", void 0);
|
|
5902
|
+
__decorate([
|
|
5903
|
+
Field(() => Boolean, { nullable: true, description: "Whether this purpose is offered for new consents. Inactive purposes are hidden from dropdowns but preserved for existing records." }),
|
|
5904
|
+
__metadata("design:type", Boolean)
|
|
5905
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "IsActive", void 0);
|
|
5906
|
+
__decorate([
|
|
5907
|
+
Field(),
|
|
5908
|
+
__metadata("design:type", Date)
|
|
5909
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "_mj__CreatedAt", void 0);
|
|
5910
|
+
__decorate([
|
|
5911
|
+
Field(),
|
|
5912
|
+
__metadata("design:type", Date)
|
|
5913
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "_mj__UpdatedAt", void 0);
|
|
5914
|
+
__decorate([
|
|
5915
|
+
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.` }),
|
|
5916
|
+
__metadata("design:type", Array)
|
|
5917
|
+
], mjBizAppsCommonConsentPurpose_.prototype, "ReadableFields___", void 0);
|
|
5918
|
+
mjBizAppsCommonConsentPurpose_ = __decorate([
|
|
5919
|
+
ObjectType({ description: "What a consent is for. Common seeds the generic purposes, Marketing and Transactional; apps built on Common add their own. Consent is recorded per contact method and purpose, so one email can be opted in for transactional messages and opted out of marketing. Seeded by metadata; add rows rather than columns." })
|
|
5920
|
+
], mjBizAppsCommonConsentPurpose_);
|
|
5921
|
+
export { mjBizAppsCommonConsentPurpose_ };
|
|
5922
|
+
//****************************************************************************
|
|
5923
|
+
// INPUT TYPE for MJ_BizApps_Common: Consent Purposes
|
|
5924
|
+
//****************************************************************************
|
|
5925
|
+
let CreatemjBizAppsCommonConsentPurposeInput = class CreatemjBizAppsCommonConsentPurposeInput {
|
|
5926
|
+
};
|
|
5927
|
+
__decorate([
|
|
5928
|
+
Field({ nullable: true }),
|
|
5929
|
+
__metadata("design:type", String)
|
|
5930
|
+
], CreatemjBizAppsCommonConsentPurposeInput.prototype, "ID", void 0);
|
|
5931
|
+
__decorate([
|
|
5932
|
+
Field({ nullable: true }),
|
|
5933
|
+
__metadata("design:type", String)
|
|
5934
|
+
], CreatemjBizAppsCommonConsentPurposeInput.prototype, "Name", void 0);
|
|
5935
|
+
__decorate([
|
|
5936
|
+
Field({ nullable: true }),
|
|
5937
|
+
__metadata("design:type", String)
|
|
5938
|
+
], CreatemjBizAppsCommonConsentPurposeInput.prototype, "Description", void 0);
|
|
5939
|
+
__decorate([
|
|
5940
|
+
Field(() => Int, { nullable: true }),
|
|
5941
|
+
__metadata("design:type", Number)
|
|
5942
|
+
], CreatemjBizAppsCommonConsentPurposeInput.prototype, "Sequence", void 0);
|
|
5943
|
+
__decorate([
|
|
5944
|
+
Field(() => Boolean, { nullable: true }),
|
|
5945
|
+
__metadata("design:type", Boolean)
|
|
5946
|
+
], CreatemjBizAppsCommonConsentPurposeInput.prototype, "IsActive", void 0);
|
|
5947
|
+
__decorate([
|
|
5948
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
5949
|
+
__metadata("design:type", RestoreContextInput)
|
|
5950
|
+
], CreatemjBizAppsCommonConsentPurposeInput.prototype, "RestoreContext___", void 0);
|
|
5951
|
+
CreatemjBizAppsCommonConsentPurposeInput = __decorate([
|
|
5952
|
+
InputType()
|
|
5953
|
+
], CreatemjBizAppsCommonConsentPurposeInput);
|
|
5954
|
+
export { CreatemjBizAppsCommonConsentPurposeInput };
|
|
5955
|
+
//****************************************************************************
|
|
5956
|
+
// INPUT TYPE for MJ_BizApps_Common: Consent Purposes
|
|
5957
|
+
//****************************************************************************
|
|
5958
|
+
let UpdatemjBizAppsCommonConsentPurposeInput = class UpdatemjBizAppsCommonConsentPurposeInput {
|
|
5959
|
+
};
|
|
5960
|
+
__decorate([
|
|
5961
|
+
Field(),
|
|
5962
|
+
__metadata("design:type", String)
|
|
5963
|
+
], UpdatemjBizAppsCommonConsentPurposeInput.prototype, "ID", void 0);
|
|
5964
|
+
__decorate([
|
|
5965
|
+
Field({ nullable: true }),
|
|
5966
|
+
__metadata("design:type", String)
|
|
5967
|
+
], UpdatemjBizAppsCommonConsentPurposeInput.prototype, "Name", void 0);
|
|
5968
|
+
__decorate([
|
|
5969
|
+
Field({ nullable: true }),
|
|
5970
|
+
__metadata("design:type", String)
|
|
5971
|
+
], UpdatemjBizAppsCommonConsentPurposeInput.prototype, "Description", void 0);
|
|
5972
|
+
__decorate([
|
|
5973
|
+
Field(() => Int, { nullable: true }),
|
|
5974
|
+
__metadata("design:type", Number)
|
|
5975
|
+
], UpdatemjBizAppsCommonConsentPurposeInput.prototype, "Sequence", void 0);
|
|
5976
|
+
__decorate([
|
|
5977
|
+
Field(() => Boolean, { nullable: true }),
|
|
5978
|
+
__metadata("design:type", Boolean)
|
|
5979
|
+
], UpdatemjBizAppsCommonConsentPurposeInput.prototype, "IsActive", void 0);
|
|
5980
|
+
__decorate([
|
|
5981
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
5982
|
+
__metadata("design:type", Array)
|
|
5983
|
+
], UpdatemjBizAppsCommonConsentPurposeInput.prototype, "OldValues___", void 0);
|
|
5984
|
+
__decorate([
|
|
5985
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
5986
|
+
__metadata("design:type", RestoreContextInput)
|
|
5987
|
+
], UpdatemjBizAppsCommonConsentPurposeInput.prototype, "RestoreContext___", void 0);
|
|
5988
|
+
UpdatemjBizAppsCommonConsentPurposeInput = __decorate([
|
|
5989
|
+
InputType()
|
|
5990
|
+
], UpdatemjBizAppsCommonConsentPurposeInput);
|
|
5991
|
+
export { UpdatemjBizAppsCommonConsentPurposeInput };
|
|
5992
|
+
//****************************************************************************
|
|
5993
|
+
// RESOLVER for MJ_BizApps_Common: Consent Purposes
|
|
5994
|
+
//****************************************************************************
|
|
5995
|
+
let RunmjBizAppsCommonConsentPurposeViewResult = class RunmjBizAppsCommonConsentPurposeViewResult {
|
|
5996
|
+
};
|
|
5997
|
+
__decorate([
|
|
5998
|
+
Field(() => [mjBizAppsCommonConsentPurpose_]),
|
|
5999
|
+
__metadata("design:type", Array)
|
|
6000
|
+
], RunmjBizAppsCommonConsentPurposeViewResult.prototype, "Results", void 0);
|
|
6001
|
+
__decorate([
|
|
6002
|
+
Field(() => String, { nullable: true }),
|
|
6003
|
+
__metadata("design:type", String)
|
|
6004
|
+
], RunmjBizAppsCommonConsentPurposeViewResult.prototype, "UserViewRunID", void 0);
|
|
6005
|
+
__decorate([
|
|
6006
|
+
Field(() => Int, { nullable: true }),
|
|
6007
|
+
__metadata("design:type", Number)
|
|
6008
|
+
], RunmjBizAppsCommonConsentPurposeViewResult.prototype, "RowCount", void 0);
|
|
6009
|
+
__decorate([
|
|
6010
|
+
Field(() => Int, { nullable: true }),
|
|
6011
|
+
__metadata("design:type", Number)
|
|
6012
|
+
], RunmjBizAppsCommonConsentPurposeViewResult.prototype, "TotalRowCount", void 0);
|
|
6013
|
+
__decorate([
|
|
6014
|
+
Field(() => Int, { nullable: true }),
|
|
6015
|
+
__metadata("design:type", Number)
|
|
6016
|
+
], RunmjBizAppsCommonConsentPurposeViewResult.prototype, "ExecutionTime", void 0);
|
|
6017
|
+
__decorate([
|
|
6018
|
+
Field({ nullable: true }),
|
|
6019
|
+
__metadata("design:type", String)
|
|
6020
|
+
], RunmjBizAppsCommonConsentPurposeViewResult.prototype, "ErrorMessage", void 0);
|
|
6021
|
+
__decorate([
|
|
6022
|
+
Field(() => Boolean, { nullable: false }),
|
|
6023
|
+
__metadata("design:type", Boolean)
|
|
6024
|
+
], RunmjBizAppsCommonConsentPurposeViewResult.prototype, "Success", void 0);
|
|
6025
|
+
RunmjBizAppsCommonConsentPurposeViewResult = __decorate([
|
|
6026
|
+
ObjectType()
|
|
6027
|
+
], RunmjBizAppsCommonConsentPurposeViewResult);
|
|
6028
|
+
export { RunmjBizAppsCommonConsentPurposeViewResult };
|
|
6029
|
+
let mjBizAppsCommonConsentPurposeResolver = class mjBizAppsCommonConsentPurposeResolver extends ResolverBase {
|
|
6030
|
+
async RunmjBizAppsCommonConsentPurposeViewByID(input, { providers, userPayload }, pubSub) {
|
|
6031
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6032
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
6033
|
+
}
|
|
6034
|
+
async RunmjBizAppsCommonConsentPurposeViewByName(input, { providers, userPayload }, pubSub) {
|
|
6035
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6036
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
6037
|
+
}
|
|
6038
|
+
async RunmjBizAppsCommonConsentPurposeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
6039
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6040
|
+
input.EntityName = 'MJ_BizApps_Common: Consent Purposes';
|
|
6041
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
6042
|
+
}
|
|
6043
|
+
async mjBizAppsCommonConsentPurpose(ID, { userPayload, providers }, pubSub) {
|
|
6044
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Consent Purposes', userPayload);
|
|
6045
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6046
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwConsentPurposes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Consent Purposes', userPayload, EntityPermissionType.Read, 'AND');
|
|
6047
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
6048
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Consent Purposes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6049
|
+
return result;
|
|
6050
|
+
}
|
|
6051
|
+
async CreatemjBizAppsCommonConsentPurpose(input, { providers, userPayload }, pubSub) {
|
|
6052
|
+
const provider = GetReadWriteProvider(providers);
|
|
6053
|
+
return this.CreateRecord('MJ_BizApps_Common: Consent Purposes', input, provider, userPayload, pubSub);
|
|
6054
|
+
}
|
|
6055
|
+
async UpdatemjBizAppsCommonConsentPurpose(input, { providers, userPayload }, pubSub) {
|
|
6056
|
+
const provider = GetReadWriteProvider(providers);
|
|
6057
|
+
return this.UpdateRecord('MJ_BizApps_Common: Consent Purposes', input, provider, userPayload, pubSub);
|
|
6058
|
+
}
|
|
6059
|
+
async DeletemjBizAppsCommonConsentPurpose(ID, options, { providers, userPayload }, pubSub) {
|
|
6060
|
+
const provider = GetReadWriteProvider(providers);
|
|
6061
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
6062
|
+
return this.DeleteRecord('MJ_BizApps_Common: Consent Purposes', key, options, provider, userPayload, pubSub);
|
|
6063
|
+
}
|
|
6064
|
+
};
|
|
6065
|
+
__decorate([
|
|
6066
|
+
Query(() => RunmjBizAppsCommonConsentPurposeViewResult),
|
|
6067
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
6068
|
+
__param(1, Ctx()),
|
|
6069
|
+
__param(2, PubSub()),
|
|
6070
|
+
__metadata("design:type", Function),
|
|
6071
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
6072
|
+
__metadata("design:returntype", Promise)
|
|
6073
|
+
], mjBizAppsCommonConsentPurposeResolver.prototype, "RunmjBizAppsCommonConsentPurposeViewByID", null);
|
|
6074
|
+
__decorate([
|
|
6075
|
+
Query(() => RunmjBizAppsCommonConsentPurposeViewResult),
|
|
6076
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
6077
|
+
__param(1, Ctx()),
|
|
6078
|
+
__param(2, PubSub()),
|
|
6079
|
+
__metadata("design:type", Function),
|
|
6080
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
6081
|
+
__metadata("design:returntype", Promise)
|
|
6082
|
+
], mjBizAppsCommonConsentPurposeResolver.prototype, "RunmjBizAppsCommonConsentPurposeViewByName", null);
|
|
6083
|
+
__decorate([
|
|
6084
|
+
Query(() => RunmjBizAppsCommonConsentPurposeViewResult),
|
|
6085
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
6086
|
+
__param(1, Ctx()),
|
|
6087
|
+
__param(2, PubSub()),
|
|
6088
|
+
__metadata("design:type", Function),
|
|
6089
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
6090
|
+
__metadata("design:returntype", Promise)
|
|
6091
|
+
], mjBizAppsCommonConsentPurposeResolver.prototype, "RunmjBizAppsCommonConsentPurposeDynamicView", null);
|
|
6092
|
+
__decorate([
|
|
6093
|
+
Query(() => mjBizAppsCommonConsentPurpose_, { nullable: true }),
|
|
6094
|
+
__param(0, Arg('ID', () => String)),
|
|
6095
|
+
__param(1, Ctx()),
|
|
6096
|
+
__param(2, PubSub()),
|
|
6097
|
+
__metadata("design:type", Function),
|
|
6098
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
6099
|
+
__metadata("design:returntype", Promise)
|
|
6100
|
+
], mjBizAppsCommonConsentPurposeResolver.prototype, "mjBizAppsCommonConsentPurpose", null);
|
|
6101
|
+
__decorate([
|
|
6102
|
+
Mutation(() => mjBizAppsCommonConsentPurpose_),
|
|
6103
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonConsentPurposeInput)),
|
|
6104
|
+
__param(1, Ctx()),
|
|
6105
|
+
__param(2, PubSub()),
|
|
6106
|
+
__metadata("design:type", Function),
|
|
6107
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonConsentPurposeInput, Object, PubSubEngine]),
|
|
6108
|
+
__metadata("design:returntype", Promise)
|
|
6109
|
+
], mjBizAppsCommonConsentPurposeResolver.prototype, "CreatemjBizAppsCommonConsentPurpose", null);
|
|
6110
|
+
__decorate([
|
|
6111
|
+
Mutation(() => mjBizAppsCommonConsentPurpose_),
|
|
6112
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonConsentPurposeInput)),
|
|
6113
|
+
__param(1, Ctx()),
|
|
6114
|
+
__param(2, PubSub()),
|
|
6115
|
+
__metadata("design:type", Function),
|
|
6116
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonConsentPurposeInput, Object, PubSubEngine]),
|
|
6117
|
+
__metadata("design:returntype", Promise)
|
|
6118
|
+
], mjBizAppsCommonConsentPurposeResolver.prototype, "UpdatemjBizAppsCommonConsentPurpose", null);
|
|
6119
|
+
__decorate([
|
|
6120
|
+
Mutation(() => mjBizAppsCommonConsentPurpose_),
|
|
6121
|
+
__param(0, Arg('ID', () => String)),
|
|
6122
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
6123
|
+
__param(2, Ctx()),
|
|
6124
|
+
__param(3, PubSub()),
|
|
6125
|
+
__metadata("design:type", Function),
|
|
6126
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
6127
|
+
__metadata("design:returntype", Promise)
|
|
6128
|
+
], mjBizAppsCommonConsentPurposeResolver.prototype, "DeletemjBizAppsCommonConsentPurpose", null);
|
|
6129
|
+
mjBizAppsCommonConsentPurposeResolver = __decorate([
|
|
6130
|
+
Resolver(mjBizAppsCommonConsentPurpose_)
|
|
6131
|
+
], mjBizAppsCommonConsentPurposeResolver);
|
|
6132
|
+
export { mjBizAppsCommonConsentPurposeResolver };
|
|
6133
|
+
//****************************************************************************
|
|
6134
|
+
// ENTITY CLASS for MJ_BizApps_Common: Contact Method Consent Histories
|
|
6135
|
+
//****************************************************************************
|
|
6136
|
+
let mjBizAppsCommonContactMethodConsentHistory_ = class mjBizAppsCommonContactMethodConsentHistory_ {
|
|
6137
|
+
};
|
|
6138
|
+
__decorate([
|
|
6139
|
+
Field(),
|
|
6140
|
+
MaxLength(36),
|
|
6141
|
+
__metadata("design:type", String)
|
|
6142
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "ID", void 0);
|
|
6143
|
+
__decorate([
|
|
6144
|
+
Field({ nullable: true }),
|
|
6145
|
+
MaxLength(36),
|
|
6146
|
+
__metadata("design:type", String)
|
|
6147
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "ContactMethodConsentID", void 0);
|
|
6148
|
+
__decorate([
|
|
6149
|
+
Field({ nullable: true, description: "The consent status this change set: Not Specified, Opted In or Opted Out." }),
|
|
6150
|
+
MaxLength(20),
|
|
6151
|
+
__metadata("design:type", String)
|
|
6152
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "NewConsentStatus", void 0);
|
|
6153
|
+
__decorate([
|
|
6154
|
+
Field({ nullable: true, description: "When the change took effect in the real world (the unsubscribe click, the form submission, the import's own date), not when this row was saved. The row with the latest value is the current status." }),
|
|
6155
|
+
__metadata("design:type", Date)
|
|
6156
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "ConsentStatusAt", void 0);
|
|
6157
|
+
__decorate([
|
|
6158
|
+
Field({ nullable: true, description: "Where the change came from: Web Form, Unsubscribe Link, Import, Staff or Other. Defaults to Staff, for a change made by a person in the app. The specifics, such as which system an import came from or what Other was, go in ConsentDetails." }),
|
|
6159
|
+
MaxLength(50),
|
|
6160
|
+
__metadata("design:type", String)
|
|
6161
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "ConsentSource", void 0);
|
|
6162
|
+
__decorate([
|
|
6163
|
+
Field({ nullable: true }),
|
|
6164
|
+
MaxLength(36),
|
|
6165
|
+
__metadata("design:type", String)
|
|
6166
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "RecordedByUserID", void 0);
|
|
6167
|
+
__decorate([
|
|
6168
|
+
Field({ nullable: true, description: "The specifics of the change: which system an import came from, what an Other source was, or evidence such as a form ID or the unsubscribe email's message ID." }),
|
|
6169
|
+
__metadata("design:type", String)
|
|
6170
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "ConsentDetails", void 0);
|
|
6171
|
+
__decorate([
|
|
6172
|
+
Field(),
|
|
6173
|
+
__metadata("design:type", Date)
|
|
6174
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "_mj__CreatedAt", void 0);
|
|
6175
|
+
__decorate([
|
|
6176
|
+
Field(),
|
|
6177
|
+
__metadata("design:type", Date)
|
|
6178
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "_mj__UpdatedAt", void 0);
|
|
6179
|
+
__decorate([
|
|
6180
|
+
Field({ nullable: true }),
|
|
6181
|
+
MaxLength(100),
|
|
6182
|
+
__metadata("design:type", String)
|
|
6183
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "RecordedByUser", void 0);
|
|
6184
|
+
__decorate([
|
|
6185
|
+
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.` }),
|
|
6186
|
+
__metadata("design:type", Array)
|
|
6187
|
+
], mjBizAppsCommonContactMethodConsentHistory_.prototype, "ReadableFields___", void 0);
|
|
6188
|
+
mjBizAppsCommonContactMethodConsentHistory_ = __decorate([
|
|
6189
|
+
ObjectType({ description: "One row per change on a ContactMethodConsent: the status it set, when it took effect in the real world, and where it came from. ContactMethodConsent.ConsentStatus mirrors the row with the latest ConsentStatusAt. A late-arriving change with an older date is kept here but does not change the current status. Deleting the consent deletes its history." })
|
|
6190
|
+
], mjBizAppsCommonContactMethodConsentHistory_);
|
|
6191
|
+
export { mjBizAppsCommonContactMethodConsentHistory_ };
|
|
6192
|
+
//****************************************************************************
|
|
6193
|
+
// INPUT TYPE for MJ_BizApps_Common: Contact Method Consent Histories
|
|
6194
|
+
//****************************************************************************
|
|
6195
|
+
let CreatemjBizAppsCommonContactMethodConsentHistoryInput = class CreatemjBizAppsCommonContactMethodConsentHistoryInput {
|
|
6196
|
+
};
|
|
6197
|
+
__decorate([
|
|
6198
|
+
Field({ nullable: true }),
|
|
6199
|
+
__metadata("design:type", String)
|
|
6200
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ID", void 0);
|
|
6201
|
+
__decorate([
|
|
6202
|
+
Field({ nullable: true }),
|
|
6203
|
+
__metadata("design:type", String)
|
|
6204
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ContactMethodConsentID", void 0);
|
|
6205
|
+
__decorate([
|
|
6206
|
+
Field({ nullable: true }),
|
|
6207
|
+
__metadata("design:type", String)
|
|
6208
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "NewConsentStatus", void 0);
|
|
6209
|
+
__decorate([
|
|
6210
|
+
Field({ nullable: true }),
|
|
6211
|
+
__metadata("design:type", Date)
|
|
6212
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ConsentStatusAt", void 0);
|
|
6213
|
+
__decorate([
|
|
6214
|
+
Field({ nullable: true }),
|
|
6215
|
+
__metadata("design:type", String)
|
|
6216
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ConsentSource", void 0);
|
|
6217
|
+
__decorate([
|
|
6218
|
+
Field({ nullable: true }),
|
|
6219
|
+
__metadata("design:type", String)
|
|
6220
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "RecordedByUserID", void 0);
|
|
6221
|
+
__decorate([
|
|
6222
|
+
Field({ nullable: true }),
|
|
6223
|
+
__metadata("design:type", String)
|
|
6224
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ConsentDetails", void 0);
|
|
6225
|
+
__decorate([
|
|
6226
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
6227
|
+
__metadata("design:type", RestoreContextInput)
|
|
6228
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "RestoreContext___", void 0);
|
|
6229
|
+
CreatemjBizAppsCommonContactMethodConsentHistoryInput = __decorate([
|
|
6230
|
+
InputType()
|
|
6231
|
+
], CreatemjBizAppsCommonContactMethodConsentHistoryInput);
|
|
6232
|
+
export { CreatemjBizAppsCommonContactMethodConsentHistoryInput };
|
|
6233
|
+
//****************************************************************************
|
|
6234
|
+
// INPUT TYPE for MJ_BizApps_Common: Contact Method Consent Histories
|
|
6235
|
+
//****************************************************************************
|
|
6236
|
+
let UpdatemjBizAppsCommonContactMethodConsentHistoryInput = class UpdatemjBizAppsCommonContactMethodConsentHistoryInput {
|
|
6237
|
+
};
|
|
6238
|
+
__decorate([
|
|
6239
|
+
Field(),
|
|
6240
|
+
__metadata("design:type", String)
|
|
6241
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ID", void 0);
|
|
6242
|
+
__decorate([
|
|
6243
|
+
Field({ nullable: true }),
|
|
6244
|
+
__metadata("design:type", String)
|
|
6245
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ContactMethodConsentID", void 0);
|
|
6246
|
+
__decorate([
|
|
6247
|
+
Field({ nullable: true }),
|
|
6248
|
+
__metadata("design:type", String)
|
|
6249
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "NewConsentStatus", void 0);
|
|
6250
|
+
__decorate([
|
|
6251
|
+
Field({ nullable: true }),
|
|
6252
|
+
__metadata("design:type", Date)
|
|
6253
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ConsentStatusAt", void 0);
|
|
6254
|
+
__decorate([
|
|
6255
|
+
Field({ nullable: true }),
|
|
6256
|
+
__metadata("design:type", String)
|
|
6257
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ConsentSource", void 0);
|
|
6258
|
+
__decorate([
|
|
6259
|
+
Field({ nullable: true }),
|
|
6260
|
+
__metadata("design:type", String)
|
|
6261
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "RecordedByUserID", void 0);
|
|
6262
|
+
__decorate([
|
|
6263
|
+
Field({ nullable: true }),
|
|
6264
|
+
__metadata("design:type", String)
|
|
6265
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "ConsentDetails", void 0);
|
|
6266
|
+
__decorate([
|
|
6267
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6268
|
+
__metadata("design:type", Array)
|
|
6269
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "OldValues___", void 0);
|
|
6270
|
+
__decorate([
|
|
6271
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
6272
|
+
__metadata("design:type", RestoreContextInput)
|
|
6273
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput.prototype, "RestoreContext___", void 0);
|
|
6274
|
+
UpdatemjBizAppsCommonContactMethodConsentHistoryInput = __decorate([
|
|
6275
|
+
InputType()
|
|
6276
|
+
], UpdatemjBizAppsCommonContactMethodConsentHistoryInput);
|
|
6277
|
+
export { UpdatemjBizAppsCommonContactMethodConsentHistoryInput };
|
|
6278
|
+
//****************************************************************************
|
|
6279
|
+
// RESOLVER for MJ_BizApps_Common: Contact Method Consent Histories
|
|
6280
|
+
//****************************************************************************
|
|
6281
|
+
let RunmjBizAppsCommonContactMethodConsentHistoryViewResult = class RunmjBizAppsCommonContactMethodConsentHistoryViewResult {
|
|
6282
|
+
};
|
|
6283
|
+
__decorate([
|
|
6284
|
+
Field(() => [mjBizAppsCommonContactMethodConsentHistory_]),
|
|
6285
|
+
__metadata("design:type", Array)
|
|
6286
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult.prototype, "Results", void 0);
|
|
6287
|
+
__decorate([
|
|
6288
|
+
Field(() => String, { nullable: true }),
|
|
6289
|
+
__metadata("design:type", String)
|
|
6290
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult.prototype, "UserViewRunID", void 0);
|
|
6291
|
+
__decorate([
|
|
6292
|
+
Field(() => Int, { nullable: true }),
|
|
6293
|
+
__metadata("design:type", Number)
|
|
6294
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult.prototype, "RowCount", void 0);
|
|
6295
|
+
__decorate([
|
|
6296
|
+
Field(() => Int, { nullable: true }),
|
|
6297
|
+
__metadata("design:type", Number)
|
|
6298
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult.prototype, "TotalRowCount", void 0);
|
|
6299
|
+
__decorate([
|
|
6300
|
+
Field(() => Int, { nullable: true }),
|
|
6301
|
+
__metadata("design:type", Number)
|
|
6302
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult.prototype, "ExecutionTime", void 0);
|
|
6303
|
+
__decorate([
|
|
6304
|
+
Field({ nullable: true }),
|
|
6305
|
+
__metadata("design:type", String)
|
|
6306
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult.prototype, "ErrorMessage", void 0);
|
|
6307
|
+
__decorate([
|
|
6308
|
+
Field(() => Boolean, { nullable: false }),
|
|
6309
|
+
__metadata("design:type", Boolean)
|
|
6310
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult.prototype, "Success", void 0);
|
|
6311
|
+
RunmjBizAppsCommonContactMethodConsentHistoryViewResult = __decorate([
|
|
6312
|
+
ObjectType()
|
|
6313
|
+
], RunmjBizAppsCommonContactMethodConsentHistoryViewResult);
|
|
6314
|
+
export { RunmjBizAppsCommonContactMethodConsentHistoryViewResult };
|
|
6315
|
+
let mjBizAppsCommonContactMethodConsentHistoryResolver = class mjBizAppsCommonContactMethodConsentHistoryResolver extends ResolverBase {
|
|
6316
|
+
async RunmjBizAppsCommonContactMethodConsentHistoryViewByID(input, { providers, userPayload }, pubSub) {
|
|
6317
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6318
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
6319
|
+
}
|
|
6320
|
+
async RunmjBizAppsCommonContactMethodConsentHistoryViewByName(input, { providers, userPayload }, pubSub) {
|
|
6321
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6322
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
6323
|
+
}
|
|
6324
|
+
async RunmjBizAppsCommonContactMethodConsentHistoryDynamicView(input, { providers, userPayload }, pubSub) {
|
|
6325
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6326
|
+
input.EntityName = 'MJ_BizApps_Common: Contact Method Consent Histories';
|
|
6327
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
6328
|
+
}
|
|
6329
|
+
async mjBizAppsCommonContactMethodConsentHistory(ID, { userPayload, providers }, pubSub) {
|
|
6330
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Contact Method Consent Histories', userPayload);
|
|
6331
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6332
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwContactMethodConsentHistories')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Contact Method Consent Histories', userPayload, EntityPermissionType.Read, 'AND');
|
|
6333
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
6334
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Contact Method Consent Histories', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6335
|
+
return result;
|
|
6336
|
+
}
|
|
6337
|
+
async CreatemjBizAppsCommonContactMethodConsentHistory(input, { providers, userPayload }, pubSub) {
|
|
6338
|
+
const provider = GetReadWriteProvider(providers);
|
|
6339
|
+
return this.CreateRecord('MJ_BizApps_Common: Contact Method Consent Histories', input, provider, userPayload, pubSub);
|
|
6340
|
+
}
|
|
6341
|
+
async UpdatemjBizAppsCommonContactMethodConsentHistory(input, { providers, userPayload }, pubSub) {
|
|
6342
|
+
const provider = GetReadWriteProvider(providers);
|
|
6343
|
+
return this.UpdateRecord('MJ_BizApps_Common: Contact Method Consent Histories', input, provider, userPayload, pubSub);
|
|
6344
|
+
}
|
|
6345
|
+
async DeletemjBizAppsCommonContactMethodConsentHistory(ID, options, { providers, userPayload }, pubSub) {
|
|
6346
|
+
const provider = GetReadWriteProvider(providers);
|
|
6347
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
6348
|
+
return this.DeleteRecord('MJ_BizApps_Common: Contact Method Consent Histories', key, options, provider, userPayload, pubSub);
|
|
6349
|
+
}
|
|
6350
|
+
};
|
|
6351
|
+
__decorate([
|
|
6352
|
+
Query(() => RunmjBizAppsCommonContactMethodConsentHistoryViewResult),
|
|
6353
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
6354
|
+
__param(1, Ctx()),
|
|
6355
|
+
__param(2, PubSub()),
|
|
6356
|
+
__metadata("design:type", Function),
|
|
6357
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
6358
|
+
__metadata("design:returntype", Promise)
|
|
6359
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver.prototype, "RunmjBizAppsCommonContactMethodConsentHistoryViewByID", null);
|
|
6360
|
+
__decorate([
|
|
6361
|
+
Query(() => RunmjBizAppsCommonContactMethodConsentHistoryViewResult),
|
|
6362
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
6363
|
+
__param(1, Ctx()),
|
|
6364
|
+
__param(2, PubSub()),
|
|
6365
|
+
__metadata("design:type", Function),
|
|
6366
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
6367
|
+
__metadata("design:returntype", Promise)
|
|
6368
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver.prototype, "RunmjBizAppsCommonContactMethodConsentHistoryViewByName", null);
|
|
6369
|
+
__decorate([
|
|
6370
|
+
Query(() => RunmjBizAppsCommonContactMethodConsentHistoryViewResult),
|
|
6371
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
6372
|
+
__param(1, Ctx()),
|
|
6373
|
+
__param(2, PubSub()),
|
|
6374
|
+
__metadata("design:type", Function),
|
|
6375
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
6376
|
+
__metadata("design:returntype", Promise)
|
|
6377
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver.prototype, "RunmjBizAppsCommonContactMethodConsentHistoryDynamicView", null);
|
|
6378
|
+
__decorate([
|
|
6379
|
+
Query(() => mjBizAppsCommonContactMethodConsentHistory_, { nullable: true }),
|
|
6380
|
+
__param(0, Arg('ID', () => String)),
|
|
6381
|
+
__param(1, Ctx()),
|
|
6382
|
+
__param(2, PubSub()),
|
|
6383
|
+
__metadata("design:type", Function),
|
|
6384
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
6385
|
+
__metadata("design:returntype", Promise)
|
|
6386
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver.prototype, "mjBizAppsCommonContactMethodConsentHistory", null);
|
|
6387
|
+
__decorate([
|
|
6388
|
+
Mutation(() => mjBizAppsCommonContactMethodConsentHistory_),
|
|
6389
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonContactMethodConsentHistoryInput)),
|
|
6390
|
+
__param(1, Ctx()),
|
|
6391
|
+
__param(2, PubSub()),
|
|
6392
|
+
__metadata("design:type", Function),
|
|
6393
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonContactMethodConsentHistoryInput, Object, PubSubEngine]),
|
|
6394
|
+
__metadata("design:returntype", Promise)
|
|
6395
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver.prototype, "CreatemjBizAppsCommonContactMethodConsentHistory", null);
|
|
6396
|
+
__decorate([
|
|
6397
|
+
Mutation(() => mjBizAppsCommonContactMethodConsentHistory_),
|
|
6398
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonContactMethodConsentHistoryInput)),
|
|
6399
|
+
__param(1, Ctx()),
|
|
6400
|
+
__param(2, PubSub()),
|
|
6401
|
+
__metadata("design:type", Function),
|
|
6402
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonContactMethodConsentHistoryInput, Object, PubSubEngine]),
|
|
6403
|
+
__metadata("design:returntype", Promise)
|
|
6404
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver.prototype, "UpdatemjBizAppsCommonContactMethodConsentHistory", null);
|
|
6405
|
+
__decorate([
|
|
6406
|
+
Mutation(() => mjBizAppsCommonContactMethodConsentHistory_),
|
|
6407
|
+
__param(0, Arg('ID', () => String)),
|
|
6408
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
6409
|
+
__param(2, Ctx()),
|
|
6410
|
+
__param(3, PubSub()),
|
|
6411
|
+
__metadata("design:type", Function),
|
|
6412
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
6413
|
+
__metadata("design:returntype", Promise)
|
|
6414
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver.prototype, "DeletemjBizAppsCommonContactMethodConsentHistory", null);
|
|
6415
|
+
mjBizAppsCommonContactMethodConsentHistoryResolver = __decorate([
|
|
6416
|
+
Resolver(mjBizAppsCommonContactMethodConsentHistory_)
|
|
6417
|
+
], mjBizAppsCommonContactMethodConsentHistoryResolver);
|
|
6418
|
+
export { mjBizAppsCommonContactMethodConsentHistoryResolver };
|
|
6419
|
+
//****************************************************************************
|
|
6420
|
+
// ENTITY CLASS for MJ_BizApps_Common: Contact Method Consents
|
|
6421
|
+
//****************************************************************************
|
|
6422
|
+
let mjBizAppsCommonContactMethodConsent_ = class mjBizAppsCommonContactMethodConsent_ {
|
|
6423
|
+
};
|
|
6424
|
+
__decorate([
|
|
6425
|
+
Field(),
|
|
6426
|
+
MaxLength(36),
|
|
6427
|
+
__metadata("design:type", String)
|
|
6428
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "ID", void 0);
|
|
6429
|
+
__decorate([
|
|
6430
|
+
Field({ nullable: true }),
|
|
6431
|
+
MaxLength(36),
|
|
6432
|
+
__metadata("design:type", String)
|
|
6433
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "ContactMethodID", void 0);
|
|
6434
|
+
__decorate([
|
|
6435
|
+
Field({ nullable: true }),
|
|
6436
|
+
MaxLength(36),
|
|
6437
|
+
__metadata("design:type", String)
|
|
6438
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "ConsentPurposeID", void 0);
|
|
6439
|
+
__decorate([
|
|
6440
|
+
Field({ nullable: true, description: "The organization that asked for this consent, when the person answered differently for different organizations. Null means the answer applies to anyone on the installation. This is not the owner of the contact method; that is ContactMethod.PersonID or ContactMethod.OrganizationID." }),
|
|
6441
|
+
MaxLength(36),
|
|
6442
|
+
__metadata("design:type", String)
|
|
6443
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "RequestingOrganizationID", void 0);
|
|
6444
|
+
__decorate([
|
|
6445
|
+
Field({ nullable: true, description: "The current consent: Not Specified, Opted In or Opted Out." }),
|
|
6446
|
+
MaxLength(20),
|
|
6447
|
+
__metadata("design:type", String)
|
|
6448
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "ConsentStatus", void 0);
|
|
6449
|
+
__decorate([
|
|
6450
|
+
Field(),
|
|
6451
|
+
__metadata("design:type", Date)
|
|
6452
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "_mj__CreatedAt", void 0);
|
|
6453
|
+
__decorate([
|
|
6454
|
+
Field(),
|
|
6455
|
+
__metadata("design:type", Date)
|
|
6456
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "_mj__UpdatedAt", void 0);
|
|
6457
|
+
__decorate([
|
|
6458
|
+
Field({ nullable: true }),
|
|
6459
|
+
MaxLength(500),
|
|
6460
|
+
__metadata("design:type", String)
|
|
6461
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "ContactMethod", void 0);
|
|
6462
|
+
__decorate([
|
|
6463
|
+
Field({ nullable: true }),
|
|
6464
|
+
MaxLength(100),
|
|
6465
|
+
__metadata("design:type", String)
|
|
6466
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "ConsentPurpose", void 0);
|
|
6467
|
+
__decorate([
|
|
6468
|
+
Field({ nullable: true }),
|
|
6469
|
+
MaxLength(255),
|
|
6470
|
+
__metadata("design:type", String)
|
|
6471
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "RequestingOrganization", void 0);
|
|
6472
|
+
__decorate([
|
|
6473
|
+
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.` }),
|
|
6474
|
+
__metadata("design:type", Array)
|
|
6475
|
+
], mjBizAppsCommonContactMethodConsent_.prototype, "ReadableFields___", void 0);
|
|
6476
|
+
mjBizAppsCommonContactMethodConsent_ = __decorate([
|
|
6477
|
+
ObjectType({ description: "The current consent for one contact method (an email or phone): for one purpose or, when ConsentPurposeID is null, for anything; as asked by one organization or, when RequestingOrganizationID is null, by anyone on the installation. A contact method has many of these, the way a person has many contact methods, and the most specific row answers: purpose and organization, then purpose, then organization, then the general row. ConsentStatus always equals NewConsentStatus on the ContactMethodConsentHistory row with the latest ConsentStatusAt. Set it through ContactPreferenceEngine, which writes the history row with it. Deleting the contact method deletes its consents." })
|
|
6478
|
+
], mjBizAppsCommonContactMethodConsent_);
|
|
6479
|
+
export { mjBizAppsCommonContactMethodConsent_ };
|
|
6480
|
+
//****************************************************************************
|
|
6481
|
+
// INPUT TYPE for MJ_BizApps_Common: Contact Method Consents
|
|
6482
|
+
//****************************************************************************
|
|
6483
|
+
let CreatemjBizAppsCommonContactMethodConsentInput = class CreatemjBizAppsCommonContactMethodConsentInput {
|
|
6484
|
+
};
|
|
6485
|
+
__decorate([
|
|
6486
|
+
Field({ nullable: true }),
|
|
6487
|
+
__metadata("design:type", String)
|
|
6488
|
+
], CreatemjBizAppsCommonContactMethodConsentInput.prototype, "ID", void 0);
|
|
6489
|
+
__decorate([
|
|
6490
|
+
Field({ nullable: true }),
|
|
6491
|
+
__metadata("design:type", String)
|
|
6492
|
+
], CreatemjBizAppsCommonContactMethodConsentInput.prototype, "ContactMethodID", void 0);
|
|
6493
|
+
__decorate([
|
|
6494
|
+
Field({ nullable: true }),
|
|
6495
|
+
__metadata("design:type", String)
|
|
6496
|
+
], CreatemjBizAppsCommonContactMethodConsentInput.prototype, "ConsentPurposeID", void 0);
|
|
6497
|
+
__decorate([
|
|
6498
|
+
Field({ nullable: true }),
|
|
6499
|
+
__metadata("design:type", String)
|
|
6500
|
+
], CreatemjBizAppsCommonContactMethodConsentInput.prototype, "RequestingOrganizationID", void 0);
|
|
6501
|
+
__decorate([
|
|
6502
|
+
Field({ nullable: true }),
|
|
6503
|
+
__metadata("design:type", String)
|
|
6504
|
+
], CreatemjBizAppsCommonContactMethodConsentInput.prototype, "ConsentStatus", void 0);
|
|
6505
|
+
__decorate([
|
|
6506
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
6507
|
+
__metadata("design:type", RestoreContextInput)
|
|
6508
|
+
], CreatemjBizAppsCommonContactMethodConsentInput.prototype, "RestoreContext___", void 0);
|
|
6509
|
+
CreatemjBizAppsCommonContactMethodConsentInput = __decorate([
|
|
6510
|
+
InputType()
|
|
6511
|
+
], CreatemjBizAppsCommonContactMethodConsentInput);
|
|
6512
|
+
export { CreatemjBizAppsCommonContactMethodConsentInput };
|
|
6513
|
+
//****************************************************************************
|
|
6514
|
+
// INPUT TYPE for MJ_BizApps_Common: Contact Method Consents
|
|
6515
|
+
//****************************************************************************
|
|
6516
|
+
let UpdatemjBizAppsCommonContactMethodConsentInput = class UpdatemjBizAppsCommonContactMethodConsentInput {
|
|
6517
|
+
};
|
|
6518
|
+
__decorate([
|
|
6519
|
+
Field(),
|
|
6520
|
+
__metadata("design:type", String)
|
|
6521
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput.prototype, "ID", void 0);
|
|
6522
|
+
__decorate([
|
|
6523
|
+
Field({ nullable: true }),
|
|
6524
|
+
__metadata("design:type", String)
|
|
6525
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput.prototype, "ContactMethodID", void 0);
|
|
6526
|
+
__decorate([
|
|
6527
|
+
Field({ nullable: true }),
|
|
6528
|
+
__metadata("design:type", String)
|
|
6529
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput.prototype, "ConsentPurposeID", void 0);
|
|
6530
|
+
__decorate([
|
|
6531
|
+
Field({ nullable: true }),
|
|
6532
|
+
__metadata("design:type", String)
|
|
6533
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput.prototype, "RequestingOrganizationID", void 0);
|
|
6534
|
+
__decorate([
|
|
6535
|
+
Field({ nullable: true }),
|
|
6536
|
+
__metadata("design:type", String)
|
|
6537
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput.prototype, "ConsentStatus", void 0);
|
|
6538
|
+
__decorate([
|
|
6539
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6540
|
+
__metadata("design:type", Array)
|
|
6541
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput.prototype, "OldValues___", void 0);
|
|
6542
|
+
__decorate([
|
|
6543
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
6544
|
+
__metadata("design:type", RestoreContextInput)
|
|
6545
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput.prototype, "RestoreContext___", void 0);
|
|
6546
|
+
UpdatemjBizAppsCommonContactMethodConsentInput = __decorate([
|
|
6547
|
+
InputType()
|
|
6548
|
+
], UpdatemjBizAppsCommonContactMethodConsentInput);
|
|
6549
|
+
export { UpdatemjBizAppsCommonContactMethodConsentInput };
|
|
6550
|
+
//****************************************************************************
|
|
6551
|
+
// RESOLVER for MJ_BizApps_Common: Contact Method Consents
|
|
6552
|
+
//****************************************************************************
|
|
6553
|
+
let RunmjBizAppsCommonContactMethodConsentViewResult = class RunmjBizAppsCommonContactMethodConsentViewResult {
|
|
6554
|
+
};
|
|
6555
|
+
__decorate([
|
|
6556
|
+
Field(() => [mjBizAppsCommonContactMethodConsent_]),
|
|
6557
|
+
__metadata("design:type", Array)
|
|
6558
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult.prototype, "Results", void 0);
|
|
6559
|
+
__decorate([
|
|
6560
|
+
Field(() => String, { nullable: true }),
|
|
6561
|
+
__metadata("design:type", String)
|
|
6562
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult.prototype, "UserViewRunID", void 0);
|
|
6563
|
+
__decorate([
|
|
6564
|
+
Field(() => Int, { nullable: true }),
|
|
6565
|
+
__metadata("design:type", Number)
|
|
6566
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult.prototype, "RowCount", void 0);
|
|
6567
|
+
__decorate([
|
|
6568
|
+
Field(() => Int, { nullable: true }),
|
|
6569
|
+
__metadata("design:type", Number)
|
|
6570
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult.prototype, "TotalRowCount", void 0);
|
|
6571
|
+
__decorate([
|
|
6572
|
+
Field(() => Int, { nullable: true }),
|
|
6573
|
+
__metadata("design:type", Number)
|
|
6574
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult.prototype, "ExecutionTime", void 0);
|
|
6575
|
+
__decorate([
|
|
6576
|
+
Field({ nullable: true }),
|
|
6577
|
+
__metadata("design:type", String)
|
|
6578
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult.prototype, "ErrorMessage", void 0);
|
|
6579
|
+
__decorate([
|
|
6580
|
+
Field(() => Boolean, { nullable: false }),
|
|
6581
|
+
__metadata("design:type", Boolean)
|
|
6582
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult.prototype, "Success", void 0);
|
|
6583
|
+
RunmjBizAppsCommonContactMethodConsentViewResult = __decorate([
|
|
6584
|
+
ObjectType()
|
|
6585
|
+
], RunmjBizAppsCommonContactMethodConsentViewResult);
|
|
6586
|
+
export { RunmjBizAppsCommonContactMethodConsentViewResult };
|
|
6587
|
+
let mjBizAppsCommonContactMethodConsentResolver = class mjBizAppsCommonContactMethodConsentResolver extends ResolverBase {
|
|
6588
|
+
async RunmjBizAppsCommonContactMethodConsentViewByID(input, { providers, userPayload }, pubSub) {
|
|
6589
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6590
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
6591
|
+
}
|
|
6592
|
+
async RunmjBizAppsCommonContactMethodConsentViewByName(input, { providers, userPayload }, pubSub) {
|
|
6593
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6594
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
6595
|
+
}
|
|
6596
|
+
async RunmjBizAppsCommonContactMethodConsentDynamicView(input, { providers, userPayload }, pubSub) {
|
|
6597
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6598
|
+
input.EntityName = 'MJ_BizApps_Common: Contact Method Consents';
|
|
6599
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
6600
|
+
}
|
|
6601
|
+
async mjBizAppsCommonContactMethodConsent(ID, { userPayload, providers }, pubSub) {
|
|
6602
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Contact Method Consents', userPayload);
|
|
6603
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6604
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwContactMethodConsents')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Contact Method Consents', userPayload, EntityPermissionType.Read, 'AND');
|
|
6605
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
6606
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Contact Method Consents', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
6607
|
+
return result;
|
|
6608
|
+
}
|
|
6609
|
+
async CreatemjBizAppsCommonContactMethodConsent(input, { providers, userPayload }, pubSub) {
|
|
6610
|
+
const provider = GetReadWriteProvider(providers);
|
|
6611
|
+
return this.CreateRecord('MJ_BizApps_Common: Contact Method Consents', input, provider, userPayload, pubSub);
|
|
6612
|
+
}
|
|
6613
|
+
async UpdatemjBizAppsCommonContactMethodConsent(input, { providers, userPayload }, pubSub) {
|
|
6614
|
+
const provider = GetReadWriteProvider(providers);
|
|
6615
|
+
return this.UpdateRecord('MJ_BizApps_Common: Contact Method Consents', input, provider, userPayload, pubSub);
|
|
6616
|
+
}
|
|
6617
|
+
async DeletemjBizAppsCommonContactMethodConsent(ID, options, { providers, userPayload }, pubSub) {
|
|
6618
|
+
const provider = GetReadWriteProvider(providers);
|
|
6619
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
6620
|
+
return this.DeleteRecord('MJ_BizApps_Common: Contact Method Consents', key, options, provider, userPayload, pubSub);
|
|
6621
|
+
}
|
|
6622
|
+
};
|
|
6623
|
+
__decorate([
|
|
6624
|
+
Query(() => RunmjBizAppsCommonContactMethodConsentViewResult),
|
|
6625
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
6626
|
+
__param(1, Ctx()),
|
|
6627
|
+
__param(2, PubSub()),
|
|
6628
|
+
__metadata("design:type", Function),
|
|
6629
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
6630
|
+
__metadata("design:returntype", Promise)
|
|
6631
|
+
], mjBizAppsCommonContactMethodConsentResolver.prototype, "RunmjBizAppsCommonContactMethodConsentViewByID", null);
|
|
6632
|
+
__decorate([
|
|
6633
|
+
Query(() => RunmjBizAppsCommonContactMethodConsentViewResult),
|
|
6634
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
6635
|
+
__param(1, Ctx()),
|
|
6636
|
+
__param(2, PubSub()),
|
|
6637
|
+
__metadata("design:type", Function),
|
|
6638
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
6639
|
+
__metadata("design:returntype", Promise)
|
|
6640
|
+
], mjBizAppsCommonContactMethodConsentResolver.prototype, "RunmjBizAppsCommonContactMethodConsentViewByName", null);
|
|
6641
|
+
__decorate([
|
|
6642
|
+
Query(() => RunmjBizAppsCommonContactMethodConsentViewResult),
|
|
6643
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
6644
|
+
__param(1, Ctx()),
|
|
6645
|
+
__param(2, PubSub()),
|
|
6646
|
+
__metadata("design:type", Function),
|
|
6647
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
6648
|
+
__metadata("design:returntype", Promise)
|
|
6649
|
+
], mjBizAppsCommonContactMethodConsentResolver.prototype, "RunmjBizAppsCommonContactMethodConsentDynamicView", null);
|
|
6650
|
+
__decorate([
|
|
6651
|
+
Query(() => mjBizAppsCommonContactMethodConsent_, { nullable: true }),
|
|
6652
|
+
__param(0, Arg('ID', () => String)),
|
|
6653
|
+
__param(1, Ctx()),
|
|
6654
|
+
__param(2, PubSub()),
|
|
6655
|
+
__metadata("design:type", Function),
|
|
6656
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
6657
|
+
__metadata("design:returntype", Promise)
|
|
6658
|
+
], mjBizAppsCommonContactMethodConsentResolver.prototype, "mjBizAppsCommonContactMethodConsent", null);
|
|
6659
|
+
__decorate([
|
|
6660
|
+
Mutation(() => mjBizAppsCommonContactMethodConsent_),
|
|
6661
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonContactMethodConsentInput)),
|
|
6662
|
+
__param(1, Ctx()),
|
|
6663
|
+
__param(2, PubSub()),
|
|
6664
|
+
__metadata("design:type", Function),
|
|
6665
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonContactMethodConsentInput, Object, PubSubEngine]),
|
|
6666
|
+
__metadata("design:returntype", Promise)
|
|
6667
|
+
], mjBizAppsCommonContactMethodConsentResolver.prototype, "CreatemjBizAppsCommonContactMethodConsent", null);
|
|
6668
|
+
__decorate([
|
|
6669
|
+
Mutation(() => mjBizAppsCommonContactMethodConsent_),
|
|
6670
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonContactMethodConsentInput)),
|
|
6671
|
+
__param(1, Ctx()),
|
|
6672
|
+
__param(2, PubSub()),
|
|
6673
|
+
__metadata("design:type", Function),
|
|
6674
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonContactMethodConsentInput, Object, PubSubEngine]),
|
|
6675
|
+
__metadata("design:returntype", Promise)
|
|
6676
|
+
], mjBizAppsCommonContactMethodConsentResolver.prototype, "UpdatemjBizAppsCommonContactMethodConsent", null);
|
|
6677
|
+
__decorate([
|
|
6678
|
+
Mutation(() => mjBizAppsCommonContactMethodConsent_),
|
|
6679
|
+
__param(0, Arg('ID', () => String)),
|
|
6680
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
6681
|
+
__param(2, Ctx()),
|
|
6682
|
+
__param(3, PubSub()),
|
|
6683
|
+
__metadata("design:type", Function),
|
|
6684
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
6685
|
+
__metadata("design:returntype", Promise)
|
|
6686
|
+
], mjBizAppsCommonContactMethodConsentResolver.prototype, "DeletemjBizAppsCommonContactMethodConsent", null);
|
|
6687
|
+
mjBizAppsCommonContactMethodConsentResolver = __decorate([
|
|
6688
|
+
Resolver(mjBizAppsCommonContactMethodConsent_)
|
|
6689
|
+
], mjBizAppsCommonContactMethodConsentResolver);
|
|
6690
|
+
export { mjBizAppsCommonContactMethodConsentResolver };
|
|
6691
|
+
//****************************************************************************
|
|
5880
6692
|
// ENTITY CLASS for MJ_BizApps_Common: Contact Methods
|
|
5881
6693
|
//****************************************************************************
|
|
5882
6694
|
let mjBizAppsCommonContactMethod_ = class mjBizAppsCommonContactMethod_ {
|
|
@@ -6213,6 +7025,16 @@ __decorate([
|
|
|
6213
7025
|
Field(),
|
|
6214
7026
|
__metadata("design:type", Date)
|
|
6215
7027
|
], mjBizAppsCommonContactType_.prototype, "_mj__UpdatedAt", void 0);
|
|
7028
|
+
__decorate([
|
|
7029
|
+
Field({ nullable: true }),
|
|
7030
|
+
MaxLength(36),
|
|
7031
|
+
__metadata("design:type", String)
|
|
7032
|
+
], mjBizAppsCommonContactType_.prototype, "CommunicationBaseMessageTypeID", void 0);
|
|
7033
|
+
__decorate([
|
|
7034
|
+
Field({ nullable: true }),
|
|
7035
|
+
MaxLength(100),
|
|
7036
|
+
__metadata("design:type", String)
|
|
7037
|
+
], mjBizAppsCommonContactType_.prototype, "CommunicationBaseMessageType", void 0);
|
|
6216
7038
|
__decorate([
|
|
6217
7039
|
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.` }),
|
|
6218
7040
|
__metadata("design:type", Array)
|
|
@@ -6250,6 +7072,10 @@ __decorate([
|
|
|
6250
7072
|
Field(() => Boolean, { nullable: true }),
|
|
6251
7073
|
__metadata("design:type", Boolean)
|
|
6252
7074
|
], CreatemjBizAppsCommonContactTypeInput.prototype, "IsActive", void 0);
|
|
7075
|
+
__decorate([
|
|
7076
|
+
Field({ nullable: true }),
|
|
7077
|
+
__metadata("design:type", String)
|
|
7078
|
+
], CreatemjBizAppsCommonContactTypeInput.prototype, "CommunicationBaseMessageTypeID", void 0);
|
|
6253
7079
|
__decorate([
|
|
6254
7080
|
Field(() => RestoreContextInput, { nullable: true }),
|
|
6255
7081
|
__metadata("design:type", RestoreContextInput)
|
|
@@ -6287,6 +7113,10 @@ __decorate([
|
|
|
6287
7113
|
Field(() => Boolean, { nullable: true }),
|
|
6288
7114
|
__metadata("design:type", Boolean)
|
|
6289
7115
|
], UpdatemjBizAppsCommonContactTypeInput.prototype, "IsActive", void 0);
|
|
7116
|
+
__decorate([
|
|
7117
|
+
Field({ nullable: true }),
|
|
7118
|
+
__metadata("design:type", String)
|
|
7119
|
+
], UpdatemjBizAppsCommonContactTypeInput.prototype, "CommunicationBaseMessageTypeID", void 0);
|
|
6290
7120
|
__decorate([
|
|
6291
7121
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
6292
7122
|
__metadata("design:type", Array)
|