@l7mp/tivadar-ai-api-sdk 0.2.10 → 0.2.12
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/dist/api-client.d.ts +46 -4
- package/dist/api-client.js +33 -3
- package/dist/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/apis/AdminSubscriptionsApi.js +243 -0
- package/dist/apis/CallFlagsApi.d.ts +133 -0
- package/dist/apis/CallFlagsApi.js +376 -0
- package/dist/apis/SubscriptionApi.d.ts +54 -75
- package/dist/apis/SubscriptionApi.js +95 -114
- package/dist/apis/VoiceUsageApi.d.ts +31 -0
- package/dist/apis/VoiceUsageApi.js +73 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/api-client.d.ts +46 -4
- package/dist/esm/api-client.js +33 -3
- package/dist/esm/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/esm/apis/AdminSubscriptionsApi.js +239 -0
- package/dist/esm/apis/CallFlagsApi.d.ts +133 -0
- package/dist/esm/apis/CallFlagsApi.js +372 -0
- package/dist/esm/apis/SubscriptionApi.d.ts +54 -75
- package/dist/esm/apis/SubscriptionApi.js +96 -115
- package/dist/esm/apis/VoiceUsageApi.d.ts +31 -0
- package/dist/esm/apis/VoiceUsageApi.js +69 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AdminGrantMinutesRequest.d.ts +38 -0
- package/dist/esm/models/AdminGrantMinutesRequest.js +45 -0
- package/dist/esm/models/AdminSetSubscriptionRequest.d.ts +86 -0
- package/dist/esm/models/AdminSetSubscriptionRequest.js +71 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.js +48 -0
- package/dist/esm/models/BillingPortalRequest.d.ts +1 -1
- package/dist/esm/models/BillingPortalResponse.d.ts +1 -1
- package/dist/esm/models/Call.d.ts +7 -0
- package/dist/esm/models/Call.js +3 -0
- package/dist/esm/models/CallFlag.d.ts +110 -0
- package/dist/esm/models/CallFlag.js +89 -0
- package/dist/esm/models/CallFlagCreate.d.ts +48 -0
- package/dist/esm/models/CallFlagCreate.js +54 -0
- package/dist/esm/models/CallFlagResolve.d.ts +32 -0
- package/dist/esm/models/CallFlagResolve.js +41 -0
- package/dist/esm/models/CallFlagUpdate.d.ts +48 -0
- package/dist/esm/models/CallFlagUpdate.js +52 -0
- package/dist/esm/models/CallFlagWithCall.d.ts +117 -0
- package/dist/esm/models/CallFlagWithCall.js +92 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.js +49 -0
- package/dist/esm/models/CancelSubscriptionRequest.d.ts +2 -2
- package/dist/esm/models/CheckoutSessionResponse.d.ts +2 -2
- package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +21 -7
- package/dist/esm/models/CreateCheckoutSessionRequest.js +18 -5
- package/dist/esm/models/CurrentPeriodUsage.d.ts +59 -0
- package/dist/esm/models/CurrentPeriodUsage.js +62 -0
- package/dist/esm/models/LifecycleResponse.d.ts +50 -0
- package/dist/esm/models/LifecycleResponse.js +51 -0
- package/dist/esm/models/PauseSubscriptionRequest.d.ts +1 -1
- package/dist/esm/models/PlanCatalogEntry.d.ts +90 -0
- package/dist/esm/models/PlanCatalogEntry.js +73 -0
- package/dist/esm/models/PlanCatalogEntryOverageInner.d.ts +44 -0
- package/dist/esm/models/PlanCatalogEntryOverageInner.js +45 -0
- package/dist/esm/models/PlanCatalogPrice.d.ts +58 -0
- package/dist/esm/models/PlanCatalogPrice.js +60 -0
- package/dist/esm/models/SubscriptionPlanSummary.d.ts +83 -0
- package/dist/esm/models/SubscriptionPlanSummary.js +70 -0
- package/dist/esm/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
- package/dist/esm/models/SubscriptionPlanSummaryOverageRate.js +43 -0
- package/dist/esm/models/SubscriptionStatus.d.ts +103 -10
- package/dist/esm/models/SubscriptionStatus.js +58 -9
- package/dist/esm/models/SubscriptionUsageSummary.d.ts +56 -0
- package/dist/esm/models/SubscriptionUsageSummary.js +57 -0
- package/dist/esm/models/UpdatePlanRequest.d.ts +13 -5
- package/dist/esm/models/UpdatePlanRequest.js +12 -3
- package/dist/esm/models/UsageBreakdownByAgent.d.ts +44 -0
- package/dist/esm/models/UsageBreakdownByAgent.js +49 -0
- package/dist/esm/models/UsageBreakdownByDay.d.ts +44 -0
- package/dist/esm/models/UsageBreakdownByDay.js +51 -0
- package/dist/esm/models/UsageHistoryResponse.d.ts +39 -0
- package/dist/esm/models/UsageHistoryResponse.js +48 -0
- package/dist/esm/models/UsageRecordDto.d.ts +80 -0
- package/dist/esm/models/UsageRecordDto.js +65 -0
- package/dist/esm/models/VoiceUsageReportRequest.d.ts +62 -0
- package/dist/esm/models/VoiceUsageReportRequest.js +57 -0
- package/dist/esm/models/VoiceUsageReportResponse.d.ts +51 -0
- package/dist/esm/models/VoiceUsageReportResponse.js +52 -0
- package/dist/esm/models/index.d.ts +23 -13
- package/dist/esm/models/index.js +23 -13
- package/dist/models/AdminGrantMinutesRequest.d.ts +38 -0
- package/dist/models/AdminGrantMinutesRequest.js +52 -0
- package/dist/models/AdminSetSubscriptionRequest.d.ts +86 -0
- package/dist/models/AdminSetSubscriptionRequest.js +79 -0
- package/dist/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/models/AdminSubscriptionsListResponse.js +55 -0
- package/dist/models/BillingPortalRequest.d.ts +1 -1
- package/dist/models/BillingPortalResponse.d.ts +1 -1
- package/dist/models/Call.d.ts +7 -0
- package/dist/models/Call.js +3 -0
- package/dist/models/CallFlag.d.ts +110 -0
- package/dist/models/CallFlag.js +97 -0
- package/dist/models/CallFlagCreate.d.ts +48 -0
- package/dist/models/CallFlagCreate.js +62 -0
- package/dist/models/CallFlagResolve.d.ts +32 -0
- package/dist/models/CallFlagResolve.js +48 -0
- package/dist/models/CallFlagUpdate.d.ts +48 -0
- package/dist/models/CallFlagUpdate.js +60 -0
- package/dist/models/CallFlagWithCall.d.ts +117 -0
- package/dist/models/CallFlagWithCall.js +100 -0
- package/dist/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/models/CallFlagWithCallAllOfCall.js +56 -0
- package/dist/models/CancelSubscriptionRequest.d.ts +2 -2
- package/dist/models/CheckoutSessionResponse.d.ts +2 -2
- package/dist/models/CreateCheckoutSessionRequest.d.ts +21 -7
- package/dist/models/CreateCheckoutSessionRequest.js +19 -5
- package/dist/models/CurrentPeriodUsage.d.ts +59 -0
- package/dist/models/CurrentPeriodUsage.js +69 -0
- package/dist/models/LifecycleResponse.d.ts +50 -0
- package/dist/models/LifecycleResponse.js +58 -0
- package/dist/models/PauseSubscriptionRequest.d.ts +1 -1
- package/dist/models/PlanCatalogEntry.d.ts +90 -0
- package/dist/models/PlanCatalogEntry.js +80 -0
- package/dist/models/PlanCatalogEntryOverageInner.d.ts +44 -0
- package/dist/models/PlanCatalogEntryOverageInner.js +52 -0
- package/dist/models/PlanCatalogPrice.d.ts +58 -0
- package/dist/models/PlanCatalogPrice.js +68 -0
- package/dist/models/SubscriptionPlanSummary.d.ts +83 -0
- package/dist/models/SubscriptionPlanSummary.js +77 -0
- package/dist/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
- package/dist/models/SubscriptionPlanSummaryOverageRate.js +50 -0
- package/dist/models/SubscriptionStatus.d.ts +103 -10
- package/dist/models/SubscriptionStatus.js +59 -9
- package/dist/models/SubscriptionUsageSummary.d.ts +56 -0
- package/dist/models/SubscriptionUsageSummary.js +64 -0
- package/dist/models/UpdatePlanRequest.d.ts +13 -5
- package/dist/models/UpdatePlanRequest.js +13 -3
- package/dist/models/UsageBreakdownByAgent.d.ts +44 -0
- package/dist/models/UsageBreakdownByAgent.js +56 -0
- package/dist/models/UsageBreakdownByDay.d.ts +44 -0
- package/dist/models/UsageBreakdownByDay.js +58 -0
- package/dist/models/UsageHistoryResponse.d.ts +39 -0
- package/dist/models/UsageHistoryResponse.js +55 -0
- package/dist/models/UsageRecordDto.d.ts +80 -0
- package/dist/models/UsageRecordDto.js +72 -0
- package/dist/models/VoiceUsageReportRequest.d.ts +62 -0
- package/dist/models/VoiceUsageReportRequest.js +64 -0
- package/dist/models/VoiceUsageReportResponse.d.ts +51 -0
- package/dist/models/VoiceUsageReportResponse.js +59 -0
- package/dist/models/index.d.ts +23 -13
- package/dist/models/index.js +23 -13
- package/package.json +1 -1
- package/src/api-client.ts +71 -6
- package/src/apis/AdminSubscriptionsApi.ts +331 -0
- package/src/apis/CallFlagsApi.ts +546 -0
- package/src/apis/SubscriptionApi.ts +130 -162
- package/src/apis/VoiceUsageApi.ts +86 -0
- package/src/apis/index.ts +3 -0
- package/src/models/AdminGrantMinutesRequest.ts +74 -0
- package/src/models/AdminSetSubscriptionRequest.ts +136 -0
- package/src/models/AdminSubscriptionsListResponse.ts +83 -0
- package/src/models/BillingPortalRequest.ts +1 -1
- package/src/models/BillingPortalResponse.ts +1 -1
- package/src/models/Call.ts +16 -0
- package/src/models/CallFlag.ts +173 -0
- package/src/models/CallFlagCreate.ts +87 -0
- package/src/models/CallFlagResolve.ts +65 -0
- package/src/models/CallFlagUpdate.ts +86 -0
- package/src/models/CallFlagWithCall.ts +189 -0
- package/src/models/CallFlagWithCallAllOfCall.ts +97 -0
- package/src/models/CancelSubscriptionRequest.ts +2 -2
- package/src/models/CheckoutSessionResponse.ts +2 -2
- package/src/models/CreateCheckoutSessionRequest.ts +33 -12
- package/src/models/CurrentPeriodUsage.ts +124 -0
- package/src/models/LifecycleResponse.ts +91 -0
- package/src/models/PauseSubscriptionRequest.ts +1 -1
- package/src/models/PlanCatalogEntry.ts +158 -0
- package/src/models/PlanCatalogEntryOverageInner.ts +81 -0
- package/src/models/PlanCatalogPrice.ts +103 -0
- package/src/models/SubscriptionPlanSummary.ts +143 -0
- package/src/models/SubscriptionPlanSummaryOverageRate.ts +73 -0
- package/src/models/SubscriptionStatus.ts +150 -32
- package/src/models/SubscriptionUsageSummary.ts +101 -0
- package/src/models/UpdatePlanRequest.ts +20 -8
- package/src/models/UsageBreakdownByAgent.ts +83 -0
- package/src/models/UsageBreakdownByDay.ts +84 -0
- package/src/models/UsageHistoryResponse.ts +83 -0
- package/src/models/UsageRecordDto.ts +133 -0
- package/src/models/VoiceUsageReportRequest.ts +108 -0
- package/src/models/VoiceUsageReportResponse.ts +99 -0
- package/src/models/index.ts +23 -13
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriptionUsageSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionUsageSummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SubscriptionUsageSummary
|
|
22
|
+
*/
|
|
23
|
+
includedMinutes: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SubscriptionUsageSummary
|
|
28
|
+
*/
|
|
29
|
+
usedSeconds: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SubscriptionUsageSummary
|
|
34
|
+
*/
|
|
35
|
+
usedMinutes: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SubscriptionUsageSummary
|
|
40
|
+
*/
|
|
41
|
+
overageMinutes: number;
|
|
42
|
+
/**
|
|
43
|
+
* max(0, includedMinutes - usedMinutes)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof SubscriptionUsageSummary
|
|
46
|
+
*/
|
|
47
|
+
remainingMinutes?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SubscriptionUsageSummary interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSubscriptionUsageSummary(value: object): value is SubscriptionUsageSummary;
|
|
53
|
+
export declare function SubscriptionUsageSummaryFromJSON(json: any): SubscriptionUsageSummary;
|
|
54
|
+
export declare function SubscriptionUsageSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionUsageSummary;
|
|
55
|
+
export declare function SubscriptionUsageSummaryToJSON(json: any): SubscriptionUsageSummary;
|
|
56
|
+
export declare function SubscriptionUsageSummaryToJSONTyped(value?: SubscriptionUsageSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionUsageSummary = instanceOfSubscriptionUsageSummary;
|
|
17
|
+
exports.SubscriptionUsageSummaryFromJSON = SubscriptionUsageSummaryFromJSON;
|
|
18
|
+
exports.SubscriptionUsageSummaryFromJSONTyped = SubscriptionUsageSummaryFromJSONTyped;
|
|
19
|
+
exports.SubscriptionUsageSummaryToJSON = SubscriptionUsageSummaryToJSON;
|
|
20
|
+
exports.SubscriptionUsageSummaryToJSONTyped = SubscriptionUsageSummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionUsageSummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionUsageSummary(value) {
|
|
25
|
+
if (!('includedMinutes' in value) || value['includedMinutes'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('usedSeconds' in value) || value['usedSeconds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('usedMinutes' in value) || value['usedMinutes'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('overageMinutes' in value) || value['overageMinutes'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SubscriptionUsageSummaryFromJSON(json) {
|
|
36
|
+
return SubscriptionUsageSummaryFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SubscriptionUsageSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'includedMinutes': json['includedMinutes'],
|
|
44
|
+
'usedSeconds': json['usedSeconds'],
|
|
45
|
+
'usedMinutes': json['usedMinutes'],
|
|
46
|
+
'overageMinutes': json['overageMinutes'],
|
|
47
|
+
'remainingMinutes': json['remainingMinutes'] == null ? undefined : json['remainingMinutes'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function SubscriptionUsageSummaryToJSON(json) {
|
|
51
|
+
return SubscriptionUsageSummaryToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function SubscriptionUsageSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'includedMinutes': value['includedMinutes'],
|
|
59
|
+
'usedSeconds': value['usedSeconds'],
|
|
60
|
+
'usedMinutes': value['usedMinutes'],
|
|
61
|
+
'overageMinutes': value['overageMinutes'],
|
|
62
|
+
'remainingMinutes': value['remainingMinutes'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -16,24 +16,32 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdatePlanRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdatePlanRequest
|
|
22
22
|
*/
|
|
23
|
-
planSlug
|
|
23
|
+
planSlug: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdatePlanRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
interval?: UpdatePlanRequestIntervalEnum;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
*
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
* @memberof UpdatePlanRequest
|
|
34
34
|
*/
|
|
35
35
|
prorate?: boolean;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const UpdatePlanRequestIntervalEnum: {
|
|
41
|
+
readonly Monthly: "monthly";
|
|
42
|
+
readonly Yearly: "yearly";
|
|
43
|
+
};
|
|
44
|
+
export type UpdatePlanRequestIntervalEnum = typeof UpdatePlanRequestIntervalEnum[keyof typeof UpdatePlanRequestIntervalEnum];
|
|
37
45
|
/**
|
|
38
46
|
* Check if a given object implements the UpdatePlanRequest interface.
|
|
39
47
|
*/
|
|
@@ -13,15 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdatePlanRequestIntervalEnum = void 0;
|
|
16
17
|
exports.instanceOfUpdatePlanRequest = instanceOfUpdatePlanRequest;
|
|
17
18
|
exports.UpdatePlanRequestFromJSON = UpdatePlanRequestFromJSON;
|
|
18
19
|
exports.UpdatePlanRequestFromJSONTyped = UpdatePlanRequestFromJSONTyped;
|
|
19
20
|
exports.UpdatePlanRequestToJSON = UpdatePlanRequestToJSON;
|
|
20
21
|
exports.UpdatePlanRequestToJSONTyped = UpdatePlanRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UpdatePlanRequestIntervalEnum = {
|
|
26
|
+
Monthly: 'monthly',
|
|
27
|
+
Yearly: 'yearly'
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Check if a given object implements the UpdatePlanRequest interface.
|
|
23
31
|
*/
|
|
24
32
|
function instanceOfUpdatePlanRequest(value) {
|
|
33
|
+
if (!('planSlug' in value) || value['planSlug'] === undefined)
|
|
34
|
+
return false;
|
|
25
35
|
return true;
|
|
26
36
|
}
|
|
27
37
|
function UpdatePlanRequestFromJSON(json) {
|
|
@@ -32,8 +42,8 @@ function UpdatePlanRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
42
|
return json;
|
|
33
43
|
}
|
|
34
44
|
return {
|
|
35
|
-
'planSlug': json['planSlug']
|
|
36
|
-
'
|
|
45
|
+
'planSlug': json['planSlug'],
|
|
46
|
+
'interval': json['interval'] == null ? undefined : json['interval'],
|
|
37
47
|
'prorate': json['prorate'] == null ? undefined : json['prorate'],
|
|
38
48
|
};
|
|
39
49
|
}
|
|
@@ -46,7 +56,7 @@ function UpdatePlanRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
56
|
}
|
|
47
57
|
return {
|
|
48
58
|
'planSlug': value['planSlug'],
|
|
49
|
-
'
|
|
59
|
+
'interval': value['interval'],
|
|
50
60
|
'prorate': value['prorate'],
|
|
51
61
|
};
|
|
52
62
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UsageBreakdownByAgent
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageBreakdownByAgent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UsageBreakdownByAgent
|
|
22
|
+
*/
|
|
23
|
+
voiceAgentId?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UsageBreakdownByAgent
|
|
28
|
+
*/
|
|
29
|
+
seconds: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UsageBreakdownByAgent
|
|
34
|
+
*/
|
|
35
|
+
overageMinutes: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UsageBreakdownByAgent interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUsageBreakdownByAgent(value: object): value is UsageBreakdownByAgent;
|
|
41
|
+
export declare function UsageBreakdownByAgentFromJSON(json: any): UsageBreakdownByAgent;
|
|
42
|
+
export declare function UsageBreakdownByAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageBreakdownByAgent;
|
|
43
|
+
export declare function UsageBreakdownByAgentToJSON(json: any): UsageBreakdownByAgent;
|
|
44
|
+
export declare function UsageBreakdownByAgentToJSONTyped(value?: UsageBreakdownByAgent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUsageBreakdownByAgent = instanceOfUsageBreakdownByAgent;
|
|
17
|
+
exports.UsageBreakdownByAgentFromJSON = UsageBreakdownByAgentFromJSON;
|
|
18
|
+
exports.UsageBreakdownByAgentFromJSONTyped = UsageBreakdownByAgentFromJSONTyped;
|
|
19
|
+
exports.UsageBreakdownByAgentToJSON = UsageBreakdownByAgentToJSON;
|
|
20
|
+
exports.UsageBreakdownByAgentToJSONTyped = UsageBreakdownByAgentToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UsageBreakdownByAgent interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUsageBreakdownByAgent(value) {
|
|
25
|
+
if (!('seconds' in value) || value['seconds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('overageMinutes' in value) || value['overageMinutes'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UsageBreakdownByAgentFromJSON(json) {
|
|
32
|
+
return UsageBreakdownByAgentFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UsageBreakdownByAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'voiceAgentId': json['voiceAgentId'] == null ? undefined : json['voiceAgentId'],
|
|
40
|
+
'seconds': json['seconds'],
|
|
41
|
+
'overageMinutes': json['overageMinutes'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function UsageBreakdownByAgentToJSON(json) {
|
|
45
|
+
return UsageBreakdownByAgentToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function UsageBreakdownByAgentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'voiceAgentId': value['voiceAgentId'],
|
|
53
|
+
'seconds': value['seconds'],
|
|
54
|
+
'overageMinutes': value['overageMinutes'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UsageBreakdownByDay
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageBreakdownByDay {
|
|
18
|
+
/**
|
|
19
|
+
* YYYY-MM-DD
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UsageBreakdownByDay
|
|
22
|
+
*/
|
|
23
|
+
day: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UsageBreakdownByDay
|
|
28
|
+
*/
|
|
29
|
+
seconds: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UsageBreakdownByDay
|
|
34
|
+
*/
|
|
35
|
+
overageMinutes: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UsageBreakdownByDay interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUsageBreakdownByDay(value: object): value is UsageBreakdownByDay;
|
|
41
|
+
export declare function UsageBreakdownByDayFromJSON(json: any): UsageBreakdownByDay;
|
|
42
|
+
export declare function UsageBreakdownByDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageBreakdownByDay;
|
|
43
|
+
export declare function UsageBreakdownByDayToJSON(json: any): UsageBreakdownByDay;
|
|
44
|
+
export declare function UsageBreakdownByDayToJSONTyped(value?: UsageBreakdownByDay | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUsageBreakdownByDay = instanceOfUsageBreakdownByDay;
|
|
17
|
+
exports.UsageBreakdownByDayFromJSON = UsageBreakdownByDayFromJSON;
|
|
18
|
+
exports.UsageBreakdownByDayFromJSONTyped = UsageBreakdownByDayFromJSONTyped;
|
|
19
|
+
exports.UsageBreakdownByDayToJSON = UsageBreakdownByDayToJSON;
|
|
20
|
+
exports.UsageBreakdownByDayToJSONTyped = UsageBreakdownByDayToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UsageBreakdownByDay interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUsageBreakdownByDay(value) {
|
|
25
|
+
if (!('day' in value) || value['day'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('seconds' in value) || value['seconds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('overageMinutes' in value) || value['overageMinutes'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function UsageBreakdownByDayFromJSON(json) {
|
|
34
|
+
return UsageBreakdownByDayFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function UsageBreakdownByDayFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'day': json['day'],
|
|
42
|
+
'seconds': json['seconds'],
|
|
43
|
+
'overageMinutes': json['overageMinutes'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function UsageBreakdownByDayToJSON(json) {
|
|
47
|
+
return UsageBreakdownByDayToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function UsageBreakdownByDayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'day': value['day'],
|
|
55
|
+
'seconds': value['seconds'],
|
|
56
|
+
'overageMinutes': value['overageMinutes'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { UsageRecordDto } from './UsageRecordDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UsageHistoryResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface UsageHistoryResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<UsageRecordDto>}
|
|
22
|
+
* @memberof UsageHistoryResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<UsageRecordDto>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof UsageHistoryResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UsageHistoryResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUsageHistoryResponse(value: object): value is UsageHistoryResponse;
|
|
36
|
+
export declare function UsageHistoryResponseFromJSON(json: any): UsageHistoryResponse;
|
|
37
|
+
export declare function UsageHistoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageHistoryResponse;
|
|
38
|
+
export declare function UsageHistoryResponseToJSON(json: any): UsageHistoryResponse;
|
|
39
|
+
export declare function UsageHistoryResponseToJSONTyped(value?: UsageHistoryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUsageHistoryResponse = instanceOfUsageHistoryResponse;
|
|
17
|
+
exports.UsageHistoryResponseFromJSON = UsageHistoryResponseFromJSON;
|
|
18
|
+
exports.UsageHistoryResponseFromJSONTyped = UsageHistoryResponseFromJSONTyped;
|
|
19
|
+
exports.UsageHistoryResponseToJSON = UsageHistoryResponseToJSON;
|
|
20
|
+
exports.UsageHistoryResponseToJSONTyped = UsageHistoryResponseToJSONTyped;
|
|
21
|
+
const UsageRecordDto_1 = require("./UsageRecordDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UsageHistoryResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUsageHistoryResponse(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function UsageHistoryResponseFromJSON(json) {
|
|
33
|
+
return UsageHistoryResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function UsageHistoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'items': (json['items'].map(UsageRecordDto_1.UsageRecordDtoFromJSON)),
|
|
41
|
+
'total': json['total'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function UsageHistoryResponseToJSON(json) {
|
|
45
|
+
return UsageHistoryResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function UsageHistoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'items': (value['items'].map(UsageRecordDto_1.UsageRecordDtoToJSON)),
|
|
53
|
+
'total': value['total'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UsageRecordDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageRecordDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UsageRecordDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UsageRecordDto
|
|
28
|
+
*/
|
|
29
|
+
voiceAgentId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UsageRecordDto
|
|
34
|
+
*/
|
|
35
|
+
callId?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UsageRecordDto
|
|
40
|
+
*/
|
|
41
|
+
seconds: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof UsageRecordDto
|
|
46
|
+
*/
|
|
47
|
+
overageMinutes?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof UsageRecordDto
|
|
52
|
+
*/
|
|
53
|
+
reportedToStripeAt?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UsageRecordDto
|
|
58
|
+
*/
|
|
59
|
+
source: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UsageRecordDto
|
|
64
|
+
*/
|
|
65
|
+
note?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof UsageRecordDto
|
|
70
|
+
*/
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the UsageRecordDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfUsageRecordDto(value: object): value is UsageRecordDto;
|
|
77
|
+
export declare function UsageRecordDtoFromJSON(json: any): UsageRecordDto;
|
|
78
|
+
export declare function UsageRecordDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageRecordDto;
|
|
79
|
+
export declare function UsageRecordDtoToJSON(json: any): UsageRecordDto;
|
|
80
|
+
export declare function UsageRecordDtoToJSONTyped(value?: UsageRecordDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUsageRecordDto = instanceOfUsageRecordDto;
|
|
17
|
+
exports.UsageRecordDtoFromJSON = UsageRecordDtoFromJSON;
|
|
18
|
+
exports.UsageRecordDtoFromJSONTyped = UsageRecordDtoFromJSONTyped;
|
|
19
|
+
exports.UsageRecordDtoToJSON = UsageRecordDtoToJSON;
|
|
20
|
+
exports.UsageRecordDtoToJSONTyped = UsageRecordDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UsageRecordDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUsageRecordDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('seconds' in value) || value['seconds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function UsageRecordDtoFromJSON(json) {
|
|
36
|
+
return UsageRecordDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function UsageRecordDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'voiceAgentId': json['voiceAgentId'] == null ? undefined : json['voiceAgentId'],
|
|
45
|
+
'callId': json['callId'] == null ? undefined : json['callId'],
|
|
46
|
+
'seconds': json['seconds'],
|
|
47
|
+
'overageMinutes': json['overageMinutes'] == null ? undefined : json['overageMinutes'],
|
|
48
|
+
'reportedToStripeAt': json['reportedToStripeAt'] == null ? undefined : (new Date(json['reportedToStripeAt'])),
|
|
49
|
+
'source': json['source'],
|
|
50
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
51
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function UsageRecordDtoToJSON(json) {
|
|
55
|
+
return UsageRecordDtoToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function UsageRecordDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'voiceAgentId': value['voiceAgentId'],
|
|
64
|
+
'callId': value['callId'],
|
|
65
|
+
'seconds': value['seconds'],
|
|
66
|
+
'overageMinutes': value['overageMinutes'],
|
|
67
|
+
'reportedToStripeAt': value['reportedToStripeAt'] == null ? value['reportedToStripeAt'] : value['reportedToStripeAt'].toISOString(),
|
|
68
|
+
'source': value['source'],
|
|
69
|
+
'note': value['note'],
|
|
70
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
71
|
+
};
|
|
72
|
+
}
|