From 1f6be8a1105fdd80c9c5b601a58704a83d036a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Wed, 11 Sep 2024 17:06:31 +0200 Subject: [PATCH] #1695: properly warn about potentially missing SF object access and how to fix it --- @types/lib/metadataTypes/Event.d.ts | 16 +- @types/lib/metadataTypes/Event.d.ts.map | 2 +- @types/types/mcdev.d.d.ts | 195 ++++++++++++++++++++++++ @types/types/mcdev.d.d.ts.map | 2 +- lib/metadataTypes/Event.js | 31 +++- types/mcdev.d.js | 66 ++++++++ 6 files changed, 297 insertions(+), 15 deletions(-) diff --git a/@types/lib/metadataTypes/Event.d.ts b/@types/lib/metadataTypes/Event.d.ts index f32fe47af..f10ed79e6 100644 --- a/@types/lib/metadataTypes/Event.d.ts +++ b/@types/lib/metadataTypes/Event.d.ts @@ -11,6 +11,8 @@ export type SoapRequestParams = import("../../types/mcdev.d.js").SoapRequestPara export type TemplateMap = import("../../types/mcdev.d.js").TemplateMap; export type ReferenceObject = import("../../types/mcdev.d.js").ReferenceObject; export type SfObjectField = import("../../types/mcdev.d.js").SfObjectField; +export type configurationArguments = import("../../types/mcdev.d.js").configurationArguments; +export type Conditions = import("../../types/mcdev.d.js").Conditions; /** * @typedef {import('../../types/mcdev.d.js').BuObject} BuObject * @typedef {import('../../types/mcdev.d.js').CodeExtract} CodeExtract @@ -25,6 +27,8 @@ export type SfObjectField = import("../../types/mcdev.d.js").SfObjectField; * * @typedef {import('../../types/mcdev.d.js').ReferenceObject} ReferenceObject * @typedef {import('../../types/mcdev.d.js').SfObjectField} SfObjectField + * @typedef {import('../../types/mcdev.d.js').configurationArguments} configurationArguments + * @typedef {import('../../types/mcdev.d.js').Conditions} Conditions */ /** * Event MetadataType @@ -137,9 +141,9 @@ declare class Event extends MetadataType { static defaultSalesforceFields: string[]; /** * - * @param {any} ca trigger[0].configurationArguments + * @param {configurationArguments} ca trigger[0].configurationArguments */ - static checkSalesforceEntryEvents(ca: any): void; + static checkSalesforceEntryEvents(ca: configurationArguments): void; /** * * @param {object[]} conditions - @@ -151,19 +155,19 @@ declare class Event extends MetadataType { /** * * @param {string} triggerType e.g. SalesforceObjectTriggerV2, APIEvent, ... - * @param {any} ca trigger[0].configurationArguments + * @param {configurationArguments} ca trigger[0].configurationArguments * @param {string} key of event / journey * @param {string} [type] optionally provide type for error on missing configurationArguments attributes * @returns {Promise.} - */ - static postRetrieveTasks_SalesforceEntryEvents(triggerType: string, ca: any, key: string, type?: string): Promise; + static postRetrieveTasks_SalesforceEntryEvents(triggerType: string, ca: configurationArguments, key: string, type?: string): Promise; /** * * @param {string} triggerType e.g. SalesforceObjectTriggerV2, APIEvent, ... - * @param {any} ca trigger[0].configurationArguments + * @param {configurationArguments} ca trigger[0].configurationArguments * @returns {Promise.} - */ - static preDeployTasks_SalesforceEntryEvents(triggerType: string, ca: any): Promise; + static preDeployTasks_SalesforceEntryEvents(triggerType: string, ca: configurationArguments): Promise; } declare namespace Event { let definition: { diff --git a/@types/lib/metadataTypes/Event.d.ts.map b/@types/lib/metadataTypes/Event.d.ts.map index 8bc6db03e..5d726a76b 100644 --- a/@types/lib/metadataTypes/Event.d.ts.map +++ b/@types/lib/metadataTypes/Event.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Event.js"],"names":[],"mappings":";uBAUa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;8BAE5C,OAAO,wBAAwB,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAn/BwB,mBAAmB"} \ No newline at end of file +{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../lib/metadataTypes/Event.js"],"names":[],"mappings":";uBAUa,OAAO,wBAAwB,EAAE,QAAQ;0BACzC,OAAO,wBAAwB,EAAE,WAAW;8BAC5C,OAAO,wBAAwB,EAAE,eAAe;+BAChD,OAAO,wBAAwB,EAAE,gBAAgB;mCACjD,OAAO,wBAAwB,EAAE,oBAAoB;kCACrD,OAAO,wBAAwB,EAAE,mBAAmB;8BACpD,OAAO,wBAAwB,EAAE,eAAe;iCAChD,OAAO,wBAAwB,EAAE,kBAAkB;gCACnD,OAAO,wBAAwB,EAAE,iBAAiB;0BAClD,OAAO,wBAAwB,EAAE,WAAW;8BAE5C,OAAO,wBAAwB,EAAE,eAAe;4BAChD,OAAO,wBAAwB,EAAE,aAAa;qCAC9C,OAAO,wBAAwB,EAAE,sBAAsB;yBACvD,OAAO,wBAAwB,EAAE,UAAU;AAfxD;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;GAIG;AACH;IACI,oCAAkC;IAElC;;;;;;;;;;OAUG;IACH,6BANW,MAAM,MACN,IAAI,GAAG,MAAM,EAAE,OACf,IAAI,GAAG,MAAM,EAAE,QACf,MAAM,GACJ,OAAO,CAAE,kBAAkB,CAAC,CAwBxC;IAED;;;;OAIG;IACH,2BAFa,OAAO,CAAE,kBAAkB,CAAC,CAIxC;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,QACN,MAAM,qBACN,WAAW,GACT,OAAO,CAAE,mBAAmB,CAAC,CAiDzC;IA8BD;;;;;OA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 @@ export type SfObjectField = { */ picklist?: SfObjectPicklist[]; }; +export type configurationArguments = { + /** + * SalesforceObjectTriggerV2 + */ + applicationExtensionKey: string; + /** + * 3.0 + */ + version: string; + /** + * what record event in SF triggers this + */ + salesforceTriggerCriteria: "Created" | "Updated" | "CreatedUpdated"; + /** + * what objects are used by this event + */ + eventDataConfig: { + objects: eventDataConfigObject[]; + }; + /** + * TODO + */ + primaryObjectFilterCriteria: Conditions; + /** + * TODO + */ + relatedObjectFilterCriteria: Conditions; + /** + * seems to only exist on journey but not on event and also not on every journey + */ + additionalObjectFilterCriteria?: object; + /** + * defines how this event links to the all contacts list + */ + contactKey: { + relationshipIdName: string; + relationshipName: string; + isPolymorphic: boolean; + referenceObjectName: string; + fieldName?: string; + }; + /** + * TODO + */ + passThroughArgument: { + fields: { + ContactKey: string; + Email: object; + HasOptedOutOfEmail?: string; + }; + }; + /** + * primaryObjectFilterCriteria in simplified string-form + */ + primaryObjectFilterSummary: string; + /** + * relatedObjectFilterCriteria in simplified string-form + */ + relatedObjectFilterSummary: string; + /** + * eventDataConfig in simplified string-form + */ + eventDataSummary: string[]; + /** + * salesforceTriggerCriteria plus semi-colon + */ + evaluationCriteriaSummary: "Created;" | "Updated;" | "Created;Updated;"; + /** + * if objectAPIName==CampaignMember then this is also CampaignMember; otherwise it's Contact + */ + contactPersonType: "CampaignMember" | "Contact"; + /** + * the SF object on which the salesforceTriggerCriteria is listening on + */ + objectAPIName: string; + /** + * "objectAPIName (Contact / Lead / Contacts and Leads)" + */ + whoToInject: string; + /** + * empty string for SF events + */ + criteria: string; + /** + * set to 0 for SF events + */ + schemaVersionId: number; +}; +/** + * part of configurationArguments + */ +export type eventDataConfigObject = { + /** + * CampaignMember:Campaign: + */ + dePrefix: string; + /** + * ? + */ + isPolymorphic: boolean; + /** + * field on parent object containing the id; ends on __c for custom fields; same as referenceObject for standard fields; can be "Contacts and Leads" + */ + referenceObject: string; + /** + * field on parent object acting as lookup; ends on __r for custom fields; same as referenceObject for standard fields; can be "Common" + */ + relationshipName: string; + /** + * ? + */ + relationshipIdName?: string; + /** + * list of field names that are used by this journey + */ + fields: string[]; +}; +/** + * part of configurationArguments + */ +export type Conditions = { + /** + * - + */ + operand: "AND" | "OR"; + /** + * list of conditions + */ + conditions: (Conditions | FieldCondition)[]; +}; +/** + * part of configurationArguments + */ +export type FieldCondition = { + /** + * is 0 for booleans, otherwise field length + */ + _length: number; + /** + * type + */ + datatype: "currency" | "string" | "int" | "picklist" | "textarea" | "boolean" | "date" | "datetime" | "email"; + /** + * field API name; "TR1__Email__c" + */ + fieldName: string; + /** + * "CampaignMember-CampaignMember" + */ + folderId: string; + /** + * "CampaignMember-CampaignMember-TR1__Email__c" + */ + id: string; + /** + * ? + */ + isPolymorphic: boolean; + /** + * likely the field label; "Email" + */ + name: string; + /** + * condition comparator + */ + operator: "equals" | "EQUALS" | "WASSET"; + /** + * value to compare the field with if operator is sth like "equals"; booleans are stored as upper-camel-case string! + */ + value?: string; + /** + * ? + */ + precision: number; + /** + * "Contacts and Leads" + */ + referenceObjectName: string; + /** + * "CommonId"; can be an empty string + */ + relationshipIdName: string; + /** + * "Common"; can be an empty string + */ + relationshipName: string; + /** + * ? + */ + scale: number; + /** + * seems to be equal to name-attribute?; "Email" + */ + text: string; +}; //# sourceMappingURL=mcdev.d.d.ts.map \ No newline at end of file diff --git a/@types/types/mcdev.d.d.ts.map b/@types/types/mcdev.d.d.ts.map index b8ab84c08..cc77ccdb4 100644 --- a/@types/types/mcdev.d.d.ts.map +++ b/@types/types/mcdev.d.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"mcdev.d.d.ts","sourceRoot":"","sources":["../../types/mcdev.d.js"],"names":[],"mappings":";;;;;;eAEc,MAAM;;;;mBACN,MAAM;;;;aACN,MAAM;;;;UACN,MAAM;;;;UACN,MAAM;;;;mBACN,MAAM;;;;iBACN,MAAM;;0BAIP;QAAQ,MAAM,GAAE,MAAM;CAAC;qCACvB,OAAO,GAAC,eAAe,GAAC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,KAAK,GAAC,UAAU,GAAC,UAAU,GAAC,SAAS,GAAC,MAAM,GAAC,UAAU,GAAC,OAAO;;;;eACnF,MAAM;;;;cACN,MAAM;;;;QACN,MAAM;;;;mBACN,OAAO;;;;UACP,MAAM;;;;cACN,QAAQ,GAAC,QAAQ,GAAC,QAAQ;;;;YAC1B,MAAM;;;;eACN,MAAM;;;;yBACN,MAAM;;;;wBACN,MAAM;;;;sBACN,MAAM;;;;WACN,MAAM;;;;UACN,MAAM"} \ No newline at end of file diff --git a/lib/metadataTypes/Event.js b/lib/metadataTypes/Event.js index bdbb946ca..5755bf790 100644 --- a/lib/metadataTypes/Event.js +++ b/lib/metadataTypes/Event.js @@ -21,6 +21,8 @@ import pLimit from 'p-limit'; * * @typedef {import('../../types/mcdev.d.js').ReferenceObject} ReferenceObject * @typedef {import('../../types/mcdev.d.js').SfObjectField} SfObjectField + * @typedef {import('../../types/mcdev.d.js').configurationArguments} configurationArguments + * @typedef {import('../../types/mcdev.d.js').Conditions} Conditions */ /** @@ -644,8 +646,9 @@ class Event extends MetadataType { this.sfObjects.objectFields[objectAPIName][field.name] = field; } } else { - Util.logger.debug(`Could not find any fields for Salesforce Object ${objectAPIName}`); - throw new Error(`Could not find any fields for Salesforce Object ${objectAPIName}`); + Util.logger.warn( + `Could not cache fields for Salesforce Object '${objectAPIName}'. This is likely caused by insufficient access of your MC-Connect integration user. Please check assigned permission sets / the profile.` + ); } return; } @@ -666,7 +669,7 @@ class Event extends MetadataType { /** * - * @param {any} ca trigger[0].configurationArguments + * @param {configurationArguments} ca trigger[0].configurationArguments */ static checkSalesforceEntryEvents(ca) { // 1 check eventDataConfig @@ -695,7 +698,8 @@ class Event extends MetadataType { ) { // check if we found fields for the object errors.push( - `No fields found for Salesforce object ${referencedObject} on connected org.` + `Fields for Salesforce object ${referencedObject} could not be checked. Used fields: ` + + object.fields.join(', ') ); } else { // check if the fields selected in the eventDefinition are actually available @@ -892,7 +896,7 @@ class Event extends MetadataType { /** * * @param {string} triggerType e.g. SalesforceObjectTriggerV2, APIEvent, ... - * @param {any} ca trigger[0].configurationArguments + * @param {configurationArguments} ca trigger[0].configurationArguments * @param {string} key of event / journey * @param {string} [type] optionally provide type for error on missing configurationArguments attributes * @returns {Promise.} - @@ -902,9 +906,12 @@ class Event extends MetadataType { return; } // normalize payload because these fields are sometimes set as strings and sometimes as objects + // @ts-expect-error journeys SOMETIMES spell it "Api" and this script aims to auto-correct that if (ca.objectApiName) { // on event only the uppercase version is used. lets make sure we normalize that here. + // @ts-expect-error journeys SOMETIMES spell it "Api" and this script aims to auto-correct that ca.objectAPIName = ca.objectApiName; + // @ts-expect-error journeys SOMETIMES spell it "Api" and this script aims to auto-correct that delete ca.objectApiName; } @@ -926,7 +933,8 @@ class Event extends MetadataType { : ca.eventDataConfig; ca.eventDataSummary = 'string' === typeof ca.eventDataSummary - ? ca.eventDataSummary.split('; ').filter(Boolean) + ? // @ts-expect-error transforming this from API-string-format to from mcdev-format + ca.eventDataSummary.split('; ').filter(Boolean) : ca.eventDataSummary; ca.passThroughArgument = 'string' === typeof ca.passThroughArgument @@ -952,7 +960,7 @@ class Event extends MetadataType { /** * * @param {string} triggerType e.g. SalesforceObjectTriggerV2, APIEvent, ... - * @param {any} ca trigger[0].configurationArguments + * @param {configurationArguments} ca trigger[0].configurationArguments * @returns {Promise.} - */ static async preDeployTasks_SalesforceEntryEvents(triggerType, ca) { @@ -983,31 +991,40 @@ class Event extends MetadataType { this.checkSalesforceEntryEvents(ca); // normalize payload because these fields are sometimes set as strings and sometimes as objects + // @ts-expect-error reverting this back from mcdev-format to API format ca.contactKey = 'object' === typeof ca.contactKey ? JSON.stringify(ca.contactKey) : ca.contactKey; + // @ts-expect-error reverting this back from mcdev-format to API format ca.eventDataConfig = 'object' === typeof ca.eventDataConfig ? JSON.stringify(ca.eventDataConfig) : ca.eventDataConfig; + // @ts-expect-error reverting this back from mcdev-format to API format ca.eventDataSummary = Array.isArray(ca.eventDataSummary) ? ca.eventDataSummary.join('; ') + '; ' : ca.eventDataSummary; + // @ts-expect-error reverting this back from mcdev-format to API format ca.passThroughArgument = 'object' === typeof ca.passThroughArgument ? JSON.stringify(ca.passThroughArgument) : ca.passThroughArgument; + // @ts-expect-error reverting this back from mcdev-format to API format ca.primaryObjectFilterCriteria = 'object' === typeof ca.primaryObjectFilterCriteria ? JSON.stringify(ca.primaryObjectFilterCriteria) : ca.primaryObjectFilterCriteria; + // @ts-expect-error reverting this back from mcdev-format to API format ca.relatedObjectFilterCriteria = 'object' === typeof ca.relatedObjectFilterCriteria ? JSON.stringify(ca.relatedObjectFilterCriteria) : ca.relatedObjectFilterCriteria; + // @ts-expect-error journeys SOMETIMES spell it "Api" and this script aims to auto-correct that if (ca.objectApiName) { // on event only the uppercase version is used. lets make sure we normalize that here. + // @ts-expect-error journeys SOMETIMES spell it "Api" and this script aims to auto-correct that ca.objectAPIName = ca.objectApiName; + // @ts-expect-error journeys SOMETIMES spell it "Api" and this script aims to auto-correct that delete ca.objectApiName; } } diff --git a/types/mcdev.d.js b/types/mcdev.d.js index c4fcc493d..ffa0d7912 100644 --- a/types/mcdev.d.js +++ b/types/mcdev.d.js @@ -560,4 +560,70 @@ complex * @property {boolean} isnamefield - * @property {SfObjectPicklist[]} [picklist] list of values */ + +/** + * @typedef {object} configurationArguments + * @property {string} applicationExtensionKey SalesforceObjectTriggerV2 + * @property {string} version 3.0 + * @property {'Created'|'Updated'|'CreatedUpdated'} salesforceTriggerCriteria what record event in SF triggers this + * @property {object} eventDataConfig what objects are used by this event + * @property {eventDataConfigObject[]} eventDataConfig.objects list of sf objects with the fields that are used + * @property {Conditions} primaryObjectFilterCriteria TODO + * @property {Conditions} relatedObjectFilterCriteria TODO + * @property {object} [additionalObjectFilterCriteria] seems to only exist on journey but not on event and also not on every journey + * @property {object} contactKey defines how this event links to the all contacts list + * @property {string} contactKey.relationshipIdName Id / the __c field + * @property {string} contactKey.relationshipName Common / the __r field + * @property {boolean} contactKey.isPolymorphic false + * @property {string} contactKey.referenceObjectName Common + * @property {string} [contactKey.fieldName] if relationshipIdName points to a __c field then this tends to be set to "Id" + * @property {object} passThroughArgument TODO + * @property {object} passThroughArgument.fields TODO + * @property {string} passThroughArgument.fields.ContactKey CampaignMember:Common:Id + * @property {object} passThroughArgument.fields.Email CampaignMember:Common:Email; not affected by changing which field is to be used for email in the journey + * @property {string} [passThroughArgument.fields.HasOptedOutOfEmail] Contact:HasOptedOutOfEmail + * @property {string} primaryObjectFilterSummary primaryObjectFilterCriteria in simplified string-form + * @property {string} relatedObjectFilterSummary relatedObjectFilterCriteria in simplified string-form + * @property {string[]} eventDataSummary eventDataConfig in simplified string-form + * @property {'Created;'|'Updated;'|'Created;Updated;'} evaluationCriteriaSummary salesforceTriggerCriteria plus semi-colon + * @property {'CampaignMember'|'Contact'} contactPersonType if objectAPIName==CampaignMember then this is also CampaignMember; otherwise it's Contact + * @property {string} objectAPIName the SF object on which the salesforceTriggerCriteria is listening on + * @property {string} whoToInject "objectAPIName (Contact / Lead / Contacts and Leads)" + * @property {string} criteria empty string for SF events + * @property {number} schemaVersionId set to 0 for SF events + */ + +/** + * @typedef {object} eventDataConfigObject part of configurationArguments + * @property {string} dePrefix CampaignMember:Campaign: + * @property {boolean} isPolymorphic ? + * @property {string} referenceObject field on parent object containing the id; ends on __c for custom fields; same as referenceObject for standard fields; can be "Contacts and Leads" + * @property {string} relationshipName field on parent object acting as lookup; ends on __r for custom fields; same as referenceObject for standard fields; can be "Common" + * @property {string} [relationshipIdName] ? + * @property {string[]} fields list of field names that are used by this journey + */ +/** + * @typedef {object} Conditions part of configurationArguments + * @property {'AND'|'OR'} operand - + * @property {(Conditions | FieldCondition)[]} conditions list of conditions + */ +/** + * @typedef {object} FieldCondition part of configurationArguments + * @property {number} _length is 0 for booleans, otherwise field length + * @property {'currency'|'string'|'int'|'picklist'|'textarea'|'boolean'|'date'|'datetime'|'email'} datatype type + * @property {string} fieldName field API name; "TR1__Email__c" + * @property {string} folderId "CampaignMember-CampaignMember" + * @property {string} id "CampaignMember-CampaignMember-TR1__Email__c" + * @property {boolean} isPolymorphic ? + * @property {string} name likely the field label; "Email" + * @property {'equals'|'EQUALS'|'WASSET'} operator condition comparator + * @property {string} [value] value to compare the field with if operator is sth like "equals"; booleans are stored as upper-camel-case string! + * @property {number} precision ? + * @property {string} referenceObjectName "Contacts and Leads" + * @property {string} relationshipIdName "CommonId"; can be an empty string + * @property {string} relationshipName "Common"; can be an empty string + * @property {number} scale ? + * @property {string} text seems to be equal to name-attribute?; "Email" + */ + export default {};