@domu-ai/kiban-sdk 1.72.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 +35 -0
- package/dashboard/client.d.ts +799 -0
- package/dashboard/client.js +195 -0
- package/dashboard/index.d.ts +3 -0
- package/dashboard/index.js +42 -0
- package/dashboard/schemas.d.ts +1002 -0
- package/dashboard/schemas.js +258 -0
- package/fetcher.d.ts +2 -0
- package/fetcher.js +23 -0
- package/index.d.ts +11 -0
- package/index.js +55 -0
- package/internal/client.d.ts +3055 -0
- package/internal/client.js +495 -0
- package/internal/index.d.ts +3 -0
- package/internal/index.js +42 -0
- package/internal/schemas.d.ts +12845 -0
- package/internal/schemas.js +1870 -0
- package/package.json +43 -0
- package/public/client.d.ts +871 -0
- package/public/client.js +251 -0
- package/public/index.d.ts +3 -0
- package/public/index.js +42 -0
- package/public/schemas.d.ts +1487 -0
- package/public/schemas.js +455 -0
- package/shared/fetcher.d.ts +94 -0
- package/shared/fetcher.js +189 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostUrl = exports.dashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostUrl = exports.dashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchUrl = exports.dashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostUrl = exports.dashboardCallsCallIdGet = exports.getDashboardCallsCallIdGetUrl = exports.dashboardOutputFieldsGet = exports.getDashboardOutputFieldsGetUrl = exports.dashboardInputFieldsGet = exports.getDashboardInputFieldsGetUrl = exports.dashboardAgentsGet = exports.getDashboardAgentsGetUrl = exports.dashboardCampaignsCampaignIdScheduleConfigGet = exports.getDashboardCampaignsCampaignIdScheduleConfigGetUrl = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generated by orval v8.2.0 🍺
|
|
6
|
+
* Do not edit manually.
|
|
7
|
+
* Kiban Dashboard API
|
|
8
|
+
* Dashboard endpoints for authenticated backoffice operations and campaign management.
|
|
9
|
+
* OpenAPI spec version: 1.0.0
|
|
10
|
+
*/
|
|
11
|
+
const fetcher_1 = require("../shared/fetcher");
|
|
12
|
+
exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = {
|
|
13
|
+
NUMBER_1: 1,
|
|
14
|
+
NUMBER_2: 2,
|
|
15
|
+
NUMBER_3: 3,
|
|
16
|
+
NUMBER_4: 4,
|
|
17
|
+
NUMBER_5: 5,
|
|
18
|
+
NUMBER_6: 6,
|
|
19
|
+
NUMBER_7: 7,
|
|
20
|
+
};
|
|
21
|
+
exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = {
|
|
22
|
+
primary: 'primary',
|
|
23
|
+
secondary: 'secondary',
|
|
24
|
+
tertiary: 'tertiary',
|
|
25
|
+
quaternary: 'quaternary',
|
|
26
|
+
quinary: 'quinary',
|
|
27
|
+
senary: 'senary',
|
|
28
|
+
septenary: 'septenary',
|
|
29
|
+
};
|
|
30
|
+
exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = {
|
|
31
|
+
call: 'call',
|
|
32
|
+
message: 'message',
|
|
33
|
+
wait: 'wait',
|
|
34
|
+
};
|
|
35
|
+
exports.DashboardSchedulerPreviewPost200DataWarningsItemType = {
|
|
36
|
+
outside_contact_hours: 'outside_contact_hours',
|
|
37
|
+
no_contact_hours: 'no_contact_hours',
|
|
38
|
+
holiday_conflict: 'holiday_conflict',
|
|
39
|
+
invalid_cron: 'invalid_cron',
|
|
40
|
+
slot_overlap: 'slot_overlap',
|
|
41
|
+
};
|
|
42
|
+
exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = {
|
|
43
|
+
error: 'error',
|
|
44
|
+
warning: 'warning',
|
|
45
|
+
info: 'info',
|
|
46
|
+
};
|
|
47
|
+
exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = {
|
|
48
|
+
NUMBER_1: 1,
|
|
49
|
+
NUMBER_2: 2,
|
|
50
|
+
NUMBER_3: 3,
|
|
51
|
+
NUMBER_4: 4,
|
|
52
|
+
NUMBER_5: 5,
|
|
53
|
+
NUMBER_6: 6,
|
|
54
|
+
NUMBER_7: 7,
|
|
55
|
+
};
|
|
56
|
+
exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = {
|
|
57
|
+
primary: 'primary',
|
|
58
|
+
secondary: 'secondary',
|
|
59
|
+
tertiary: 'tertiary',
|
|
60
|
+
quaternary: 'quaternary',
|
|
61
|
+
quinary: 'quinary',
|
|
62
|
+
senary: 'senary',
|
|
63
|
+
septenary: 'septenary',
|
|
64
|
+
};
|
|
65
|
+
const getDashboardCampaignsNamesPostUrl = () => {
|
|
66
|
+
return `/v1/dashboard/campaigns/names`;
|
|
67
|
+
};
|
|
68
|
+
exports.getDashboardCampaignsNamesPostUrl = getDashboardCampaignsNamesPostUrl;
|
|
69
|
+
const dashboardCampaignsNamesPost = async (dashboardCampaignsNamesPostBody, options) => {
|
|
70
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardCampaignsNamesPostUrl)(), {
|
|
71
|
+
...options,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
74
|
+
body: JSON.stringify(dashboardCampaignsNamesPostBody)
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
exports.dashboardCampaignsNamesPost = dashboardCampaignsNamesPost;
|
|
78
|
+
const getDashboardCampaignsGetUrl = () => {
|
|
79
|
+
return `/v1/dashboard/campaigns`;
|
|
80
|
+
};
|
|
81
|
+
exports.getDashboardCampaignsGetUrl = getDashboardCampaignsGetUrl;
|
|
82
|
+
const dashboardCampaignsGet = async (options) => {
|
|
83
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardCampaignsGetUrl)(), {
|
|
84
|
+
...options,
|
|
85
|
+
method: 'GET'
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
exports.dashboardCampaignsGet = dashboardCampaignsGet;
|
|
89
|
+
const getDashboardCampaignsCampaignIdScheduleConfigGetUrl = (campaignId) => {
|
|
90
|
+
return `/v1/dashboard/campaigns/${campaignId}/schedule-config`;
|
|
91
|
+
};
|
|
92
|
+
exports.getDashboardCampaignsCampaignIdScheduleConfigGetUrl = getDashboardCampaignsCampaignIdScheduleConfigGetUrl;
|
|
93
|
+
const dashboardCampaignsCampaignIdScheduleConfigGet = async (campaignId, options) => {
|
|
94
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardCampaignsCampaignIdScheduleConfigGetUrl)(campaignId), {
|
|
95
|
+
...options,
|
|
96
|
+
method: 'GET'
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
exports.dashboardCampaignsCampaignIdScheduleConfigGet = dashboardCampaignsCampaignIdScheduleConfigGet;
|
|
100
|
+
const getDashboardAgentsGetUrl = () => {
|
|
101
|
+
return `/v1/dashboard/agents`;
|
|
102
|
+
};
|
|
103
|
+
exports.getDashboardAgentsGetUrl = getDashboardAgentsGetUrl;
|
|
104
|
+
const dashboardAgentsGet = async (options) => {
|
|
105
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardAgentsGetUrl)(), {
|
|
106
|
+
...options,
|
|
107
|
+
method: 'GET'
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
exports.dashboardAgentsGet = dashboardAgentsGet;
|
|
111
|
+
const getDashboardInputFieldsGetUrl = () => {
|
|
112
|
+
return `/v1/dashboard/input-fields`;
|
|
113
|
+
};
|
|
114
|
+
exports.getDashboardInputFieldsGetUrl = getDashboardInputFieldsGetUrl;
|
|
115
|
+
const dashboardInputFieldsGet = async (options) => {
|
|
116
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardInputFieldsGetUrl)(), {
|
|
117
|
+
...options,
|
|
118
|
+
method: 'GET'
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
exports.dashboardInputFieldsGet = dashboardInputFieldsGet;
|
|
122
|
+
const getDashboardOutputFieldsGetUrl = () => {
|
|
123
|
+
return `/v1/dashboard/output-fields`;
|
|
124
|
+
};
|
|
125
|
+
exports.getDashboardOutputFieldsGetUrl = getDashboardOutputFieldsGetUrl;
|
|
126
|
+
const dashboardOutputFieldsGet = async (options) => {
|
|
127
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardOutputFieldsGetUrl)(), {
|
|
128
|
+
...options,
|
|
129
|
+
method: 'GET'
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
exports.dashboardOutputFieldsGet = dashboardOutputFieldsGet;
|
|
133
|
+
const getDashboardCallsCallIdGetUrl = (callId) => {
|
|
134
|
+
return `/v1/dashboard/calls/${callId}`;
|
|
135
|
+
};
|
|
136
|
+
exports.getDashboardCallsCallIdGetUrl = getDashboardCallsCallIdGetUrl;
|
|
137
|
+
const dashboardCallsCallIdGet = async (callId, options) => {
|
|
138
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardCallsCallIdGetUrl)(callId), {
|
|
139
|
+
...options,
|
|
140
|
+
method: 'GET'
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
exports.dashboardCallsCallIdGet = dashboardCallsCallIdGet;
|
|
144
|
+
const getDashboardCallsReviewStatusPostUrl = () => {
|
|
145
|
+
return `/v1/dashboard/calls/review-status`;
|
|
146
|
+
};
|
|
147
|
+
exports.getDashboardCallsReviewStatusPostUrl = getDashboardCallsReviewStatusPostUrl;
|
|
148
|
+
const dashboardCallsReviewStatusPost = async (dashboardCallsReviewStatusPostBody, options) => {
|
|
149
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardCallsReviewStatusPostUrl)(), {
|
|
150
|
+
...options,
|
|
151
|
+
method: 'POST',
|
|
152
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
153
|
+
body: JSON.stringify(dashboardCallsReviewStatusPostBody)
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
exports.dashboardCallsReviewStatusPost = dashboardCallsReviewStatusPost;
|
|
157
|
+
const getDashboardCallsCallIdReviewPatchUrl = (callId) => {
|
|
158
|
+
return `/v1/dashboard/calls/${callId}/review`;
|
|
159
|
+
};
|
|
160
|
+
exports.getDashboardCallsCallIdReviewPatchUrl = getDashboardCallsCallIdReviewPatchUrl;
|
|
161
|
+
const dashboardCallsCallIdReviewPatch = async (callId, dashboardCallsCallIdReviewPatchBody, options) => {
|
|
162
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardCallsCallIdReviewPatchUrl)(callId), {
|
|
163
|
+
...options,
|
|
164
|
+
method: 'PATCH',
|
|
165
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
166
|
+
body: JSON.stringify(dashboardCallsCallIdReviewPatchBody)
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
exports.dashboardCallsCallIdReviewPatch = dashboardCallsCallIdReviewPatch;
|
|
170
|
+
const getDashboardSchedulerPreviewPostUrl = () => {
|
|
171
|
+
return `/v1/dashboard/scheduler/preview`;
|
|
172
|
+
};
|
|
173
|
+
exports.getDashboardSchedulerPreviewPostUrl = getDashboardSchedulerPreviewPostUrl;
|
|
174
|
+
const dashboardSchedulerPreviewPost = async (dashboardSchedulerPreviewPostBody, options) => {
|
|
175
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardSchedulerPreviewPostUrl)(), {
|
|
176
|
+
...options,
|
|
177
|
+
method: 'POST',
|
|
178
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
179
|
+
body: JSON.stringify(dashboardSchedulerPreviewPostBody)
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
exports.dashboardSchedulerPreviewPost = dashboardSchedulerPreviewPost;
|
|
183
|
+
const getDashboardSchedulerCreatePostUrl = () => {
|
|
184
|
+
return `/v1/dashboard/scheduler/create`;
|
|
185
|
+
};
|
|
186
|
+
exports.getDashboardSchedulerCreatePostUrl = getDashboardSchedulerCreatePostUrl;
|
|
187
|
+
const dashboardSchedulerCreatePost = async (dashboardSchedulerCreatePostBody, options) => {
|
|
188
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardSchedulerCreatePostUrl)(), {
|
|
189
|
+
...options,
|
|
190
|
+
method: 'POST',
|
|
191
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
192
|
+
body: JSON.stringify(dashboardSchedulerCreatePostBody)
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
exports.dashboardSchedulerCreatePost = dashboardSchedulerCreatePost;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.schemas = void 0;
|
|
40
|
+
__exportStar(require("../shared/fetcher"), exports);
|
|
41
|
+
__exportStar(require("./client"), exports);
|
|
42
|
+
exports.schemas = __importStar(require("./schemas"));
|