purecloud-platform-client-v2 122.0.0 → 126.0.0
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/README.md +6 -2
- package/dist/node/purecloud-platform-client-v2.js +1005 -142
- package/dist/web-amd/purecloud-platform-client-v2.js +1005 -142
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +965 -146
- package/dist/web-cjs/purecloud-platform-client-v2.js +978 -1309
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1546 -243
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +2 -2
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -26
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +8 -4
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +3 -3
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +216 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +2 -2
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +22 -11
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +96 -2
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +31 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +51 -0
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +473 -1
- package/src/purecloud-platform-client-v2/configuration.js +42 -35
- package/src/purecloud-platform-client-v2/index.js +7 -1
|
@@ -41,27 +41,29 @@ class Configuration {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
liveLoadConfig() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// do nothing
|
|
44
|
+
if (typeof window === 'undefined') {
|
|
45
|
+
// Please don't remove the typeof window === 'undefined' check here!
|
|
46
|
+
// This safeguards the browser environment from using `fs`, which is only
|
|
47
|
+
// available in node environment.
|
|
48
|
+
this.updateConfigFromFile();
|
|
49
|
+
|
|
50
|
+
if (this.live_reload_config && this.live_reload_config === true) {
|
|
51
|
+
try {
|
|
52
|
+
const fs = require('fs');
|
|
53
|
+
fs.watchFile(this.configPath, { persistent: false }, (eventType, filename) => {
|
|
54
|
+
this.updateConfigFromFile();
|
|
55
|
+
if (!this.live_reload_config) {
|
|
56
|
+
fs.unwatchFile(this.configPath);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
} catch (err) {
|
|
60
|
+
// do nothing
|
|
61
|
+
}
|
|
63
62
|
}
|
|
63
|
+
return;
|
|
64
64
|
}
|
|
65
|
+
// If in browser, don't read config file, use default values
|
|
66
|
+
this.configPath = '';
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
setConfigPath(path) {
|
|
@@ -72,24 +74,29 @@ class Configuration {
|
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
updateConfigFromFile() {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
if (typeof window === 'undefined') {
|
|
78
|
+
// Please don't remove the typeof window === 'undefined' check here!
|
|
79
|
+
// This safeguards the browser environment from using `fs`, which is only
|
|
80
|
+
// available in node environment.
|
|
81
|
+
const ConfigParser = require('configparser');
|
|
82
|
+
|
|
83
|
+
try {
|
|
84
|
+
var configparser = new ConfigParser();
|
|
85
|
+
configparser.read(this.configPath); // If no error catched, indicates it's INI format
|
|
86
|
+
this.config = configparser;
|
|
87
|
+
} catch (error) {
|
|
88
|
+
if (error.name && error.name === 'MissingSectionHeaderError') {
|
|
89
|
+
// Not INI format, see if it's JSON format
|
|
90
|
+
const fs = require('fs');
|
|
91
|
+
var configData = fs.readFileSync(this.configPath, 'utf8');
|
|
92
|
+
this.config = {
|
|
93
|
+
_sections: JSON.parse(configData), // To match INI data format
|
|
94
|
+
};
|
|
95
|
+
}
|
|
89
96
|
}
|
|
90
|
-
}
|
|
91
97
|
|
|
92
|
-
|
|
98
|
+
if (this.config) this.updateConfigValues();
|
|
99
|
+
}
|
|
93
100
|
}
|
|
94
101
|
|
|
95
102
|
updateConfigValues() {
|
|
@@ -59,6 +59,7 @@ import UtilitiesApi from './api/UtilitiesApi.js';
|
|
|
59
59
|
import VoicemailApi from './api/VoicemailApi.js';
|
|
60
60
|
import WebChatApi from './api/WebChatApi.js';
|
|
61
61
|
import WebDeploymentsApi from './api/WebDeploymentsApi.js';
|
|
62
|
+
import WebMessagingApi from './api/WebMessagingApi.js';
|
|
62
63
|
import WidgetsApi from './api/WidgetsApi.js';
|
|
63
64
|
import WorkforceManagementApi from './api/WorkforceManagementApi.js';
|
|
64
65
|
|
|
@@ -92,7 +93,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js';
|
|
|
92
93
|
* </pre>
|
|
93
94
|
* </p>
|
|
94
95
|
* @module purecloud-platform-client-v2/index
|
|
95
|
-
* @version
|
|
96
|
+
* @version 126.0.0
|
|
96
97
|
*/
|
|
97
98
|
class platformClient {
|
|
98
99
|
constructor() {
|
|
@@ -396,6 +397,11 @@ class platformClient {
|
|
|
396
397
|
* @property {module:purecloud-platform-client-v2/api/WebDeploymentsApi}
|
|
397
398
|
*/
|
|
398
399
|
this.WebDeploymentsApi = WebDeploymentsApi;
|
|
400
|
+
/**
|
|
401
|
+
* The WebMessagingApi service constructor.
|
|
402
|
+
* @property {module:purecloud-platform-client-v2/api/WebMessagingApi}
|
|
403
|
+
*/
|
|
404
|
+
this.WebMessagingApi = WebMessagingApi;
|
|
399
405
|
/**
|
|
400
406
|
* The WidgetsApi service constructor.
|
|
401
407
|
* @property {module:purecloud-platform-client-v2/api/WidgetsApi}
|