@snugdesk/core 0.2.21 → 0.2.23

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.
@@ -1118,6 +1118,13 @@ var ModelSortDirection;
1118
1118
  ModelSortDirection["ASC"] = "ASC";
1119
1119
  ModelSortDirection["DESC"] = "DESC";
1120
1120
  })(ModelSortDirection || (ModelSortDirection = {}));
1121
+ var ProcessingStatus;
1122
+ (function (ProcessingStatus) {
1123
+ ProcessingStatus["PENDING"] = "PENDING";
1124
+ ProcessingStatus["SUCCESS"] = "SUCCESS";
1125
+ ProcessingStatus["FAILED"] = "FAILED";
1126
+ ProcessingStatus["RETRYING"] = "RETRYING";
1127
+ })(ProcessingStatus || (ProcessingStatus = {}));
1121
1128
 
1122
1129
  var InteractionChannel;
1123
1130
  (function (InteractionChannel) {
@@ -1557,6 +1564,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1557
1564
  }], ctorParameters: () => [{ type: AppSyncHelperService }] });
1558
1565
 
1559
1566
  const FIELDS_INTERACTION_ENDPOINT = `
1567
+ id
1568
+ externalId
1569
+ tenantId
1570
+ widgetId
1571
+ address
1572
+ configuration
1573
+ sellPrice {
1574
+ currency
1575
+ upfrontCost
1576
+ monthlyCost
1577
+ inboundCost
1578
+ outboundCost
1579
+ }
1580
+ documents {
1581
+ fileName
1582
+ documentType
1583
+ contentType
1584
+ }
1585
+ createdAt
1586
+ updatedAt
1587
+ deletedAt
1588
+ updatedByUserId
1589
+ updatedByUserSessionId
1590
+ `;
1591
+ const FIELDS_INTERACTION_ENDPOINT_MINIMAL = `
1560
1592
  id
1561
1593
  externalId
1562
1594
  tenantId
@@ -1568,7 +1600,127 @@ const FIELDS_INTERACTION_ENDPOINT = `
1568
1600
  deletedAt
1569
1601
  `;
1570
1602
  class InteractionEndpointService {
1571
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InteractionEndpointService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1603
+ appSyncService;
1604
+ constructor(appSyncService) {
1605
+ this.appSyncService = appSyncService;
1606
+ }
1607
+ async GetInteractionEndpoint(id) {
1608
+ const statement = `query GetInteractionEndpoint($id: ID!) {
1609
+ getInteractionEndpoint(id: $id) {
1610
+ ${FIELDS_INTERACTION_ENDPOINT}
1611
+ }
1612
+ }`;
1613
+ const gqlAPIServiceArguments = {
1614
+ id,
1615
+ };
1616
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
1617
+ return response.data.getInteractionEndpoint;
1618
+ }
1619
+ async CreateInteractionEndpoint(input, condition) {
1620
+ const statement = `mutation CreateInteractionEndpoint($input: CreateInteractionEndpointInput!, $condition: ModelInteractionEndpointConditionInput) {
1621
+ createInteractionEndpoint(input: $input, condition: $condition) {
1622
+ ${FIELDS_INTERACTION_ENDPOINT_MINIMAL}
1623
+ }
1624
+ }`;
1625
+ const gqlAPIServiceArguments = {
1626
+ input,
1627
+ };
1628
+ if (condition) {
1629
+ gqlAPIServiceArguments.condition = condition;
1630
+ }
1631
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
1632
+ return response.data.createInteractionEndpoint;
1633
+ }
1634
+ async UpdateInteractionEndpoint(input, condition) {
1635
+ const statement = `mutation UpdateInteractionEndpoint($input: UpdateInteractionEndpointInput!, $condition: ModelInteractionEndpointConditionInput) {
1636
+ updateInteractionEndpoint(input: $input, condition: $condition) {
1637
+ ${FIELDS_INTERACTION_ENDPOINT_MINIMAL}
1638
+ }
1639
+ }`;
1640
+ const gqlAPIServiceArguments = {
1641
+ input,
1642
+ };
1643
+ if (condition) {
1644
+ gqlAPIServiceArguments.condition = condition;
1645
+ }
1646
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
1647
+ return response.data.updateInteractionEndpoint;
1648
+ }
1649
+ async ListInteractionEndpointsByTenantId(tenantId, address, sortDirection, filter, limit, nextToken) {
1650
+ const statement = `query ListInteractionEndpointsByTenantId($tenantId: ID!, $address: ModelStringKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionEndpointFilterInput, $limit: Int, $nextToken: String) {
1651
+ listInteractionEndpointsByTenantId(
1652
+ tenantId: $tenantId
1653
+ address: $address
1654
+ sortDirection: $sortDirection
1655
+ filter: $filter
1656
+ limit: $limit
1657
+ nextToken: $nextToken
1658
+ ) {
1659
+ items {
1660
+ ${FIELDS_INTERACTION_ENDPOINT}
1661
+ }
1662
+ nextToken
1663
+ }
1664
+ }`;
1665
+ const gqlAPIServiceArguments = {
1666
+ tenantId,
1667
+ };
1668
+ if (address) {
1669
+ gqlAPIServiceArguments.address = address;
1670
+ }
1671
+ if (sortDirection) {
1672
+ gqlAPIServiceArguments.sortDirection = sortDirection;
1673
+ }
1674
+ if (filter) {
1675
+ gqlAPIServiceArguments.filter = filter;
1676
+ }
1677
+ if (limit) {
1678
+ gqlAPIServiceArguments.limit = limit;
1679
+ }
1680
+ if (nextToken) {
1681
+ gqlAPIServiceArguments.nextToken = nextToken;
1682
+ }
1683
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
1684
+ return response.data.listInteractionEndpointsByTenantId;
1685
+ }
1686
+ async ListInteractionEndpointsByWidgetId(widgetId, address, sortDirection, filter, limit, nextToken) {
1687
+ const statement = `query ListInteractionEndpointsByWidgetId($widgetId: ID!, $address: ModelStringKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionEndpointFilterInput, $limit: Int, $nextToken: String) {
1688
+ listInteractionEndpointsByWidgetId(
1689
+ widgetId: $widgetId
1690
+ address: $address
1691
+ sortDirection: $sortDirection
1692
+ filter: $filter
1693
+ limit: $limit
1694
+ nextToken: $nextToken
1695
+ ) {
1696
+ items {
1697
+ ${FIELDS_INTERACTION_ENDPOINT}
1698
+ }
1699
+ nextToken
1700
+ }
1701
+ }`;
1702
+ const gqlAPIServiceArguments = {
1703
+ widgetId,
1704
+ };
1705
+ if (address) {
1706
+ gqlAPIServiceArguments.address = address;
1707
+ }
1708
+ if (sortDirection) {
1709
+ gqlAPIServiceArguments.sortDirection = sortDirection;
1710
+ }
1711
+ if (filter) {
1712
+ gqlAPIServiceArguments.filter = filter;
1713
+ }
1714
+ if (limit) {
1715
+ gqlAPIServiceArguments.limit = limit;
1716
+ }
1717
+ if (nextToken) {
1718
+ gqlAPIServiceArguments.nextToken = nextToken;
1719
+ }
1720
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
1721
+ return response.data.listInteractionEndpointsByWidgetId;
1722
+ }
1723
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InteractionEndpointService, deps: [{ token: AppSyncHelperService }], target: i0.ɵɵFactoryTarget.Injectable });
1572
1724
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InteractionEndpointService, providedIn: 'root' });
1573
1725
  }
1574
1726
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InteractionEndpointService, decorators: [{
@@ -1576,7 +1728,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1576
1728
  args: [{
1577
1729
  providedIn: 'root',
1578
1730
  }]
1579
- }] });
1731
+ }], ctorParameters: () => [{ type: AppSyncHelperService }] });
1580
1732
 
1581
1733
  const FIELDS_INTERACTION_WIDGET = `
1582
1734
  id
@@ -1902,8 +2054,9 @@ const FIELDS_INTERACTION_MINIMAL = `
1902
2054
  direction
1903
2055
  status
1904
2056
  last_status
1905
- metadata
1906
2057
  subject
2058
+ metadata
2059
+ notes
1907
2060
  summary
1908
2061
  transcription {
1909
2062
  location
@@ -1919,6 +2072,14 @@ const FIELDS_INTERACTION_MINIMAL = `
1919
2072
  startedAt
1920
2073
  completedAt
1921
2074
  duration
2075
+ aiProcessingStatus
2076
+ aiProcessingCompletedAt
2077
+ postProcessingStatus
2078
+ postProcessingCompletedAt
2079
+ reportProcessingStatus
2080
+ reportProcessingCompletedAt
2081
+ temp_isLocked
2082
+ temp_isAvailableTenantIdUnion
1922
2083
  createdAt
1923
2084
  updatedAt
1924
2085
  deletedAt
@@ -1942,8 +2103,9 @@ const FIELDS_INTERACTION = `
1942
2103
  direction
1943
2104
  status
1944
2105
  last_status
1945
- metadata
1946
2106
  subject
2107
+ metadata
2108
+ notes
1947
2109
  summary
1948
2110
  transcription {
1949
2111
  location
@@ -1959,6 +2121,14 @@ const FIELDS_INTERACTION = `
1959
2121
  startedAt
1960
2122
  completedAt
1961
2123
  duration
2124
+ aiProcessingStatus
2125
+ aiProcessingCompletedAt
2126
+ postProcessingStatus
2127
+ postProcessingCompletedAt
2128
+ reportProcessingStatus
2129
+ reportProcessingCompletedAt
2130
+ temp_isLocked
2131
+ temp_isAvailableTenantIdUnion
1962
2132
  createdAt
1963
2133
  updatedAt
1964
2134
  deletedAt
@@ -1972,7 +2142,7 @@ const FIELDS_INTERACTION_EXPANDED = `
1972
2142
  }
1973
2143
  endpointId
1974
2144
  endpoint {
1975
- ${FIELDS_INTERACTION_ENDPOINT}
2145
+ ${FIELDS_INTERACTION_ENDPOINT_MINIMAL}
1976
2146
  }
1977
2147
  entityConversationId
1978
2148
  entityConversation {
@@ -2014,8 +2184,9 @@ const FIELDS_INTERACTION_EXPANDED = `
2014
2184
  direction
2015
2185
  status
2016
2186
  last_status
2017
- metadata
2018
2187
  subject
2188
+ metadata
2189
+ notes
2019
2190
  summary
2020
2191
  transcription {
2021
2192
  location
@@ -2031,6 +2202,12 @@ const FIELDS_INTERACTION_EXPANDED = `
2031
2202
  startedAt
2032
2203
  completedAt
2033
2204
  duration
2205
+ aiProcessingStatus
2206
+ aiProcessingCompletedAt
2207
+ postProcessingStatus
2208
+ postProcessingCompletedAt
2209
+ reportProcessingStatus
2210
+ reportProcessingCompletedAt
2034
2211
  temp_isLocked
2035
2212
  temp_isAvailableTenantIdUnion
2036
2213
  createdAt
@@ -2143,7 +2320,7 @@ const FIELDS_INTERACTION_MESSAGE_EXPANDED = `
2143
2320
  externalId
2144
2321
  endpointId
2145
2322
  endpoint {
2146
- ${FIELDS_INTERACTION_ENDPOINT}
2323
+ ${FIELDS_INTERACTION_ENDPOINT_MINIMAL}
2147
2324
  }
2148
2325
  campaignId
2149
2326
  campaignFlowNodeId
@@ -3648,5 +3825,5 @@ class CustomValidators {
3648
3825
  * Generated bundle index. Do not edit.
3649
3826
  */
3650
3827
 
3651
- export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
3828
+ export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_ENDPOINT_MINIMAL, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
3652
3829
  //# sourceMappingURL=snugdesk-core.mjs.map