@salesforce/lds-adapters-uiapi 1.308.0-dev2 → 1.308.0-dev3

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.
Files changed (25) hide show
  1. package/dist/es/es2018/types/src/generated/graphql/types/Analytics__AnalyticsRepresentation.d.ts +3 -1
  2. package/dist/es/es2018/types/src/generated/graphql/types/PolymorphicAggregateParentRelationship.d.ts +20 -0
  3. package/dist/es/es2018/types/src/generated/graphql/types/Query.d.ts +3 -3
  4. package/dist/es/es2018/types/src/generated/graphql/types/RecordAggregate.d.ts +4 -1
  5. package/dist/es/es2018/types/src/generated/graphql/types/SObject__Field.d.ts +35 -0
  6. package/dist/es/es2018/types/src/generated/graphql/types/SObject__FieldType.d.ts +6 -0
  7. package/dist/es/es2018/types/src/generated/graphql/types/Setup__EntityRepresentation.d.ts +3 -1
  8. package/dist/es/es2018/types/src/generated/graphql/types/Setup__Setup.d.ts +3 -1
  9. package/dist/es/es2018/types/src/generated/graphql/types/Setup__SetupAggregateConnection.d.ts +39 -0
  10. package/dist/es/es2018/types/src/generated/graphql/types/Setup__SetupAggregateEdge.d.ts +36 -0
  11. package/dist/es/es2018/types/src/generated/graphql/types/Setup__SetupPolymorphicAggregateParentRelationship.d.ts +20 -0
  12. package/dist/es/es2018/types/src/generated/graphql/types/Setup__SetupQueryAggregate.d.ts +35 -0
  13. package/dist/es/es2018/types/src/generated/graphql/types/Setup__SetupRecordAggregate.d.ts +71 -0
  14. package/dist/es/es2018/types/src/generated/graphql/types/Setup__SetupRecordResult.d.ts +35 -0
  15. package/dist/es/es2018/types/src/generated/types/DirectAnswerResultRepresentation.d.ts +37 -0
  16. package/dist/es/es2018/types/src/generated/types/KeywordSearchResultsRepresentation.d.ts +4 -1
  17. package/dist/es/es2018/types/src/generated/types/SearchAnswersResultRepresentation.d.ts +8 -5
  18. package/dist/es/es2018/types/src/generated/types/SearchResultsSummaryRepresentation.d.ts +5 -1
  19. package/dist/es/es2018/uiapi-records-service.js +6881 -4966
  20. package/package.json +10 -9
  21. package/sfdc/graphqlAdapters.js +5035 -3356
  22. package/sfdc/index.js +501 -265
  23. package/src/raml/api.raml +28 -2
  24. package/src/raml/uiapi.graphql +117 -39
  25. package/dist/es/es2018/types/src/generated/graphql/types/Analytics__AnalyticsAssetTypeSelection.d.ts +0 -10
package/src/raml/api.raml CHANGED
@@ -566,6 +566,22 @@ types:
566
566
  label:
567
567
  description: Label
568
568
  type: string
569
+ DirectAnswerResultRepresentation:
570
+ description: Direct Answer Result Response
571
+ type: object
572
+ properties:
573
+ explanation:
574
+ description: An LLM-provided explanation for the Direct Answer response
575
+ type: string | nil
576
+ hasNoResult:
577
+ description: Indicates that no results were found
578
+ type: boolean | nil # TODO: nil hand rolled. Can be removed after W-16127536 merged
579
+ result:
580
+ description: The LLM-based Direct Answer response
581
+ type: string | nil
582
+ turnId:
583
+ description: The ID corresponding to the askCRMData invocation
584
+ type: string | nil
569
585
  DisplayLayoutAndMatchingInfoRepresentation:
570
586
  description: Search Lookups target display layout and matching info
571
587
  type: object
@@ -1301,6 +1317,9 @@ types:
1301
1317
  description: Keyword Search Results Response
1302
1318
  type: object
1303
1319
  properties:
1320
+ hasNoResult:
1321
+ description: Indicates that no results were found
1322
+ type: boolean | nil # TODO: nil hand rolled. Can be removed after W-16127536 merged
1304
1323
  results:
1305
1324
  description: List of search result collections, one for each object
1306
1325
  type: array
@@ -4399,15 +4418,18 @@ types:
4399
4418
  properties:
4400
4419
  answerType:
4401
4420
  description: The type of search answer
4402
- type: string
4421
+ type: string | nil
4403
4422
  appliedFilters:
4404
4423
  description: The list of applied filters.
4405
4424
  type: array
4406
4425
  items:
4407
4426
  type: AppliedSearchFilterOutputRepresentation
4427
+ hasNoResult:
4428
+ description: Indicates that no results were found
4429
+ type: boolean | nil # TODO: nil hand rolled. Can be removed after W-16127536 merged
4408
4430
  passage:
4409
4431
  description: The record’s snippet which includes the answer
4410
- type: string
4432
+ type: string | nil
4411
4433
  records:
4412
4434
  description: The list of records for search answer
4413
4435
  type: array
@@ -4711,6 +4733,7 @@ types:
4711
4733
  items:
4712
4734
  type: string
4713
4735
  enum:
4736
+ - DirectAnswerResult
4714
4737
  - KeywordSearchResults
4715
4738
  - QnAResult
4716
4739
  required: false #TODO: handrolled for W-10327520
@@ -4793,6 +4816,9 @@ types:
4793
4816
  configurationName:
4794
4817
  description: Configuration Name to be applied
4795
4818
  type: string | nil
4819
+ directAnswerResult:
4820
+ description: Direct Answer Response
4821
+ type: DirectAnswerResultRepresentation | nil
4796
4822
  keywordSearchResults:
4797
4823
  description: Keyword Search Results Response
4798
4824
  type: KeywordSearchResultsRepresentation | nil
@@ -49,8 +49,8 @@ type StringAggregate implements FieldValue {
49
49
 
50
50
  type Query {
51
51
  uiapi: UIAPI!
52
- setup: Setup__Setup!
53
- analytics: Analytics__Analytics!
52
+ analytics: Analytics__Analytics! @fieldCategory
53
+ setup: Setup__Setup! @fieldCategory
54
54
  }
55
55
 
56
56
  input EmailOperators {
@@ -387,7 +387,50 @@ type ListColumn {
387
387
  }
388
388
 
389
389
  type Setup__SetupQuery {
390
- recordQuery(first: Int, after: String, where: Setup__SetupFilter, orderBy: Setup__SetupOrderBy, scope: String, upperBound: Int): Setup__SetupConnection @fieldCategory
390
+ # scope should be RecordScope, but it is an empty enum
391
+ recordQuery(after: String, first: Int, orderBy: Setup__SetupOrderBy, scope: String @fieldCategory, upperBound: Int, where: Setup__SetupFilter): Setup__SetupConnection @fieldCategory
392
+ }
393
+
394
+ type Setup__SetupQueryAggregate {
395
+ recordQueryAggregate(after: String, first: Int, groupBy: Setup__SetupGroupBy, orderBy: Setup__SetupAggregateOrderBy, scope: String @fieldCategory, upperBound: Int, where: Setup__SetupFilter): Setup__SetupAggregateConnection @fieldCategory
396
+ }
397
+
398
+ type Setup__SetupRecordAggregate @generic {
399
+ ApiName: String!
400
+ BooleanAggregate: BooleanAggregate @fieldCategory
401
+ CurrencyAggregate: CurrencyAggregate @fieldCategory
402
+ DateAggregate: DateAggregate @fieldCategory
403
+ DoubleAggregate: DoubleAggregate @fieldCategory
404
+ EmailAggregate: EmailAggregate @fieldCategory
405
+ IDAggregate: IDAggregate @fieldCategory
406
+ IntAggregate: IntAggregate @fieldCategory
407
+ LatitudeAggregate: LatitudeAggregate @fieldCategory
408
+ LongAggregate: LongAggregate @fieldCategory
409
+ LongitudeAggregate: LongitudeAggregate @fieldCategory
410
+ PercentAggregate: PercentAggregate @fieldCategory
411
+ PhoneNumberAggregate: PhoneNumberAggregate @fieldCategory
412
+ PicklistAggregate: PicklistAggregate @fieldCategory
413
+ StringAggregate: StringAggregate @fieldCategory
414
+ TextAreaAggregate: TextAreaAggregate @fieldCategory
415
+ TimeAggregate: TimeAggregate @fieldCategory
416
+ UrlAggregate: UrlAggregate @fieldCategory
417
+ parentRelationship: Setup__SetupRecordAggregate @fieldCategory
418
+ polymorphicParentRelationship: Setup__SetupPolymorphicAggregateParentRelationship @fieldCategory
419
+ }
420
+
421
+ type Setup__SetupRecordResult @generic {
422
+ aggregate: Setup__SetupRecordAggregate
423
+ }
424
+
425
+ type SObject__Field {
426
+ name: String!
427
+ value: String
428
+ }
429
+
430
+ enum SObject__FieldType {
431
+ ALL
432
+ CUSTOM
433
+ STANDARD
391
434
  }
392
435
 
393
436
  type Setup__EntityRepresentation @generic {
@@ -407,6 +450,7 @@ type Setup__EntityRepresentation @generic {
407
450
  EmailValue: EmailValue @fieldCategory
408
451
  UrlValue: UrlValue @fieldCategory
409
452
  EncryptedStringValue: EncryptedStringValue @fieldCategory
453
+ Entity__fields(type: SObject__FieldType): [SObject__Field]!
410
454
  CurrencyValue: CurrencyValue @fieldCategory
411
455
  LongitudeValue: LongitudeValue @fieldCategory
412
456
  LatitudeValue: LatitudeValue @fieldCategory
@@ -450,6 +494,8 @@ input DistanceInput {
450
494
  longitude: Longitude!
451
495
  }
452
496
 
497
+ union PolymorphicAggregateParentRelationship @generic = RecordAggregate
498
+
453
499
  union PolymorphicParentRelationship @generic = RecordRepresentation
454
500
 
455
501
  enum AggregateOrderByNumberFunction {
@@ -476,16 +522,6 @@ input OrderByClause {
476
522
  nulls: NullOrder
477
523
  }
478
524
 
479
- input AggregateOrderBy @generic {
480
- orderableNumberField: AggregateOrderByNumberClause @fieldCategory
481
- orderableStringField: AggregateOrderByStringClause @fieldCategory
482
- orderableField: NoFunctionAggregateOrderByClause @fieldCategory
483
- orderableGeolocationField: OrderByGeolocationClause @fieldCategory
484
- orderableParentRelationship: AggregateOrderBy @fieldCategory
485
- orderablePolymorphicParentRelationship: PolymorphicParentRelationshipOrderBy @fieldCategory
486
- type: String = ORDER_BY
487
- }
488
-
489
525
  input GroupByClause {
490
526
  group: Boolean
491
527
  }
@@ -853,7 +889,7 @@ enum Unit {
853
889
  }
854
890
 
855
891
  input PolymorphicParentRelationshipOrderBy @generic {
856
- AggregateOrderBy: AggregateOrderBy @fieldCategory
892
+ RecordAggregateOrderBy: RecordAggregateOrderBy @fieldCategory
857
893
  }
858
894
 
859
895
  input OrderByGeolocationClause {
@@ -1086,6 +1122,8 @@ type RecordAggregate @generic {
1086
1122
  TextAreaAggregate: TextAreaAggregate @fieldCategory
1087
1123
  TimeAggregate: TimeAggregate @fieldCategory
1088
1124
  UrlAggregate: UrlAggregate @fieldCategory
1125
+ parentRelationship: RecordAggregate @fieldCategory
1126
+ polymorphicParentRelationship: PolymorphicAggregateParentRelationship @fieldCategory
1089
1127
  }
1090
1128
 
1091
1129
  type JSONValue implements FieldValue {
@@ -1100,8 +1138,39 @@ type EmailValue implements FieldValue {
1100
1138
 
1101
1139
  type Setup__Setup {
1102
1140
  query: Setup__SetupQuery!
1141
+ aggregate: Setup__SetupQueryAggregate!
1103
1142
  }
1104
1143
 
1144
+ type Setup__SetupAggregateConnection @generic {
1145
+ edges: [Setup__SetupAggregateEdge]
1146
+ pageInfo: PageInfo!
1147
+ totalCount: Int!
1148
+ }
1149
+
1150
+ input Setup__SetupGroupBy @generic {
1151
+ groupableDateField: GroupByDateFunction @fieldCategory
1152
+ groupableField: GroupByClause @fieldCategory
1153
+ groupableParentRelationship: Setup__SetupGroupBy @fieldCategory
1154
+ groupablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipGroupBy @fieldCategory
1155
+ type: GroupByType = GROUP_BY
1156
+ }
1157
+
1158
+ type Setup__SetupAggregateEdge @generic {
1159
+ cursor: String!
1160
+ node: Setup__SetupRecordResult
1161
+ }
1162
+
1163
+ input Setup__SetupAggregateOrderBy @generic {
1164
+ orderableField: NoFunctionAggregateOrderByClause @fieldCategory
1165
+ orderableGeolocationField: OrderByGeolocationClause @fieldCategory
1166
+ orderableNumberField: AggregateOrderByNumberClause @fieldCategory
1167
+ orderableParentRelationship: Setup__SetupAggregateOrderBy @fieldCategory
1168
+ orderablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipOrderBy @fieldCategory
1169
+ orderableStringField: AggregateOrderByStringClause @fieldCategory
1170
+ type: String
1171
+ }
1172
+
1173
+
1105
1174
  enum AggregateOrderByStringFunction {
1106
1175
  COUNT
1107
1176
  COUNT_DISTINCT
@@ -1202,8 +1271,18 @@ type BooleanAggregate implements FieldValue {
1202
1271
  }
1203
1272
 
1204
1273
  type RecordQueryAggregate {
1205
- # RecordScope is replaced with String
1206
- recordQueryAggregate(first: Int, after: String, where: RecordFilter, orderBy: AggregateOrderBy, scope: String, groupBy: RecordGroupBy, upperBound: Int): RecordAggregateConnection @fieldCategory
1274
+ # RecordScope is replaced with String
1275
+ recordQueryAggregate(after: String, first: Int, groupBy: RecordGroupBy, orderBy: RecordAggregateOrderBy, scope: String @fieldCategory, upperBound: Int, where: RecordFilter): RecordAggregateConnection @fieldCategory
1276
+ }
1277
+
1278
+ input RecordAggregateOrderBy @generic {
1279
+ orderableField: NoFunctionAggregateOrderByClause @fieldCategory
1280
+ orderableGeolocationField: OrderByGeolocationClause @fieldCategory
1281
+ orderableNumberField: AggregateOrderByNumberClause @fieldCategory
1282
+ orderableParentRelationship: RecordAggregateOrderBy @fieldCategory
1283
+ orderablePolymorphicParentRelationship: PolymorphicParentRelationshipOrderBy @fieldCategory
1284
+ orderableStringField: AggregateOrderByStringClause @fieldCategory
1285
+ type: String
1207
1286
  }
1208
1287
 
1209
1288
  type RecordConnection @generic {
@@ -1431,6 +1510,16 @@ input Setup__SetupPolymorphicParentRelationshipRecordFilter @generic {
1431
1510
  Setup__SetupFilter: Setup__SetupFilter @fieldCategory
1432
1511
  }
1433
1512
 
1513
+ union Setup__SetupPolymorphicAggregateParentRelationship @generic = Setup__SetupRecordAggregate
1514
+
1515
+ input Setup__SetupPolymorphicParentRelationshipGroupBy @generic {
1516
+ Setup__SetupGroupBy: Setup__SetupGroupBy @fieldCategory
1517
+ }
1518
+
1519
+ input Setup__SetupPolymorphicParentRelationshipOrderBy @generic {
1520
+ Setup__SetupAggregateOrderBy: Setup__SetupAggregateOrderBy @fieldCategory
1521
+ }
1522
+
1434
1523
  type CompoundField @generic {
1435
1524
  IntValue: IntValue @fieldCategory
1436
1525
  StringValue: StringValue @fieldCategory
@@ -1515,16 +1604,20 @@ type DateFunctionAggregation {
1515
1604
  }
1516
1605
 
1517
1606
  type RecordQuery {
1518
- # scope should be type RecordScope but that's empty enum.
1519
- recordQuery(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, scope: String, upperBound: Int): RecordConnection @fieldCategory
1607
+ recordQuery(after: String, first: Int, orderBy: RecordOrderBy, scope: String @fieldCategory, upperBound: Int, where: RecordFilter): RecordConnection @fieldCategory
1520
1608
  }
1521
1609
 
1522
1610
  # add browse family schema
1523
1611
  type Analytics__Analytics {
1524
- browse(orderBy: Analytics__AnalyticsOrderBy, where: Analytics__AnalyticsFilter, assetTypes: [Analytics__AnalyticsAssetTypeSelection!]!, first: Int, after: String): Analytics__AnalyticsBrowse!
1612
+ # assetTypes: [AnalyticsAssetType], but AnalyticsAssetType is an empty enum
1613
+ browse(after: String, assetTypes: [String], first: Int, orderBy: Analytics__AnalyticsOrderBy, where: Analytics__AnalyticsFilter): Analytics__AnalyticsBrowse!
1525
1614
  # Add other fields here if needed
1526
1615
  }
1527
1616
 
1617
+ # enum AnalyticsAssetType @generic {
1618
+ # }
1619
+
1620
+
1528
1621
  type Analytics__AnalyticsBrowse {
1529
1622
  edges: [Analytics__AnalyticsEdge]
1530
1623
  totalCount: Int!
@@ -1540,7 +1633,9 @@ type Analytics__AnalyticsEdge {
1540
1633
  type Analytics__AnalyticsRepresentation {
1541
1634
  MasterLabel: StringValue
1542
1635
  CreatedById: IDValue
1636
+ CreatedDate: DateTimeValue
1543
1637
  LastModifiedDate: DateTimeValue
1638
+ LastModifiedById: IDValue
1544
1639
  Id: ID!
1545
1640
  ApiName: String!
1546
1641
  }
@@ -1550,18 +1645,12 @@ input Analytics__AnalyticsOrderBy {
1550
1645
  Id: Analytics__OrderByInput
1551
1646
  ApiName: Analytics__OrderByInput
1552
1647
  CreatedById: Analytics__OrderByInput
1648
+ CreatedDate: Analytics__OrderByInput
1553
1649
  LastModifiedDate: Analytics__OrderByInput
1650
+ LastModifiedById: Analytics__OrderByInput
1554
1651
  }
1555
1652
 
1556
1653
  input Analytics__OrderByInput {
1557
- MasterLabel: Analytics__OrderByEnum
1558
- id: Analytics__OrderByEnum
1559
- apiName: Analytics__OrderByEnum
1560
- CreatedById: Analytics__OrderByEnum
1561
- LastModifiedDate: Analytics__OrderByEnum
1562
- }
1563
-
1564
- input Analytics__OrderByEnum {
1565
1654
  order: Analytics__SortEnumType
1566
1655
  }
1567
1656
 
@@ -1574,6 +1663,7 @@ input Analytics__AnalyticsFilter {
1574
1663
  Id: Setup__IdOperators
1575
1664
  MasterLabel: StringOperators
1576
1665
  CreatedById: Setup__IdOperators
1666
+ CreatedDate: DateTimeOperators
1577
1667
  LastModifiedById: Setup__IdOperators
1578
1668
  LastModifiedDate: DateTimeOperators
1579
1669
  and: [Analytics__AnalyticsFilter]
@@ -1581,18 +1671,6 @@ input Analytics__AnalyticsFilter {
1581
1671
  not: Analytics__AnalyticsFilter
1582
1672
  }
1583
1673
 
1584
- # This enum type is defined dynamically on GraphQL schema
1585
- # Includes all possible value here
1586
- enum Analytics__AnalyticsAssetTypeSelection {
1587
- TableauWorkbook
1588
- AnalyticsDashboard
1589
- AnalyticsVisualization
1590
- Workspace
1591
- ScopedMetric
1592
- SemanticDataModel
1593
- DMO
1594
- }
1595
-
1596
1674
  directive @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT
1597
1675
  directive @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
1598
1676
  directive @category(name: String!) on FIELD
@@ -1,10 +0,0 @@
1
- export declare const name = "Analytics__AnalyticsAssetTypeSelection";
2
- export declare enum Interface {
3
- TableauWorkbook = "TableauWorkbook",
4
- AnalyticsDashboard = "AnalyticsDashboard",
5
- AnalyticsVisualization = "AnalyticsVisualization",
6
- Workspace = "Workspace",
7
- ScopedMetric = "ScopedMetric",
8
- SemanticDataModel = "SemanticDataModel",
9
- DMO = "DMO"
10
- }