@snugdesk/core 0.2.13 → 0.2.16

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.
@@ -1903,6 +1903,9 @@ const FIELDS_INTERACTION = `
1903
1903
  last_status
1904
1904
  metadata
1905
1905
  subject
1906
+ summary
1907
+ transcription
1908
+ recording
1906
1909
  routeConfiguration {
1907
1910
  teamId
1908
1911
  routingLogic
@@ -1911,7 +1914,6 @@ const FIELDS_INTERACTION = `
1911
1914
  startedAt
1912
1915
  completedAt
1913
1916
  duration
1914
- summary
1915
1917
  createdAt
1916
1918
  updatedAt
1917
1919
  deletedAt
@@ -1969,6 +1971,9 @@ const FIELDS_INTERACTION_EXPANDED = `
1969
1971
  last_status
1970
1972
  metadata
1971
1973
  subject
1974
+ summary
1975
+ transcription
1976
+ recording
1972
1977
  routeConfiguration {
1973
1978
  teamId
1974
1979
  routingLogic
@@ -1977,7 +1982,6 @@ const FIELDS_INTERACTION_EXPANDED = `
1977
1982
  startedAt
1978
1983
  completedAt
1979
1984
  duration
1980
- summary
1981
1985
  temp_isLocked
1982
1986
  temp_isAvailableTenantIdUnion
1983
1987
  createdAt
@@ -2253,6 +2257,80 @@ class InteractionService {
2253
2257
  const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
2254
2258
  return response.data.listInteractionsByTenantId;
2255
2259
  }
2260
+ async ListInteractionsByEntityId(entityId, createdAt, sortDirection, filter, limit, nextToken) {
2261
+ const statement = `query ListInteractionsByEntityId($entityId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionFilterInput, $limit: Int, $nextToken: String) {
2262
+ listInteractionsByEntityId(
2263
+ entityId: $entityId
2264
+ createdAt: $createdAt
2265
+ sortDirection: $sortDirection
2266
+ filter: $filter
2267
+ limit: $limit
2268
+ nextToken: $nextToken
2269
+ ) {
2270
+ items {
2271
+ ${FIELDS_INTERACTION}
2272
+ }
2273
+ nextToken
2274
+ }
2275
+ }`;
2276
+ const gqlAPIServiceArguments = {
2277
+ entityId,
2278
+ };
2279
+ if (createdAt) {
2280
+ gqlAPIServiceArguments.createdAt = createdAt;
2281
+ }
2282
+ if (sortDirection) {
2283
+ gqlAPIServiceArguments.sortDirection = sortDirection;
2284
+ }
2285
+ if (filter) {
2286
+ gqlAPIServiceArguments.filter = filter;
2287
+ }
2288
+ if (limit) {
2289
+ gqlAPIServiceArguments.limit = limit;
2290
+ }
2291
+ if (nextToken) {
2292
+ gqlAPIServiceArguments.nextToken = nextToken;
2293
+ }
2294
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
2295
+ return response.data.listInteractionsByEntityId;
2296
+ }
2297
+ async ListInteractionsByEntityConversationId(entityConversationId, createdAt, sortDirection, filter, limit, nextToken) {
2298
+ const statement = `query ListInteractionsByEntityConversationId($entityConversationId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionFilterInput, $limit: Int, $nextToken: String) {
2299
+ listInteractionsByEntityConversationId(
2300
+ entityConversationId: $entityConversationId
2301
+ createdAt: $createdAt
2302
+ sortDirection: $sortDirection
2303
+ filter: $filter
2304
+ limit: $limit
2305
+ nextToken: $nextToken
2306
+ ) {
2307
+ items {
2308
+ ${FIELDS_INTERACTION}
2309
+ }
2310
+ nextToken
2311
+ }
2312
+ }`;
2313
+ const gqlAPIServiceArguments = {
2314
+ entityConversationId,
2315
+ };
2316
+ if (createdAt) {
2317
+ gqlAPIServiceArguments.createdAt = createdAt;
2318
+ }
2319
+ if (sortDirection) {
2320
+ gqlAPIServiceArguments.sortDirection = sortDirection;
2321
+ }
2322
+ if (filter) {
2323
+ gqlAPIServiceArguments.filter = filter;
2324
+ }
2325
+ if (limit) {
2326
+ gqlAPIServiceArguments.limit = limit;
2327
+ }
2328
+ if (nextToken) {
2329
+ gqlAPIServiceArguments.nextToken = nextToken;
2330
+ }
2331
+ const response = await this.appSyncService.query(statement, gqlAPIServiceArguments);
2332
+ return response.data.listInteractionsByEntityConversationId;
2333
+ }
2256
2334
  async ListInteractionInviteesByUserId(userId, createdAt, sortDirection, filter, limit, nextToken) {
2257
2335
  const statement = `query ListInteractionInviteesByUserId($userId: ID!, $createdAt: ModelIntKeyConditionInput, $sortDirection: ModelSortDirection, $filter: ModelInteractionInviteeFilterInput, $limit: Int, $nextToken: String) {
2258
2336
  listInteractionInviteesByUserId(