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.
Files changed (136) hide show
  1. package/README.md +17 -34
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/custommessagecreaterequest.d.ts +6 -0
  5. package/models/components/custommessagecreaterequest.d.ts.map +1 -1
  6. package/models/components/custommessagecreaterequest.js +3 -0
  7. package/models/components/custommessagecreaterequest.js.map +1 -1
  8. package/models/components/custommessageresponse.d.ts +6 -0
  9. package/models/components/custommessageresponse.d.ts.map +1 -1
  10. package/models/components/custommessageresponse.js +3 -0
  11. package/models/components/custommessageresponse.js.map +1 -1
  12. package/models/components/custommessageupdaterequest.d.ts +6 -0
  13. package/models/components/custommessageupdaterequest.d.ts.map +1 -1
  14. package/models/components/custommessageupdaterequest.js +3 -0
  15. package/models/components/custommessageupdaterequest.js.map +1 -1
  16. package/models/components/daocustommessagerule.d.ts +63 -0
  17. package/models/components/daocustommessagerule.d.ts.map +1 -0
  18. package/models/components/daocustommessagerule.js +85 -0
  19. package/models/components/daocustommessagerule.js.map +1 -0
  20. package/models/components/dayofweek.d.ts +43 -0
  21. package/models/components/dayofweek.d.ts.map +1 -0
  22. package/models/components/dayofweek.js +56 -0
  23. package/models/components/dayofweek.js.map +1 -0
  24. package/models/components/index.d.ts +2 -0
  25. package/models/components/index.d.ts.map +1 -1
  26. package/models/components/index.js +2 -0
  27. package/models/components/index.js.map +1 -1
  28. package/models/components/testmessage.d.ts +2 -0
  29. package/models/components/testmessage.d.ts.map +1 -1
  30. package/models/components/testmessage.js +4 -0
  31. package/models/components/testmessage.js.map +1 -1
  32. package/models/operations/index.d.ts +0 -8
  33. package/models/operations/index.d.ts.map +1 -1
  34. package/models/operations/index.js +0 -8
  35. package/models/operations/index.js.map +1 -1
  36. package/package.json +1 -1
  37. package/sdk/sdk.d.ts +0 -3
  38. package/sdk/sdk.d.ts.map +1 -1
  39. package/sdk/sdk.js +0 -5
  40. package/sdk/sdk.js.map +1 -1
  41. package/src/lib/config.ts +3 -3
  42. package/src/models/components/custommessagecreaterequest.ts +13 -0
  43. package/src/models/components/custommessageresponse.ts +13 -0
  44. package/src/models/components/custommessageupdaterequest.ts +13 -0
  45. package/src/models/components/daocustommessagerule.ts +129 -0
  46. package/src/models/components/dayofweek.ts +36 -0
  47. package/src/models/components/index.ts +2 -0
  48. package/src/models/components/testmessage.ts +6 -0
  49. package/src/models/operations/index.ts +0 -8
  50. package/src/sdk/sdk.ts +0 -6
  51. package/docs/sdks/dashboards/README.md +0 -587
  52. package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts +0 -15
  53. package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts.map +0 -1
  54. package/funcs/dashboardsGetDailyCallVolumeByHour.js +0 -86
  55. package/funcs/dashboardsGetDailyCallVolumeByHour.js.map +0 -1
  56. package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts +0 -15
  57. package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts.map +0 -1
  58. package/funcs/dashboardsGetMonthlyCallVolumeByDay.js +0 -86
  59. package/funcs/dashboardsGetMonthlyCallVolumeByDay.js.map +0 -1
  60. package/funcs/dashboardsGetMonthlyCallVolumeByWeek.d.ts +0 -15
  61. package/funcs/dashboardsGetMonthlyCallVolumeByWeek.d.ts.map +0 -1
  62. package/funcs/dashboardsGetMonthlyCallVolumeByWeek.js +0 -86
  63. package/funcs/dashboardsGetMonthlyCallVolumeByWeek.js.map +0 -1
  64. package/funcs/dashboardsGetSessionAgents.d.ts +0 -15
  65. package/funcs/dashboardsGetSessionAgents.d.ts.map +0 -1
  66. package/funcs/dashboardsGetSessionAgents.js +0 -85
  67. package/funcs/dashboardsGetSessionAgents.js.map +0 -1
  68. package/funcs/dashboardsGetSessionSummary.d.ts +0 -16
  69. package/funcs/dashboardsGetSessionSummary.d.ts.map +0 -1
  70. package/funcs/dashboardsGetSessionSummary.js +0 -107
  71. package/funcs/dashboardsGetSessionSummary.js.map +0 -1
  72. package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts +0 -15
  73. package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts.map +0 -1
  74. package/funcs/dashboardsGetTotalCallVolumeByHour.js +0 -86
  75. package/funcs/dashboardsGetTotalCallVolumeByHour.js.map +0 -1
  76. package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.d.ts +0 -15
  77. package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.d.ts.map +0 -1
  78. package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js +0 -86
  79. package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js.map +0 -1
  80. package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts +0 -15
  81. package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts.map +0 -1
  82. package/funcs/dashboardsTotalCallVolumeByWeekday.js +0 -86
  83. package/funcs/dashboardsTotalCallVolumeByWeekday.js.map +0 -1
  84. package/models/operations/getdailycallvolumebyhour.d.ts +0 -28
  85. package/models/operations/getdailycallvolumebyhour.d.ts.map +0 -1
  86. package/models/operations/getdailycallvolumebyhour.js +0 -57
  87. package/models/operations/getdailycallvolumebyhour.js.map +0 -1
  88. package/models/operations/getmonthlycallvolumebyday.d.ts +0 -28
  89. package/models/operations/getmonthlycallvolumebyday.d.ts.map +0 -1
  90. package/models/operations/getmonthlycallvolumebyday.js +0 -57
  91. package/models/operations/getmonthlycallvolumebyday.js.map +0 -1
  92. package/models/operations/getmonthlycallvolumebyweek.d.ts +0 -28
  93. package/models/operations/getmonthlycallvolumebyweek.d.ts.map +0 -1
  94. package/models/operations/getmonthlycallvolumebyweek.js +0 -57
  95. package/models/operations/getmonthlycallvolumebyweek.js.map +0 -1
  96. package/models/operations/getsessionagents.d.ts +0 -28
  97. package/models/operations/getsessionagents.d.ts.map +0 -1
  98. package/models/operations/getsessionagents.js +0 -55
  99. package/models/operations/getsessionagents.js.map +0 -1
  100. package/models/operations/getsessionsummary.d.ts +0 -63
  101. package/models/operations/getsessionsummary.d.ts.map +0 -1
  102. package/models/operations/getsessionsummary.js +0 -107
  103. package/models/operations/getsessionsummary.js.map +0 -1
  104. package/models/operations/gettotalcallvolumebyhour.d.ts +0 -28
  105. package/models/operations/gettotalcallvolumebyhour.d.ts.map +0 -1
  106. package/models/operations/gettotalcallvolumebyhour.js +0 -57
  107. package/models/operations/gettotalcallvolumebyhour.js.map +0 -1
  108. package/models/operations/getweeklycallvolumebyweekday.d.ts +0 -28
  109. package/models/operations/getweeklycallvolumebyweekday.d.ts.map +0 -1
  110. package/models/operations/getweeklycallvolumebyweekday.js +0 -57
  111. package/models/operations/getweeklycallvolumebyweekday.js.map +0 -1
  112. package/models/operations/totalcallvolumebyweekday.d.ts +0 -28
  113. package/models/operations/totalcallvolumebyweekday.d.ts.map +0 -1
  114. package/models/operations/totalcallvolumebyweekday.js +0 -57
  115. package/models/operations/totalcallvolumebyweekday.js.map +0 -1
  116. package/sdk/dashboards.d.ts +0 -61
  117. package/sdk/dashboards.d.ts.map +0 -1
  118. package/sdk/dashboards.js +0 -92
  119. package/sdk/dashboards.js.map +0 -1
  120. package/src/funcs/dashboardsGetDailyCallVolumeByHour.ts +0 -111
  121. package/src/funcs/dashboardsGetMonthlyCallVolumeByDay.ts +0 -113
  122. package/src/funcs/dashboardsGetMonthlyCallVolumeByWeek.ts +0 -113
  123. package/src/funcs/dashboardsGetSessionAgents.ts +0 -110
  124. package/src/funcs/dashboardsGetSessionSummary.ts +0 -143
  125. package/src/funcs/dashboardsGetTotalCallVolumeByHour.ts +0 -111
  126. package/src/funcs/dashboardsGetWeeklyCallVolumeByWeekday.ts +0 -113
  127. package/src/funcs/dashboardsTotalCallVolumeByWeekday.ts +0 -111
  128. package/src/models/operations/getdailycallvolumebyhour.ts +0 -74
  129. package/src/models/operations/getmonthlycallvolumebyday.ts +0 -74
  130. package/src/models/operations/getmonthlycallvolumebyweek.ts +0 -74
  131. package/src/models/operations/getsessionagents.ts +0 -72
  132. package/src/models/operations/getsessionsummary.ts +0 -164
  133. package/src/models/operations/gettotalcallvolumebyhour.ts +0 -74
  134. package/src/models/operations/getweeklycallvolumebyweekday.ts +0 -75
  135. package/src/models/operations/totalcallvolumebyweekday.ts +0 -74
  136. package/src/sdk/dashboards.ts +0 -151
@@ -1,72 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Successful Response
12
- */
13
- export type GetSessionAgentsResponseGetSessionAgents = {};
14
-
15
- /** @internal */
16
- export const GetSessionAgentsResponseGetSessionAgents$inboundSchema: z.ZodType<
17
- GetSessionAgentsResponseGetSessionAgents,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({});
21
-
22
- /** @internal */
23
- export type GetSessionAgentsResponseGetSessionAgents$Outbound = {};
24
-
25
- /** @internal */
26
- export const GetSessionAgentsResponseGetSessionAgents$outboundSchema: z.ZodType<
27
- GetSessionAgentsResponseGetSessionAgents$Outbound,
28
- z.ZodTypeDef,
29
- GetSessionAgentsResponseGetSessionAgents
30
- > = z.object({});
31
-
32
- /**
33
- * @internal
34
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
- */
36
- export namespace GetSessionAgentsResponseGetSessionAgents$ {
37
- /** @deprecated use `GetSessionAgentsResponseGetSessionAgents$inboundSchema` instead. */
38
- export const inboundSchema =
39
- GetSessionAgentsResponseGetSessionAgents$inboundSchema;
40
- /** @deprecated use `GetSessionAgentsResponseGetSessionAgents$outboundSchema` instead. */
41
- export const outboundSchema =
42
- GetSessionAgentsResponseGetSessionAgents$outboundSchema;
43
- /** @deprecated use `GetSessionAgentsResponseGetSessionAgents$Outbound` instead. */
44
- export type Outbound = GetSessionAgentsResponseGetSessionAgents$Outbound;
45
- }
46
-
47
- export function getSessionAgentsResponseGetSessionAgentsToJSON(
48
- getSessionAgentsResponseGetSessionAgents:
49
- GetSessionAgentsResponseGetSessionAgents,
50
- ): string {
51
- return JSON.stringify(
52
- GetSessionAgentsResponseGetSessionAgents$outboundSchema.parse(
53
- getSessionAgentsResponseGetSessionAgents,
54
- ),
55
- );
56
- }
57
-
58
- export function getSessionAgentsResponseGetSessionAgentsFromJSON(
59
- jsonString: string,
60
- ): SafeParseResult<
61
- GetSessionAgentsResponseGetSessionAgents,
62
- SDKValidationError
63
- > {
64
- return safeParse(
65
- jsonString,
66
- (x) =>
67
- GetSessionAgentsResponseGetSessionAgents$inboundSchema.parse(
68
- JSON.parse(x),
69
- ),
70
- `Failed to parse 'GetSessionAgentsResponseGetSessionAgents' from JSON`,
71
- );
72
- }
@@ -1,164 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type GetSessionSummaryRequest = {
12
- page?: number | undefined;
13
- limit?: number | undefined;
14
- startDate?: string | null | undefined;
15
- endDate?: string | null | undefined;
16
- orderBy?: string | null | undefined;
17
- agentId?: number | null | undefined;
18
- };
19
-
20
- /**
21
- * Successful Response
22
- */
23
- export type GetSessionSummaryResponseGetSessionSummary = {};
24
-
25
- /** @internal */
26
- export const GetSessionSummaryRequest$inboundSchema: z.ZodType<
27
- GetSessionSummaryRequest,
28
- z.ZodTypeDef,
29
- unknown
30
- > = z.object({
31
- page: z.number().int().default(0),
32
- limit: z.number().int().default(100),
33
- start_date: z.nullable(z.string()).optional(),
34
- end_date: z.nullable(z.string()).optional(),
35
- order_by: z.nullable(z.string()).optional(),
36
- agent_id: z.nullable(z.number().int()).optional(),
37
- }).transform((v) => {
38
- return remap$(v, {
39
- "start_date": "startDate",
40
- "end_date": "endDate",
41
- "order_by": "orderBy",
42
- "agent_id": "agentId",
43
- });
44
- });
45
-
46
- /** @internal */
47
- export type GetSessionSummaryRequest$Outbound = {
48
- page: number;
49
- limit: number;
50
- start_date?: string | null | undefined;
51
- end_date?: string | null | undefined;
52
- order_by?: string | null | undefined;
53
- agent_id?: number | null | undefined;
54
- };
55
-
56
- /** @internal */
57
- export const GetSessionSummaryRequest$outboundSchema: z.ZodType<
58
- GetSessionSummaryRequest$Outbound,
59
- z.ZodTypeDef,
60
- GetSessionSummaryRequest
61
- > = z.object({
62
- page: z.number().int().default(0),
63
- limit: z.number().int().default(100),
64
- startDate: z.nullable(z.string()).optional(),
65
- endDate: z.nullable(z.string()).optional(),
66
- orderBy: z.nullable(z.string()).optional(),
67
- agentId: z.nullable(z.number().int()).optional(),
68
- }).transform((v) => {
69
- return remap$(v, {
70
- startDate: "start_date",
71
- endDate: "end_date",
72
- orderBy: "order_by",
73
- agentId: "agent_id",
74
- });
75
- });
76
-
77
- /**
78
- * @internal
79
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
- */
81
- export namespace GetSessionSummaryRequest$ {
82
- /** @deprecated use `GetSessionSummaryRequest$inboundSchema` instead. */
83
- export const inboundSchema = GetSessionSummaryRequest$inboundSchema;
84
- /** @deprecated use `GetSessionSummaryRequest$outboundSchema` instead. */
85
- export const outboundSchema = GetSessionSummaryRequest$outboundSchema;
86
- /** @deprecated use `GetSessionSummaryRequest$Outbound` instead. */
87
- export type Outbound = GetSessionSummaryRequest$Outbound;
88
- }
89
-
90
- export function getSessionSummaryRequestToJSON(
91
- getSessionSummaryRequest: GetSessionSummaryRequest,
92
- ): string {
93
- return JSON.stringify(
94
- GetSessionSummaryRequest$outboundSchema.parse(getSessionSummaryRequest),
95
- );
96
- }
97
-
98
- export function getSessionSummaryRequestFromJSON(
99
- jsonString: string,
100
- ): SafeParseResult<GetSessionSummaryRequest, SDKValidationError> {
101
- return safeParse(
102
- jsonString,
103
- (x) => GetSessionSummaryRequest$inboundSchema.parse(JSON.parse(x)),
104
- `Failed to parse 'GetSessionSummaryRequest' from JSON`,
105
- );
106
- }
107
-
108
- /** @internal */
109
- export const GetSessionSummaryResponseGetSessionSummary$inboundSchema:
110
- z.ZodType<GetSessionSummaryResponseGetSessionSummary, z.ZodTypeDef, unknown> =
111
- z.object({});
112
-
113
- /** @internal */
114
- export type GetSessionSummaryResponseGetSessionSummary$Outbound = {};
115
-
116
- /** @internal */
117
- export const GetSessionSummaryResponseGetSessionSummary$outboundSchema:
118
- z.ZodType<
119
- GetSessionSummaryResponseGetSessionSummary$Outbound,
120
- z.ZodTypeDef,
121
- GetSessionSummaryResponseGetSessionSummary
122
- > = z.object({});
123
-
124
- /**
125
- * @internal
126
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
127
- */
128
- export namespace GetSessionSummaryResponseGetSessionSummary$ {
129
- /** @deprecated use `GetSessionSummaryResponseGetSessionSummary$inboundSchema` instead. */
130
- export const inboundSchema =
131
- GetSessionSummaryResponseGetSessionSummary$inboundSchema;
132
- /** @deprecated use `GetSessionSummaryResponseGetSessionSummary$outboundSchema` instead. */
133
- export const outboundSchema =
134
- GetSessionSummaryResponseGetSessionSummary$outboundSchema;
135
- /** @deprecated use `GetSessionSummaryResponseGetSessionSummary$Outbound` instead. */
136
- export type Outbound = GetSessionSummaryResponseGetSessionSummary$Outbound;
137
- }
138
-
139
- export function getSessionSummaryResponseGetSessionSummaryToJSON(
140
- getSessionSummaryResponseGetSessionSummary:
141
- GetSessionSummaryResponseGetSessionSummary,
142
- ): string {
143
- return JSON.stringify(
144
- GetSessionSummaryResponseGetSessionSummary$outboundSchema.parse(
145
- getSessionSummaryResponseGetSessionSummary,
146
- ),
147
- );
148
- }
149
-
150
- export function getSessionSummaryResponseGetSessionSummaryFromJSON(
151
- jsonString: string,
152
- ): SafeParseResult<
153
- GetSessionSummaryResponseGetSessionSummary,
154
- SDKValidationError
155
- > {
156
- return safeParse(
157
- jsonString,
158
- (x) =>
159
- GetSessionSummaryResponseGetSessionSummary$inboundSchema.parse(
160
- JSON.parse(x),
161
- ),
162
- `Failed to parse 'GetSessionSummaryResponseGetSessionSummary' from JSON`,
163
- );
164
- }
@@ -1,74 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Successful Response
12
- */
13
- export type GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour = {};
14
-
15
- /** @internal */
16
- export const GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$inboundSchema:
17
- z.ZodType<
18
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour,
19
- z.ZodTypeDef,
20
- unknown
21
- > = z.object({});
22
-
23
- /** @internal */
24
- export type GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$Outbound =
25
- {};
26
-
27
- /** @internal */
28
- export const GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$outboundSchema:
29
- z.ZodType<
30
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$Outbound,
31
- z.ZodTypeDef,
32
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour
33
- > = z.object({});
34
-
35
- /**
36
- * @internal
37
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
38
- */
39
- export namespace GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$ {
40
- /** @deprecated use `GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$inboundSchema` instead. */
41
- export const inboundSchema =
42
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$inboundSchema;
43
- /** @deprecated use `GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$outboundSchema` instead. */
44
- export const outboundSchema =
45
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$outboundSchema;
46
- /** @deprecated use `GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$Outbound` instead. */
47
- export type Outbound =
48
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$Outbound;
49
- }
50
-
51
- export function getTotalCallVolumeByHourResponseGetTotalCallVolumeByHourToJSON(
52
- getTotalCallVolumeByHourResponseGetTotalCallVolumeByHour:
53
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour,
54
- ): string {
55
- return JSON.stringify(
56
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$outboundSchema
57
- .parse(getTotalCallVolumeByHourResponseGetTotalCallVolumeByHour),
58
- );
59
- }
60
-
61
- export function getTotalCallVolumeByHourResponseGetTotalCallVolumeByHourFromJSON(
62
- jsonString: string,
63
- ): SafeParseResult<
64
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour,
65
- SDKValidationError
66
- > {
67
- return safeParse(
68
- jsonString,
69
- (x) =>
70
- GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour$inboundSchema
71
- .parse(JSON.parse(x)),
72
- `Failed to parse 'GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour' from JSON`,
73
- );
74
- }
@@ -1,75 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Successful Response
12
- */
13
- export type GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday =
14
- {};
15
-
16
- /** @internal */
17
- export const GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$inboundSchema:
18
- z.ZodType<
19
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday,
20
- z.ZodTypeDef,
21
- unknown
22
- > = z.object({});
23
-
24
- /** @internal */
25
- export type GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$Outbound =
26
- {};
27
-
28
- /** @internal */
29
- export const GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$outboundSchema:
30
- z.ZodType<
31
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$Outbound,
32
- z.ZodTypeDef,
33
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday
34
- > = z.object({});
35
-
36
- /**
37
- * @internal
38
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
39
- */
40
- export namespace GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$ {
41
- /** @deprecated use `GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$inboundSchema` instead. */
42
- export const inboundSchema =
43
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$inboundSchema;
44
- /** @deprecated use `GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$outboundSchema` instead. */
45
- export const outboundSchema =
46
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$outboundSchema;
47
- /** @deprecated use `GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$Outbound` instead. */
48
- export type Outbound =
49
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$Outbound;
50
- }
51
-
52
- export function getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekdayToJSON(
53
- getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday:
54
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday,
55
- ): string {
56
- return JSON.stringify(
57
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$outboundSchema
58
- .parse(getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday),
59
- );
60
- }
61
-
62
- export function getWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekdayFromJSON(
63
- jsonString: string,
64
- ): SafeParseResult<
65
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday,
66
- SDKValidationError
67
- > {
68
- return safeParse(
69
- jsonString,
70
- (x) =>
71
- GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday$inboundSchema
72
- .parse(JSON.parse(x)),
73
- `Failed to parse 'GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday' from JSON`,
74
- );
75
- }
@@ -1,74 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Successful Response
12
- */
13
- export type TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday = {};
14
-
15
- /** @internal */
16
- export const TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$inboundSchema:
17
- z.ZodType<
18
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday,
19
- z.ZodTypeDef,
20
- unknown
21
- > = z.object({});
22
-
23
- /** @internal */
24
- export type TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$Outbound =
25
- {};
26
-
27
- /** @internal */
28
- export const TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$outboundSchema:
29
- z.ZodType<
30
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$Outbound,
31
- z.ZodTypeDef,
32
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday
33
- > = z.object({});
34
-
35
- /**
36
- * @internal
37
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
38
- */
39
- export namespace TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$ {
40
- /** @deprecated use `TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$inboundSchema` instead. */
41
- export const inboundSchema =
42
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$inboundSchema;
43
- /** @deprecated use `TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$outboundSchema` instead. */
44
- export const outboundSchema =
45
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$outboundSchema;
46
- /** @deprecated use `TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$Outbound` instead. */
47
- export type Outbound =
48
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$Outbound;
49
- }
50
-
51
- export function totalCallVolumeByWeekdayResponseTotalCallVolumeByWeekdayToJSON(
52
- totalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday:
53
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday,
54
- ): string {
55
- return JSON.stringify(
56
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$outboundSchema
57
- .parse(totalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday),
58
- );
59
- }
60
-
61
- export function totalCallVolumeByWeekdayResponseTotalCallVolumeByWeekdayFromJSON(
62
- jsonString: string,
63
- ): SafeParseResult<
64
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday,
65
- SDKValidationError
66
- > {
67
- return safeParse(
68
- jsonString,
69
- (x) =>
70
- TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday$inboundSchema
71
- .parse(JSON.parse(x)),
72
- `Failed to parse 'TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday' from JSON`,
73
- );
74
- }
@@ -1,151 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { dashboardsGetDailyCallVolumeByHour } from "../funcs/dashboardsGetDailyCallVolumeByHour.js";
6
- import { dashboardsGetMonthlyCallVolumeByDay } from "../funcs/dashboardsGetMonthlyCallVolumeByDay.js";
7
- import { dashboardsGetMonthlyCallVolumeByWeek } from "../funcs/dashboardsGetMonthlyCallVolumeByWeek.js";
8
- import { dashboardsGetSessionAgents } from "../funcs/dashboardsGetSessionAgents.js";
9
- import { dashboardsGetSessionSummary } from "../funcs/dashboardsGetSessionSummary.js";
10
- import { dashboardsGetTotalCallVolumeByHour } from "../funcs/dashboardsGetTotalCallVolumeByHour.js";
11
- import { dashboardsGetWeeklyCallVolumeByWeekday } from "../funcs/dashboardsGetWeeklyCallVolumeByWeekday.js";
12
- import { dashboardsTotalCallVolumeByWeekday } from "../funcs/dashboardsTotalCallVolumeByWeekday.js";
13
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
14
- import * as operations from "../models/operations/index.js";
15
- import { unwrapAsync } from "../types/fp.js";
16
-
17
- export class Dashboards extends ClientSDK {
18
- /**
19
- * Get Total Call Volume By Weekday
20
- *
21
- * @remarks
22
- * Get total call volume by weekday.
23
- */
24
- async totalCallVolumeByWeekday(
25
- options?: RequestOptions,
26
- ): Promise<
27
- operations.TotalCallVolumeByWeekdayResponseTotalCallVolumeByWeekday
28
- > {
29
- return unwrapAsync(dashboardsTotalCallVolumeByWeekday(
30
- this,
31
- options,
32
- ));
33
- }
34
-
35
- /**
36
- * Get Total Call Volume By Hour
37
- *
38
- * @remarks
39
- * Get total call volume by hour.
40
- */
41
- async getTotalCallVolumeByHour(
42
- options?: RequestOptions,
43
- ): Promise<
44
- operations.GetTotalCallVolumeByHourResponseGetTotalCallVolumeByHour
45
- > {
46
- return unwrapAsync(dashboardsGetTotalCallVolumeByHour(
47
- this,
48
- options,
49
- ));
50
- }
51
-
52
- /**
53
- * Get Weekly Call Volume By Weekday
54
- *
55
- * @remarks
56
- * Get weekly call volume by weekday.
57
- */
58
- async getWeeklyCallVolumeByWeekday(
59
- options?: RequestOptions,
60
- ): Promise<
61
- operations.GetWeeklyCallVolumeByWeekdayResponseGetWeeklyCallVolumeByWeekday
62
- > {
63
- return unwrapAsync(dashboardsGetWeeklyCallVolumeByWeekday(
64
- this,
65
- options,
66
- ));
67
- }
68
-
69
- /**
70
- * Get Daily Call Volume By Hour
71
- *
72
- * @remarks
73
- * Get daily call volume by hour.
74
- */
75
- async getDailyCallVolumeByHour(
76
- options?: RequestOptions,
77
- ): Promise<
78
- operations.GetDailyCallVolumeByHourResponseGetDailyCallVolumeByHour
79
- > {
80
- return unwrapAsync(dashboardsGetDailyCallVolumeByHour(
81
- this,
82
- options,
83
- ));
84
- }
85
-
86
- /**
87
- * Get Monthly Call Volume By Week
88
- *
89
- * @remarks
90
- * Get monthly cal volume by week.
91
- */
92
- async getMonthlyCallVolumeByWeek(
93
- options?: RequestOptions,
94
- ): Promise<
95
- operations.GetMonthlyCallVolumeByWeekResponseGetMonthlyCallVolumeByWeek
96
- > {
97
- return unwrapAsync(dashboardsGetMonthlyCallVolumeByWeek(
98
- this,
99
- options,
100
- ));
101
- }
102
-
103
- /**
104
- * Get Monthly Call Volume By Day
105
- *
106
- * @remarks
107
- * Get monthly call volume by day.
108
- */
109
- async getMonthlyCallVolumeByDay(
110
- options?: RequestOptions,
111
- ): Promise<
112
- operations.GetMonthlyCallVolumeByDayResponseGetMonthlyCallVolumeByDay
113
- > {
114
- return unwrapAsync(dashboardsGetMonthlyCallVolumeByDay(
115
- this,
116
- options,
117
- ));
118
- }
119
-
120
- /**
121
- * Get Session Summary
122
- *
123
- * @remarks
124
- * Get session summary data
125
- */
126
- async getSessionSummary(
127
- request: operations.GetSessionSummaryRequest,
128
- options?: RequestOptions,
129
- ): Promise<operations.GetSessionSummaryResponseGetSessionSummary> {
130
- return unwrapAsync(dashboardsGetSessionSummary(
131
- this,
132
- request,
133
- options,
134
- ));
135
- }
136
-
137
- /**
138
- * Get Agents
139
- *
140
- * @remarks
141
- * Get list of agents for session summary dropdown
142
- */
143
- async getSessionAgents(
144
- options?: RequestOptions,
145
- ): Promise<operations.GetSessionAgentsResponseGetSessionAgents> {
146
- return unwrapAsync(dashboardsGetSessionAgents(
147
- this,
148
- options,
149
- ));
150
- }
151
- }