@snugdesk/core 0.2.4 → 0.2.5
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-src-lib-models-dynamodb.mjs +25 -0
- package/fesm2022/snugdesk-core-src-lib-models-dynamodb.mjs.map +1 -0
- package/fesm2022/snugdesk-core.mjs +214 -108
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +52 -31
- package/package.json +5 -1
- package/src/lib/models/dynamodb/index.d.ts +176 -0
package/index.d.ts
CHANGED
|
@@ -325,20 +325,6 @@ type List<T> = {
|
|
|
325
325
|
interface SubscriptionResponse<T> {
|
|
326
326
|
value: GraphQLResult<T>;
|
|
327
327
|
}
|
|
328
|
-
type Country = {
|
|
329
|
-
code: string;
|
|
330
|
-
nameEn: string;
|
|
331
|
-
nameLocal?: string | null;
|
|
332
|
-
currency?: CountryCurrency | null;
|
|
333
|
-
officialLanguage?: Language | null;
|
|
334
|
-
callingCode?: string | null;
|
|
335
|
-
region?: string | null;
|
|
336
|
-
flag?: string | null;
|
|
337
|
-
};
|
|
338
|
-
type CountryCurrency = {
|
|
339
|
-
code: string;
|
|
340
|
-
nameEn: string;
|
|
341
|
-
};
|
|
342
328
|
type Language = {
|
|
343
329
|
code: string;
|
|
344
330
|
nameEn: string;
|
|
@@ -609,18 +595,7 @@ declare class InteractionEndpointService {
|
|
|
609
595
|
static ɵprov: i0.ɵɵInjectableDeclaration<InteractionEndpointService>;
|
|
610
596
|
}
|
|
611
597
|
|
|
612
|
-
|
|
613
|
-
id: string;
|
|
614
|
-
tenantId: string;
|
|
615
|
-
name: string;
|
|
616
|
-
description?: string | null;
|
|
617
|
-
image?: S3Object | null;
|
|
618
|
-
ticketFields?: Array<string | null> | null;
|
|
619
|
-
createdAt: number;
|
|
620
|
-
updatedAt: number;
|
|
621
|
-
deletedAt?: number | null;
|
|
622
|
-
};
|
|
623
|
-
|
|
598
|
+
declare const FIELDS_USER = "\n id\n externalId\n tenantId\n email\n name\n image {\n key\n bucket\n location\n }\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\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";
|
|
624
599
|
type UserPreferences = {
|
|
625
600
|
timezoneName?: string | null;
|
|
626
601
|
language?: Language | null;
|
|
@@ -758,6 +733,40 @@ declare class UserSessionService {
|
|
|
758
733
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserSessionService>;
|
|
759
734
|
}
|
|
760
735
|
|
|
736
|
+
type Team = {
|
|
737
|
+
id: string;
|
|
738
|
+
tenantId: string;
|
|
739
|
+
name: string;
|
|
740
|
+
description?: string | null;
|
|
741
|
+
image?: S3Object | null;
|
|
742
|
+
ticketFields?: Array<string | null> | null;
|
|
743
|
+
createdAt: number;
|
|
744
|
+
updatedAt: number;
|
|
745
|
+
deletedAt?: number | null;
|
|
746
|
+
};
|
|
747
|
+
type TeamMember = {
|
|
748
|
+
id: string;
|
|
749
|
+
teamId: string;
|
|
750
|
+
team?: Team | null;
|
|
751
|
+
userId: string;
|
|
752
|
+
isManager: boolean;
|
|
753
|
+
createdAt: number;
|
|
754
|
+
updatedAt: number;
|
|
755
|
+
deletedAt?: number | null;
|
|
756
|
+
};
|
|
757
|
+
type ModelTeamMemberFilterInput = {
|
|
758
|
+
id?: ModelIDInput | null;
|
|
759
|
+
teamId?: ModelIDInput | null;
|
|
760
|
+
userId?: ModelIDInput | null;
|
|
761
|
+
isManager?: ModelBooleanInput | null;
|
|
762
|
+
createdAt?: ModelIntInput | null;
|
|
763
|
+
updatedAt?: ModelIntInput | null;
|
|
764
|
+
deletedAt?: ModelIntInput | null;
|
|
765
|
+
and?: Array<ModelTeamMemberFilterInput | null> | null;
|
|
766
|
+
or?: Array<ModelTeamMemberFilterInput | null> | null;
|
|
767
|
+
not?: ModelTeamMemberFilterInput | null;
|
|
768
|
+
};
|
|
769
|
+
|
|
761
770
|
declare enum InteractionChannel {
|
|
762
771
|
EMAIL = "EMAIL",
|
|
763
772
|
PHONE = "PHONE",
|
|
@@ -789,10 +798,13 @@ declare enum InteractionStatus {
|
|
|
789
798
|
}
|
|
790
799
|
declare enum InteractionProvider {
|
|
791
800
|
AVAYA_IPO = "AVAYA_IPO",
|
|
792
|
-
|
|
793
|
-
|
|
801
|
+
FACEBOOK = "FACEBOOK",
|
|
802
|
+
INSTAGRAM = "INSTAGRAM",
|
|
803
|
+
OZONETEL = "OZONETEL",
|
|
804
|
+
SNUGDESK = "SNUGDESK",
|
|
794
805
|
TELEGRAM = "TELEGRAM",
|
|
795
|
-
|
|
806
|
+
TELNYX = "TELNYX",
|
|
807
|
+
WHATSAPP = "WHATSAPP"
|
|
796
808
|
}
|
|
797
809
|
type InteractionRouteConfiguration = {
|
|
798
810
|
teamId?: string | null;
|
|
@@ -1364,6 +1376,15 @@ declare class EntityConversationService {
|
|
|
1364
1376
|
static ɵprov: i0.ɵɵInjectableDeclaration<EntityConversationService>;
|
|
1365
1377
|
}
|
|
1366
1378
|
|
|
1379
|
+
declare class TeamService {
|
|
1380
|
+
private readonly appSyncService;
|
|
1381
|
+
constructor(appSyncService: AppSyncHelperService);
|
|
1382
|
+
GetTeam(id: string): Promise<Team>;
|
|
1383
|
+
ListTeamMembershipsByUserId(userId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelTeamMemberFilterInput, limit?: number, nextToken?: string): Promise<List<TeamMember>>;
|
|
1384
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TeamService, never>;
|
|
1385
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TeamService>;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1367
1388
|
declare class CustomValidators {
|
|
1368
1389
|
#private;
|
|
1369
1390
|
/**
|
|
@@ -1393,5 +1414,5 @@ declare class CleanDeep {
|
|
|
1393
1414
|
static clean(obj: any): typeof obj;
|
|
1394
1415
|
}
|
|
1395
1416
|
|
|
1396
|
-
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,
|
|
1397
|
-
export type { AmplifyConfig,
|
|
1417
|
+
export { AMPLIFY_CONFIG, AppSyncHelperService, CleanDeep, CustomPipesModule, CustomValidators, DomainNamePipe, EntityConversationService, EntityService, ErrorComponent, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_INTERACTION_WIDGET, FIELDS_USER, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, OpenSearchHelperService, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, TeamService, TenantService, UserService, UserSessionService, UserStatus, UserType, provideAmplifyConfig };
|
|
1418
|
+
export type { AmplifyConfig, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, OpenSearchHit, OpenSearchResponse, S3Config, S3Credentials, 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.2.
|
|
3
|
+
"version": "0.2.5",
|
|
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",
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
".": {
|
|
29
29
|
"types": "./index.d.ts",
|
|
30
30
|
"default": "./fesm2022/snugdesk-core.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./src/lib/models/dynamodb": {
|
|
33
|
+
"types": "./src/lib/models/dynamodb/index.d.ts",
|
|
34
|
+
"default": "./fesm2022/snugdesk-core-src-lib-models-dynamodb.mjs"
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { GraphQLResult } from '@aws-amplify/api-graphql';
|
|
2
|
+
|
|
3
|
+
declare enum ModelAttributeTypes {
|
|
4
|
+
binary = "binary",
|
|
5
|
+
binarySet = "binarySet",
|
|
6
|
+
bool = "bool",
|
|
7
|
+
list = "list",
|
|
8
|
+
map = "map",
|
|
9
|
+
number = "number",
|
|
10
|
+
numberSet = "numberSet",
|
|
11
|
+
string = "string",
|
|
12
|
+
stringSet = "stringSet",
|
|
13
|
+
_null = "_null"
|
|
14
|
+
}
|
|
15
|
+
declare enum ModelSortDirection {
|
|
16
|
+
ASC = "ASC",
|
|
17
|
+
DESC = "DESC"
|
|
18
|
+
}
|
|
19
|
+
type ModelSizeInput = {
|
|
20
|
+
ne?: number | null;
|
|
21
|
+
eq?: number | null;
|
|
22
|
+
le?: number | null;
|
|
23
|
+
lt?: number | null;
|
|
24
|
+
ge?: number | null;
|
|
25
|
+
gt?: number | null;
|
|
26
|
+
between?: Array<number | null> | null;
|
|
27
|
+
};
|
|
28
|
+
type ModelBooleanInput = {
|
|
29
|
+
ne?: boolean | null;
|
|
30
|
+
eq?: boolean | null;
|
|
31
|
+
attributeExists?: boolean | null;
|
|
32
|
+
attributeType?: ModelAttributeTypes | null;
|
|
33
|
+
};
|
|
34
|
+
type ModelIDInput = {
|
|
35
|
+
ne?: string | null;
|
|
36
|
+
eq?: string | null;
|
|
37
|
+
le?: string | null;
|
|
38
|
+
lt?: string | null;
|
|
39
|
+
ge?: string | null;
|
|
40
|
+
gt?: string | null;
|
|
41
|
+
contains?: string | null;
|
|
42
|
+
notContains?: string | null;
|
|
43
|
+
between?: Array<string | null> | null;
|
|
44
|
+
beginsWith?: string | null;
|
|
45
|
+
attributeExists?: boolean | null;
|
|
46
|
+
attributeType?: ModelAttributeTypes | null;
|
|
47
|
+
size?: ModelSizeInput | null;
|
|
48
|
+
};
|
|
49
|
+
type ModelIntInput = {
|
|
50
|
+
ne?: number | null;
|
|
51
|
+
eq?: number | null;
|
|
52
|
+
le?: number | null;
|
|
53
|
+
lt?: number | null;
|
|
54
|
+
ge?: number | null;
|
|
55
|
+
gt?: number | null;
|
|
56
|
+
between?: Array<number | null> | null;
|
|
57
|
+
attributeExists?: boolean | null;
|
|
58
|
+
attributeType?: ModelAttributeTypes | null;
|
|
59
|
+
};
|
|
60
|
+
type ModelStringInput = {
|
|
61
|
+
ne?: string | null;
|
|
62
|
+
eq?: string | null;
|
|
63
|
+
le?: string | null;
|
|
64
|
+
lt?: string | null;
|
|
65
|
+
ge?: string | null;
|
|
66
|
+
gt?: string | null;
|
|
67
|
+
contains?: string | null;
|
|
68
|
+
notContains?: string | null;
|
|
69
|
+
between?: Array<string | null> | null;
|
|
70
|
+
beginsWith?: string | null;
|
|
71
|
+
attributeExists?: boolean | null;
|
|
72
|
+
attributeType?: ModelAttributeTypes | null;
|
|
73
|
+
size?: ModelSizeInput | null;
|
|
74
|
+
};
|
|
75
|
+
type ModelIDKeyConditionInput = {
|
|
76
|
+
eq?: string | null;
|
|
77
|
+
le?: string | null;
|
|
78
|
+
lt?: string | null;
|
|
79
|
+
ge?: string | null;
|
|
80
|
+
gt?: string | null;
|
|
81
|
+
between?: Array<string | null> | null;
|
|
82
|
+
beginsWith?: string | null;
|
|
83
|
+
};
|
|
84
|
+
type ModelIntKeyConditionInput = {
|
|
85
|
+
eq?: number | null;
|
|
86
|
+
le?: number | null;
|
|
87
|
+
lt?: number | null;
|
|
88
|
+
ge?: number | null;
|
|
89
|
+
gt?: number | null;
|
|
90
|
+
between?: Array<number | null> | null;
|
|
91
|
+
};
|
|
92
|
+
type ModelStringKeyConditionInput = {
|
|
93
|
+
eq?: string | null;
|
|
94
|
+
le?: string | null;
|
|
95
|
+
lt?: string | null;
|
|
96
|
+
ge?: string | null;
|
|
97
|
+
gt?: string | null;
|
|
98
|
+
between?: Array<string | null> | null;
|
|
99
|
+
beginsWith?: string | null;
|
|
100
|
+
};
|
|
101
|
+
type List<T> = {
|
|
102
|
+
items: Array<T | null>;
|
|
103
|
+
nextToken?: string | null;
|
|
104
|
+
};
|
|
105
|
+
interface SubscriptionResponse<T> {
|
|
106
|
+
value: GraphQLResult<T>;
|
|
107
|
+
}
|
|
108
|
+
type Country = {
|
|
109
|
+
code: string;
|
|
110
|
+
nameEn: string;
|
|
111
|
+
nameLocal?: string | null;
|
|
112
|
+
currency?: CountryCurrency | null;
|
|
113
|
+
officialLanguage?: Language | null;
|
|
114
|
+
callingCode?: string | null;
|
|
115
|
+
region?: string | null;
|
|
116
|
+
flag?: string | null;
|
|
117
|
+
};
|
|
118
|
+
type CountryCurrency = {
|
|
119
|
+
code: string;
|
|
120
|
+
nameEn: string;
|
|
121
|
+
};
|
|
122
|
+
type Language = {
|
|
123
|
+
code: string;
|
|
124
|
+
nameEn: string;
|
|
125
|
+
nameLocal?: string | null;
|
|
126
|
+
};
|
|
127
|
+
type PhoneNumber = {
|
|
128
|
+
countryCode?: string | null;
|
|
129
|
+
dialCode?: string | null;
|
|
130
|
+
e164Number?: string | null;
|
|
131
|
+
internationalNumber?: string | null;
|
|
132
|
+
nationalNumber?: string | null;
|
|
133
|
+
number?: string | null;
|
|
134
|
+
};
|
|
135
|
+
type S3Object = {
|
|
136
|
+
key: string;
|
|
137
|
+
bucket: string;
|
|
138
|
+
location: string;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
type Team = {
|
|
142
|
+
id: string;
|
|
143
|
+
tenantId: string;
|
|
144
|
+
name: string;
|
|
145
|
+
description?: string | null;
|
|
146
|
+
image?: S3Object | null;
|
|
147
|
+
ticketFields?: Array<string | null> | null;
|
|
148
|
+
createdAt: number;
|
|
149
|
+
updatedAt: number;
|
|
150
|
+
deletedAt?: number | null;
|
|
151
|
+
};
|
|
152
|
+
type TeamMember = {
|
|
153
|
+
id: string;
|
|
154
|
+
teamId: string;
|
|
155
|
+
team?: Team | null;
|
|
156
|
+
userId: string;
|
|
157
|
+
isManager: boolean;
|
|
158
|
+
createdAt: number;
|
|
159
|
+
updatedAt: number;
|
|
160
|
+
deletedAt?: number | null;
|
|
161
|
+
};
|
|
162
|
+
type ModelTeamMemberFilterInput = {
|
|
163
|
+
id?: ModelIDInput | null;
|
|
164
|
+
teamId?: ModelIDInput | null;
|
|
165
|
+
userId?: ModelIDInput | null;
|
|
166
|
+
isManager?: ModelBooleanInput | null;
|
|
167
|
+
createdAt?: ModelIntInput | null;
|
|
168
|
+
updatedAt?: ModelIntInput | null;
|
|
169
|
+
deletedAt?: ModelIntInput | null;
|
|
170
|
+
and?: Array<ModelTeamMemberFilterInput | null> | null;
|
|
171
|
+
or?: Array<ModelTeamMemberFilterInput | null> | null;
|
|
172
|
+
not?: ModelTeamMemberFilterInput | null;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export { ModelAttributeTypes, ModelSortDirection };
|
|
176
|
+
export type { Country, CountryCurrency, Language, List, ModelBooleanInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamMemberFilterInput, PhoneNumber, S3Object, SubscriptionResponse, Team, TeamMember };
|