@trustcomponent/sdk 0.0.0-stage → 0.0.1-beta.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 +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,73 @@
|
|
|
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.0
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { PlatformEventsPageFromJSON, } from '../models/PlatformEventsPage.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class PlatformEventsApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Creates request options for getEvents without sending the request
|
|
22
|
+
*/
|
|
23
|
+
async getEventsRequestOpts(requestParameters) {
|
|
24
|
+
const queryParameters = {};
|
|
25
|
+
if (requestParameters['from'] != null) {
|
|
26
|
+
queryParameters['from'] = requestParameters['from'];
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters['to'] != null) {
|
|
29
|
+
queryParameters['to'] = requestParameters['to'];
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['cursor'] != null) {
|
|
32
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
33
|
+
}
|
|
34
|
+
if (requestParameters['page'] != null) {
|
|
35
|
+
queryParameters['page'] = requestParameters['page'];
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters['pageSize'] != null) {
|
|
38
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
39
|
+
}
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
const token = this.configuration.accessToken;
|
|
43
|
+
const tokenString = await token("bearerApiKey", []);
|
|
44
|
+
if (tokenString) {
|
|
45
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
let urlPath = `/platform/v1/events`;
|
|
49
|
+
return {
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'GET',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns the audit log events of the project or organization the API key belongs to, newest first. Events older than the audit log retention of your plan are not returned. To read a time range completely, keep `from` and `to` fixed and pass the `nextCursor` of each response as `cursor` of the next request until `nextCursor` is null. Paging with `page` still works but shifts when new events arrive during the read.
|
|
58
|
+
* Returns the audit log events of a time range
|
|
59
|
+
*/
|
|
60
|
+
async getEventsRaw(requestParameters, initOverrides) {
|
|
61
|
+
const requestOptions = await this.getEventsRequestOpts(requestParameters);
|
|
62
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
63
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlatformEventsPageFromJSON(jsonValue));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns the audit log events of the project or organization the API key belongs to, newest first. Events older than the audit log retention of your plan are not returned. To read a time range completely, keep `from` and `to` fixed and pass the `nextCursor` of each response as `cursor` of the next request until `nextCursor` is null. Paging with `page` still works but shifts when new events arrive during the read.
|
|
67
|
+
* Returns the audit log events of a time range
|
|
68
|
+
*/
|
|
69
|
+
async getEvents(requestParameters = {}, initOverrides) {
|
|
70
|
+
const response = await this.getEventsRaw(requestParameters, initOverrides);
|
|
71
|
+
return await response.value();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.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 * as runtime from '../runtime.js';
|
|
13
|
+
import { type TaxValidationSchedule } from '../models/TaxValidationSchedule.js';
|
|
14
|
+
import { type TaxValidationScheduleCreateParams } from '../models/TaxValidationScheduleCreateParams.js';
|
|
15
|
+
export interface CreateScheduleRequest {
|
|
16
|
+
taxValidationScheduleCreateParams: TaxValidationScheduleCreateParams;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteScheduleRequest {
|
|
19
|
+
scheduleId: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class TaxValidationSchedulesApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for createSchedule without sending the request
|
|
27
|
+
*/
|
|
28
|
+
createScheduleRequestOpts(requestParameters: CreateScheduleRequest): Promise<runtime.RequestOpts>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a recurring validation schedule via API key (countryCode + rawValue; TaxIdentifier derived server-side)
|
|
31
|
+
*/
|
|
32
|
+
createScheduleRaw(requestParameters: CreateScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxValidationSchedule>>;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a recurring validation schedule via API key (countryCode + rawValue; TaxIdentifier derived server-side)
|
|
35
|
+
*/
|
|
36
|
+
createSchedule(requestParameters: CreateScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxValidationSchedule>;
|
|
37
|
+
/**
|
|
38
|
+
* Creates request options for deleteSchedule without sending the request
|
|
39
|
+
*/
|
|
40
|
+
deleteScheduleRequestOpts(requestParameters: DeleteScheduleRequest): Promise<runtime.RequestOpts>;
|
|
41
|
+
/**
|
|
42
|
+
* Stops and removes a recurring validation schedule
|
|
43
|
+
*/
|
|
44
|
+
deleteScheduleRaw(requestParameters: DeleteScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
45
|
+
/**
|
|
46
|
+
* Stops and removes a recurring validation schedule
|
|
47
|
+
*/
|
|
48
|
+
deleteSchedule(requestParameters: DeleteScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.0
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { TaxValidationScheduleFromJSON, } from '../models/TaxValidationSchedule.js';
|
|
16
|
+
import { TaxValidationScheduleCreateParamsToJSON, } from '../models/TaxValidationScheduleCreateParams.js';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export class TaxValidationSchedulesApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for createSchedule without sending the request
|
|
23
|
+
*/
|
|
24
|
+
async createScheduleRequestOpts(requestParameters) {
|
|
25
|
+
if (requestParameters['taxValidationScheduleCreateParams'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('taxValidationScheduleCreateParams', 'Required parameter "taxValidationScheduleCreateParams" was null or undefined when calling createSchedule().');
|
|
27
|
+
}
|
|
28
|
+
const queryParameters = {};
|
|
29
|
+
const headerParameters = {};
|
|
30
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
31
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
32
|
+
const token = this.configuration.accessToken;
|
|
33
|
+
const tokenString = await token("bearerApiKey", []);
|
|
34
|
+
if (tokenString) {
|
|
35
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
let urlPath = `/taxvalidation/v1/schedules`;
|
|
39
|
+
return {
|
|
40
|
+
path: urlPath,
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
body: TaxValidationScheduleCreateParamsToJSON(requestParameters['taxValidationScheduleCreateParams']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates a recurring validation schedule via API key (countryCode + rawValue; TaxIdentifier derived server-side)
|
|
49
|
+
*/
|
|
50
|
+
async createScheduleRaw(requestParameters, initOverrides) {
|
|
51
|
+
const requestOptions = await this.createScheduleRequestOpts(requestParameters);
|
|
52
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaxValidationScheduleFromJSON(jsonValue));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Creates a recurring validation schedule via API key (countryCode + rawValue; TaxIdentifier derived server-side)
|
|
57
|
+
*/
|
|
58
|
+
async createSchedule(requestParameters, initOverrides) {
|
|
59
|
+
const response = await this.createScheduleRaw(requestParameters, initOverrides);
|
|
60
|
+
return await response.value();
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Creates request options for deleteSchedule without sending the request
|
|
64
|
+
*/
|
|
65
|
+
async deleteScheduleRequestOpts(requestParameters) {
|
|
66
|
+
if (requestParameters['scheduleId'] == null) {
|
|
67
|
+
throw new runtime.RequiredError('scheduleId', 'Required parameter "scheduleId" was null or undefined when calling deleteSchedule().');
|
|
68
|
+
}
|
|
69
|
+
const queryParameters = {};
|
|
70
|
+
const headerParameters = {};
|
|
71
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
72
|
+
const token = this.configuration.accessToken;
|
|
73
|
+
const tokenString = await token("bearerApiKey", []);
|
|
74
|
+
if (tokenString) {
|
|
75
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
let urlPath = `/taxvalidation/v1/schedules/{scheduleId}`;
|
|
79
|
+
urlPath = urlPath.replace('{scheduleId}', encodeURIComponent(String(requestParameters['scheduleId'])));
|
|
80
|
+
return {
|
|
81
|
+
path: urlPath,
|
|
82
|
+
method: 'DELETE',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Stops and removes a recurring validation schedule
|
|
89
|
+
*/
|
|
90
|
+
async deleteScheduleRaw(requestParameters, initOverrides) {
|
|
91
|
+
const requestOptions = await this.deleteScheduleRequestOpts(requestParameters);
|
|
92
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
93
|
+
return new runtime.VoidApiResponse(response);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Stops and removes a recurring validation schedule
|
|
97
|
+
*/
|
|
98
|
+
async deleteSchedule(requestParameters, initOverrides) {
|
|
99
|
+
await this.deleteScheduleRaw(requestParameters, initOverrides);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.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 * as runtime from '../runtime.js';
|
|
13
|
+
import { type TaxValidationValidationResult } from '../models/TaxValidationValidationResult.js';
|
|
14
|
+
export interface GetValidationResultRequest {
|
|
15
|
+
validationResultId: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class TaxValidationValidationResultsApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getValidationResult without sending the request
|
|
23
|
+
*/
|
|
24
|
+
getValidationResultRequestOpts(requestParameters: GetValidationResultRequest): Promise<runtime.RequestOpts>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a single validation result (e.g. the one referenced in a webhook notification)
|
|
27
|
+
*/
|
|
28
|
+
getValidationResultRaw(requestParameters: GetValidationResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxValidationValidationResult>>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns a single validation result (e.g. the one referenced in a webhook notification)
|
|
31
|
+
*/
|
|
32
|
+
getValidationResult(requestParameters: GetValidationResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxValidationValidationResult>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.0
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { TaxValidationValidationResultFromJSON, } from '../models/TaxValidationValidationResult.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class TaxValidationValidationResultsApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Creates request options for getValidationResult without sending the request
|
|
22
|
+
*/
|
|
23
|
+
async getValidationResultRequestOpts(requestParameters) {
|
|
24
|
+
if (requestParameters['validationResultId'] == null) {
|
|
25
|
+
throw new runtime.RequiredError('validationResultId', 'Required parameter "validationResultId" was null or undefined when calling getValidationResult().');
|
|
26
|
+
}
|
|
27
|
+
const queryParameters = {};
|
|
28
|
+
const headerParameters = {};
|
|
29
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
30
|
+
const token = this.configuration.accessToken;
|
|
31
|
+
const tokenString = await token("bearerApiKey", []);
|
|
32
|
+
if (tokenString) {
|
|
33
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
let urlPath = `/taxvalidation/v1/validation-results/{validationResultId}`;
|
|
37
|
+
urlPath = urlPath.replace('{validationResultId}', encodeURIComponent(String(requestParameters['validationResultId'])));
|
|
38
|
+
return {
|
|
39
|
+
path: urlPath,
|
|
40
|
+
method: 'GET',
|
|
41
|
+
headers: headerParameters,
|
|
42
|
+
query: queryParameters,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns a single validation result (e.g. the one referenced in a webhook notification)
|
|
47
|
+
*/
|
|
48
|
+
async getValidationResultRaw(requestParameters, initOverrides) {
|
|
49
|
+
const requestOptions = await this.getValidationResultRequestOpts(requestParameters);
|
|
50
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
51
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaxValidationValidationResultFromJSON(jsonValue));
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Returns a single validation result (e.g. the one referenced in a webhook notification)
|
|
55
|
+
*/
|
|
56
|
+
async getValidationResult(requestParameters, initOverrides) {
|
|
57
|
+
const response = await this.getValidationResultRaw(requestParameters, initOverrides);
|
|
58
|
+
return await response.value();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.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 * as runtime from '../runtime.js';
|
|
13
|
+
import { type TaxValidationValidation } from '../models/TaxValidationValidation.js';
|
|
14
|
+
import { type TaxValidationValidationBatchCreateParams } from '../models/TaxValidationValidationBatchCreateParams.js';
|
|
15
|
+
import { type TaxValidationValidationCreateParams } from '../models/TaxValidationValidationCreateParams.js';
|
|
16
|
+
export interface CreateValidationRequest {
|
|
17
|
+
taxValidationValidationCreateParams: TaxValidationValidationCreateParams;
|
|
18
|
+
}
|
|
19
|
+
export interface CreateValidationBatchRequest {
|
|
20
|
+
taxValidationValidationBatchCreateParams: TaxValidationValidationBatchCreateParams;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class TaxValidationValidationsApi extends runtime.BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
* Creates request options for createValidation without sending the request
|
|
28
|
+
*/
|
|
29
|
+
createValidationRequestOpts(requestParameters: CreateValidationRequest): Promise<runtime.RequestOpts>;
|
|
30
|
+
/**
|
|
31
|
+
* Submits a validation request via API key (programmatic integration)
|
|
32
|
+
*/
|
|
33
|
+
createValidationRaw(requestParameters: CreateValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaxValidationValidation>>;
|
|
34
|
+
/**
|
|
35
|
+
* Submits a validation request via API key (programmatic integration)
|
|
36
|
+
*/
|
|
37
|
+
createValidation(requestParameters: CreateValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaxValidationValidation>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates request options for createValidationBatch without sending the request
|
|
40
|
+
*/
|
|
41
|
+
createValidationBatchRequestOpts(requestParameters: CreateValidationBatchRequest): Promise<runtime.RequestOpts>;
|
|
42
|
+
/**
|
|
43
|
+
* Every item is accepted as a PENDING validation request and processed asynchronously; the per-item result is delivered via webhook (or can be polled). The response carries the created requests in input order, each without an outcome yet. A batch is always accepted or rejected as a whole.
|
|
44
|
+
* Submits multiple validation requests in one call via API key
|
|
45
|
+
*/
|
|
46
|
+
createValidationBatchRaw(requestParameters: CreateValidationBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TaxValidationValidation>>>;
|
|
47
|
+
/**
|
|
48
|
+
* Every item is accepted as a PENDING validation request and processed asynchronously; the per-item result is delivered via webhook (or can be polled). The response carries the created requests in input order, each without an outcome yet. A batch is always accepted or rejected as a whole.
|
|
49
|
+
* Submits multiple validation requests in one call via API key
|
|
50
|
+
*/
|
|
51
|
+
createValidationBatch(requestParameters: CreateValidationBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TaxValidationValidation>>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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.0
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { TaxValidationValidationFromJSON, } from '../models/TaxValidationValidation.js';
|
|
16
|
+
import { TaxValidationValidationBatchCreateParamsToJSON, } from '../models/TaxValidationValidationBatchCreateParams.js';
|
|
17
|
+
import { TaxValidationValidationCreateParamsToJSON, } from '../models/TaxValidationValidationCreateParams.js';
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export class TaxValidationValidationsApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Creates request options for createValidation without sending the request
|
|
24
|
+
*/
|
|
25
|
+
async createValidationRequestOpts(requestParameters) {
|
|
26
|
+
if (requestParameters['taxValidationValidationCreateParams'] == null) {
|
|
27
|
+
throw new runtime.RequiredError('taxValidationValidationCreateParams', 'Required parameter "taxValidationValidationCreateParams" was null or undefined when calling createValidation().');
|
|
28
|
+
}
|
|
29
|
+
const queryParameters = {};
|
|
30
|
+
const headerParameters = {};
|
|
31
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
32
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
33
|
+
const token = this.configuration.accessToken;
|
|
34
|
+
const tokenString = await token("bearerApiKey", []);
|
|
35
|
+
if (tokenString) {
|
|
36
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
let urlPath = `/taxvalidation/v1/validations`;
|
|
40
|
+
return {
|
|
41
|
+
path: urlPath,
|
|
42
|
+
method: 'POST',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
body: TaxValidationValidationCreateParamsToJSON(requestParameters['taxValidationValidationCreateParams']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Submits a validation request via API key (programmatic integration)
|
|
50
|
+
*/
|
|
51
|
+
async createValidationRaw(requestParameters, initOverrides) {
|
|
52
|
+
const requestOptions = await this.createValidationRequestOpts(requestParameters);
|
|
53
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaxValidationValidationFromJSON(jsonValue));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Submits a validation request via API key (programmatic integration)
|
|
58
|
+
*/
|
|
59
|
+
async createValidation(requestParameters, initOverrides) {
|
|
60
|
+
const response = await this.createValidationRaw(requestParameters, initOverrides);
|
|
61
|
+
return await response.value();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Creates request options for createValidationBatch without sending the request
|
|
65
|
+
*/
|
|
66
|
+
async createValidationBatchRequestOpts(requestParameters) {
|
|
67
|
+
if (requestParameters['taxValidationValidationBatchCreateParams'] == null) {
|
|
68
|
+
throw new runtime.RequiredError('taxValidationValidationBatchCreateParams', 'Required parameter "taxValidationValidationBatchCreateParams" was null or undefined when calling createValidationBatch().');
|
|
69
|
+
}
|
|
70
|
+
const queryParameters = {};
|
|
71
|
+
const headerParameters = {};
|
|
72
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
const token = this.configuration.accessToken;
|
|
75
|
+
const tokenString = await token("bearerApiKey", []);
|
|
76
|
+
if (tokenString) {
|
|
77
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
let urlPath = `/taxvalidation/v1/validations/batch`;
|
|
81
|
+
return {
|
|
82
|
+
path: urlPath,
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
body: TaxValidationValidationBatchCreateParamsToJSON(requestParameters['taxValidationValidationBatchCreateParams']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Every item is accepted as a PENDING validation request and processed asynchronously; the per-item result is delivered via webhook (or can be polled). The response carries the created requests in input order, each without an outcome yet. A batch is always accepted or rejected as a whole.
|
|
91
|
+
* Submits multiple validation requests in one call via API key
|
|
92
|
+
*/
|
|
93
|
+
async createValidationBatchRaw(requestParameters, initOverrides) {
|
|
94
|
+
const requestOptions = await this.createValidationBatchRequestOpts(requestParameters);
|
|
95
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TaxValidationValidationFromJSON));
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Every item is accepted as a PENDING validation request and processed asynchronously; the per-item result is delivered via webhook (or can be polled). The response carries the created requests in input order, each without an outcome yet. A batch is always accepted or rejected as a whole.
|
|
100
|
+
* Submits multiple validation requests in one call via API key
|
|
101
|
+
*/
|
|
102
|
+
async createValidationBatch(requestParameters, initOverrides) {
|
|
103
|
+
const response = await this.createValidationBatchRaw(requestParameters, initOverrides);
|
|
104
|
+
return await response.value();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './AnalyticsServerEventsApi.js';
|
|
2
|
+
export * from './AnalyticsWebsitesApi.js';
|
|
3
|
+
export * from './CaptchaVerificationsApi.js';
|
|
4
|
+
export * from './MonitoringHeartbeatsApi.js';
|
|
5
|
+
export * from './PlatformEventsApi.js';
|
|
6
|
+
export * from './TaxValidationSchedulesApi.js';
|
|
7
|
+
export * from './TaxValidationValidationResultsApi.js';
|
|
8
|
+
export * from './TaxValidationValidationsApi.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './AnalyticsServerEventsApi.js';
|
|
4
|
+
export * from './AnalyticsWebsitesApi.js';
|
|
5
|
+
export * from './CaptchaVerificationsApi.js';
|
|
6
|
+
export * from './MonitoringHeartbeatsApi.js';
|
|
7
|
+
export * from './PlatformEventsApi.js';
|
|
8
|
+
export * from './TaxValidationSchedulesApi.js';
|
|
9
|
+
export * from './TaxValidationValidationResultsApi.js';
|
|
10
|
+
export * from './TaxValidationValidationsApi.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
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.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
|
+
* Kind of data an event carries; it decides which plan feature and which collection setting of the website the event needs (never, only with consent, always). BASIC is accepted for pageview and pageleave only.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum AnalyticsEventCategoryEnum {
|
|
18
|
+
Basic = "BASIC",
|
|
19
|
+
Identity = "IDENTITY",
|
|
20
|
+
CustomEvents = "CUSTOM_EVENTS",
|
|
21
|
+
Autocapture = "AUTOCAPTURE",
|
|
22
|
+
Forms = "FORMS",
|
|
23
|
+
ContentMedia = "CONTENT_MEDIA",
|
|
24
|
+
Commerce = "COMMERCE",
|
|
25
|
+
Experiments = "EXPERIMENTS",
|
|
26
|
+
WebVitals = "WEB_VITALS",
|
|
27
|
+
Errors = "ERRORS",
|
|
28
|
+
NetworkDiagnostics = "NETWORK_DIAGNOSTICS",
|
|
29
|
+
ConsoleDiagnostics = "CONSOLE_DIAGNOSTICS",
|
|
30
|
+
Heatmaps = "HEATMAPS",
|
|
31
|
+
Replay = "REPLAY"
|
|
32
|
+
}
|
|
33
|
+
export declare function instanceOfAnalyticsEventCategoryEnum(value: any): boolean;
|
|
34
|
+
export declare function AnalyticsEventCategoryEnumFromJSON(json: any): AnalyticsEventCategoryEnum;
|
|
35
|
+
export declare function AnalyticsEventCategoryEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsEventCategoryEnum;
|
|
36
|
+
export declare function AnalyticsEventCategoryEnumToJSON(value?: AnalyticsEventCategoryEnum | null): any;
|
|
37
|
+
export declare function AnalyticsEventCategoryEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AnalyticsEventCategoryEnum;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.0
|
|
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
|
+
* Kind of data an event carries; it decides which plan feature and which collection setting of the website the event needs (never, only with consent, always). BASIC is accepted for pageview and pageleave only.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
export var AnalyticsEventCategoryEnum;
|
|
20
|
+
(function (AnalyticsEventCategoryEnum) {
|
|
21
|
+
AnalyticsEventCategoryEnum["Basic"] = "BASIC";
|
|
22
|
+
AnalyticsEventCategoryEnum["Identity"] = "IDENTITY";
|
|
23
|
+
AnalyticsEventCategoryEnum["CustomEvents"] = "CUSTOM_EVENTS";
|
|
24
|
+
AnalyticsEventCategoryEnum["Autocapture"] = "AUTOCAPTURE";
|
|
25
|
+
AnalyticsEventCategoryEnum["Forms"] = "FORMS";
|
|
26
|
+
AnalyticsEventCategoryEnum["ContentMedia"] = "CONTENT_MEDIA";
|
|
27
|
+
AnalyticsEventCategoryEnum["Commerce"] = "COMMERCE";
|
|
28
|
+
AnalyticsEventCategoryEnum["Experiments"] = "EXPERIMENTS";
|
|
29
|
+
AnalyticsEventCategoryEnum["WebVitals"] = "WEB_VITALS";
|
|
30
|
+
AnalyticsEventCategoryEnum["Errors"] = "ERRORS";
|
|
31
|
+
AnalyticsEventCategoryEnum["NetworkDiagnostics"] = "NETWORK_DIAGNOSTICS";
|
|
32
|
+
AnalyticsEventCategoryEnum["ConsoleDiagnostics"] = "CONSOLE_DIAGNOSTICS";
|
|
33
|
+
AnalyticsEventCategoryEnum["Heatmaps"] = "HEATMAPS";
|
|
34
|
+
AnalyticsEventCategoryEnum["Replay"] = "REPLAY";
|
|
35
|
+
})(AnalyticsEventCategoryEnum || (AnalyticsEventCategoryEnum = {}));
|
|
36
|
+
export function instanceOfAnalyticsEventCategoryEnum(value) {
|
|
37
|
+
for (const key in AnalyticsEventCategoryEnum) {
|
|
38
|
+
if (Object.prototype.hasOwnProperty.call(AnalyticsEventCategoryEnum, key)) {
|
|
39
|
+
if (AnalyticsEventCategoryEnum[key] === value) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
export function AnalyticsEventCategoryEnumFromJSON(json) {
|
|
47
|
+
return AnalyticsEventCategoryEnumFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function AnalyticsEventCategoryEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
export function AnalyticsEventCategoryEnumToJSON(value) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
export function AnalyticsEventCategoryEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.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 { AnalyticsRealtimePoint } from './AnalyticsRealtimePoint.js';
|
|
13
|
+
import type { AnalyticsRealtimePage } from './AnalyticsRealtimePage.js';
|
|
14
|
+
/**
|
|
15
|
+
* What happens on the website right now
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AnalyticsRealtime
|
|
18
|
+
*/
|
|
19
|
+
export interface AnalyticsRealtime {
|
|
20
|
+
/**
|
|
21
|
+
* Time the snapshot was taken
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AnalyticsRealtime
|
|
24
|
+
*/
|
|
25
|
+
generatedAt: string;
|
|
26
|
+
/**
|
|
27
|
+
* Sessions with an event in the last five minutes
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof AnalyticsRealtime
|
|
30
|
+
*/
|
|
31
|
+
activeSessions: number;
|
|
32
|
+
/**
|
|
33
|
+
* Pageviews of each of the last thirty minutes, oldest first
|
|
34
|
+
* @type {Array<AnalyticsRealtimePoint>}
|
|
35
|
+
* @memberof AnalyticsRealtime
|
|
36
|
+
*/
|
|
37
|
+
pageviewsPerMinute: Array<AnalyticsRealtimePoint>;
|
|
38
|
+
/**
|
|
39
|
+
* Pages the active sessions are on, most visited first
|
|
40
|
+
* @type {Array<AnalyticsRealtimePage>}
|
|
41
|
+
* @memberof AnalyticsRealtime
|
|
42
|
+
*/
|
|
43
|
+
activePages: Array<AnalyticsRealtimePage>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the AnalyticsRealtime interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfAnalyticsRealtime(value: object): value is AnalyticsRealtime;
|
|
49
|
+
export declare function AnalyticsRealtimeFromJSON(json: any): AnalyticsRealtime;
|
|
50
|
+
export declare function AnalyticsRealtimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticsRealtime;
|
|
51
|
+
export declare function AnalyticsRealtimeToJSON(json: any): AnalyticsRealtime;
|
|
52
|
+
export declare function AnalyticsRealtimeToJSONTyped(value?: AnalyticsRealtime | null, ignoreDiscriminator?: boolean): any;
|