@snugdesk/core 0.2.25 → 0.2.26
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 +227 -97
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +98 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -980,6 +980,8 @@ type User = {
|
|
|
980
980
|
createdAt: number;
|
|
981
981
|
updatedAt: number;
|
|
982
982
|
deletedAt?: number | null;
|
|
983
|
+
updatedByUserId: string;
|
|
984
|
+
updatedByUserSessionId?: string | null;
|
|
983
985
|
};
|
|
984
986
|
type UserNotificationSettings = {
|
|
985
987
|
allowPush?: boolean | null;
|
|
@@ -1003,10 +1005,91 @@ declare enum UserType {
|
|
|
1003
1005
|
SUPERVISOR = "SUPERVISOR",
|
|
1004
1006
|
ADMINISTRATOR = "ADMINISTRATOR"
|
|
1005
1007
|
}
|
|
1008
|
+
type CreateUserInput = {
|
|
1009
|
+
id?: string | null;
|
|
1010
|
+
externalId?: string | null;
|
|
1011
|
+
tenantId: string;
|
|
1012
|
+
email: string;
|
|
1013
|
+
name?: string | null;
|
|
1014
|
+
image?: S3Object | null;
|
|
1015
|
+
phoneNumber?: PhoneNumber | null;
|
|
1016
|
+
preferences?: UserPreferences | null;
|
|
1017
|
+
notificationSettings?: UserNotificationSettings | null;
|
|
1018
|
+
type?: UserType | null;
|
|
1019
|
+
temp_activationToken?: string | null;
|
|
1020
|
+
activatedAt?: number | null;
|
|
1021
|
+
blockedAt?: number | null;
|
|
1022
|
+
createdAt: number;
|
|
1023
|
+
updatedAt: number;
|
|
1024
|
+
deletedAt?: number | null;
|
|
1025
|
+
updatedByUserId: string;
|
|
1026
|
+
updatedByUserSessionId?: string | null;
|
|
1027
|
+
};
|
|
1028
|
+
type UpdateUserInput = {
|
|
1029
|
+
id: string;
|
|
1030
|
+
externalId?: string | null;
|
|
1031
|
+
tenantId?: string | null;
|
|
1032
|
+
email?: string | null;
|
|
1033
|
+
name?: string | null;
|
|
1034
|
+
image?: S3Object | null;
|
|
1035
|
+
phoneNumber?: PhoneNumber | null;
|
|
1036
|
+
preferences?: UserPreferences | null;
|
|
1037
|
+
notificationSettings?: UserNotificationSettings | null;
|
|
1038
|
+
type?: UserType | null;
|
|
1039
|
+
temp_activationToken?: string | null;
|
|
1040
|
+
activatedAt?: number | null;
|
|
1041
|
+
blockedAt?: number | null;
|
|
1042
|
+
createdAt?: number | null;
|
|
1043
|
+
updatedAt?: number | null;
|
|
1044
|
+
deletedAt?: number | null;
|
|
1045
|
+
updatedByUserId?: string | null;
|
|
1046
|
+
updatedByUserSessionId?: string | null;
|
|
1047
|
+
};
|
|
1048
|
+
type ModelUserConditionInput = {
|
|
1049
|
+
externalId?: ModelStringInput | null;
|
|
1050
|
+
tenantId?: ModelIDInput | null;
|
|
1051
|
+
email?: ModelStringInput | null;
|
|
1052
|
+
name?: ModelStringInput | null;
|
|
1053
|
+
type?: ModelUserTypeInput | null;
|
|
1054
|
+
temp_activationToken?: ModelStringInput | null;
|
|
1055
|
+
activatedAt?: ModelIntInput | null;
|
|
1056
|
+
blockedAt?: ModelIntInput | null;
|
|
1057
|
+
createdAt?: ModelIntInput | null;
|
|
1058
|
+
updatedAt?: ModelIntInput | null;
|
|
1059
|
+
deletedAt?: ModelIntInput | null;
|
|
1060
|
+
updatedByUserId?: ModelIDInput | null;
|
|
1061
|
+
updatedByUserSessionId?: ModelIDInput | null;
|
|
1062
|
+
and?: Array<ModelUserConditionInput | null> | null;
|
|
1063
|
+
or?: Array<ModelUserConditionInput | null> | null;
|
|
1064
|
+
not?: ModelUserConditionInput | null;
|
|
1065
|
+
};
|
|
1066
|
+
type ModelUserFilterInput = {
|
|
1067
|
+
id?: ModelIDInput | null;
|
|
1068
|
+
externalId?: ModelStringInput | null;
|
|
1069
|
+
tenantId?: ModelIDInput | null;
|
|
1070
|
+
email?: ModelStringInput | null;
|
|
1071
|
+
name?: ModelStringInput | null;
|
|
1072
|
+
type?: ModelUserTypeInput | null;
|
|
1073
|
+
temp_activationToken?: ModelStringInput | null;
|
|
1074
|
+
activatedAt?: ModelIntInput | null;
|
|
1075
|
+
blockedAt?: ModelIntInput | null;
|
|
1076
|
+
createdAt?: ModelIntInput | null;
|
|
1077
|
+
updatedAt?: ModelIntInput | null;
|
|
1078
|
+
deletedAt?: ModelIntInput | null;
|
|
1079
|
+
updatedByUserId?: ModelIDInput | null;
|
|
1080
|
+
updatedByUserSessionId?: ModelIDInput | null;
|
|
1081
|
+
and?: Array<ModelUserFilterInput | null> | null;
|
|
1082
|
+
or?: Array<ModelUserFilterInput | null> | null;
|
|
1083
|
+
not?: ModelUserFilterInput | null;
|
|
1084
|
+
};
|
|
1006
1085
|
type ModelUserStatusInput = {
|
|
1007
1086
|
eq?: UserStatus | null;
|
|
1008
1087
|
ne?: UserStatus | null;
|
|
1009
1088
|
};
|
|
1089
|
+
type ModelUserTypeInput = {
|
|
1090
|
+
eq?: UserType | null;
|
|
1091
|
+
ne?: UserType | null;
|
|
1092
|
+
};
|
|
1010
1093
|
|
|
1011
1094
|
type Team = {
|
|
1012
1095
|
id: string;
|
|
@@ -2195,10 +2278,10 @@ type __SubscriptionContainer$3 = {
|
|
|
2195
2278
|
declare const FIELDS_INTERACTION_HOST = "\n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n";
|
|
2196
2279
|
declare const FIELDS_INTERACTION_MINIMAL = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n location\n }\n recording {\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n";
|
|
2197
2280
|
declare const FIELDS_INTERACTION = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n location\n }\n recording {\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n";
|
|
2198
|
-
declare const FIELDS_INTERACTION_EXPANDED = "\n id\n tenantId\n widgetId\n widget {\n \n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n entityConversationId\n entityConversation {\n id\n tenantId\n entityId\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n
|
|
2281
|
+
declare const FIELDS_INTERACTION_EXPANDED = "\n id\n tenantId\n widgetId\n widget {\n \n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n entityConversationId\n entityConversation {\n id\n tenantId\n entityId\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n location\n }\n recording {\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n";
|
|
2199
2282
|
declare const FIELDS_INTERACTION_INVITEE = "\n id\n interactionId\n interaction {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n location\n }\n recording {\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n metadata\n name\n image {\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n userId\n isAdministrator\n temp_expiringAt\n expiredAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
2200
2283
|
declare const FIELDS_INTERACTION_ATTENDEE = "\n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
2201
|
-
declare const FIELDS_INTERACTION_ATTENDEE_EXPANDED = "\n id\n interactionId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n interactionWidgetSessionId\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n
|
|
2284
|
+
declare const FIELDS_INTERACTION_ATTENDEE_EXPANDED = "\n id\n interactionId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n interactionWidgetSessionId\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n userId\n user {\n \n id\n externalId\n tenantId\n email\n name\n image {\n location\n }\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
|
|
2202
2285
|
declare const FIELDS_INTERACTION_MESSAGE_ATTACHMENT = "\n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n location\n }\n createdAt\n updatedAt\n deletedAt\n";
|
|
2203
2286
|
declare const FIELDS_INTERACTION_MESSAGE = "\n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
|
|
2204
2287
|
declare const FIELDS_INTERACTION_MESSAGE_EXPANDED = "\n id\n externalId\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n interactionAttendee {\n \n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n body\n metadata\n referenceMessageId\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
|
|
@@ -2231,20 +2314,21 @@ declare class InteractionService {
|
|
|
2231
2314
|
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionService>;
|
|
2232
2315
|
}
|
|
2233
2316
|
|
|
2234
|
-
declare const FIELDS_TEAM = "\n id\n tenantId\n name\n description\n image {\n
|
|
2235
|
-
declare const FIELDS_TEAM_MEMBER = "\n id\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n
|
|
2317
|
+
declare const FIELDS_TEAM = "\n id\n tenantId\n name\n description\n image {\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n";
|
|
2318
|
+
declare const FIELDS_TEAM_MEMBER = "\n id\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n userId\n user {\n \n id\n externalId\n tenantId\n email\n name\n image {\n location\n }\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n isManager\n createdAt\n updatedAt\n deletedAt\n";
|
|
2236
2319
|
declare class TeamService {
|
|
2237
2320
|
private readonly appSyncService;
|
|
2238
2321
|
constructor(appSyncService: AppSyncHelperService);
|
|
2239
2322
|
GetTeam(id: string): Promise<Team>;
|
|
2323
|
+
CreateTeamMember(input: CreateTeamMemberInput, condition?: ModelTeamMemberConditionInput): Promise<TeamMember>;
|
|
2240
2324
|
ListTeamMembershipsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelTeamMemberFilterInput, limit?: number, nextToken?: string): Promise<List<TeamMember>>;
|
|
2241
2325
|
static ɵfac: i0.ɵɵFactoryDeclaration<TeamService, never>;
|
|
2242
2326
|
static ɵprov: i0.ɵɵInjectableDeclaration<TeamService>;
|
|
2243
2327
|
}
|
|
2244
2328
|
|
|
2245
|
-
declare const FIELDS_TENANT = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n location\n }\n preferences {\n timezoneName\n language {\n code\n
|
|
2246
|
-
declare const FIELDS_TENANT_MINIMAL = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n location\n }\n preferences {\n timezoneName\n language {\n code\n
|
|
2247
|
-
declare const FIELDS_TENANT_EXPANDED = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n location\n }\n billingInformation {\n companyName\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n companyIdentificationNumber\n taxIdentificationNumber\n }\n contactInformation {\n name\n email\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n }\n preferences {\n timezoneName\n language {\n code\n
|
|
2329
|
+
declare const FIELDS_TENANT = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n location\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n }\n security {\n domainValidationTokenExpiry\n userValidationTokenExpiry\n secretTokenExpiry\n sessionTokenExpiry\n sessionIdleTimeout\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
|
|
2330
|
+
declare const FIELDS_TENANT_MINIMAL = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n location\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
|
|
2331
|
+
declare const FIELDS_TENANT_EXPANDED = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n location\n }\n billingInformation {\n companyName\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n companyIdentificationNumber\n taxIdentificationNumber\n }\n contactInformation {\n name\n email\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n }\n ssoConfiguration {\n provider\n protocol\n displayName\n configuration\n isEnabled\n isDefaultLoginMode\n }\n security {\n domainValidationTokenExpiry\n userValidationTokenExpiry\n secretTokenExpiry\n sessionTokenExpiry\n sessionIdleTimeout\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
|
|
2248
2332
|
declare const FIELDS_TENANT_COMPLIANCE_DOCUMENT = "\n id\n tenantId\n documentName\n documentType\n documentNumber\n legalEntityName\n issuedBy\n issueDate\n expiryDate\n status\n notes\n file {\n location\n }\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
|
|
2249
2333
|
type __SubscriptionContainer$2 = {
|
|
2250
2334
|
OnTenantById: Tenant;
|
|
@@ -2295,7 +2379,7 @@ declare class UserSessionService {
|
|
|
2295
2379
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserSessionService>;
|
|
2296
2380
|
}
|
|
2297
2381
|
|
|
2298
|
-
declare const FIELDS_USER = "\n id\n externalId\n tenantId\n email\n name\n image {\n
|
|
2382
|
+
declare const FIELDS_USER = "\n id\n externalId\n tenantId\n email\n name\n image {\n location\n }\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
|
|
2299
2383
|
type __SubscriptionContainer = {
|
|
2300
2384
|
OnUserById: User;
|
|
2301
2385
|
};
|
|
@@ -2303,6 +2387,11 @@ declare class UserService {
|
|
|
2303
2387
|
private readonly appSyncService;
|
|
2304
2388
|
constructor(appSyncService: AppSyncHelperService);
|
|
2305
2389
|
GetUser(id: string): Promise<User>;
|
|
2390
|
+
CreateUser(input: CreateUserInput, condition?: ModelUserConditionInput): Promise<User>;
|
|
2391
|
+
UpdateUser(input: UpdateUserInput, condition?: ModelUserConditionInput): Promise<User>;
|
|
2392
|
+
ListUsersByTenantIdAndEmail(tenantId: string, email?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserFilterInput, limit?: number, nextToken?: string): Promise<List<User>>;
|
|
2393
|
+
ListUsersByTenantIdAndExternalId(tenantId: string, externalId?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserFilterInput, limit?: number, nextToken?: string): Promise<List<User>>;
|
|
2394
|
+
ListUsersByTenantIdAndName(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserFilterInput, limit?: number, nextToken?: string): Promise<List<User>>;
|
|
2306
2395
|
OnUserByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer, 'OnUserById'>>>;
|
|
2307
2396
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
2308
2397
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
@@ -2373,4 +2462,4 @@ declare class CustomValidators {
|
|
|
2373
2462
|
}
|
|
2374
2463
|
|
|
2375
2464
|
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_TENANT_COMPLIANCE_DOCUMENT, FIELDS_TENANT_EXPANDED, FIELDS_TENANT_MINIMAL, 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, TenantComplianceDocumentStatus, TenantComplianceDocumentType, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
2376
|
-
export type { AmplifyConfig, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, Currency, EncryptedStorageKeys, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetUserSetting, Language, List, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionEndpointConditionInput, ModelInteractionEndpointFilterInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelProcessingStatusInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTenantComplianceDocumentConditionInput, ModelTenantComplianceDocumentFilterInput, ModelTenantComplianceDocumentStatusInput, ModelTenantComplianceDocumentTypeInput, ModelTenantConditionInput, ModelTicketConditionInput, ModelTicketFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantBillingInformation, TenantComplianceDocument, TenantContactInformation, TenantPreferences, TenantSSOConfiguration, TenantSecurity, Ticket, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionEndpointInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateTenantComplianceDocumentInput, UpdateTenantInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
|
|
2465
|
+
export type { AmplifyConfig, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, CreateUserInput, Currency, EncryptedStorageKeys, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetUserSetting, Language, List, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionEndpointConditionInput, ModelInteractionEndpointFilterInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelProcessingStatusInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTenantComplianceDocumentConditionInput, ModelTenantComplianceDocumentFilterInput, ModelTenantComplianceDocumentStatusInput, ModelTenantComplianceDocumentTypeInput, ModelTenantConditionInput, ModelTicketConditionInput, ModelTicketFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserConditionInput, ModelUserFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, ModelUserTypeInput, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantBillingInformation, TenantComplianceDocument, TenantContactInformation, TenantPreferences, TenantSSOConfiguration, TenantSecurity, Ticket, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionEndpointInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateTenantComplianceDocumentInput, UpdateTenantInput, UpdateUserInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snugdesk/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "Core utility and session management library required for all Snugdesk widgets. Handles authentication, configuration, and shared services.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": ">=19.0.0",
|