@trustcomponent/sdk 0.0.0-stage → 0.0.1-beta.1
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 +77 -2
- package/dist/captcha.d.ts +18 -0
- package/dist/captcha.js +28 -0
- package/dist/client.d.ts +46 -0
- package/dist/client.js +88 -0
- package/dist/errors.d.ts +38 -0
- package/dist/errors.js +73 -0
- package/dist/generated/apis/AnalyticsServerEventsApi.d.ts +36 -0
- package/dist/generated/apis/AnalyticsServerEventsApi.js +64 -0
- package/dist/generated/apis/AnalyticsWebsitesApi.d.ts +146 -0
- package/dist/generated/apis/AnalyticsWebsitesApi.js +357 -0
- package/dist/generated/apis/CaptchaVerificationsApi.d.ts +36 -0
- package/dist/generated/apis/CaptchaVerificationsApi.js +65 -0
- package/dist/generated/apis/MonitoringHeartbeatsApi.d.ts +35 -0
- package/dist/generated/apis/MonitoringHeartbeatsApi.js +64 -0
- package/dist/generated/apis/PlatformEventsApi.d.ts +39 -0
- package/dist/generated/apis/PlatformEventsApi.js +73 -0
- package/dist/generated/apis/TaxValidationSchedulesApi.d.ts +49 -0
- package/dist/generated/apis/TaxValidationSchedulesApi.js +101 -0
- package/dist/generated/apis/TaxValidationValidationResultsApi.d.ts +33 -0
- package/dist/generated/apis/TaxValidationValidationResultsApi.js +60 -0
- package/dist/generated/apis/TaxValidationValidationsApi.d.ts +52 -0
- package/dist/generated/apis/TaxValidationValidationsApi.js +106 -0
- package/dist/generated/apis/index.d.ts +8 -0
- package/dist/generated/apis/index.js +10 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.js +5 -0
- package/dist/generated/models/AnalyticsEventCategoryEnum.d.ts +37 -0
- package/dist/generated/models/AnalyticsEventCategoryEnum.js +57 -0
- package/dist/generated/models/AnalyticsRealtime.d.ts +52 -0
- package/dist/generated/models/AnalyticsRealtime.js +57 -0
- package/dist/generated/models/AnalyticsRealtimePage.d.ts +38 -0
- package/dist/generated/models/AnalyticsRealtimePage.js +47 -0
- package/dist/generated/models/AnalyticsRealtimePoint.d.ts +38 -0
- package/dist/generated/models/AnalyticsRealtimePoint.js +47 -0
- package/dist/generated/models/AnalyticsServerEventBatchCreateParams.d.ts +57 -0
- package/dist/generated/models/AnalyticsServerEventBatchCreateParams.js +58 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventCommerceCreateParams.d.ts +81 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventCommerceCreateParams.js +64 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventCommerceProductCreateParams.d.ts +56 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventCommerceProductCreateParams.js +53 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventCreateParams.d.ts +122 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventCreateParams.js +81 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventErrorCreateParams.d.ts +50 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventErrorCreateParams.js +51 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventRefundCreateParams.d.ts +38 -0
- package/dist/generated/models/AnalyticsServerEventBatchEventRefundCreateParams.js +47 -0
- package/dist/generated/models/AnalyticsServerEventBatchResult.d.ts +39 -0
- package/dist/generated/models/AnalyticsServerEventBatchResult.js +48 -0
- package/dist/generated/models/AnalyticsServerEventBatchResultDropReasonEnum.d.ts +44 -0
- package/dist/generated/models/AnalyticsServerEventBatchResultDropReasonEnum.js +64 -0
- package/dist/generated/models/AnalyticsServerEventBatchResultDropped.d.ts +39 -0
- package/dist/generated/models/AnalyticsServerEventBatchResultDropped.js +48 -0
- package/dist/generated/models/AnalyticsStatsBreakdown.d.ts +70 -0
- package/dist/generated/models/AnalyticsStatsBreakdown.js +69 -0
- package/dist/generated/models/AnalyticsStatsBreakdownRow.d.ts +46 -0
- package/dist/generated/models/AnalyticsStatsBreakdownRow.js +51 -0
- package/dist/generated/models/AnalyticsStatsBreakdownRowPage.d.ts +56 -0
- package/dist/generated/models/AnalyticsStatsBreakdownRowPage.js +53 -0
- package/dist/generated/models/AnalyticsStatsConversions.d.ts +51 -0
- package/dist/generated/models/AnalyticsStatsConversions.js +56 -0
- package/dist/generated/models/AnalyticsStatsConversionsGoal.d.ts +57 -0
- package/dist/generated/models/AnalyticsStatsConversionsGoal.js +58 -0
- package/dist/generated/models/AnalyticsStatsConversionsGoalRevenue.d.ts +38 -0
- package/dist/generated/models/AnalyticsStatsConversionsGoalRevenue.js +47 -0
- package/dist/generated/models/AnalyticsStatsDimensionEnum.d.ts +59 -0
- package/dist/generated/models/AnalyticsStatsDimensionEnum.js +79 -0
- package/dist/generated/models/AnalyticsStatsFilterMatchModeEnum.d.ts +25 -0
- package/dist/generated/models/AnalyticsStatsFilterMatchModeEnum.js +45 -0
- package/dist/generated/models/AnalyticsStatsFilterOperatorEnum.d.ts +30 -0
- package/dist/generated/models/AnalyticsStatsFilterOperatorEnum.js +50 -0
- package/dist/generated/models/AnalyticsStatsGranularityEnum.d.ts +25 -0
- package/dist/generated/models/AnalyticsStatsGranularityEnum.js +45 -0
- package/dist/generated/models/AnalyticsStatsOverview.d.ts +63 -0
- package/dist/generated/models/AnalyticsStatsOverview.js +62 -0
- package/dist/generated/models/AnalyticsStatsTimeseries.d.ts +52 -0
- package/dist/generated/models/AnalyticsStatsTimeseries.js +57 -0
- package/dist/generated/models/AnalyticsStatsTimeseriesPoint.d.ts +39 -0
- package/dist/generated/models/AnalyticsStatsTimeseriesPoint.js +48 -0
- package/dist/generated/models/AnalyticsStatsTotals.d.ts +74 -0
- package/dist/generated/models/AnalyticsStatsTotals.js +65 -0
- package/dist/generated/models/AnalyticsWebsite.d.ts +50 -0
- package/dist/generated/models/AnalyticsWebsite.js +55 -0
- package/dist/generated/models/AnalyticsWebsitesPage.d.ts +51 -0
- package/dist/generated/models/AnalyticsWebsitesPage.js +56 -0
- package/dist/generated/models/CaptchaVerificationResult.d.ts +146 -0
- package/dist/generated/models/CaptchaVerificationResult.js +79 -0
- package/dist/generated/models/PlatformEvent.d.ts +98 -0
- package/dist/generated/models/PlatformEvent.js +87 -0
- package/dist/generated/models/PlatformEventActor.d.ts +52 -0
- package/dist/generated/models/PlatformEventActor.js +51 -0
- package/dist/generated/models/PlatformEventActorAutomation.d.ts +39 -0
- package/dist/generated/models/PlatformEventActorAutomation.js +48 -0
- package/dist/generated/models/PlatformEventActorAutomationKindEnum.d.ts +26 -0
- package/dist/generated/models/PlatformEventActorAutomationKindEnum.js +46 -0
- package/dist/generated/models/PlatformEventActorTypeEnum.d.ts +28 -0
- package/dist/generated/models/PlatformEventActorTypeEnum.js +48 -0
- package/dist/generated/models/PlatformEventChange.d.ts +57 -0
- package/dist/generated/models/PlatformEventChange.js +56 -0
- package/dist/generated/models/PlatformEventChangeOperationEnum.d.ts +28 -0
- package/dist/generated/models/PlatformEventChangeOperationEnum.js +48 -0
- package/dist/generated/models/PlatformEventOrigin.d.ts +57 -0
- package/dist/generated/models/PlatformEventOrigin.js +56 -0
- package/dist/generated/models/PlatformEventRef.d.ts +44 -0
- package/dist/generated/models/PlatformEventRef.js +49 -0
- package/dist/generated/models/PlatformEventSourceEnum.d.ts +29 -0
- package/dist/generated/models/PlatformEventSourceEnum.js +49 -0
- package/dist/generated/models/PlatformEventsPage.d.ts +69 -0
- package/dist/generated/models/PlatformEventsPage.js +66 -0
- package/dist/generated/models/TaxValidationMatchStatusEnum.d.ts +29 -0
- package/dist/generated/models/TaxValidationMatchStatusEnum.js +49 -0
- package/dist/generated/models/TaxValidationProviderEnum.d.ts +31 -0
- package/dist/generated/models/TaxValidationProviderEnum.js +51 -0
- package/dist/generated/models/TaxValidationProviderStatusEnum.d.ts +36 -0
- package/dist/generated/models/TaxValidationProviderStatusEnum.js +56 -0
- package/dist/generated/models/TaxValidationSchedule.d.ts +101 -0
- package/dist/generated/models/TaxValidationSchedule.js +84 -0
- package/dist/generated/models/TaxValidationScheduleCreateParams.d.ts +100 -0
- package/dist/generated/models/TaxValidationScheduleCreateParams.js +71 -0
- package/dist/generated/models/TaxValidationTaxAddress.d.ts +56 -0
- package/dist/generated/models/TaxValidationTaxAddress.js +49 -0
- package/dist/generated/models/TaxValidationTaxIdentifierSchemeEnum.d.ts +34 -0
- package/dist/generated/models/TaxValidationTaxIdentifierSchemeEnum.js +54 -0
- package/dist/generated/models/TaxValidationValidation.d.ts +123 -0
- package/dist/generated/models/TaxValidationValidation.js +84 -0
- package/dist/generated/models/TaxValidationValidationAddressMatch.d.ts +57 -0
- package/dist/generated/models/TaxValidationValidationAddressMatch.js +60 -0
- package/dist/generated/models/TaxValidationValidationBatchCreateParams.d.ts +33 -0
- package/dist/generated/models/TaxValidationValidationBatchCreateParams.js +44 -0
- package/dist/generated/models/TaxValidationValidationCreateParams.d.ts +91 -0
- package/dist/generated/models/TaxValidationValidationCreateParams.js +66 -0
- package/dist/generated/models/TaxValidationValidationFrequencyEnum.d.ts +26 -0
- package/dist/generated/models/TaxValidationValidationFrequencyEnum.js +46 -0
- package/dist/generated/models/TaxValidationValidationInput.d.ts +78 -0
- package/dist/generated/models/TaxValidationValidationInput.js +67 -0
- package/dist/generated/models/TaxValidationValidationMatch.d.ts +46 -0
- package/dist/generated/models/TaxValidationValidationMatch.js +53 -0
- package/dist/generated/models/TaxValidationValidationModeEnum.d.ts +25 -0
- package/dist/generated/models/TaxValidationValidationModeEnum.js +45 -0
- package/dist/generated/models/TaxValidationValidationOutcomeEnum.d.ts +29 -0
- package/dist/generated/models/TaxValidationValidationOutcomeEnum.js +49 -0
- package/dist/generated/models/TaxValidationValidationRequestStatusEnum.d.ts +29 -0
- package/dist/generated/models/TaxValidationValidationRequestStatusEnum.js +49 -0
- package/dist/generated/models/TaxValidationValidationResponseData.d.ts +51 -0
- package/dist/generated/models/TaxValidationValidationResponseData.js +48 -0
- package/dist/generated/models/TaxValidationValidationResult.d.ts +117 -0
- package/dist/generated/models/TaxValidationValidationResult.js +94 -0
- package/dist/generated/models/TaxValidationValidationScheduleAttachParams.d.ts +59 -0
- package/dist/generated/models/TaxValidationValidationScheduleAttachParams.js +54 -0
- package/dist/generated/models/TaxValidationVerificationMethodEnum.d.ts +25 -0
- package/dist/generated/models/TaxValidationVerificationMethodEnum.js +45 -0
- package/dist/generated/models/index.d.ts +62 -0
- package/dist/generated/models/index.js +64 -0
- package/dist/generated/module-list.d.ts +1 -0
- package/dist/generated/module-list.js +2 -0
- package/dist/generated/modules.d.ts +27 -0
- package/dist/generated/modules.js +39 -0
- package/dist/generated/runtime.d.ts +185 -0
- package/dist/generated/runtime.js +352 -0
- package/dist/http.d.ts +18 -0
- package/dist/http.js +79 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/package.json +33 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TrustComponent API
|
|
3
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
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 { AnalyticsStatsTotals } from './AnalyticsStatsTotals.js';
|
|
13
|
+
/**
|
|
14
|
+
* Key figures of one hour or one day
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnalyticsStatsTimeseriesPoint
|
|
17
|
+
*/
|
|
18
|
+
export interface AnalyticsStatsTimeseriesPoint {
|
|
19
|
+
/**
|
|
20
|
+
* Start of the hour or day
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AnalyticsStatsTimeseriesPoint
|
|
23
|
+
*/
|
|
24
|
+
bucketAt: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AnalyticsStatsTotals}
|
|
28
|
+
* @memberof AnalyticsStatsTimeseriesPoint
|
|
29
|
+
*/
|
|
30
|
+
totals: AnalyticsStatsTotals;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AnalyticsStatsTimeseriesPoint interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAnalyticsStatsTimeseriesPoint(value: object): value is AnalyticsStatsTimeseriesPoint;
|
|
36
|
+
export declare function AnalyticsStatsTimeseriesPointFromJSON(json: any): AnalyticsStatsTimeseriesPoint;
|
|
37
|
+
export declare function AnalyticsStatsTimeseriesPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStatsTimeseriesPoint;
|
|
38
|
+
export declare function AnalyticsStatsTimeseriesPointToJSON(json: any): AnalyticsStatsTimeseriesPoint;
|
|
39
|
+
export declare function AnalyticsStatsTimeseriesPointToJSONTyped(value?: AnalyticsStatsTimeseriesPoint | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* TrustComponent API
|
|
5
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AnalyticsStatsTotalsFromJSON, AnalyticsStatsTotalsToJSON, } from './AnalyticsStatsTotals.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AnalyticsStatsTimeseriesPoint interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAnalyticsStatsTimeseriesPoint(value) {
|
|
19
|
+
if (!('bucketAt' in value) || value['bucketAt'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('totals' in value) || value['totals'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AnalyticsStatsTimeseriesPointFromJSON(json) {
|
|
26
|
+
return AnalyticsStatsTimeseriesPointFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AnalyticsStatsTimeseriesPointFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'bucketAt': json['bucketAt'],
|
|
34
|
+
'totals': AnalyticsStatsTotalsFromJSON(json['totals']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AnalyticsStatsTimeseriesPointToJSON(json) {
|
|
38
|
+
return AnalyticsStatsTimeseriesPointToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AnalyticsStatsTimeseriesPointToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'bucketAt': value['bucketAt'],
|
|
46
|
+
'totals': AnalyticsStatsTotalsToJSON(value['totals']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TrustComponent API
|
|
3
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
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
|
+
* Key figures of a range, a bucket or a row
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AnalyticsStatsTotals
|
|
16
|
+
*/
|
|
17
|
+
export interface AnalyticsStatsTotals {
|
|
18
|
+
/**
|
|
19
|
+
* Pageviews
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AnalyticsStatsTotals
|
|
22
|
+
*/
|
|
23
|
+
pageviews: number;
|
|
24
|
+
/**
|
|
25
|
+
* Sessions with at least one browser event; a session ends after 30 minutes without activity. Rows of the page and event dimensions (HOSTNAME, PATH, PATH_PATTERN, PAGE_TITLE, EVENT_NAME) count events, not sessions, and carry 0 here, as do bounces and engaged time; on PATH rows the entrances are the sessions that started on the page
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AnalyticsStatsTotals
|
|
28
|
+
*/
|
|
29
|
+
sessions: number;
|
|
30
|
+
/**
|
|
31
|
+
* Distinct visitors, recognised by visitor id where the visitor agreed and by session otherwise; estimated from the hourly aggregates (within about 1 %) when the range reaches beyond the time stored sessions are kept
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AnalyticsStatsTotals
|
|
34
|
+
*/
|
|
35
|
+
visitors?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* All events, pageviews included
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AnalyticsStatsTotals
|
|
40
|
+
*/
|
|
41
|
+
events: number;
|
|
42
|
+
/**
|
|
43
|
+
* Sessions with a single pageview and no interaction
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AnalyticsStatsTotals
|
|
46
|
+
*/
|
|
47
|
+
bounces: number;
|
|
48
|
+
/**
|
|
49
|
+
* Bounces per session in percent; null without sessions
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AnalyticsStatsTotals
|
|
52
|
+
*/
|
|
53
|
+
bounceRatePercent?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Time the pages were visible and in use, summed over all sessions
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AnalyticsStatsTotals
|
|
58
|
+
*/
|
|
59
|
+
engagedSeconds: number;
|
|
60
|
+
/**
|
|
61
|
+
* Engaged time per session; null without sessions
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof AnalyticsStatsTotals
|
|
64
|
+
*/
|
|
65
|
+
averageEngagedSeconds?: number | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the AnalyticsStatsTotals interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfAnalyticsStatsTotals(value: object): value is AnalyticsStatsTotals;
|
|
71
|
+
export declare function AnalyticsStatsTotalsFromJSON(json: any): AnalyticsStatsTotals;
|
|
72
|
+
export declare function AnalyticsStatsTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsStatsTotals;
|
|
73
|
+
export declare function AnalyticsStatsTotalsToJSON(json: any): AnalyticsStatsTotals;
|
|
74
|
+
export declare function AnalyticsStatsTotalsToJSONTyped(value?: AnalyticsStatsTotals | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* TrustComponent API
|
|
5
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AnalyticsStatsTotals interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAnalyticsStatsTotals(value) {
|
|
18
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('sessions' in value) || value['sessions'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('events' in value) || value['events'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('bounces' in value) || value['bounces'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('engagedSeconds' in value) || value['engagedSeconds'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function AnalyticsStatsTotalsFromJSON(json) {
|
|
31
|
+
return AnalyticsStatsTotalsFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function AnalyticsStatsTotalsFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'pageviews': json['pageviews'],
|
|
39
|
+
'sessions': json['sessions'],
|
|
40
|
+
'visitors': json['visitors'] === undefined ? undefined : json['visitors'] === null ? null : json['visitors'],
|
|
41
|
+
'events': json['events'],
|
|
42
|
+
'bounces': json['bounces'],
|
|
43
|
+
'bounceRatePercent': json['bounceRatePercent'] === undefined ? undefined : json['bounceRatePercent'] === null ? null : json['bounceRatePercent'],
|
|
44
|
+
'engagedSeconds': json['engagedSeconds'],
|
|
45
|
+
'averageEngagedSeconds': json['averageEngagedSeconds'] === undefined ? undefined : json['averageEngagedSeconds'] === null ? null : json['averageEngagedSeconds'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function AnalyticsStatsTotalsToJSON(json) {
|
|
49
|
+
return AnalyticsStatsTotalsToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function AnalyticsStatsTotalsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'pageviews': value['pageviews'],
|
|
57
|
+
'sessions': value['sessions'],
|
|
58
|
+
'visitors': value['visitors'],
|
|
59
|
+
'events': value['events'],
|
|
60
|
+
'bounces': value['bounces'],
|
|
61
|
+
'bounceRatePercent': value['bounceRatePercent'],
|
|
62
|
+
'engagedSeconds': value['engagedSeconds'],
|
|
63
|
+
'averageEngagedSeconds': value['averageEngagedSeconds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TrustComponent API
|
|
3
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
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
|
+
* A website of the project the API key belongs to
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AnalyticsWebsite
|
|
16
|
+
*/
|
|
17
|
+
export interface AnalyticsWebsite {
|
|
18
|
+
/**
|
|
19
|
+
* Id of the website
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AnalyticsWebsite
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the website
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AnalyticsWebsite
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Hostnames whose pageviews the website accepts
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof AnalyticsWebsite
|
|
34
|
+
*/
|
|
35
|
+
hostnames: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Time zone the days of the statistics start in, as an IANA zone id
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AnalyticsWebsite
|
|
40
|
+
*/
|
|
41
|
+
timeZone: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AnalyticsWebsite interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAnalyticsWebsite(value: object): value is AnalyticsWebsite;
|
|
47
|
+
export declare function AnalyticsWebsiteFromJSON(json: any): AnalyticsWebsite;
|
|
48
|
+
export declare function AnalyticsWebsiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsWebsite;
|
|
49
|
+
export declare function AnalyticsWebsiteToJSON(json: any): AnalyticsWebsite;
|
|
50
|
+
export declare function AnalyticsWebsiteToJSONTyped(value?: AnalyticsWebsite | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* TrustComponent API
|
|
5
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AnalyticsWebsite interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAnalyticsWebsite(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('hostnames' in value) || value['hostnames'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('timeZone' in value) || value['timeZone'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function AnalyticsWebsiteFromJSON(json) {
|
|
29
|
+
return AnalyticsWebsiteFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function AnalyticsWebsiteFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'hostnames': json['hostnames'],
|
|
39
|
+
'timeZone': json['timeZone'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function AnalyticsWebsiteToJSON(json) {
|
|
43
|
+
return AnalyticsWebsiteToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function AnalyticsWebsiteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'hostnames': value['hostnames'],
|
|
53
|
+
'timeZone': value['timeZone'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TrustComponent API
|
|
3
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
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 { AnalyticsWebsite } from './AnalyticsWebsite.js';
|
|
13
|
+
/**
|
|
14
|
+
* One page of the websites of the project
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnalyticsWebsitesPage
|
|
17
|
+
*/
|
|
18
|
+
export interface AnalyticsWebsitesPage {
|
|
19
|
+
/**
|
|
20
|
+
* Websites of this page
|
|
21
|
+
* @type {Array<AnalyticsWebsite>}
|
|
22
|
+
* @memberof AnalyticsWebsitesPage
|
|
23
|
+
*/
|
|
24
|
+
content: Array<AnalyticsWebsite>;
|
|
25
|
+
/**
|
|
26
|
+
* Zero-based page index
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AnalyticsWebsitesPage
|
|
29
|
+
*/
|
|
30
|
+
page: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of entries per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AnalyticsWebsitesPage
|
|
35
|
+
*/
|
|
36
|
+
pageSize: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of websites of the project
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AnalyticsWebsitesPage
|
|
41
|
+
*/
|
|
42
|
+
totalElements: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AnalyticsWebsitesPage interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAnalyticsWebsitesPage(value: object): value is AnalyticsWebsitesPage;
|
|
48
|
+
export declare function AnalyticsWebsitesPageFromJSON(json: any): AnalyticsWebsitesPage;
|
|
49
|
+
export declare function AnalyticsWebsitesPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsWebsitesPage;
|
|
50
|
+
export declare function AnalyticsWebsitesPageToJSON(json: any): AnalyticsWebsitesPage;
|
|
51
|
+
export declare function AnalyticsWebsitesPageToJSONTyped(value?: AnalyticsWebsitesPage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* TrustComponent API
|
|
5
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AnalyticsWebsiteFromJSON, AnalyticsWebsiteToJSON, } from './AnalyticsWebsite.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AnalyticsWebsitesPage interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAnalyticsWebsitesPage(value) {
|
|
19
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalElements' in value) || value['totalElements'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function AnalyticsWebsitesPageFromJSON(json) {
|
|
30
|
+
return AnalyticsWebsitesPageFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function AnalyticsWebsitesPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'content': (json['content'].map(AnalyticsWebsiteFromJSON)),
|
|
38
|
+
'page': json['page'],
|
|
39
|
+
'pageSize': json['pageSize'],
|
|
40
|
+
'totalElements': json['totalElements'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function AnalyticsWebsitesPageToJSON(json) {
|
|
44
|
+
return AnalyticsWebsitesPageToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function AnalyticsWebsitesPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'content': (value['content'].map(AnalyticsWebsiteToJSON)),
|
|
52
|
+
'page': value['page'],
|
|
53
|
+
'pageSize': value['pageSize'],
|
|
54
|
+
'totalElements': value['totalElements'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TrustComponent API
|
|
3
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
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 CaptchaVerificationResult
|
|
16
|
+
*/
|
|
17
|
+
export interface CaptchaVerificationResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CaptchaVerificationResult
|
|
22
|
+
*/
|
|
23
|
+
captchaId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CaptchaVerificationResult
|
|
28
|
+
*/
|
|
29
|
+
verificationId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CaptchaVerificationResult
|
|
34
|
+
*/
|
|
35
|
+
verificationPassed?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CaptchaVerificationResult
|
|
40
|
+
*/
|
|
41
|
+
score?: number;
|
|
42
|
+
/**
|
|
43
|
+
* How the verification outcome was determined. Possible values include STANDARD, BYPASS_KEY, CUSTOM_ACCESS_RULE, GLOBAL_IP_ACCESS_RULE, FAILOVER, FAILOVER_TOLERANCE.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CaptchaVerificationResult
|
|
46
|
+
*/
|
|
47
|
+
decisionType?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The recommended action for this verification. Possible values include NO_ACTION, ALLOW, BLOCK, CUSTOM.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CaptchaVerificationResult
|
|
52
|
+
*/
|
|
53
|
+
decisionAction?: string;
|
|
54
|
+
/**
|
|
55
|
+
* True when the gateway synthesized this result because the captcha service was unreachable.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof CaptchaVerificationResult
|
|
58
|
+
*/
|
|
59
|
+
gatewayFailoverActive?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof CaptchaVerificationResult
|
|
64
|
+
*/
|
|
65
|
+
riskScoringEnabled?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof CaptchaVerificationResult
|
|
70
|
+
*/
|
|
71
|
+
minimalDataModeEnabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CaptchaVerificationResult
|
|
76
|
+
*/
|
|
77
|
+
origin?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CaptchaVerificationResult
|
|
82
|
+
*/
|
|
83
|
+
ipAddress?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Two-letter ISO 3166-1 alpha-2 country code derived from the client IP. Empty string if not resolvable.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CaptchaVerificationResult
|
|
88
|
+
*/
|
|
89
|
+
countryCode?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof CaptchaVerificationResult
|
|
94
|
+
*/
|
|
95
|
+
deviceFamily?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof CaptchaVerificationResult
|
|
100
|
+
*/
|
|
101
|
+
operatingSystem?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof CaptchaVerificationResult
|
|
106
|
+
*/
|
|
107
|
+
browser?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof CaptchaVerificationResult
|
|
112
|
+
*/
|
|
113
|
+
verificationStartedAt?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof CaptchaVerificationResult
|
|
118
|
+
*/
|
|
119
|
+
verificationFinishedAt?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof CaptchaVerificationResult
|
|
124
|
+
*/
|
|
125
|
+
resultExpiresAt?: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof CaptchaVerificationResult
|
|
130
|
+
*/
|
|
131
|
+
resultFirstFetchedAt?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof CaptchaVerificationResult
|
|
136
|
+
*/
|
|
137
|
+
resultLastFetchedAt?: string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Check if a given object implements the CaptchaVerificationResult interface.
|
|
141
|
+
*/
|
|
142
|
+
export declare function instanceOfCaptchaVerificationResult(value: object): value is CaptchaVerificationResult;
|
|
143
|
+
export declare function CaptchaVerificationResultFromJSON(json: any): CaptchaVerificationResult;
|
|
144
|
+
export declare function CaptchaVerificationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaVerificationResult;
|
|
145
|
+
export declare function CaptchaVerificationResultToJSON(json: any): CaptchaVerificationResult;
|
|
146
|
+
export declare function CaptchaVerificationResultToJSONTyped(value?: CaptchaVerificationResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* TrustComponent API
|
|
5
|
+
* The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1-beta.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the CaptchaVerificationResult interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCaptchaVerificationResult(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CaptchaVerificationResultFromJSON(json) {
|
|
21
|
+
return CaptchaVerificationResultFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CaptchaVerificationResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'captchaId': json['captchaId'] == null ? undefined : json['captchaId'],
|
|
29
|
+
'verificationId': json['verificationId'] == null ? undefined : json['verificationId'],
|
|
30
|
+
'verificationPassed': json['verificationPassed'] == null ? undefined : json['verificationPassed'],
|
|
31
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
32
|
+
'decisionType': json['decisionType'] == null ? undefined : json['decisionType'],
|
|
33
|
+
'decisionAction': json['decisionAction'] == null ? undefined : json['decisionAction'],
|
|
34
|
+
'gatewayFailoverActive': json['gatewayFailoverActive'] == null ? undefined : json['gatewayFailoverActive'],
|
|
35
|
+
'riskScoringEnabled': json['riskScoringEnabled'] == null ? undefined : json['riskScoringEnabled'],
|
|
36
|
+
'minimalDataModeEnabled': json['minimalDataModeEnabled'] == null ? undefined : json['minimalDataModeEnabled'],
|
|
37
|
+
'origin': json['origin'] == null ? undefined : json['origin'],
|
|
38
|
+
'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
|
|
39
|
+
'countryCode': json['countryCode'] == null ? undefined : json['countryCode'],
|
|
40
|
+
'deviceFamily': json['deviceFamily'] == null ? undefined : json['deviceFamily'],
|
|
41
|
+
'operatingSystem': json['operatingSystem'] == null ? undefined : json['operatingSystem'],
|
|
42
|
+
'browser': json['browser'] == null ? undefined : json['browser'],
|
|
43
|
+
'verificationStartedAt': json['verificationStartedAt'] == null ? undefined : json['verificationStartedAt'],
|
|
44
|
+
'verificationFinishedAt': json['verificationFinishedAt'] == null ? undefined : json['verificationFinishedAt'],
|
|
45
|
+
'resultExpiresAt': json['resultExpiresAt'] == null ? undefined : json['resultExpiresAt'],
|
|
46
|
+
'resultFirstFetchedAt': json['resultFirstFetchedAt'] == null ? undefined : json['resultFirstFetchedAt'],
|
|
47
|
+
'resultLastFetchedAt': json['resultLastFetchedAt'] == null ? undefined : json['resultLastFetchedAt'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function CaptchaVerificationResultToJSON(json) {
|
|
51
|
+
return CaptchaVerificationResultToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function CaptchaVerificationResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'captchaId': value['captchaId'],
|
|
59
|
+
'verificationId': value['verificationId'],
|
|
60
|
+
'verificationPassed': value['verificationPassed'],
|
|
61
|
+
'score': value['score'],
|
|
62
|
+
'decisionType': value['decisionType'],
|
|
63
|
+
'decisionAction': value['decisionAction'],
|
|
64
|
+
'gatewayFailoverActive': value['gatewayFailoverActive'],
|
|
65
|
+
'riskScoringEnabled': value['riskScoringEnabled'],
|
|
66
|
+
'minimalDataModeEnabled': value['minimalDataModeEnabled'],
|
|
67
|
+
'origin': value['origin'],
|
|
68
|
+
'ipAddress': value['ipAddress'],
|
|
69
|
+
'countryCode': value['countryCode'],
|
|
70
|
+
'deviceFamily': value['deviceFamily'],
|
|
71
|
+
'operatingSystem': value['operatingSystem'],
|
|
72
|
+
'browser': value['browser'],
|
|
73
|
+
'verificationStartedAt': value['verificationStartedAt'],
|
|
74
|
+
'verificationFinishedAt': value['verificationFinishedAt'],
|
|
75
|
+
'resultExpiresAt': value['resultExpiresAt'],
|
|
76
|
+
'resultFirstFetchedAt': value['resultFirstFetchedAt'],
|
|
77
|
+
'resultLastFetchedAt': value['resultLastFetchedAt'],
|
|
78
|
+
};
|
|
79
|
+
}
|