@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,98 @@
|
|
|
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 { PlatformEventActor } from './PlatformEventActor.js';
|
|
13
|
+
import type { PlatformEventOrigin } from './PlatformEventOrigin.js';
|
|
14
|
+
import type { PlatformEventChange } from './PlatformEventChange.js';
|
|
15
|
+
import type { PlatformEventRef } from './PlatformEventRef.js';
|
|
16
|
+
/**
|
|
17
|
+
* One audit log event - who changed which resource, and how
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PlatformEvent
|
|
20
|
+
*/
|
|
21
|
+
export interface PlatformEvent {
|
|
22
|
+
/**
|
|
23
|
+
* Id of the event
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlatformEvent
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Version of the event structure. 1 for events recorded before API keys, automations and anonymous callers were told apart, 2 since then
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PlatformEvent
|
|
32
|
+
*/
|
|
33
|
+
schemaVersion: number;
|
|
34
|
+
/**
|
|
35
|
+
* When the change happened, ISO 8601 in UTC
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlatformEvent
|
|
38
|
+
*/
|
|
39
|
+
occurredAt: string;
|
|
40
|
+
/**
|
|
41
|
+
* Kind of the subject followed by the action
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlatformEvent
|
|
44
|
+
*/
|
|
45
|
+
type: string;
|
|
46
|
+
/**
|
|
47
|
+
* What happened to the subject
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PlatformEvent
|
|
50
|
+
*/
|
|
51
|
+
action: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {PlatformEventRef}
|
|
55
|
+
* @memberof PlatformEvent
|
|
56
|
+
*/
|
|
57
|
+
subject: PlatformEventRef;
|
|
58
|
+
/**
|
|
59
|
+
* Resources the subject belongs to, for example the project of a module
|
|
60
|
+
* @type {Array<PlatformEventRef>}
|
|
61
|
+
* @memberof PlatformEvent
|
|
62
|
+
*/
|
|
63
|
+
scopes: Array<PlatformEventRef>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {PlatformEventOrigin}
|
|
67
|
+
* @memberof PlatformEvent
|
|
68
|
+
*/
|
|
69
|
+
origin: PlatformEventOrigin;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {PlatformEventActor}
|
|
73
|
+
* @memberof PlatformEvent
|
|
74
|
+
*/
|
|
75
|
+
actor: PlatformEventActor;
|
|
76
|
+
/**
|
|
77
|
+
* Fields the action changed
|
|
78
|
+
* @type {Array<PlatformEventChange>}
|
|
79
|
+
* @memberof PlatformEvent
|
|
80
|
+
*/
|
|
81
|
+
changes: Array<PlatformEventChange>;
|
|
82
|
+
/**
|
|
83
|
+
* Facts about the action that are not a change of the subject, for example the sign-in method or the format of an export
|
|
84
|
+
* @type {{ [key: string]: string; }}
|
|
85
|
+
* @memberof PlatformEvent
|
|
86
|
+
*/
|
|
87
|
+
details: {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the PlatformEvent interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfPlatformEvent(value: object): value is PlatformEvent;
|
|
95
|
+
export declare function PlatformEventFromJSON(json: any): PlatformEvent;
|
|
96
|
+
export declare function PlatformEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEvent;
|
|
97
|
+
export declare function PlatformEventToJSON(json: any): PlatformEvent;
|
|
98
|
+
export declare function PlatformEventToJSONTyped(value?: PlatformEvent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { PlatformEventActorFromJSON, PlatformEventActorToJSON, } from './PlatformEventActor.js';
|
|
15
|
+
import { PlatformEventOriginFromJSON, PlatformEventOriginToJSON, } from './PlatformEventOrigin.js';
|
|
16
|
+
import { PlatformEventChangeFromJSON, PlatformEventChangeToJSON, } from './PlatformEventChange.js';
|
|
17
|
+
import { PlatformEventRefFromJSON, PlatformEventRefToJSON, } from './PlatformEventRef.js';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PlatformEvent interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfPlatformEvent(value) {
|
|
22
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('occurredAt' in value) || value['occurredAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('changes' in value) || value['changes'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function PlatformEventFromJSON(json) {
|
|
47
|
+
return PlatformEventFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function PlatformEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'schemaVersion': json['schemaVersion'],
|
|
56
|
+
'occurredAt': json['occurredAt'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'action': json['action'],
|
|
59
|
+
'subject': PlatformEventRefFromJSON(json['subject']),
|
|
60
|
+
'scopes': (json['scopes'].map(PlatformEventRefFromJSON)),
|
|
61
|
+
'origin': PlatformEventOriginFromJSON(json['origin']),
|
|
62
|
+
'actor': PlatformEventActorFromJSON(json['actor']),
|
|
63
|
+
'changes': (json['changes'].map(PlatformEventChangeFromJSON)),
|
|
64
|
+
'details': json['details'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export function PlatformEventToJSON(json) {
|
|
68
|
+
return PlatformEventToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
export function PlatformEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'schemaVersion': value['schemaVersion'],
|
|
77
|
+
'occurredAt': value['occurredAt'],
|
|
78
|
+
'type': value['type'],
|
|
79
|
+
'action': value['action'],
|
|
80
|
+
'subject': PlatformEventRefToJSON(value['subject']),
|
|
81
|
+
'scopes': (value['scopes'].map(PlatformEventRefToJSON)),
|
|
82
|
+
'origin': PlatformEventOriginToJSON(value['origin']),
|
|
83
|
+
'actor': PlatformEventActorToJSON(value['actor']),
|
|
84
|
+
'changes': (value['changes'].map(PlatformEventChangeToJSON)),
|
|
85
|
+
'details': value['details'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -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.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 { PlatformEventActorTypeEnum } from './PlatformEventActorTypeEnum.js';
|
|
13
|
+
import type { PlatformEventActorAutomation } from './PlatformEventActorAutomation.js';
|
|
14
|
+
/**
|
|
15
|
+
* Who caused the event
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PlatformEventActor
|
|
18
|
+
*/
|
|
19
|
+
export interface PlatformEventActor {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PlatformEventActorTypeEnum}
|
|
23
|
+
* @memberof PlatformEventActor
|
|
24
|
+
*/
|
|
25
|
+
type: PlatformEventActorTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Id of the user, set when the type is USER
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PlatformEventActor
|
|
30
|
+
*/
|
|
31
|
+
userId?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Id of the API key, set when the type is API_KEY
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PlatformEventActor
|
|
36
|
+
*/
|
|
37
|
+
apiKeyId?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PlatformEventActorAutomation}
|
|
41
|
+
* @memberof PlatformEventActor
|
|
42
|
+
*/
|
|
43
|
+
automation?: PlatformEventActorAutomation;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the PlatformEventActor interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfPlatformEventActor(value: object): value is PlatformEventActor;
|
|
49
|
+
export declare function PlatformEventActorFromJSON(json: any): PlatformEventActor;
|
|
50
|
+
export declare function PlatformEventActorFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEventActor;
|
|
51
|
+
export declare function PlatformEventActorToJSON(json: any): PlatformEventActor;
|
|
52
|
+
export declare function PlatformEventActorToJSONTyped(value?: PlatformEventActor | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { PlatformEventActorTypeEnumFromJSON, PlatformEventActorTypeEnumToJSON, } from './PlatformEventActorTypeEnum.js';
|
|
15
|
+
import { PlatformEventActorAutomationFromJSON, PlatformEventActorAutomationToJSON, } from './PlatformEventActorAutomation.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PlatformEventActor interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPlatformEventActor(value) {
|
|
20
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PlatformEventActorFromJSON(json) {
|
|
25
|
+
return PlatformEventActorFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PlatformEventActorFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'type': PlatformEventActorTypeEnumFromJSON(json['type']),
|
|
33
|
+
'userId': json['userId'] === undefined ? undefined : json['userId'] === null ? null : json['userId'],
|
|
34
|
+
'apiKeyId': json['apiKeyId'] === undefined ? undefined : json['apiKeyId'] === null ? null : json['apiKeyId'],
|
|
35
|
+
'automation': json['automation'] == null ? undefined : PlatformEventActorAutomationFromJSON(json['automation']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function PlatformEventActorToJSON(json) {
|
|
39
|
+
return PlatformEventActorToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PlatformEventActorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'type': PlatformEventActorTypeEnumToJSON(value['type']),
|
|
47
|
+
'userId': value['userId'],
|
|
48
|
+
'apiKeyId': value['apiKeyId'],
|
|
49
|
+
'automation': PlatformEventActorAutomationToJSON(value['automation']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 { PlatformEventActorAutomationKindEnum } from './PlatformEventActorAutomationKindEnum.js';
|
|
13
|
+
/**
|
|
14
|
+
* The automated process that caused the event, set when the type is AUTOMATION
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PlatformEventActorAutomation
|
|
17
|
+
*/
|
|
18
|
+
export interface PlatformEventActorAutomation {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {PlatformEventActorAutomationKindEnum}
|
|
22
|
+
* @memberof PlatformEventActorAutomation
|
|
23
|
+
*/
|
|
24
|
+
kind: PlatformEventActorAutomationKindEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Name of the scheduled job, startup task or message the process reacted to
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PlatformEventActorAutomation
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PlatformEventActorAutomation interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPlatformEventActorAutomation(value: object): value is PlatformEventActorAutomation;
|
|
36
|
+
export declare function PlatformEventActorAutomationFromJSON(json: any): PlatformEventActorAutomation;
|
|
37
|
+
export declare function PlatformEventActorAutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEventActorAutomation;
|
|
38
|
+
export declare function PlatformEventActorAutomationToJSON(json: any): PlatformEventActorAutomation;
|
|
39
|
+
export declare function PlatformEventActorAutomationToJSONTyped(value?: PlatformEventActorAutomation | 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 { PlatformEventActorAutomationKindEnumFromJSON, PlatformEventActorAutomationKindEnumToJSON, } from './PlatformEventActorAutomationKindEnum.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PlatformEventActorAutomation interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPlatformEventActorAutomation(value) {
|
|
19
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function PlatformEventActorAutomationFromJSON(json) {
|
|
26
|
+
return PlatformEventActorAutomationFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PlatformEventActorAutomationFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'kind': PlatformEventActorAutomationKindEnumFromJSON(json['kind']),
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PlatformEventActorAutomationToJSON(json) {
|
|
38
|
+
return PlatformEventActorAutomationToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PlatformEventActorAutomationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'kind': PlatformEventActorAutomationKindEnumToJSON(value['kind']),
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* SCHEDULER for a job that runs on a schedule, RUNNER for a task at service start, LISTENER for a reaction to another event
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum PlatformEventActorAutomationKindEnum {
|
|
18
|
+
Scheduler = "SCHEDULER",
|
|
19
|
+
Runner = "RUNNER",
|
|
20
|
+
Listener = "LISTENER"
|
|
21
|
+
}
|
|
22
|
+
export declare function instanceOfPlatformEventActorAutomationKindEnum(value: any): boolean;
|
|
23
|
+
export declare function PlatformEventActorAutomationKindEnumFromJSON(json: any): PlatformEventActorAutomationKindEnum;
|
|
24
|
+
export declare function PlatformEventActorAutomationKindEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEventActorAutomationKindEnum;
|
|
25
|
+
export declare function PlatformEventActorAutomationKindEnumToJSON(value?: PlatformEventActorAutomationKindEnum | null): any;
|
|
26
|
+
export declare function PlatformEventActorAutomationKindEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): PlatformEventActorAutomationKindEnum;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
* SCHEDULER for a job that runs on a schedule, RUNNER for a task at service start, LISTENER for a reaction to another event
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
export var PlatformEventActorAutomationKindEnum;
|
|
20
|
+
(function (PlatformEventActorAutomationKindEnum) {
|
|
21
|
+
PlatformEventActorAutomationKindEnum["Scheduler"] = "SCHEDULER";
|
|
22
|
+
PlatformEventActorAutomationKindEnum["Runner"] = "RUNNER";
|
|
23
|
+
PlatformEventActorAutomationKindEnum["Listener"] = "LISTENER";
|
|
24
|
+
})(PlatformEventActorAutomationKindEnum || (PlatformEventActorAutomationKindEnum = {}));
|
|
25
|
+
export function instanceOfPlatformEventActorAutomationKindEnum(value) {
|
|
26
|
+
for (const key in PlatformEventActorAutomationKindEnum) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(PlatformEventActorAutomationKindEnum, key)) {
|
|
28
|
+
if (PlatformEventActorAutomationKindEnum[key] === value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
export function PlatformEventActorAutomationKindEnumFromJSON(json) {
|
|
36
|
+
return PlatformEventActorAutomationKindEnumFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PlatformEventActorAutomationKindEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
export function PlatformEventActorAutomationKindEnumToJSON(value) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
export function PlatformEventActorAutomationKindEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* USER for a signed-in person, API_KEY for an API key, AUTOMATION for a scheduled or triggered process of TrustComponent, ANONYMOUS for a caller that is not signed in (for example a failed sign-in), SYSTEM when no actor could be determined
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum PlatformEventActorTypeEnum {
|
|
18
|
+
User = "USER",
|
|
19
|
+
ApiKey = "API_KEY",
|
|
20
|
+
Automation = "AUTOMATION",
|
|
21
|
+
Anonymous = "ANONYMOUS",
|
|
22
|
+
System = "SYSTEM"
|
|
23
|
+
}
|
|
24
|
+
export declare function instanceOfPlatformEventActorTypeEnum(value: any): boolean;
|
|
25
|
+
export declare function PlatformEventActorTypeEnumFromJSON(json: any): PlatformEventActorTypeEnum;
|
|
26
|
+
export declare function PlatformEventActorTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEventActorTypeEnum;
|
|
27
|
+
export declare function PlatformEventActorTypeEnumToJSON(value?: PlatformEventActorTypeEnum | null): any;
|
|
28
|
+
export declare function PlatformEventActorTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): PlatformEventActorTypeEnum;
|
|
@@ -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
|
+
/**
|
|
15
|
+
* USER for a signed-in person, API_KEY for an API key, AUTOMATION for a scheduled or triggered process of TrustComponent, ANONYMOUS for a caller that is not signed in (for example a failed sign-in), SYSTEM when no actor could be determined
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
export var PlatformEventActorTypeEnum;
|
|
20
|
+
(function (PlatformEventActorTypeEnum) {
|
|
21
|
+
PlatformEventActorTypeEnum["User"] = "USER";
|
|
22
|
+
PlatformEventActorTypeEnum["ApiKey"] = "API_KEY";
|
|
23
|
+
PlatformEventActorTypeEnum["Automation"] = "AUTOMATION";
|
|
24
|
+
PlatformEventActorTypeEnum["Anonymous"] = "ANONYMOUS";
|
|
25
|
+
PlatformEventActorTypeEnum["System"] = "SYSTEM";
|
|
26
|
+
})(PlatformEventActorTypeEnum || (PlatformEventActorTypeEnum = {}));
|
|
27
|
+
export function instanceOfPlatformEventActorTypeEnum(value) {
|
|
28
|
+
for (const key in PlatformEventActorTypeEnum) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PlatformEventActorTypeEnum, key)) {
|
|
30
|
+
if (PlatformEventActorTypeEnum[key] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
export function PlatformEventActorTypeEnumFromJSON(json) {
|
|
38
|
+
return PlatformEventActorTypeEnumFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PlatformEventActorTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
export function PlatformEventActorTypeEnumToJSON(value) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
export function PlatformEventActorTypeEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { PlatformEventChangeOperationEnum } from './PlatformEventChangeOperationEnum.js';
|
|
13
|
+
/**
|
|
14
|
+
* One changed field
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PlatformEventChange
|
|
17
|
+
*/
|
|
18
|
+
export interface PlatformEventChange {
|
|
19
|
+
/**
|
|
20
|
+
* Name of the field
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PlatformEventChange
|
|
23
|
+
*/
|
|
24
|
+
field: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {PlatformEventChangeOperationEnum}
|
|
28
|
+
* @memberof PlatformEventChange
|
|
29
|
+
*/
|
|
30
|
+
operation: PlatformEventChangeOperationEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Value before the change
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PlatformEventChange
|
|
35
|
+
*/
|
|
36
|
+
before?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Value after the change
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PlatformEventChange
|
|
41
|
+
*/
|
|
42
|
+
after?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the values are masked because they are secret
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof PlatformEventChange
|
|
47
|
+
*/
|
|
48
|
+
isRedacted: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PlatformEventChange interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPlatformEventChange(value: object): value is PlatformEventChange;
|
|
54
|
+
export declare function PlatformEventChangeFromJSON(json: any): PlatformEventChange;
|
|
55
|
+
export declare function PlatformEventChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEventChange;
|
|
56
|
+
export declare function PlatformEventChangeToJSON(json: any): PlatformEventChange;
|
|
57
|
+
export declare function PlatformEventChangeToJSONTyped(value?: PlatformEventChange | 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 { PlatformEventChangeOperationEnumFromJSON, PlatformEventChangeOperationEnumToJSON, } from './PlatformEventChangeOperationEnum.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PlatformEventChange interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPlatformEventChange(value) {
|
|
19
|
+
if (!('field' in value) || value['field'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('operation' in value) || value['operation'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('isRedacted' in value) || value['isRedacted'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function PlatformEventChangeFromJSON(json) {
|
|
28
|
+
return PlatformEventChangeFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function PlatformEventChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'field': json['field'],
|
|
36
|
+
'operation': PlatformEventChangeOperationEnumFromJSON(json['operation']),
|
|
37
|
+
'before': json['before'] === undefined ? undefined : json['before'] === null ? null : json['before'],
|
|
38
|
+
'after': json['after'] === undefined ? undefined : json['after'] === null ? null : json['after'],
|
|
39
|
+
'isRedacted': json['isRedacted'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function PlatformEventChangeToJSON(json) {
|
|
43
|
+
return PlatformEventChangeToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function PlatformEventChangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'field': value['field'],
|
|
51
|
+
'operation': PlatformEventChangeOperationEnumToJSON(value['operation']),
|
|
52
|
+
'before': value['before'],
|
|
53
|
+
'after': value['after'],
|
|
54
|
+
'isRedacted': value['isRedacted'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* How the field changed
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum PlatformEventChangeOperationEnum {
|
|
18
|
+
Set = "SET",
|
|
19
|
+
Add = "ADD",
|
|
20
|
+
Remove = "REMOVE",
|
|
21
|
+
Enable = "ENABLE",
|
|
22
|
+
Disable = "DISABLE"
|
|
23
|
+
}
|
|
24
|
+
export declare function instanceOfPlatformEventChangeOperationEnum(value: any): boolean;
|
|
25
|
+
export declare function PlatformEventChangeOperationEnumFromJSON(json: any): PlatformEventChangeOperationEnum;
|
|
26
|
+
export declare function PlatformEventChangeOperationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlatformEventChangeOperationEnum;
|
|
27
|
+
export declare function PlatformEventChangeOperationEnumToJSON(value?: PlatformEventChangeOperationEnum | null): any;
|
|
28
|
+
export declare function PlatformEventChangeOperationEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): PlatformEventChangeOperationEnum;
|