@salesforce/lds-runtime-mobile 1.119.1 → 1.119.3

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/main.js CHANGED
@@ -8385,7 +8385,7 @@ const baseTypeDefinitions = /* GraphQL */ `
8385
8385
  ApiName: String!
8386
8386
  WeakEtag: Long!
8387
8387
  DisplayValue: String
8388
- LastModifiedById: StringValue
8388
+ LastModifiedById: IDValue
8389
8389
  LastModifiedDate: DateTimeValue
8390
8390
  SystemModstamp: DateTimeValue
8391
8391
  RecordTypeId: IDValue
@@ -8396,7 +8396,7 @@ const baseTypeDefinitions = /* GraphQL */ `
8396
8396
  Id: ID!
8397
8397
  ApiName: String!
8398
8398
  DisplayValue: String
8399
- LastModifiedById: StringValue
8399
+ LastModifiedById: IDValue
8400
8400
  LastModifiedDate: DateTimeValue
8401
8401
  RecordTypeId: IDValue
8402
8402
  SystemModstamp: DateTimeValue
@@ -8746,7 +8746,6 @@ const fieldsStaticallyAdded = [
8746
8746
  'LastModifiedDate',
8747
8747
  'RecordTypeId',
8748
8748
  'SystemModstamp',
8749
- 'SystemModstamp',
8750
8749
  'WeakEtag',
8751
8750
  ];
8752
8751
  function generateRecordQueries(objectInfos) {
@@ -8771,9 +8770,9 @@ function generateRecordQueries(objectInfos) {
8771
8770
  }
8772
8771
  }
8773
8772
  for (const field of values(objectInfo.fields)) {
8774
- if (fieldsStaticallyAdded.includes(field.apiName))
8775
- continue;
8776
- fields += `${field.apiName}: ${dataTypeToType(field.dataType, field.apiName)}\n`;
8773
+ if (!fieldsStaticallyAdded.includes(field.apiName)) {
8774
+ fields += `${field.apiName}: ${dataTypeToType(field.dataType, field.apiName)}\n`;
8775
+ }
8777
8776
  // For spanning parent relationships with no union types
8778
8777
  if (field.referenceToInfos.length === 1) {
8779
8778
  const [relation] = field.referenceToInfos;
@@ -8802,7 +8801,7 @@ function generateRecordQueries(objectInfos) {
8802
8801
  type ${apiName} implements Record {
8803
8802
  ApiName: String!
8804
8803
  DisplayValue: String
8805
- LastModifiedById: StringValue
8804
+ LastModifiedById: IDValue
8806
8805
  LastModifiedDate: DateTimeValue
8807
8806
  RecordTypeId: IDValue
8808
8807
  SystemModstamp: DateTimeValue
@@ -8838,11 +8837,12 @@ function dataTypeToType(objectInfoDataType, apiName) {
8838
8837
  }
8839
8838
  switch (objectInfoDataType) {
8840
8839
  case 'String':
8841
- case 'Reference':
8842
8840
  case 'Phone':
8843
8841
  case 'Email':
8844
8842
  case 'TextArea':
8845
8843
  return 'StringValue';
8844
+ case 'Reference':
8845
+ return 'IDValue';
8846
8846
  case 'Double':
8847
8847
  return 'DoubleValue';
8848
8848
  case 'Boolean':
@@ -15622,4 +15622,4 @@ register({
15622
15622
  });
15623
15623
 
15624
15624
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15625
- // version: 1.119.1-91ad6f5b7
15625
+ // version: 1.119.3-6c74eaafc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.119.1",
3
+ "version": "1.119.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
package/sfdc/main.js CHANGED
@@ -8385,7 +8385,7 @@ const baseTypeDefinitions = /* GraphQL */ `
8385
8385
  ApiName: String!
8386
8386
  WeakEtag: Long!
8387
8387
  DisplayValue: String
8388
- LastModifiedById: StringValue
8388
+ LastModifiedById: IDValue
8389
8389
  LastModifiedDate: DateTimeValue
8390
8390
  SystemModstamp: DateTimeValue
8391
8391
  RecordTypeId: IDValue
@@ -8396,7 +8396,7 @@ const baseTypeDefinitions = /* GraphQL */ `
8396
8396
  Id: ID!
8397
8397
  ApiName: String!
8398
8398
  DisplayValue: String
8399
- LastModifiedById: StringValue
8399
+ LastModifiedById: IDValue
8400
8400
  LastModifiedDate: DateTimeValue
8401
8401
  RecordTypeId: IDValue
8402
8402
  SystemModstamp: DateTimeValue
@@ -8746,7 +8746,6 @@ const fieldsStaticallyAdded = [
8746
8746
  'LastModifiedDate',
8747
8747
  'RecordTypeId',
8748
8748
  'SystemModstamp',
8749
- 'SystemModstamp',
8750
8749
  'WeakEtag',
8751
8750
  ];
8752
8751
  function generateRecordQueries(objectInfos) {
@@ -8771,9 +8770,9 @@ function generateRecordQueries(objectInfos) {
8771
8770
  }
8772
8771
  }
8773
8772
  for (const field of values(objectInfo.fields)) {
8774
- if (fieldsStaticallyAdded.includes(field.apiName))
8775
- continue;
8776
- fields += `${field.apiName}: ${dataTypeToType(field.dataType, field.apiName)}\n`;
8773
+ if (!fieldsStaticallyAdded.includes(field.apiName)) {
8774
+ fields += `${field.apiName}: ${dataTypeToType(field.dataType, field.apiName)}\n`;
8775
+ }
8777
8776
  // For spanning parent relationships with no union types
8778
8777
  if (field.referenceToInfos.length === 1) {
8779
8778
  const [relation] = field.referenceToInfos;
@@ -8802,7 +8801,7 @@ function generateRecordQueries(objectInfos) {
8802
8801
  type ${apiName} implements Record {
8803
8802
  ApiName: String!
8804
8803
  DisplayValue: String
8805
- LastModifiedById: StringValue
8804
+ LastModifiedById: IDValue
8806
8805
  LastModifiedDate: DateTimeValue
8807
8806
  RecordTypeId: IDValue
8808
8807
  SystemModstamp: DateTimeValue
@@ -8838,11 +8837,12 @@ function dataTypeToType(objectInfoDataType, apiName) {
8838
8837
  }
8839
8838
  switch (objectInfoDataType) {
8840
8839
  case 'String':
8841
- case 'Reference':
8842
8840
  case 'Phone':
8843
8841
  case 'Email':
8844
8842
  case 'TextArea':
8845
8843
  return 'StringValue';
8844
+ case 'Reference':
8845
+ return 'IDValue';
8846
8846
  case 'Double':
8847
8847
  return 'DoubleValue';
8848
8848
  case 'Boolean':
@@ -15622,4 +15622,4 @@ register({
15622
15622
  });
15623
15623
 
15624
15624
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15625
- // version: 1.119.1-91ad6f5b7
15625
+ // version: 1.119.3-6c74eaafc