@snugdesk/core 0.2.13 → 0.2.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 +74 -0
- package/fesm2022/snugdesk-core.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2253,6 +2253,80 @@ class InteractionService {
|
|
|
2253
2253
|
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2254
2254
|
return response.data.listInteractionsByTenantId;
|
|
2255
2255
|
}
|
|
2256
|
+
async ListInteractionsByEntityId(entityId, createdAt, sortDirection, filter, limit, nextToken) {
|
|
2257
|
+
const statement = `query ListInteractionsByEntityId($entityId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionFilterInput, $limit: Int, $nextToken: String) {
|
|
2258
|
+
listInteractionsByEntityId(
|
|
2259
|
+
entityId: $entityId
|
|
2260
|
+
createdAt: $createdAt
|
|
2261
|
+
sortDirection: $sortDirection
|
|
2262
|
+
filter: $filter
|
|
2263
|
+
limit: $limit
|
|
2264
|
+
nextToken: $nextToken
|
|
2265
|
+
) {
|
|
2266
|
+
items {
|
|
2267
|
+
${FIELDS_INTERACTION}
|
|
2268
|
+
}
|
|
2269
|
+
nextToken
|
|
2270
|
+
}
|
|
2271
|
+
}`;
|
|
2272
|
+
const gqlAPIServiceArguments = {
|
|
2273
|
+
entityId,
|
|
2274
|
+
};
|
|
2275
|
+
if (createdAt) {
|
|
2276
|
+
gqlAPIServiceArguments.createdAt = createdAt;
|
|
2277
|
+
}
|
|
2278
|
+
if (sortDirection) {
|
|
2279
|
+
gqlAPIServiceArguments.sortDirection = sortDirection;
|
|
2280
|
+
}
|
|
2281
|
+
if (filter) {
|
|
2282
|
+
gqlAPIServiceArguments.filter = filter;
|
|
2283
|
+
}
|
|
2284
|
+
if (limit) {
|
|
2285
|
+
gqlAPIServiceArguments.limit = limit;
|
|
2286
|
+
}
|
|
2287
|
+
if (nextToken) {
|
|
2288
|
+
gqlAPIServiceArguments.nextToken = nextToken;
|
|
2289
|
+
}
|
|
2290
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2291
|
+
return response.data.listInteractionsByEntityId;
|
|
2292
|
+
}
|
|
2293
|
+
async ListInteractionsByEntityConversationId(entityConversationId, createdAt, sortDirection, filter, limit, nextToken) {
|
|
2294
|
+
const statement = `query ListInteractionsByEntityConversationId($entityConversationId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionFilterInput, $limit: Int, $nextToken: String) {
|
|
2295
|
+
listInteractionsByEntityConversationId(
|
|
2296
|
+
entityConversationId: $entityConversationId
|
|
2297
|
+
createdAt: $createdAt
|
|
2298
|
+
sortDirection: $sortDirection
|
|
2299
|
+
filter: $filter
|
|
2300
|
+
limit: $limit
|
|
2301
|
+
nextToken: $nextToken
|
|
2302
|
+
) {
|
|
2303
|
+
items {
|
|
2304
|
+
${FIELDS_INTERACTION}
|
|
2305
|
+
}
|
|
2306
|
+
nextToken
|
|
2307
|
+
}
|
|
2308
|
+
}`;
|
|
2309
|
+
const gqlAPIServiceArguments = {
|
|
2310
|
+
entityConversationId,
|
|
2311
|
+
};
|
|
2312
|
+
if (createdAt) {
|
|
2313
|
+
gqlAPIServiceArguments.createdAt = createdAt;
|
|
2314
|
+
}
|
|
2315
|
+
if (sortDirection) {
|
|
2316
|
+
gqlAPIServiceArguments.sortDirection = sortDirection;
|
|
2317
|
+
}
|
|
2318
|
+
if (filter) {
|
|
2319
|
+
gqlAPIServiceArguments.filter = filter;
|
|
2320
|
+
}
|
|
2321
|
+
if (limit) {
|
|
2322
|
+
gqlAPIServiceArguments.limit = limit;
|
|
2323
|
+
}
|
|
2324
|
+
if (nextToken) {
|
|
2325
|
+
gqlAPIServiceArguments.nextToken = nextToken;
|
|
2326
|
+
}
|
|
2327
|
+
const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
|
|
2328
|
+
return response.data.listInteractionsByEntityConversationId;
|
|
2329
|
+
}
|
|
2256
2330
|
async ListInteractionInviteesByUserId(userId, createdAt, sortDirection, filter, limit, nextToken) {
|
|
2257
2331
|
const statement = `query ListInteractionInviteesByUserId($userId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionInviteeFilterInput, $limit: Int, $nextToken: String) {
|
|
2258
2332
|
listInteractionInviteesByUserId(
|