@snugdesk/core 0.2.26 → 0.2.28
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 +51 -6
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +22 -21
- package/package.json +1 -1
|
@@ -1219,6 +1219,8 @@ const FIELDS_ENTITY_TYPE = `
|
|
|
1219
1219
|
name
|
|
1220
1220
|
description
|
|
1221
1221
|
image {
|
|
1222
|
+
key
|
|
1223
|
+
bucket
|
|
1222
1224
|
location
|
|
1223
1225
|
}
|
|
1224
1226
|
createdAt
|
|
@@ -1236,6 +1238,8 @@ const FIELDS_ENTITY = `
|
|
|
1236
1238
|
parentId
|
|
1237
1239
|
name
|
|
1238
1240
|
image {
|
|
1241
|
+
key
|
|
1242
|
+
bucket
|
|
1239
1243
|
location
|
|
1240
1244
|
}
|
|
1241
1245
|
email
|
|
@@ -1287,6 +1291,8 @@ const FIELDS_ENTITY_EXPANDED = `
|
|
|
1287
1291
|
entityTypeId
|
|
1288
1292
|
name
|
|
1289
1293
|
image {
|
|
1294
|
+
key
|
|
1295
|
+
bucket
|
|
1290
1296
|
location
|
|
1291
1297
|
}
|
|
1292
1298
|
isOrganization
|
|
@@ -1307,6 +1313,8 @@ const FIELDS_ENTITY_EXPANDED = `
|
|
|
1307
1313
|
}
|
|
1308
1314
|
name
|
|
1309
1315
|
image {
|
|
1316
|
+
key
|
|
1317
|
+
bucket
|
|
1310
1318
|
location
|
|
1311
1319
|
}
|
|
1312
1320
|
isOrganization
|
|
@@ -1350,6 +1358,8 @@ const FIELDS_ENTITY_MINIMAL = `
|
|
|
1350
1358
|
metadata
|
|
1351
1359
|
name
|
|
1352
1360
|
image {
|
|
1361
|
+
key
|
|
1362
|
+
bucket
|
|
1353
1363
|
location
|
|
1354
1364
|
}
|
|
1355
1365
|
email
|
|
@@ -1954,6 +1964,8 @@ const FIELDS_USER = `
|
|
|
1954
1964
|
email
|
|
1955
1965
|
name
|
|
1956
1966
|
image {
|
|
1967
|
+
key
|
|
1968
|
+
bucket
|
|
1957
1969
|
location
|
|
1958
1970
|
}
|
|
1959
1971
|
phoneNumber {
|
|
@@ -2151,6 +2163,8 @@ const FIELDS_TEAM = `
|
|
|
2151
2163
|
name
|
|
2152
2164
|
description
|
|
2153
2165
|
image {
|
|
2166
|
+
key
|
|
2167
|
+
bucket
|
|
2154
2168
|
location
|
|
2155
2169
|
}
|
|
2156
2170
|
ticketFields
|
|
@@ -2184,9 +2198,7 @@ class TeamService {
|
|
|
2184
2198
|
${FIELDS_TEAM}
|
|
2185
2199
|
}
|
|
2186
2200
|
}`;
|
|
2187
|
-
const gqlAPIServiceArguments = {
|
|
2188
|
-
id,
|
|
2189
|
-
};
|
|
2201
|
+
const gqlAPIServiceArguments = { id };
|
|
2190
2202
|
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2191
2203
|
return response.data.getTeam;
|
|
2192
2204
|
}
|
|
@@ -2196,15 +2208,26 @@ class TeamService {
|
|
|
2196
2208
|
${FIELDS_TEAM_MEMBER}
|
|
2197
2209
|
}
|
|
2198
2210
|
}`;
|
|
2199
|
-
const gqlAPIServiceArguments = {
|
|
2200
|
-
input,
|
|
2201
|
-
};
|
|
2211
|
+
const gqlAPIServiceArguments = { input };
|
|
2202
2212
|
if (condition) {
|
|
2203
2213
|
gqlAPIServiceArguments.condition = condition;
|
|
2204
2214
|
}
|
|
2205
2215
|
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2206
2216
|
return response.data.createTeamMember;
|
|
2207
2217
|
}
|
|
2218
|
+
async UpdateTeamMember(input, condition) {
|
|
2219
|
+
const statement = `mutation UpdateTeamMember($input: UpdateTeamMemberInput!, $condition: ModelTeamMemberConditionInput) {
|
|
2220
|
+
updateTeamMember(input: $input, condition: $condition) {
|
|
2221
|
+
${FIELDS_TEAM_MEMBER}
|
|
2222
|
+
}
|
|
2223
|
+
}`;
|
|
2224
|
+
const gqlAPIServiceArguments = { input };
|
|
2225
|
+
if (condition) {
|
|
2226
|
+
gqlAPIServiceArguments.condition = condition;
|
|
2227
|
+
}
|
|
2228
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2229
|
+
return response.data.updateTeamMember;
|
|
2230
|
+
}
|
|
2208
2231
|
async ListTeamMembershipsByUserId(userId, createdAt, sortDirection, filter, limit, nextToken) {
|
|
2209
2232
|
const statement = `query ListTeamMembershipsByUserId($userId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelTeamMemberFilterInput, $limit: Int, $nextToken: String) {
|
|
2210
2233
|
listTeamMembershipsByUserId(
|
|
@@ -2283,9 +2306,13 @@ const FIELDS_INTERACTION_MINIMAL = `
|
|
|
2283
2306
|
notes
|
|
2284
2307
|
summary
|
|
2285
2308
|
transcription {
|
|
2309
|
+
key
|
|
2310
|
+
bucket
|
|
2286
2311
|
location
|
|
2287
2312
|
}
|
|
2288
2313
|
recording {
|
|
2314
|
+
key
|
|
2315
|
+
bucket
|
|
2289
2316
|
location
|
|
2290
2317
|
}
|
|
2291
2318
|
routeConfiguration {
|
|
@@ -2332,9 +2359,13 @@ const FIELDS_INTERACTION = `
|
|
|
2332
2359
|
notes
|
|
2333
2360
|
summary
|
|
2334
2361
|
transcription {
|
|
2362
|
+
key
|
|
2363
|
+
bucket
|
|
2335
2364
|
location
|
|
2336
2365
|
}
|
|
2337
2366
|
recording {
|
|
2367
|
+
key
|
|
2368
|
+
bucket
|
|
2338
2369
|
location
|
|
2339
2370
|
}
|
|
2340
2371
|
routeConfiguration {
|
|
@@ -2413,9 +2444,13 @@ const FIELDS_INTERACTION_EXPANDED = `
|
|
|
2413
2444
|
notes
|
|
2414
2445
|
summary
|
|
2415
2446
|
transcription {
|
|
2447
|
+
key
|
|
2448
|
+
bucket
|
|
2416
2449
|
location
|
|
2417
2450
|
}
|
|
2418
2451
|
recording {
|
|
2452
|
+
key
|
|
2453
|
+
bucket
|
|
2419
2454
|
location
|
|
2420
2455
|
}
|
|
2421
2456
|
routeConfiguration {
|
|
@@ -2511,6 +2546,8 @@ const FIELDS_INTERACTION_MESSAGE_ATTACHMENT = `
|
|
|
2511
2546
|
size
|
|
2512
2547
|
type
|
|
2513
2548
|
file {
|
|
2549
|
+
key
|
|
2550
|
+
bucket
|
|
2514
2551
|
location
|
|
2515
2552
|
}
|
|
2516
2553
|
createdAt
|
|
@@ -3356,6 +3393,8 @@ const FIELDS_TENANT = `
|
|
|
3356
3393
|
organizationName
|
|
3357
3394
|
websiteURL
|
|
3358
3395
|
image {
|
|
3396
|
+
key
|
|
3397
|
+
bucket
|
|
3359
3398
|
location
|
|
3360
3399
|
}
|
|
3361
3400
|
preferences {
|
|
@@ -3387,6 +3426,8 @@ const FIELDS_TENANT_MINIMAL = `
|
|
|
3387
3426
|
organizationName
|
|
3388
3427
|
websiteURL
|
|
3389
3428
|
image {
|
|
3429
|
+
key
|
|
3430
|
+
bucket
|
|
3390
3431
|
location
|
|
3391
3432
|
}
|
|
3392
3433
|
preferences {
|
|
@@ -3411,6 +3452,8 @@ const FIELDS_TENANT_EXPANDED = `
|
|
|
3411
3452
|
organizationName
|
|
3412
3453
|
websiteURL
|
|
3413
3454
|
image {
|
|
3455
|
+
key
|
|
3456
|
+
bucket
|
|
3414
3457
|
location
|
|
3415
3458
|
}
|
|
3416
3459
|
billingInformation {
|
|
@@ -3482,6 +3525,8 @@ const FIELDS_TENANT_COMPLIANCE_DOCUMENT = `
|
|
|
3482
3525
|
status
|
|
3483
3526
|
notes
|
|
3484
3527
|
file {
|
|
3528
|
+
key
|
|
3529
|
+
bucket
|
|
3485
3530
|
location
|
|
3486
3531
|
}
|
|
3487
3532
|
createdAt
|