@microsoft/ocsdk 0.3.3-main.3b18e85 → 0.3.3-main.8a81a1c

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.
@@ -0,0 +1,19 @@
1
+ export declare type RequestTimeoutConfig = {
2
+ [key: string]: number;
3
+ getChatConfig: number;
4
+ getLWIDetails: number;
5
+ getChatToken: number;
6
+ sessionInit: number;
7
+ sessionClose: number;
8
+ getReconnectableChats: number;
9
+ getReconnectAvailability: number;
10
+ submitPostChatResponse: number;
11
+ getSurveyInviteLink: number;
12
+ getChatTranscripts: number;
13
+ emailTranscript: number;
14
+ fetchDataMaskingInfo: number;
15
+ makeSecondaryChannelEventRequest: number;
16
+ getAgentAvailability: number;
17
+ sendTypingIndicator: number;
18
+ validateAuthChatRecordTimeout: number;
19
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiJvY3NkazovLy8iLCJzb3VyY2VzQ29udGVudCI6W119
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestTimeoutConfig.js","sourceRoot":"","sources":["../../src/Common/RequestTimeoutConfig.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
+ import { RequestTimeoutConfig } from "../Common/RequestTimeoutConfig";
1
2
  export default interface ISDKConfiguration {
2
- [key: string]: number | string | boolean | undefined;
3
+ [key: string]: number | string | boolean | RequestTimeoutConfig | undefined;
3
4
  /**
4
5
  * Number of times a getchattoken request is retried.
5
6
  */
@@ -16,4 +17,12 @@ export default interface ISDKConfiguration {
16
17
  * Maximum number of request retries before failing.
17
18
  */
18
19
  maxRequestRetriesOnFailure: number;
20
+ /**
21
+ * Default timeout for all requests
22
+ */
23
+ defaultRequestTimeout: number | undefined;
24
+ /**
25
+ * Individual Request timeouts
26
+ */
27
+ requestTimeoutConfig: RequestTimeoutConfig;
19
28
  }
package/lib/SDK.d.ts CHANGED
@@ -24,6 +24,7 @@ export default class SDK implements ISDK {
24
24
  private omnichannelConfiguration;
25
25
  private configuration;
26
26
  private logger?;
27
+ private static defaultRequestTimeoutConfig;
27
28
  private static defaultConfiguration;
28
29
  liveChatVersion: number;
29
30
  constructor(omnichannelConfiguration: IOmnichannelConfiguration, configuration?: ISDKConfiguration, logger?: OCSDKLogger | undefined);