@snugdesk/core 0.0.13 → 0.0.15
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.map +1 -1
- package/index.d.ts +23 -62
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -291,6 +291,10 @@ type ModelStringKeyConditionInput = {
|
|
|
291
291
|
between?: Array<string | null> | null;
|
|
292
292
|
beginsWith?: string | null;
|
|
293
293
|
};
|
|
294
|
+
type List<T> = {
|
|
295
|
+
items: Array<T | null>;
|
|
296
|
+
nextToken?: string | null;
|
|
297
|
+
};
|
|
294
298
|
interface SubscriptionResponse<T> {
|
|
295
299
|
value: GraphQLResult<T>;
|
|
296
300
|
}
|
|
@@ -299,7 +303,7 @@ type Country = {
|
|
|
299
303
|
nameEn: string;
|
|
300
304
|
nameLocal?: string | null;
|
|
301
305
|
currency?: CountryCurrency | null;
|
|
302
|
-
officialLanguage?:
|
|
306
|
+
officialLanguage?: Language | null;
|
|
303
307
|
callingCode?: string | null;
|
|
304
308
|
region?: string | null;
|
|
305
309
|
flag?: string | null;
|
|
@@ -308,11 +312,6 @@ type CountryCurrency = {
|
|
|
308
312
|
code: string;
|
|
309
313
|
nameEn: string;
|
|
310
314
|
};
|
|
311
|
-
type CountryLanguage = {
|
|
312
|
-
code: string;
|
|
313
|
-
nameEn: string;
|
|
314
|
-
nameLocal?: string | null;
|
|
315
|
-
};
|
|
316
315
|
type Language = {
|
|
317
316
|
code: string;
|
|
318
317
|
nameEn: string;
|
|
@@ -427,18 +426,14 @@ type ModelEntityFilterInput = {
|
|
|
427
426
|
or?: Array<ModelEntityFilterInput | null> | null;
|
|
428
427
|
not?: ModelEntityFilterInput | null;
|
|
429
428
|
};
|
|
430
|
-
type ListEntities = {
|
|
431
|
-
items: Array<Entity | null>;
|
|
432
|
-
nextToken?: string | null;
|
|
433
|
-
};
|
|
434
429
|
declare class EntityService {
|
|
435
430
|
private readonly appSyncService;
|
|
436
431
|
constructor(appSyncService: AppSyncHelperService);
|
|
437
432
|
GetEntity(id: string): Promise<Entity>;
|
|
438
433
|
CreateEntity(input: CreateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
|
|
439
434
|
UpdateEntity(input: UpdateEntityInput, condition?: ModelEntityConditionInput): Promise<Entity>;
|
|
440
|
-
ListEntitiesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<
|
|
441
|
-
ListEntitiesByTenantIdAndPhoneNumberE164(tenantId: string, phoneNumberE164?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<
|
|
435
|
+
ListEntitiesByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
|
|
436
|
+
ListEntitiesByTenantIdAndPhoneNumberE164(tenantId: string, phoneNumberE164?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityFilterInput, limit?: number, nextToken?: string): Promise<List<Entity>>;
|
|
442
437
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntityService, never>;
|
|
443
438
|
static ɵprov: i0.ɵɵInjectableDeclaration<EntityService>;
|
|
444
439
|
}
|
|
@@ -502,10 +497,6 @@ type InteractionWidget = {
|
|
|
502
497
|
updatedAt: number;
|
|
503
498
|
deletedAt?: number | null;
|
|
504
499
|
};
|
|
505
|
-
type ListInteractionWidgets = {
|
|
506
|
-
items: Array<InteractionWidget | null>;
|
|
507
|
-
nextToken?: string | null;
|
|
508
|
-
};
|
|
509
500
|
type ModelInteractionWidgetConditionInput = {
|
|
510
501
|
tenantId?: ModelIDInput | null;
|
|
511
502
|
channel?: ModelInteractionChannelInput | null;
|
|
@@ -554,7 +545,7 @@ declare class InteractionWidgetService {
|
|
|
554
545
|
private readonly appSyncService;
|
|
555
546
|
constructor(appSyncService: AppSyncHelperService);
|
|
556
547
|
GetInteractionWidget(id: string): Promise<InteractionWidget>;
|
|
557
|
-
ListInteractionWidgetsByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionWidgetFilterInput, limit?: number, nextToken?: string): Promise<
|
|
548
|
+
ListInteractionWidgetsByTenantId(tenantId: string, name?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionWidgetFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionWidget>>;
|
|
558
549
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionWidgetService, never>;
|
|
559
550
|
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionWidgetService>;
|
|
560
551
|
}
|
|
@@ -675,10 +666,6 @@ type UserSession = {
|
|
|
675
666
|
loggedOutAt?: number | null;
|
|
676
667
|
blockedAt?: number | null;
|
|
677
668
|
};
|
|
678
|
-
type ListUserSessions = {
|
|
679
|
-
items: Array<UserSession | null>;
|
|
680
|
-
nextToken?: string | null;
|
|
681
|
-
};
|
|
682
669
|
type UpdateUserSessionInput = {
|
|
683
670
|
id: string;
|
|
684
671
|
tenantId?: string | null;
|
|
@@ -737,7 +724,7 @@ declare class UserSessionService {
|
|
|
737
724
|
constructor(appSyncService: AppSyncHelperService);
|
|
738
725
|
getUserSessionById(id: string): Promise<UserSession>;
|
|
739
726
|
GetUserSession(id: string): Promise<UserSession>;
|
|
740
|
-
ListUserSessionsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserSessionFilterInput, limit?: number, nextToken?: string): Promise<
|
|
727
|
+
ListUserSessionsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelUserSessionFilterInput, limit?: number, nextToken?: string): Promise<List<UserSession>>;
|
|
741
728
|
UpdateUserSession(input: UpdateUserSessionInput, condition?: ModelUserSessionConditionInput): Promise<UserSession>;
|
|
742
729
|
OnUserSessionByIdListener(id: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$2, 'OnUserSessionById'>>>;
|
|
743
730
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserSessionService, never>;
|
|
@@ -895,7 +882,7 @@ type InteractionMessage = {
|
|
|
895
882
|
createdAt: number;
|
|
896
883
|
updatedAt: number;
|
|
897
884
|
deletedAt?: number | null;
|
|
898
|
-
messageAttachments?:
|
|
885
|
+
messageAttachments?: List<InteractionMessageAttachment> | null;
|
|
899
886
|
temp_isSending?: boolean | null;
|
|
900
887
|
};
|
|
901
888
|
type InteractionMessageAttachment = {
|
|
@@ -911,22 +898,6 @@ type InteractionMessageAttachment = {
|
|
|
911
898
|
updatedAt: number;
|
|
912
899
|
deletedAt?: number | null;
|
|
913
900
|
};
|
|
914
|
-
type ListInteractionInvitees = {
|
|
915
|
-
items: Array<InteractionInvitee | null>;
|
|
916
|
-
nextToken?: string | null;
|
|
917
|
-
};
|
|
918
|
-
type ListInteractionAttendees = {
|
|
919
|
-
items: Array<InteractionAttendee | null>;
|
|
920
|
-
nextToken?: string | null;
|
|
921
|
-
};
|
|
922
|
-
type ListInteractionMessages = {
|
|
923
|
-
items: Array<InteractionMessage | null>;
|
|
924
|
-
nextToken?: string | null;
|
|
925
|
-
};
|
|
926
|
-
type ListInteractionMessageAttachments = {
|
|
927
|
-
items: Array<InteractionMessageAttachment | null>;
|
|
928
|
-
nextToken?: string | null;
|
|
929
|
-
};
|
|
930
901
|
type CreateInteractionInput = {
|
|
931
902
|
id?: string | null;
|
|
932
903
|
tenantId: string;
|
|
@@ -1226,13 +1197,13 @@ declare class InteractionService {
|
|
|
1226
1197
|
CreateInteractionAttendee(input: CreateInteractionAttendeeInput, condition?: ModelInteractionAttendeeConditionInput): Promise<InteractionAttendee>;
|
|
1227
1198
|
CreateInteractionMessage(input: CreateInteractionMessageInput, condition?: ModelInteractionMessageConditionInput): Promise<InteractionMessage>;
|
|
1228
1199
|
CreateInteractionMessageAttachment(input: CreateInteractionMessageAttachmentInput, condition?: ModelInteractionMessageAttachmentConditionInput): Promise<InteractionMessageAttachment>;
|
|
1229
|
-
ListInteractionInviteesByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionInviteeFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1230
|
-
ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1231
|
-
ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1232
|
-
ListInteractionMessagesByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1233
|
-
ListInteractionMessagesByExternalMessageId(externalMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1234
|
-
ListInteractionMessagesByInteractionAttendeeId(interactionAttendeeId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1235
|
-
ListInteractionMessageAttachmentsByInteractionMessageId(interactionMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageAttachmentFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1200
|
+
ListInteractionInviteesByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionInviteeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionInvitee>>;
|
|
1201
|
+
ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
|
|
1202
|
+
ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
|
|
1203
|
+
ListInteractionMessagesByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
|
|
1204
|
+
ListInteractionMessagesByExternalMessageId(externalMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
|
|
1205
|
+
ListInteractionMessagesByInteractionAttendeeId(interactionAttendeeId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
|
|
1206
|
+
ListInteractionMessageAttachmentsByInteractionMessageId(interactionMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageAttachmentFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessageAttachment>>;
|
|
1236
1207
|
OnInteractionInviteeByUserIdListener(userId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionInviteeByUserId'>>>;
|
|
1237
1208
|
OnInteractionMessageByEntityConversationIdListener(entityConversationId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$1, 'OnInteractionMessageByEntityConversationId'>>>;
|
|
1238
1209
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionService, never>;
|
|
@@ -1259,18 +1230,8 @@ type EntityConversation = {
|
|
|
1259
1230
|
createdAt: number;
|
|
1260
1231
|
updatedAt: number;
|
|
1261
1232
|
deletedAt?: number | null;
|
|
1262
|
-
interactions?:
|
|
1263
|
-
|
|
1264
|
-
nextToken?: string | null;
|
|
1265
|
-
} | null;
|
|
1266
|
-
messages?: {
|
|
1267
|
-
items: Array<InteractionMessage | null>;
|
|
1268
|
-
nextToken?: string | null;
|
|
1269
|
-
} | null;
|
|
1270
|
-
};
|
|
1271
|
-
type ListEntityConversations = {
|
|
1272
|
-
items: Array<EntityConversation | null>;
|
|
1273
|
-
nextToken?: string | null;
|
|
1233
|
+
interactions?: List<Interaction> | null;
|
|
1234
|
+
messages?: List<InteractionMessage> | null;
|
|
1274
1235
|
};
|
|
1275
1236
|
type CreateEntityConversationInput = {
|
|
1276
1237
|
id?: string | null;
|
|
@@ -1368,9 +1329,9 @@ declare class EntityConversationService {
|
|
|
1368
1329
|
GetEntityConversation(id: string): Promise<EntityConversation>;
|
|
1369
1330
|
CreateEntityConversation(input: CreateEntityConversationInput, condition?: ModelEntityConversationConditionInput): Promise<EntityConversation>;
|
|
1370
1331
|
UpdateEntityConversation(input: UpdateEntityConversationInput, condition?: ModelEntityConversationConditionInput): Promise<EntityConversation>;
|
|
1371
|
-
ListEntityConversationsByTenantIdAndEntityAddress(tenantId: string, entityAddress?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1372
|
-
ListEntityConversationsByTenantIdAndArchivedAt(tenantId: string, archivedAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1373
|
-
ListEntityConversationsByTenantIdAndLastMessageAt(tenantId: string, lastMessageAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<
|
|
1332
|
+
ListEntityConversationsByTenantIdAndEntityAddress(tenantId: string, entityAddress?: ModelStringKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
|
|
1333
|
+
ListEntityConversationsByTenantIdAndArchivedAt(tenantId: string, archivedAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
|
|
1334
|
+
ListEntityConversationsByTenantIdAndLastMessageAt(tenantId: string, lastMessageAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelEntityConversationFilterInput, limit?: number, nextToken?: string): Promise<List<EntityConversation>>;
|
|
1374
1335
|
OnEntityConversationByTenantIdListener(tenantId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer, 'OnEntityConversationByTenantId'>>>;
|
|
1375
1336
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntityConversationService, never>;
|
|
1376
1337
|
static ɵprov: i0.ɵɵInjectableDeclaration<EntityConversationService>;
|
|
@@ -1406,4 +1367,4 @@ declare class CleanDeep {
|
|
|
1406
1367
|
}
|
|
1407
1368
|
|
|
1408
1369
|
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_INTERACTION_WIDGET, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, TenantService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
1409
|
-
export type { AmplifyConfig, Country, CountryCurrency,
|
|
1370
|
+
export type { AmplifyConfig, Country, CountryCurrency, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, Language, List, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, Tenant, TenantPreferences, TenantSecurity, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snugdesk/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
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",
|