Skip to content

Commit

Permalink
SALTO-6122: Salesforce API Version 61 And other Workspace changes (#6083
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tamtamirr authored Jul 28, 2024
1 parent fc53602 commit d2c670b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
21 changes: 0 additions & 21 deletions packages/salesforce-adapter/e2e_test/adapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.FIELD_ANNOTATIONS.SUMMARY_FOREIGN_KEY]:
`${customObjectAddFieldsName}.${masterDetailApiName}`,
[constants.FIELD_ANNOTATIONS.SUMMARY_OPERATION]: 'max',
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.FIELD_ANNOTATIONS.SUMMARY_FILTER_ITEMS]: [
{
Expand Down Expand Up @@ -1791,7 +1790,6 @@ describe('Salesforce adapter E2E with real account', () => {
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.SCALE]: 4,
[constants.FIELD_ANNOTATIONS.PRECISION]: 17,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.DEFAULT_VALUE_FORMULA]: '24',
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.CURRENCY,
Expand All @@ -1808,13 +1806,11 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.LABEL]: 'Date label Updated',
[constants.DESCRIPTION]: 'Date description Updated',
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.DATE,
},
[CUSTOM_FIELD_NAMES.TIME]: {
[constants.LABEL]: 'Time label Updated',
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.TIME,
},
Expand All @@ -1825,7 +1821,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.BUSINESS_STATUS]: 'Hidden',
[constants.SECURITY_CLASSIFICATION]: 'Restricted',
[constants.COMPLIANCE_GROUP]: 'GDPR',
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.DATETIME,
},
Expand All @@ -1835,7 +1830,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.HELP_TEXT]: 'Picklist help updated',
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.RESTRICTED]: false,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.FIELD_ANNOTATIONS.VALUE_SET]: [
{
Expand All @@ -1860,7 +1854,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.FIELD_ANNOTATIONS.VISIBLE_LINES]: 6,
[constants.FIELD_ANNOTATIONS.RESTRICTED]: true,
[constants.VALUE_SET_DEFINITION_FIELDS.SORTED]: true,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.FIELD_ANNOTATIONS.VALUE_SET]: [
{
Expand Down Expand Up @@ -1891,7 +1884,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.FIELD_ANNOTATIONS.SCALE]: 10,
[constants.BUSINESS_STATUS]: 'Active',
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.COMPOUND_FIELD_TYPE_NAMES.LOCATION,
},
Expand All @@ -1901,13 +1893,11 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.HELP_TEXT]: 'Percent help updated',
[constants.FIELD_ANNOTATIONS.SCALE]: 7,
[constants.FIELD_ANNOTATIONS.PRECISION]: 8,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.PERCENT,
},
[CUSTOM_FIELD_NAMES.PHONE]: {
[constants.LABEL]: 'Phone label Updated',
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.PHONE,
},
Expand All @@ -1916,7 +1906,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.DESCRIPTION]: 'LongTextArea description Updated',
[constants.FIELD_ANNOTATIONS.LENGTH]: 32000,
[constants.FIELD_ANNOTATIONS.VISIBLE_LINES]: 4,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.LONGTEXTAREA,
},
Expand All @@ -1925,7 +1914,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.HELP_TEXT]: 'RichTextArea help updated',
[constants.FIELD_ANNOTATIONS.LENGTH]: 32000,
[constants.FIELD_ANNOTATIONS.VISIBLE_LINES]: 10,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.RICHTEXTAREA,
},
Expand All @@ -1934,7 +1922,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.DESCRIPTION]: 'TextArea description Updated',
[constants.HELP_TEXT]: 'TextArea help updated',
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.TEXTAREA,
},
Expand All @@ -1945,7 +1932,6 @@ describe('Salesforce adapter E2E with real account', () => {
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.LENGTH]: 100,
[constants.FIELD_ANNOTATIONS.MASK_CHAR]: 'X',
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.FIELD_ANNOTATIONS.MASK_TYPE]: 'ssn',
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.ENCRYPTEDTEXT,
Expand All @@ -1955,7 +1941,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.DESCRIPTION]: 'Url description Updated',
[constants.HELP_TEXT]: 'Url help updated',
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.URL,
},
Expand Down Expand Up @@ -1985,7 +1970,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.DESCRIPTION]: 'Checkbox description Updated',
[constants.HELP_TEXT]: 'Checkbox help updated',
[constants.FIELD_ANNOTATIONS.DEFAULT_VALUE]: false,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.CHECKBOX,
},
Expand All @@ -1995,7 +1979,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.HELP_TEXT]: 'GlobalPicklist help updated',
[CORE_ANNOTATIONS.REQUIRED]: true,
[constants.FIELD_ANNOTATIONS.RESTRICTED]: true,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.VALUE_SET_FIELDS.VALUE_SET_NAME]: gvsName,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.PICKLIST,
Expand Down Expand Up @@ -2023,7 +2006,6 @@ describe('Salesforce adapter E2E with real account', () => {
},
],
},
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.LOOKUP,
},
Expand All @@ -2037,7 +2019,6 @@ describe('Salesforce adapter E2E with real account', () => {
)[0],
[constants.FIELD_ANNOTATIONS.REPARENTABLE_MASTER_DETAIL]: false,
[constants.FIELD_ANNOTATIONS.WRITE_REQUIRES_MASTER_READ]: false,
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.FIELD_ANNOTATIONS.RELATIONSHIP_ORDER]: 0,
[INSTANCE_TYPE_FIELD]: constants.FIELD_TYPE_NAMES.MASTER_DETAIL,
Expand All @@ -2046,7 +2027,6 @@ describe('Salesforce adapter E2E with real account', () => {
[constants.LABEL]: 'Formula label Updated',
[constants.DESCRIPTION]: 'Formula description Updated',
[constants.HELP_TEXT]: 'Formula help updated',
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.TRACK_TRENDING]: false,
[constants.FORMULA]: '3 > 9',
[constants.BUSINESS_STATUS]: 'Active',
Expand Down Expand Up @@ -2231,7 +2211,6 @@ describe('Salesforce adapter E2E with real account', () => {
const annotations = {
[constants.API_NAME]: fullName,
[constants.LABEL]: 'Summary label Updated',
[constants.FIELD_ANNOTATIONS.EXTERNAL_ID]: false,
[constants.FIELD_ANNOTATIONS.SUMMARIZED_FIELD]: 'Opportunity.TotalOpportunityQuantity',
[constants.FIELD_ANNOTATIONS.SUMMARY_FILTER_ITEMS]: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/salesforce-adapter/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const { logDecorator, throttle, requiresLogin, createRateLimitersFromConfig } =

type DeployOptions = Pick<JSForceDeployOptions, 'checkOnly'>

export const API_VERSION = '60.0'
export const API_VERSION = '61.0'
export const METADATA_NAMESPACE = 'http://soap.sforce.com/2006/04/metadata'

// Salesforce limitation of maximum number of items per create/update/delete call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const optionalFeaturesDefaultValues: OptionalFeaturesDefaultValues = {
extraDependenciesV2: true,
extendedCustomFieldInformation: false,
importantValues: true,
hideTypesFolder: false,
hideTypesFolder: true,
omitStandardFieldsNonDeployableValues: true,
latestSupportedApiVersion: false,
metaTypes: false,
cpqRulesAndConditionsRefs: false,
cpqRulesAndConditionsRefs: true,
}

type BuildFetchProfileParams = {
Expand Down
4 changes: 2 additions & 2 deletions packages/salesforce-adapter/test/adapter.crud.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ describe('SalesforceAdapter CRUD', () => {
deploy: {
quickDeployParams: {
requestId: '1',
hash: 'cf4d1bc8bdab0f300fdb63389813a496',
hash: 'f8d986314090286b401f493d0b5344fe',
},
},
},
Expand Down Expand Up @@ -527,7 +527,7 @@ describe('SalesforceAdapter CRUD', () => {
deploy: {
quickDeployParams: {
requestId: '1',
hash: 'cf4d1bc8bdab0f300fdb63389813a496',
hash: 'f8d986314090286b401f493d0b5344fe',
},
},
},
Expand Down

0 comments on commit d2c670b

Please sign in to comment.