@snugdesk/core 0.2.20 → 0.2.22
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/fesm2022/snugdesk-core.mjs +42 -7
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +60 -15
- package/package.json +1 -1
|
@@ -590,11 +590,13 @@ class SnugdeskAuthenticationService {
|
|
|
590
590
|
this.isAuthenticated$.next(this.isAuthenticated());
|
|
591
591
|
}
|
|
592
592
|
getToken() {
|
|
593
|
-
return sessionStorage.getItem(this.TOKEN_KEY);
|
|
593
|
+
// return sessionStorage.getItem(this.TOKEN_KEY);
|
|
594
|
+
return localStorage.getItem(this.TOKEN_KEY);
|
|
594
595
|
}
|
|
595
596
|
setToken(token) {
|
|
596
597
|
const isValid = this.checkToken(token);
|
|
597
|
-
token ? sessionStorage.setItem(this.TOKEN_KEY, token) : sessionStorage.removeItem(this.TOKEN_KEY);
|
|
598
|
+
// token ? sessionStorage.setItem(this.TOKEN_KEY, token) : sessionStorage.removeItem(this.TOKEN_KEY);
|
|
599
|
+
token ? localStorage.setItem(this.TOKEN_KEY, token) : localStorage.removeItem(this.TOKEN_KEY);
|
|
598
600
|
this.isAuthenticated$.next(isValid);
|
|
599
601
|
}
|
|
600
602
|
checkToken(token) {
|
|
@@ -748,7 +750,8 @@ class SnugdeskAuthenticationService {
|
|
|
748
750
|
console.error(error);
|
|
749
751
|
}
|
|
750
752
|
finally {
|
|
751
|
-
sessionStorage.removeItem(this.TOKEN_KEY);
|
|
753
|
+
// sessionStorage.removeItem(this.TOKEN_KEY);
|
|
754
|
+
localStorage.removeItem(this.TOKEN_KEY);
|
|
752
755
|
this.userSessionSubscription?.unsubscribe();
|
|
753
756
|
this.isAuthenticated$?.next(false);
|
|
754
757
|
this.userSession$?.next(null);
|
|
@@ -1115,6 +1118,13 @@ var ModelSortDirection;
|
|
|
1115
1118
|
ModelSortDirection["ASC"] = "ASC";
|
|
1116
1119
|
ModelSortDirection["DESC"] = "DESC";
|
|
1117
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 = {}));
|
|
1118
1128
|
|
|
1119
1129
|
var InteractionChannel;
|
|
1120
1130
|
(function (InteractionChannel) {
|
|
@@ -1899,8 +1909,9 @@ const FIELDS_INTERACTION_MINIMAL = `
|
|
|
1899
1909
|
direction
|
|
1900
1910
|
status
|
|
1901
1911
|
last_status
|
|
1902
|
-
metadata
|
|
1903
1912
|
subject
|
|
1913
|
+
metadata
|
|
1914
|
+
notes
|
|
1904
1915
|
summary
|
|
1905
1916
|
transcription {
|
|
1906
1917
|
location
|
|
@@ -1916,6 +1927,14 @@ const FIELDS_INTERACTION_MINIMAL = `
|
|
|
1916
1927
|
startedAt
|
|
1917
1928
|
completedAt
|
|
1918
1929
|
duration
|
|
1930
|
+
aiProcessingStatus
|
|
1931
|
+
aiProcessingCompletedAt
|
|
1932
|
+
postProcessingStatus
|
|
1933
|
+
postProcessingCompletedAt
|
|
1934
|
+
reportProcessingStatus
|
|
1935
|
+
reportProcessingCompletedAt
|
|
1936
|
+
temp_isLocked
|
|
1937
|
+
temp_isAvailableTenantIdUnion
|
|
1919
1938
|
createdAt
|
|
1920
1939
|
updatedAt
|
|
1921
1940
|
deletedAt
|
|
@@ -1939,8 +1958,9 @@ const FIELDS_INTERACTION = `
|
|
|
1939
1958
|
direction
|
|
1940
1959
|
status
|
|
1941
1960
|
last_status
|
|
1942
|
-
metadata
|
|
1943
1961
|
subject
|
|
1962
|
+
metadata
|
|
1963
|
+
notes
|
|
1944
1964
|
summary
|
|
1945
1965
|
transcription {
|
|
1946
1966
|
location
|
|
@@ -1956,6 +1976,14 @@ const FIELDS_INTERACTION = `
|
|
|
1956
1976
|
startedAt
|
|
1957
1977
|
completedAt
|
|
1958
1978
|
duration
|
|
1979
|
+
aiProcessingStatus
|
|
1980
|
+
aiProcessingCompletedAt
|
|
1981
|
+
postProcessingStatus
|
|
1982
|
+
postProcessingCompletedAt
|
|
1983
|
+
reportProcessingStatus
|
|
1984
|
+
reportProcessingCompletedAt
|
|
1985
|
+
temp_isLocked
|
|
1986
|
+
temp_isAvailableTenantIdUnion
|
|
1959
1987
|
createdAt
|
|
1960
1988
|
updatedAt
|
|
1961
1989
|
deletedAt
|
|
@@ -2011,8 +2039,9 @@ const FIELDS_INTERACTION_EXPANDED = `
|
|
|
2011
2039
|
direction
|
|
2012
2040
|
status
|
|
2013
2041
|
last_status
|
|
2014
|
-
metadata
|
|
2015
2042
|
subject
|
|
2043
|
+
metadata
|
|
2044
|
+
notes
|
|
2016
2045
|
summary
|
|
2017
2046
|
transcription {
|
|
2018
2047
|
location
|
|
@@ -2028,6 +2057,12 @@ const FIELDS_INTERACTION_EXPANDED = `
|
|
|
2028
2057
|
startedAt
|
|
2029
2058
|
completedAt
|
|
2030
2059
|
duration
|
|
2060
|
+
aiProcessingStatus
|
|
2061
|
+
aiProcessingCompletedAt
|
|
2062
|
+
postProcessingStatus
|
|
2063
|
+
postProcessingCompletedAt
|
|
2064
|
+
reportProcessingStatus
|
|
2065
|
+
reportProcessingCompletedAt
|
|
2031
2066
|
temp_isLocked
|
|
2032
2067
|
temp_isAvailableTenantIdUnion
|
|
2033
2068
|
createdAt
|
|
@@ -3645,5 +3680,5 @@ class CustomValidators {
|
|
|
3645
3680
|
* Generated bundle index. Do not edit.
|
|
3646
3681
|
*/
|
|
3647
3682
|
|
|
3648
|
-
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 };
|
|
3683
|
+
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, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
3649
3684
|
//# sourceMappingURL=snugdesk-core.mjs.map
|