syllable-sdk 0.1.0-alpha.21 → 0.1.0-alpha.23
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 +17 -34
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/custommessagecreaterequest.d.ts +6 -0
- package/models/components/custommessagecreaterequest.d.ts.map +1 -1
- package/models/components/custommessagecreaterequest.js +3 -0
- package/models/components/custommessagecreaterequest.js.map +1 -1
- package/models/components/custommessageresponse.d.ts +6 -0
- package/models/components/custommessageresponse.d.ts.map +1 -1
- package/models/components/custommessageresponse.js +3 -0
- package/models/components/custommessageresponse.js.map +1 -1
- package/models/components/custommessageupdaterequest.d.ts +6 -0
- package/models/components/custommessageupdaterequest.d.ts.map +1 -1
- package/models/components/custommessageupdaterequest.js +3 -0
- package/models/components/custommessageupdaterequest.js.map +1 -1
- package/models/components/daocustommessagerule.d.ts +63 -0
- package/models/components/daocustommessagerule.d.ts.map +1 -0
- package/models/components/daocustommessagerule.js +85 -0
- package/models/components/daocustommessagerule.js.map +1 -0
- package/models/components/dayofweek.d.ts +43 -0
- package/models/components/dayofweek.d.ts.map +1 -0
- package/models/components/dayofweek.js +56 -0
- package/models/components/dayofweek.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/testmessage.d.ts +2 -0
- package/models/components/testmessage.d.ts.map +1 -1
- package/models/components/testmessage.js +4 -0
- package/models/components/testmessage.js.map +1 -1
- package/models/operations/index.d.ts +0 -8
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -8
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -5
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/custommessagecreaterequest.ts +13 -0
- package/src/models/components/custommessageresponse.ts +13 -0
- package/src/models/components/custommessageupdaterequest.ts +13 -0
- package/src/models/components/daocustommessagerule.ts +129 -0
- package/src/models/components/dayofweek.ts +36 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/testmessage.ts +6 -0
- package/src/models/operations/index.ts +0 -8
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/dashboards/README.md +0 -587
- package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts +0 -15
- package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts.map +0 -1
- package/funcs/dashboardsGetDailyCallVolumeByHour.js +0 -86
- package/funcs/dashboardsGetDailyCallVolumeByHour.js.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts +0 -15
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.js +0 -86
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.js.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.d.ts +0 -15
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.d.ts.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.js +0 -86
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.js.map +0 -1
- package/funcs/dashboardsGetSessionAgents.d.ts +0 -15
- package/funcs/dashboardsGetSessionAgents.d.ts.map +0 -1
- package/funcs/dashboardsGetSessionAgents.js +0 -85
- package/funcs/dashboardsGetSessionAgents.js.map +0 -1
- package/funcs/dashboardsGetSessionSummary.d.ts +0 -16
- package/funcs/dashboardsGetSessionSummary.d.ts.map +0 -1
- package/funcs/dashboardsGetSessionSummary.js +0 -107
- package/funcs/dashboardsGetSessionSummary.js.map +0 -1
- package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts +0 -15
- package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts.map +0 -1
- package/funcs/dashboardsGetTotalCallVolumeByHour.js +0 -86
- package/funcs/dashboardsGetTotalCallVolumeByHour.js.map +0 -1
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.d.ts +0 -15
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.d.ts.map +0 -1
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js +0 -86
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js.map +0 -1
- package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts +0 -15
- package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts.map +0 -1
- package/funcs/dashboardsTotalCallVolumeByWeekday.js +0 -86
- package/funcs/dashboardsTotalCallVolumeByWeekday.js.map +0 -1
- package/models/operations/getdailycallvolumebyhour.d.ts +0 -28
- package/models/operations/getdailycallvolumebyhour.d.ts.map +0 -1
- package/models/operations/getdailycallvolumebyhour.js +0 -57
- package/models/operations/getdailycallvolumebyhour.js.map +0 -1
- package/models/operations/getmonthlycallvolumebyday.d.ts +0 -28
- package/models/operations/getmonthlycallvolumebyday.d.ts.map +0 -1
- package/models/operations/getmonthlycallvolumebyday.js +0 -57
- package/models/operations/getmonthlycallvolumebyday.js.map +0 -1
- package/models/operations/getmonthlycallvolumebyweek.d.ts +0 -28
- package/models/operations/getmonthlycallvolumebyweek.d.ts.map +0 -1
- package/models/operations/getmonthlycallvolumebyweek.js +0 -57
- package/models/operations/getmonthlycallvolumebyweek.js.map +0 -1
- package/models/operations/getsessionagents.d.ts +0 -28
- package/models/operations/getsessionagents.d.ts.map +0 -1
- package/models/operations/getsessionagents.js +0 -55
- package/models/operations/getsessionagents.js.map +0 -1
- package/models/operations/getsessionsummary.d.ts +0 -63
- package/models/operations/getsessionsummary.d.ts.map +0 -1
- package/models/operations/getsessionsummary.js +0 -107
- package/models/operations/getsessionsummary.js.map +0 -1
- package/models/operations/gettotalcallvolumebyhour.d.ts +0 -28
- package/models/operations/gettotalcallvolumebyhour.d.ts.map +0 -1
- package/models/operations/gettotalcallvolumebyhour.js +0 -57
- package/models/operations/gettotalcallvolumebyhour.js.map +0 -1
- package/models/operations/getweeklycallvolumebyweekday.d.ts +0 -28
- package/models/operations/getweeklycallvolumebyweekday.d.ts.map +0 -1
- package/models/operations/getweeklycallvolumebyweekday.js +0 -57
- package/models/operations/getweeklycallvolumebyweekday.js.map +0 -1
- package/models/operations/totalcallvolumebyweekday.d.ts +0 -28
- package/models/operations/totalcallvolumebyweekday.d.ts.map +0 -1
- package/models/operations/totalcallvolumebyweekday.js +0 -57
- package/models/operations/totalcallvolumebyweekday.js.map +0 -1
- package/sdk/dashboards.d.ts +0 -61
- package/sdk/dashboards.d.ts.map +0 -1
- package/sdk/dashboards.js +0 -92
- package/sdk/dashboards.js.map +0 -1
- package/src/funcs/dashboardsGetDailyCallVolumeByHour.ts +0 -111
- package/src/funcs/dashboardsGetMonthlyCallVolumeByDay.ts +0 -113
- package/src/funcs/dashboardsGetMonthlyCallVolumeByWeek.ts +0 -113
- package/src/funcs/dashboardsGetSessionAgents.ts +0 -110
- package/src/funcs/dashboardsGetSessionSummary.ts +0 -143
- package/src/funcs/dashboardsGetTotalCallVolumeByHour.ts +0 -111
- package/src/funcs/dashboardsGetWeeklyCallVolumeByWeekday.ts +0 -113
- package/src/funcs/dashboardsTotalCallVolumeByWeekday.ts +0 -111
- package/src/models/operations/getdailycallvolumebyhour.ts +0 -74
- package/src/models/operations/getmonthlycallvolumebyday.ts +0 -74
- package/src/models/operations/getmonthlycallvolumebyweek.ts +0 -74
- package/src/models/operations/getsessionagents.ts +0 -72
- package/src/models/operations/getsessionsummary.ts +0 -164
- package/src/models/operations/gettotalcallvolumebyhour.ts +0 -74
- package/src/models/operations/getweeklycallvolumebyweekday.ts +0 -75
- package/src/models/operations/totalcallvolumebyweekday.ts +0 -74
- package/src/sdk/dashboards.ts +0 -151
package/sdk/dashboards.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Dashboards extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Get Total Call Volume By Weekday
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Get total call volume by weekday.
|
|
9
|
-
*/
|
|
10
|
-
totalCallVolumeByWeekday(options?: RequestOptions): Promise<operations.TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday>;
|
|
11
|
-
/**
|
|
12
|
-
* Get Total Call Volume By Hour
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Get total call volume by hour.
|
|
16
|
-
*/
|
|
17
|
-
getTotalCallVolumeByHour(options?: RequestOptions): Promise<operations.GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour>;
|
|
18
|
-
/**
|
|
19
|
-
* Get Weekly Call Volume By Weekday
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Get weekly call volume by weekday.
|
|
23
|
-
*/
|
|
24
|
-
getWeeklyCallVolumeByWeekday(options?: RequestOptions): Promise<operations.GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday>;
|
|
25
|
-
/**
|
|
26
|
-
* Get Daily Call Volume By Hour
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* Get daily call volume by hour.
|
|
30
|
-
*/
|
|
31
|
-
getDailyCallVolumeByHour(options?: RequestOptions): Promise<operations.GetDailyCallVolumeByHourResponseGetDailyCallVolumeByHour>;
|
|
32
|
-
/**
|
|
33
|
-
* Get Monthly Call Volume By Week
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Get monthly cal volume by week.
|
|
37
|
-
*/
|
|
38
|
-
getMonthlyCallVolumeByWeek(options?: RequestOptions): Promise<operations.GetMonthlyCallVolumeByWeekResponseGetMonthlyCallVolumeByWeek>;
|
|
39
|
-
/**
|
|
40
|
-
* Get Monthly Call Volume By Day
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
* Get monthly call volume by day.
|
|
44
|
-
*/
|
|
45
|
-
getMonthlyCallVolumeByDay(options?: RequestOptions): Promise<operations.GetMonthlyCallVolumeByDayResponseGetMonthlyCallVolumeByDay>;
|
|
46
|
-
/**
|
|
47
|
-
* Get Session Summary
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* Get session summary data
|
|
51
|
-
*/
|
|
52
|
-
getSessionSummary(request: operations.GetSessionSummaryRequest, options?: RequestOptions): Promise<operations.GetSessionSummaryResponseGetSessionSummary>;
|
|
53
|
-
/**
|
|
54
|
-
* Get Agents
|
|
55
|
-
*
|
|
56
|
-
* @remarks
|
|
57
|
-
* Get list of agents for session summary dropdown
|
|
58
|
-
*/
|
|
59
|
-
getSessionAgents(options?: RequestOptions): Promise<operations.GetSessionAgentsResponseGetSessionAgents>;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=dashboards.d.ts.map
|
package/sdk/dashboards.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboards.d.ts","sourceRoot":"","sources":["../src/sdk/dashboards.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,UAAW,SAAQ,SAAS;IACvC;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,wDAAwD,CACpE;IAOD;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,wDAAwD,CACpE;IAOD;;;;;OAKG;IACG,4BAA4B,CAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,gEAAgE,CAC5E;IAOD;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,wDAAwD,CACpE;IAOD;;;;;OAKG;IACG,0BAA0B,CAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,4DAA4D,CACxE;IAOD;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,0DAA0D,CACtE;IAOD;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0CAA0C,CAAC;IAQjE;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC;CAMhE"}
|
package/sdk/dashboards.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Dashboards = void 0;
|
|
7
|
-
const dashboardsGetDailyCallVolumeByHour_js_1 = require("../funcs/dashboardsGetDailyCallVolumeByHour.js");
|
|
8
|
-
const dashboardsGetMonthlyCallVolumeByDay_js_1 = require("../funcs/dashboardsGetMonthlyCallVolumeByDay.js");
|
|
9
|
-
const dashboardsGetMonthlyCallVolumeByWeek_js_1 = require("../funcs/dashboardsGetMonthlyCallVolumeByWeek.js");
|
|
10
|
-
const dashboardsGetSessionAgents_js_1 = require("../funcs/dashboardsGetSessionAgents.js");
|
|
11
|
-
const dashboardsGetSessionSummary_js_1 = require("../funcs/dashboardsGetSessionSummary.js");
|
|
12
|
-
const dashboardsGetTotalCallVolumeByHour_js_1 = require("../funcs/dashboardsGetTotalCallVolumeByHour.js");
|
|
13
|
-
const dashboardsGetWeeklyCallVolumeByWeekday_js_1 = require("../funcs/dashboardsGetWeeklyCallVolumeByWeekday.js");
|
|
14
|
-
const dashboardsTotalCallVolumeByWeekday_js_1 = require("../funcs/dashboardsTotalCallVolumeByWeekday.js");
|
|
15
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
16
|
-
const fp_js_1 = require("../types/fp.js");
|
|
17
|
-
class Dashboards extends sdks_js_1.ClientSDK {
|
|
18
|
-
/**
|
|
19
|
-
* Get Total Call Volume By Weekday
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Get total call volume by weekday.
|
|
23
|
-
*/
|
|
24
|
-
async totalCallVolumeByWeekday(options) {
|
|
25
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsTotalCallVolumeByWeekday_js_1.dashboardsTotalCallVolumeByWeekday)(this, options));
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get Total Call Volume By Hour
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* Get total call volume by hour.
|
|
32
|
-
*/
|
|
33
|
-
async getTotalCallVolumeByHour(options) {
|
|
34
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsGetTotalCallVolumeByHour_js_1.dashboardsGetTotalCallVolumeByHour)(this, options));
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Get Weekly Call Volume By Weekday
|
|
38
|
-
*
|
|
39
|
-
* @remarks
|
|
40
|
-
* Get weekly call volume by weekday.
|
|
41
|
-
*/
|
|
42
|
-
async getWeeklyCallVolumeByWeekday(options) {
|
|
43
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsGetWeeklyCallVolumeByWeekday_js_1.dashboardsGetWeeklyCallVolumeByWeekday)(this, options));
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Get Daily Call Volume By Hour
|
|
47
|
-
*
|
|
48
|
-
* @remarks
|
|
49
|
-
* Get daily call volume by hour.
|
|
50
|
-
*/
|
|
51
|
-
async getDailyCallVolumeByHour(options) {
|
|
52
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsGetDailyCallVolumeByHour_js_1.dashboardsGetDailyCallVolumeByHour)(this, options));
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Get Monthly Call Volume By Week
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* Get monthly cal volume by week.
|
|
59
|
-
*/
|
|
60
|
-
async getMonthlyCallVolumeByWeek(options) {
|
|
61
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsGetMonthlyCallVolumeByWeek_js_1.dashboardsGetMonthlyCallVolumeByWeek)(this, options));
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Get Monthly Call Volume By Day
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
* Get monthly call volume by day.
|
|
68
|
-
*/
|
|
69
|
-
async getMonthlyCallVolumeByDay(options) {
|
|
70
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsGetMonthlyCallVolumeByDay_js_1.dashboardsGetMonthlyCallVolumeByDay)(this, options));
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Get Session Summary
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* Get session summary data
|
|
77
|
-
*/
|
|
78
|
-
async getSessionSummary(request, options) {
|
|
79
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsGetSessionSummary_js_1.dashboardsGetSessionSummary)(this, request, options));
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Get Agents
|
|
83
|
-
*
|
|
84
|
-
* @remarks
|
|
85
|
-
* Get list of agents for session summary dropdown
|
|
86
|
-
*/
|
|
87
|
-
async getSessionAgents(options) {
|
|
88
|
-
return (0, fp_js_1.unwrapAsync)((0, dashboardsGetSessionAgents_js_1.dashboardsGetSessionAgents)(this, options));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.Dashboards = Dashboards;
|
|
92
|
-
//# sourceMappingURL=dashboards.js.map
|
package/sdk/dashboards.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboards.js","sourceRoot":"","sources":["../src/sdk/dashboards.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0GAAoG;AACpG,4GAAsG;AACtG,8GAAwG;AACxG,0FAAoF;AACpF,4FAAsF;AACtF,0GAAoG;AACpG,kHAA4G;AAC5G,0GAAoG;AACpG,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,UAAW,SAAQ,mBAAS;IACvC;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAkC,EACnD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAkC,EACnD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,4BAA4B,CAChC,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAkC,EACnD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,8EAAoC,EACrD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,4EAAmC,EACpD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4DAA2B,EAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtID,gCAsIC"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Get Daily Call Volume By Hour
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* Get daily call volume by hour.
|
|
27
|
-
*/
|
|
28
|
-
export async function dashboardsGetDailyCallVolumeByHour(
|
|
29
|
-
client: SyllableSDKCore,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): Promise<
|
|
32
|
-
Result<
|
|
33
|
-
operations.GetDailyCallVolumeByHourResponseGetDailyCallVolumeByHour,
|
|
34
|
-
| SDKError
|
|
35
|
-
| SDKValidationError
|
|
36
|
-
| UnexpectedClientError
|
|
37
|
-
| InvalidRequestError
|
|
38
|
-
| RequestAbortedError
|
|
39
|
-
| RequestTimeoutError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
>
|
|
42
|
-
> {
|
|
43
|
-
const path = pathToFunc("/api/v1/dashboards/get_daily_call_volume_by_hour")();
|
|
44
|
-
|
|
45
|
-
const headers = new Headers({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
50
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
51
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
52
|
-
|
|
53
|
-
const context = {
|
|
54
|
-
operationID: "get_daily_call_volume_by_hour",
|
|
55
|
-
oAuth2Scopes: [],
|
|
56
|
-
|
|
57
|
-
resolvedSecurity: requestSecurity,
|
|
58
|
-
|
|
59
|
-
securitySource: client._options.apiKeyHeader,
|
|
60
|
-
retryConfig: options?.retries
|
|
61
|
-
|| client._options.retryConfig
|
|
62
|
-
|| { strategy: "none" },
|
|
63
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const requestRes = client._createRequest(context, {
|
|
67
|
-
security: requestSecurity,
|
|
68
|
-
method: "GET",
|
|
69
|
-
path: path,
|
|
70
|
-
headers: headers,
|
|
71
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
72
|
-
}, options);
|
|
73
|
-
if (!requestRes.ok) {
|
|
74
|
-
return requestRes;
|
|
75
|
-
}
|
|
76
|
-
const req = requestRes.value;
|
|
77
|
-
|
|
78
|
-
const doResult = await client._do(req, {
|
|
79
|
-
context,
|
|
80
|
-
errorCodes: ["4XX", "5XX"],
|
|
81
|
-
retryConfig: context.retryConfig,
|
|
82
|
-
retryCodes: context.retryCodes,
|
|
83
|
-
});
|
|
84
|
-
if (!doResult.ok) {
|
|
85
|
-
return doResult;
|
|
86
|
-
}
|
|
87
|
-
const response = doResult.value;
|
|
88
|
-
|
|
89
|
-
const [result] = await M.match<
|
|
90
|
-
operations.GetDailyCallVolumeByHourResponseGetDailyCallVolumeByHour,
|
|
91
|
-
| SDKError
|
|
92
|
-
| SDKValidationError
|
|
93
|
-
| UnexpectedClientError
|
|
94
|
-
| InvalidRequestError
|
|
95
|
-
| RequestAbortedError
|
|
96
|
-
| RequestTimeoutError
|
|
97
|
-
| ConnectionError
|
|
98
|
-
>(
|
|
99
|
-
M.json(
|
|
100
|
-
200,
|
|
101
|
-
operations
|
|
102
|
-
.GetDailyCallVolumeByHourResponseGetDailyCallVolumeByHour$inboundSchema,
|
|
103
|
-
),
|
|
104
|
-
M.fail(["4XX", "5XX"]),
|
|
105
|
-
)(response);
|
|
106
|
-
if (!result.ok) {
|
|
107
|
-
return result;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return result;
|
|
111
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Get Monthly Call Volume By Day
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* Get monthly call volume by day.
|
|
27
|
-
*/
|
|
28
|
-
export async function dashboardsGetMonthlyCallVolumeByDay(
|
|
29
|
-
client: SyllableSDKCore,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): Promise<
|
|
32
|
-
Result<
|
|
33
|
-
operations.GetMonthlyCallVolumeByDayResponseGetMonthlyCallVolumeByDay,
|
|
34
|
-
| SDKError
|
|
35
|
-
| SDKValidationError
|
|
36
|
-
| UnexpectedClientError
|
|
37
|
-
| InvalidRequestError
|
|
38
|
-
| RequestAbortedError
|
|
39
|
-
| RequestTimeoutError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
>
|
|
42
|
-
> {
|
|
43
|
-
const path = pathToFunc(
|
|
44
|
-
"/api/v1/dashboards/get_monthly_call_volume_by_day",
|
|
45
|
-
)();
|
|
46
|
-
|
|
47
|
-
const headers = new Headers({
|
|
48
|
-
Accept: "application/json",
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
52
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
53
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54
|
-
|
|
55
|
-
const context = {
|
|
56
|
-
operationID: "get_monthly_call_volume_by_day",
|
|
57
|
-
oAuth2Scopes: [],
|
|
58
|
-
|
|
59
|
-
resolvedSecurity: requestSecurity,
|
|
60
|
-
|
|
61
|
-
securitySource: client._options.apiKeyHeader,
|
|
62
|
-
retryConfig: options?.retries
|
|
63
|
-
|| client._options.retryConfig
|
|
64
|
-
|| { strategy: "none" },
|
|
65
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const requestRes = client._createRequest(context, {
|
|
69
|
-
security: requestSecurity,
|
|
70
|
-
method: "GET",
|
|
71
|
-
path: path,
|
|
72
|
-
headers: headers,
|
|
73
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
74
|
-
}, options);
|
|
75
|
-
if (!requestRes.ok) {
|
|
76
|
-
return requestRes;
|
|
77
|
-
}
|
|
78
|
-
const req = requestRes.value;
|
|
79
|
-
|
|
80
|
-
const doResult = await client._do(req, {
|
|
81
|
-
context,
|
|
82
|
-
errorCodes: ["4XX", "5XX"],
|
|
83
|
-
retryConfig: context.retryConfig,
|
|
84
|
-
retryCodes: context.retryCodes,
|
|
85
|
-
});
|
|
86
|
-
if (!doResult.ok) {
|
|
87
|
-
return doResult;
|
|
88
|
-
}
|
|
89
|
-
const response = doResult.value;
|
|
90
|
-
|
|
91
|
-
const [result] = await M.match<
|
|
92
|
-
operations.GetMonthlyCallVolumeByDayResponseGetMonthlyCallVolumeByDay,
|
|
93
|
-
| SDKError
|
|
94
|
-
| SDKValidationError
|
|
95
|
-
| UnexpectedClientError
|
|
96
|
-
| InvalidRequestError
|
|
97
|
-
| RequestAbortedError
|
|
98
|
-
| RequestTimeoutError
|
|
99
|
-
| ConnectionError
|
|
100
|
-
>(
|
|
101
|
-
M.json(
|
|
102
|
-
200,
|
|
103
|
-
operations
|
|
104
|
-
.GetMonthlyCallVolumeByDayResponseGetMonthlyCallVolumeByDay$inboundSchema,
|
|
105
|
-
),
|
|
106
|
-
M.fail(["4XX", "5XX"]),
|
|
107
|
-
)(response);
|
|
108
|
-
if (!result.ok) {
|
|
109
|
-
return result;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return result;
|
|
113
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Get Monthly Call Volume By Week
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* Get monthly cal volume by week.
|
|
27
|
-
*/
|
|
28
|
-
export async function dashboardsGetMonthlyCallVolumeByWeek(
|
|
29
|
-
client: SyllableSDKCore,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): Promise<
|
|
32
|
-
Result<
|
|
33
|
-
operations.GetMonthlyCallVolumeByWeekResponseGetMonthlyCallVolumeByWeek,
|
|
34
|
-
| SDKError
|
|
35
|
-
| SDKValidationError
|
|
36
|
-
| UnexpectedClientError
|
|
37
|
-
| InvalidRequestError
|
|
38
|
-
| RequestAbortedError
|
|
39
|
-
| RequestTimeoutError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
>
|
|
42
|
-
> {
|
|
43
|
-
const path = pathToFunc(
|
|
44
|
-
"/api/v1/dashboards/get_monthly_call_volume_by_week",
|
|
45
|
-
)();
|
|
46
|
-
|
|
47
|
-
const headers = new Headers({
|
|
48
|
-
Accept: "application/json",
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
52
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
53
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54
|
-
|
|
55
|
-
const context = {
|
|
56
|
-
operationID: "get_monthly_call_volume_by_week",
|
|
57
|
-
oAuth2Scopes: [],
|
|
58
|
-
|
|
59
|
-
resolvedSecurity: requestSecurity,
|
|
60
|
-
|
|
61
|
-
securitySource: client._options.apiKeyHeader,
|
|
62
|
-
retryConfig: options?.retries
|
|
63
|
-
|| client._options.retryConfig
|
|
64
|
-
|| { strategy: "none" },
|
|
65
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const requestRes = client._createRequest(context, {
|
|
69
|
-
security: requestSecurity,
|
|
70
|
-
method: "GET",
|
|
71
|
-
path: path,
|
|
72
|
-
headers: headers,
|
|
73
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
74
|
-
}, options);
|
|
75
|
-
if (!requestRes.ok) {
|
|
76
|
-
return requestRes;
|
|
77
|
-
}
|
|
78
|
-
const req = requestRes.value;
|
|
79
|
-
|
|
80
|
-
const doResult = await client._do(req, {
|
|
81
|
-
context,
|
|
82
|
-
errorCodes: ["4XX", "5XX"],
|
|
83
|
-
retryConfig: context.retryConfig,
|
|
84
|
-
retryCodes: context.retryCodes,
|
|
85
|
-
});
|
|
86
|
-
if (!doResult.ok) {
|
|
87
|
-
return doResult;
|
|
88
|
-
}
|
|
89
|
-
const response = doResult.value;
|
|
90
|
-
|
|
91
|
-
const [result] = await M.match<
|
|
92
|
-
operations.GetMonthlyCallVolumeByWeekResponseGetMonthlyCallVolumeByWeek,
|
|
93
|
-
| SDKError
|
|
94
|
-
| SDKValidationError
|
|
95
|
-
| UnexpectedClientError
|
|
96
|
-
| InvalidRequestError
|
|
97
|
-
| RequestAbortedError
|
|
98
|
-
| RequestTimeoutError
|
|
99
|
-
| ConnectionError
|
|
100
|
-
>(
|
|
101
|
-
M.json(
|
|
102
|
-
200,
|
|
103
|
-
operations
|
|
104
|
-
.GetMonthlyCallVolumeByWeekResponseGetMonthlyCallVolumeByWeek$inboundSchema,
|
|
105
|
-
),
|
|
106
|
-
M.fail(["4XX", "5XX"]),
|
|
107
|
-
)(response);
|
|
108
|
-
if (!result.ok) {
|
|
109
|
-
return result;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return result;
|
|
113
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SyllableSDKCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Get Agents
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* Get list of agents for session summary dropdown
|
|
27
|
-
*/
|
|
28
|
-
export async function dashboardsGetSessionAgents(
|
|
29
|
-
client: SyllableSDKCore,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): Promise<
|
|
32
|
-
Result<
|
|
33
|
-
operations.GetSessionAgentsResponseGetSessionAgents,
|
|
34
|
-
| SDKError
|
|
35
|
-
| SDKValidationError
|
|
36
|
-
| UnexpectedClientError
|
|
37
|
-
| InvalidRequestError
|
|
38
|
-
| RequestAbortedError
|
|
39
|
-
| RequestTimeoutError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
>
|
|
42
|
-
> {
|
|
43
|
-
const path = pathToFunc("/api/v1/dashboards/get_agents")();
|
|
44
|
-
|
|
45
|
-
const headers = new Headers({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
50
|
-
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
51
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
52
|
-
|
|
53
|
-
const context = {
|
|
54
|
-
operationID: "get_session_agents",
|
|
55
|
-
oAuth2Scopes: [],
|
|
56
|
-
|
|
57
|
-
resolvedSecurity: requestSecurity,
|
|
58
|
-
|
|
59
|
-
securitySource: client._options.apiKeyHeader,
|
|
60
|
-
retryConfig: options?.retries
|
|
61
|
-
|| client._options.retryConfig
|
|
62
|
-
|| { strategy: "none" },
|
|
63
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const requestRes = client._createRequest(context, {
|
|
67
|
-
security: requestSecurity,
|
|
68
|
-
method: "GET",
|
|
69
|
-
path: path,
|
|
70
|
-
headers: headers,
|
|
71
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
72
|
-
}, options);
|
|
73
|
-
if (!requestRes.ok) {
|
|
74
|
-
return requestRes;
|
|
75
|
-
}
|
|
76
|
-
const req = requestRes.value;
|
|
77
|
-
|
|
78
|
-
const doResult = await client._do(req, {
|
|
79
|
-
context,
|
|
80
|
-
errorCodes: ["4XX", "5XX"],
|
|
81
|
-
retryConfig: context.retryConfig,
|
|
82
|
-
retryCodes: context.retryCodes,
|
|
83
|
-
});
|
|
84
|
-
if (!doResult.ok) {
|
|
85
|
-
return doResult;
|
|
86
|
-
}
|
|
87
|
-
const response = doResult.value;
|
|
88
|
-
|
|
89
|
-
const [result] = await M.match<
|
|
90
|
-
operations.GetSessionAgentsResponseGetSessionAgents,
|
|
91
|
-
| SDKError
|
|
92
|
-
| SDKValidationError
|
|
93
|
-
| UnexpectedClientError
|
|
94
|
-
| InvalidRequestError
|
|
95
|
-
| RequestAbortedError
|
|
96
|
-
| RequestTimeoutError
|
|
97
|
-
| ConnectionError
|
|
98
|
-
>(
|
|
99
|
-
M.json(
|
|
100
|
-
200,
|
|
101
|
-
operations.GetSessionAgentsResponseGetSessionAgents$inboundSchema,
|
|
102
|
-
),
|
|
103
|
-
M.fail(["4XX", "5XX"]),
|
|
104
|
-
)(response);
|
|
105
|
-
if (!result.ok) {
|
|
106
|
-
return result;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return result;
|
|
110
|
-
}
|