@randock/nameshift-api-client 0.0.552 → 0.0.554
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/.openapi-generator/FILES +39 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +1 -0
- package/dist/apis/AccountsApi.js +2 -1
- package/dist/apis/AutomationsApi.d.ts +160 -0
- package/dist/apis/AutomationsApi.js +748 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountPaymentMethodProfileDto.d.ts +1 -0
- package/dist/models/AccountPaymentMethodProfileDto.js +2 -1
- package/dist/models/AutomationActionDto.d.ts +45 -0
- package/dist/models/AutomationActionDto.js +60 -0
- package/dist/models/AutomationActionInput.d.ts +45 -0
- package/dist/models/AutomationActionInput.js +56 -0
- package/dist/models/AutomationActionStatusEnum.d.ts +26 -0
- package/dist/models/AutomationActionStatusEnum.js +52 -0
- package/dist/models/AutomationActionTypeEnum.d.ts +27 -0
- package/dist/models/AutomationActionTypeEnum.js +53 -0
- package/dist/models/AutomationAggregateEnum.d.ts +24 -0
- package/dist/models/AutomationAggregateEnum.js +50 -0
- package/dist/models/AutomationCatalogDelayUnitDto.d.ts +45 -0
- package/dist/models/AutomationCatalogDelayUnitDto.js +60 -0
- package/dist/models/AutomationCatalogDto.d.ts +77 -0
- package/dist/models/AutomationCatalogDto.js +82 -0
- package/dist/models/AutomationCatalogFactDto.d.ts +54 -0
- package/dist/models/AutomationCatalogFactDto.js +67 -0
- package/dist/models/AutomationCatalogTriggerDto.d.ts +60 -0
- package/dist/models/AutomationCatalogTriggerDto.js +71 -0
- package/dist/models/AutomationConditionDto.d.ts +65 -0
- package/dist/models/AutomationConditionDto.js +76 -0
- package/dist/models/AutomationConditionEvaluationDto.d.ts +77 -0
- package/dist/models/AutomationConditionEvaluationDto.js +84 -0
- package/dist/models/AutomationConditionGroupDto.d.ts +53 -0
- package/dist/models/AutomationConditionGroupDto.js +68 -0
- package/dist/models/AutomationConditionGroupDtoChildrenInner.d.ts +27 -0
- package/dist/models/AutomationConditionGroupDtoChildrenInner.js +54 -0
- package/dist/models/AutomationConditionGroupEvaluationDto.d.ts +59 -0
- package/dist/models/AutomationConditionGroupEvaluationDto.js +72 -0
- package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.d.ts +27 -0
- package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.js +54 -0
- package/dist/models/AutomationConditionGroupInput.d.ts +53 -0
- package/dist/models/AutomationConditionGroupInput.js +68 -0
- package/dist/models/AutomationConditionGroupInputChildrenInner.d.ts +27 -0
- package/dist/models/AutomationConditionGroupInputChildrenInner.js +54 -0
- package/dist/models/AutomationConditionInput.d.ts +65 -0
- package/dist/models/AutomationConditionInput.js +74 -0
- package/dist/models/AutomationDelayDto.d.ts +39 -0
- package/dist/models/AutomationDelayDto.js +56 -0
- package/dist/models/AutomationDelayInput.d.ts +39 -0
- package/dist/models/AutomationDelayInput.js +56 -0
- package/dist/models/AutomationDelayUnitEnum.d.ts +25 -0
- package/dist/models/AutomationDelayUnitEnum.js +51 -0
- package/dist/models/AutomationDto.d.ts +96 -0
- package/dist/models/AutomationDto.js +95 -0
- package/dist/models/AutomationFactEnum.d.ts +36 -0
- package/dist/models/AutomationFactEnum.js +62 -0
- package/dist/models/AutomationFactGroupEnum.d.ts +27 -0
- package/dist/models/AutomationFactGroupEnum.js +53 -0
- package/dist/models/AutomationFactValueTypeEnum.d.ts +30 -0
- package/dist/models/AutomationFactValueTypeEnum.js +56 -0
- package/dist/models/AutomationGroupOperatorEnum.d.ts +25 -0
- package/dist/models/AutomationGroupOperatorEnum.js +51 -0
- package/dist/models/AutomationInput.d.ts +66 -0
- package/dist/models/AutomationInput.js +71 -0
- package/dist/models/AutomationOperatorEnum.d.ts +37 -0
- package/dist/models/AutomationOperatorEnum.js +63 -0
- package/dist/models/AutomationRunActionDto.d.ts +46 -0
- package/dist/models/AutomationRunActionDto.js +61 -0
- package/dist/models/AutomationRunAutomationDto.d.ts +58 -0
- package/dist/models/AutomationRunAutomationDto.js +69 -0
- package/dist/models/AutomationRunDto.d.ts +65 -0
- package/dist/models/AutomationRunDto.js +74 -0
- package/dist/models/AutomationRunLeadDto.d.ts +44 -0
- package/dist/models/AutomationRunLeadDto.js +59 -0
- package/dist/models/AutomationSimulationDto.d.ts +64 -0
- package/dist/models/AutomationSimulationDto.js +73 -0
- package/dist/models/AutomationStatusInput.d.ts +32 -0
- package/dist/models/AutomationStatusInput.js +51 -0
- package/dist/models/AutomationTriggerEnum.d.ts +28 -0
- package/dist/models/AutomationTriggerEnum.js +54 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/GetAutomationRuns200Response.d.ts +47 -0
- package/dist/models/GetAutomationRuns200Response.js +62 -0
- package/dist/models/GetAutomations200Response.d.ts +47 -0
- package/dist/models/GetAutomations200Response.js +62 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/InvoiceDtoTransaction.d.ts +1 -0
- package/dist/models/InvoiceDtoTransaction.js +2 -1
- package/dist/models/InvoiceTransactionDto.d.ts +1 -0
- package/dist/models/InvoiceTransactionDto.js +2 -1
- package/dist/models/LeadMessageDto.d.ts +6 -0
- package/dist/models/LeadMessageDto.js +4 -0
- package/dist/models/OrderListItemDtoTransaction.d.ts +1 -0
- package/dist/models/OrderListItemDtoTransaction.js +2 -1
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/SimulateAutomationsInput.d.ts +70 -0
- package/dist/models/SimulateAutomationsInput.js +69 -0
- package/dist/models/SubscriptionListItemDtoTransaction.d.ts +1 -0
- package/dist/models/SubscriptionListItemDtoTransaction.js +2 -1
- package/dist/models/index.d.ts +38 -0
- package/dist/models/index.js +38 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +2 -1
- package/src/apis/AutomationsApi.ts +622 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountPaymentMethodProfileDto.ts +2 -1
- package/src/models/AutomationActionDto.ts +94 -0
- package/src/models/AutomationActionInput.ts +92 -0
- package/src/models/AutomationActionStatusEnum.ts +54 -0
- package/src/models/AutomationActionTypeEnum.ts +55 -0
- package/src/models/AutomationAggregateEnum.ts +52 -0
- package/src/models/AutomationCatalogDelayUnitDto.ts +94 -0
- package/src/models/AutomationCatalogDto.ts +151 -0
- package/src/models/AutomationCatalogFactDto.ts +124 -0
- package/src/models/AutomationCatalogTriggerDto.ts +133 -0
- package/src/models/AutomationConditionDto.ts +127 -0
- package/src/models/AutomationConditionEvaluationDto.ts +145 -0
- package/src/models/AutomationConditionGroupDto.ts +109 -0
- package/src/models/AutomationConditionGroupDtoChildrenInner.ts +73 -0
- package/src/models/AutomationConditionGroupEvaluationDto.ts +118 -0
- package/src/models/AutomationConditionGroupEvaluationDtoChildrenInner.ts +73 -0
- package/src/models/AutomationConditionGroupInput.ts +109 -0
- package/src/models/AutomationConditionGroupInputChildrenInner.ts +73 -0
- package/src/models/AutomationConditionInput.ts +126 -0
- package/src/models/AutomationDelayDto.ts +85 -0
- package/src/models/AutomationDelayInput.ts +85 -0
- package/src/models/AutomationDelayUnitEnum.ts +53 -0
- package/src/models/AutomationDto.ts +187 -0
- package/src/models/AutomationFactEnum.ts +64 -0
- package/src/models/AutomationFactGroupEnum.ts +55 -0
- package/src/models/AutomationFactValueTypeEnum.ts +58 -0
- package/src/models/AutomationGroupOperatorEnum.ts +53 -0
- package/src/models/AutomationInput.ts +140 -0
- package/src/models/AutomationOperatorEnum.ts +65 -0
- package/src/models/AutomationRunActionDto.ts +101 -0
- package/src/models/AutomationRunAutomationDto.ts +117 -0
- package/src/models/AutomationRunDto.ts +135 -0
- package/src/models/AutomationRunLeadDto.ts +84 -0
- package/src/models/AutomationSimulationDto.ts +126 -0
- package/src/models/AutomationStatusInput.ts +66 -0
- package/src/models/AutomationTriggerEnum.ts +56 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/GetAutomationRuns200Response.ts +106 -0
- package/src/models/GetAutomations200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/InvoiceDtoTransaction.ts +2 -1
- package/src/models/InvoiceTransactionDto.ts +2 -1
- package/src/models/LeadMessageDto.ts +9 -0
- package/src/models/OrderListItemDtoTransaction.ts +2 -1
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/SimulateAutomationsInput.ts +133 -0
- package/src/models/SubscriptionListItemDtoTransaction.ts +2 -1
- package/src/models/index.ts +38 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AutomationDelayUnitEnum } from './AutomationDelayUnitEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationDelayUnitEnumFromJSON,
|
|
19
|
+
AutomationDelayUnitEnumFromJSONTyped,
|
|
20
|
+
AutomationDelayUnitEnumToJSON,
|
|
21
|
+
AutomationDelayUnitEnumToJSONTyped,
|
|
22
|
+
} from './AutomationDelayUnitEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationDelayInput
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationDelayInput {
|
|
30
|
+
/**
|
|
31
|
+
* How many hours or days the trigger waits.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AutomationDelayInput
|
|
34
|
+
*/
|
|
35
|
+
amount: number;
|
|
36
|
+
/**
|
|
37
|
+
* Unit of the amount.
|
|
38
|
+
* @type {AutomationDelayUnitEnum}
|
|
39
|
+
* @memberof AutomationDelayInput
|
|
40
|
+
*/
|
|
41
|
+
unit: AutomationDelayUnitEnum;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the AutomationDelayInput interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfAutomationDelayInput(value: object): value is AutomationDelayInput {
|
|
50
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
51
|
+
if (!('unit' in value) || value['unit'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AutomationDelayInputFromJSON(json: any): AutomationDelayInput {
|
|
56
|
+
return AutomationDelayInputFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AutomationDelayInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDelayInput {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'amount': json['amount'],
|
|
66
|
+
'unit': AutomationDelayUnitEnumFromJSON(json['unit']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AutomationDelayInputToJSON(json: any): AutomationDelayInput {
|
|
71
|
+
return AutomationDelayInputToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function AutomationDelayInputToJSONTyped(value?: AutomationDelayInput | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'amount': value['amount'],
|
|
82
|
+
'unit': AutomationDelayUnitEnumToJSON(value['unit']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Unit of the amount.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationDelayUnitEnum = {
|
|
21
|
+
HOURS: 'hours',
|
|
22
|
+
DAYS: 'days'
|
|
23
|
+
} as const;
|
|
24
|
+
export type AutomationDelayUnitEnum = typeof AutomationDelayUnitEnum[keyof typeof AutomationDelayUnitEnum];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfAutomationDelayUnitEnum(value: any): boolean {
|
|
28
|
+
for (const key in AutomationDelayUnitEnum) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(AutomationDelayUnitEnum, key)) {
|
|
30
|
+
if (AutomationDelayUnitEnum[key as keyof typeof AutomationDelayUnitEnum] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AutomationDelayUnitEnumFromJSON(json: any): AutomationDelayUnitEnum {
|
|
39
|
+
return AutomationDelayUnitEnumFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AutomationDelayUnitEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDelayUnitEnum {
|
|
43
|
+
return json as AutomationDelayUnitEnum;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AutomationDelayUnitEnumToJSON(value?: AutomationDelayUnitEnum | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AutomationDelayUnitEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationDelayUnitEnum {
|
|
51
|
+
return value as AutomationDelayUnitEnum;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AutomationActionDto } from './AutomationActionDto';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionDtoFromJSON,
|
|
19
|
+
AutomationActionDtoFromJSONTyped,
|
|
20
|
+
AutomationActionDtoToJSON,
|
|
21
|
+
AutomationActionDtoToJSONTyped,
|
|
22
|
+
} from './AutomationActionDto';
|
|
23
|
+
import type { AutomationTriggerEnum } from './AutomationTriggerEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationTriggerEnumFromJSON,
|
|
26
|
+
AutomationTriggerEnumFromJSONTyped,
|
|
27
|
+
AutomationTriggerEnumToJSON,
|
|
28
|
+
AutomationTriggerEnumToJSONTyped,
|
|
29
|
+
} from './AutomationTriggerEnum';
|
|
30
|
+
import type { AutomationConditionGroupDto } from './AutomationConditionGroupDto';
|
|
31
|
+
import {
|
|
32
|
+
AutomationConditionGroupDtoFromJSON,
|
|
33
|
+
AutomationConditionGroupDtoFromJSONTyped,
|
|
34
|
+
AutomationConditionGroupDtoToJSON,
|
|
35
|
+
AutomationConditionGroupDtoToJSONTyped,
|
|
36
|
+
} from './AutomationConditionGroupDto';
|
|
37
|
+
import type { AutomationDelayDto } from './AutomationDelayDto';
|
|
38
|
+
import {
|
|
39
|
+
AutomationDelayDtoFromJSON,
|
|
40
|
+
AutomationDelayDtoFromJSONTyped,
|
|
41
|
+
AutomationDelayDtoToJSON,
|
|
42
|
+
AutomationDelayDtoToJSONTyped,
|
|
43
|
+
} from './AutomationDelayDto';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AutomationDto
|
|
49
|
+
*/
|
|
50
|
+
export interface AutomationDto {
|
|
51
|
+
/**
|
|
52
|
+
* Automation id.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AutomationDto
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Name the seller recognises the automation by.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AutomationDto
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the automation is being applied.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof AutomationDto
|
|
67
|
+
*/
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* What makes the automation be evaluated.
|
|
71
|
+
* @type {AutomationTriggerEnum}
|
|
72
|
+
* @memberof AutomationDto
|
|
73
|
+
*/
|
|
74
|
+
trigger: AutomationTriggerEnum;
|
|
75
|
+
/**
|
|
76
|
+
* How long the trigger waits before the automation applies.
|
|
77
|
+
* @type {AutomationDelayDto}
|
|
78
|
+
* @memberof AutomationDto
|
|
79
|
+
*/
|
|
80
|
+
delay: AutomationDelayDto | null;
|
|
81
|
+
/**
|
|
82
|
+
* Conditions that have to hold for the actions to run.
|
|
83
|
+
* @type {AutomationConditionGroupDto}
|
|
84
|
+
* @memberof AutomationDto
|
|
85
|
+
*/
|
|
86
|
+
conditions: AutomationConditionGroupDto;
|
|
87
|
+
/**
|
|
88
|
+
* What the automation does when its conditions hold.
|
|
89
|
+
* @type {Array<AutomationActionDto>}
|
|
90
|
+
* @memberof AutomationDto
|
|
91
|
+
*/
|
|
92
|
+
actions: Array<AutomationActionDto>;
|
|
93
|
+
/**
|
|
94
|
+
* How many times the automation has acted.
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @memberof AutomationDto
|
|
97
|
+
*/
|
|
98
|
+
executionsCount: number;
|
|
99
|
+
/**
|
|
100
|
+
* When the automation last acted.
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof AutomationDto
|
|
103
|
+
*/
|
|
104
|
+
lastExecutedAt: Date | null;
|
|
105
|
+
/**
|
|
106
|
+
* When the automation was created.
|
|
107
|
+
* @type {Date}
|
|
108
|
+
* @memberof AutomationDto
|
|
109
|
+
*/
|
|
110
|
+
createdAt: Date;
|
|
111
|
+
/**
|
|
112
|
+
* When the automation was last updated.
|
|
113
|
+
* @type {Date}
|
|
114
|
+
* @memberof AutomationDto
|
|
115
|
+
*/
|
|
116
|
+
updatedAt: Date;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the AutomationDto interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfAutomationDto(value: object): value is AutomationDto {
|
|
125
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
126
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
127
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
128
|
+
if (!('trigger' in value) || value['trigger'] === undefined) return false;
|
|
129
|
+
if (!('delay' in value) || value['delay'] === undefined) return false;
|
|
130
|
+
if (!('conditions' in value) || value['conditions'] === undefined) return false;
|
|
131
|
+
if (!('actions' in value) || value['actions'] === undefined) return false;
|
|
132
|
+
if (!('executionsCount' in value) || value['executionsCount'] === undefined) return false;
|
|
133
|
+
if (!('lastExecutedAt' in value) || value['lastExecutedAt'] === undefined) return false;
|
|
134
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
135
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function AutomationDtoFromJSON(json: any): AutomationDto {
|
|
140
|
+
return AutomationDtoFromJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function AutomationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDto {
|
|
144
|
+
if (json == null) {
|
|
145
|
+
return json;
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'id': json['id'],
|
|
150
|
+
'name': json['name'],
|
|
151
|
+
'enabled': json['enabled'],
|
|
152
|
+
'trigger': AutomationTriggerEnumFromJSON(json['trigger']),
|
|
153
|
+
'delay': AutomationDelayDtoFromJSON(json['delay']),
|
|
154
|
+
'conditions': AutomationConditionGroupDtoFromJSON(json['conditions']),
|
|
155
|
+
'actions': ((json['actions'] as Array<any>).map(AutomationActionDtoFromJSON)),
|
|
156
|
+
'executionsCount': json['executionsCount'],
|
|
157
|
+
'lastExecutedAt': (json['lastExecutedAt'] == null ? null : new Date(json['lastExecutedAt'])),
|
|
158
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
159
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function AutomationDtoToJSON(json: any): AutomationDto {
|
|
164
|
+
return AutomationDtoToJSONTyped(json, false);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function AutomationDtoToJSONTyped(value?: AutomationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
168
|
+
if (value == null) {
|
|
169
|
+
return value;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return {
|
|
173
|
+
|
|
174
|
+
'id': value['id'],
|
|
175
|
+
'name': value['name'],
|
|
176
|
+
'enabled': value['enabled'],
|
|
177
|
+
'trigger': AutomationTriggerEnumToJSON(value['trigger']),
|
|
178
|
+
'delay': AutomationDelayDtoToJSON(value['delay']),
|
|
179
|
+
'conditions': AutomationConditionGroupDtoToJSON(value['conditions']),
|
|
180
|
+
'actions': ((value['actions'] as Array<any>).map(AutomationActionDtoToJSON)),
|
|
181
|
+
'executionsCount': value['executionsCount'],
|
|
182
|
+
'lastExecutedAt': (value['lastExecutedAt'] == null ? null : (value['lastExecutedAt'] as any).toISOString()),
|
|
183
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
184
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Data the condition looks at.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationFactEnum = {
|
|
21
|
+
OFFER_AMOUNT: 'offer_amount',
|
|
22
|
+
OFFER_CURRENCY: 'offer_currency',
|
|
23
|
+
OFFER_BUY_NOW_PERCENTAGE: 'offer_buy_now_percentage',
|
|
24
|
+
LEAD_IS_INFORMATION_REQUEST: 'lead_is_information_request',
|
|
25
|
+
BUYER_EMAIL: 'buyer_email',
|
|
26
|
+
BUYER_EMAIL_DOMAIN: 'buyer_email_domain',
|
|
27
|
+
BUYER_EMAIL_TLD: 'buyer_email_tld',
|
|
28
|
+
BUYER_EMAIL_IS_DISPOSABLE: 'buyer_email_is_disposable',
|
|
29
|
+
BUYER_IP_COUNTRY: 'buyer_ip_country',
|
|
30
|
+
DOMAIN_NAME: 'domain_name',
|
|
31
|
+
DOMAIN_TLD: 'domain_tld',
|
|
32
|
+
DOMAIN_BUY_NOW_PRICE: 'domain_buy_now_price',
|
|
33
|
+
LEAD_MESSAGE_TEXT: 'lead_message_text'
|
|
34
|
+
} as const;
|
|
35
|
+
export type AutomationFactEnum = typeof AutomationFactEnum[keyof typeof AutomationFactEnum];
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
export function instanceOfAutomationFactEnum(value: any): boolean {
|
|
39
|
+
for (const key in AutomationFactEnum) {
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(AutomationFactEnum, key)) {
|
|
41
|
+
if (AutomationFactEnum[key as keyof typeof AutomationFactEnum] === value) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AutomationFactEnumFromJSON(json: any): AutomationFactEnum {
|
|
50
|
+
return AutomationFactEnumFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AutomationFactEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationFactEnum {
|
|
54
|
+
return json as AutomationFactEnum;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function AutomationFactEnumToJSON(value?: AutomationFactEnum | null): any {
|
|
58
|
+
return value as any;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function AutomationFactEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationFactEnum {
|
|
62
|
+
return value as AutomationFactEnum;
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* What the fact is about.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationFactGroupEnum = {
|
|
21
|
+
OFFER: 'offer',
|
|
22
|
+
LEAD: 'lead',
|
|
23
|
+
BUYER: 'buyer',
|
|
24
|
+
DOMAIN: 'domain'
|
|
25
|
+
} as const;
|
|
26
|
+
export type AutomationFactGroupEnum = typeof AutomationFactGroupEnum[keyof typeof AutomationFactGroupEnum];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfAutomationFactGroupEnum(value: any): boolean {
|
|
30
|
+
for (const key in AutomationFactGroupEnum) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(AutomationFactGroupEnum, key)) {
|
|
32
|
+
if (AutomationFactGroupEnum[key as keyof typeof AutomationFactGroupEnum] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function AutomationFactGroupEnumFromJSON(json: any): AutomationFactGroupEnum {
|
|
41
|
+
return AutomationFactGroupEnumFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function AutomationFactGroupEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationFactGroupEnum {
|
|
45
|
+
return json as AutomationFactGroupEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function AutomationFactGroupEnumToJSON(value?: AutomationFactGroupEnum | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AutomationFactGroupEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationFactGroupEnum {
|
|
53
|
+
return value as AutomationFactGroupEnum;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Kind of value the fact holds.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationFactValueTypeEnum = {
|
|
21
|
+
STRING: 'string',
|
|
22
|
+
MONEY: 'money',
|
|
23
|
+
PERCENTAGE: 'percentage',
|
|
24
|
+
BOOLEAN: 'boolean',
|
|
25
|
+
COUNTRY: 'country',
|
|
26
|
+
TLD: 'tld',
|
|
27
|
+
CURRENCY: 'currency'
|
|
28
|
+
} as const;
|
|
29
|
+
export type AutomationFactValueTypeEnum = typeof AutomationFactValueTypeEnum[keyof typeof AutomationFactValueTypeEnum];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function instanceOfAutomationFactValueTypeEnum(value: any): boolean {
|
|
33
|
+
for (const key in AutomationFactValueTypeEnum) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(AutomationFactValueTypeEnum, key)) {
|
|
35
|
+
if (AutomationFactValueTypeEnum[key as keyof typeof AutomationFactValueTypeEnum] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function AutomationFactValueTypeEnumFromJSON(json: any): AutomationFactValueTypeEnum {
|
|
44
|
+
return AutomationFactValueTypeEnumFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AutomationFactValueTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationFactValueTypeEnum {
|
|
48
|
+
return json as AutomationFactValueTypeEnum;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AutomationFactValueTypeEnumToJSON(value?: AutomationFactValueTypeEnum | null): any {
|
|
52
|
+
return value as any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AutomationFactValueTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationFactValueTypeEnum {
|
|
56
|
+
return value as AutomationFactValueTypeEnum;
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* How the conditions of the group combine.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationGroupOperatorEnum = {
|
|
21
|
+
ALL: 'all',
|
|
22
|
+
ANY: 'any'
|
|
23
|
+
} as const;
|
|
24
|
+
export type AutomationGroupOperatorEnum = typeof AutomationGroupOperatorEnum[keyof typeof AutomationGroupOperatorEnum];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfAutomationGroupOperatorEnum(value: any): boolean {
|
|
28
|
+
for (const key in AutomationGroupOperatorEnum) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(AutomationGroupOperatorEnum, key)) {
|
|
30
|
+
if (AutomationGroupOperatorEnum[key as keyof typeof AutomationGroupOperatorEnum] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AutomationGroupOperatorEnumFromJSON(json: any): AutomationGroupOperatorEnum {
|
|
39
|
+
return AutomationGroupOperatorEnumFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AutomationGroupOperatorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationGroupOperatorEnum {
|
|
43
|
+
return json as AutomationGroupOperatorEnum;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AutomationGroupOperatorEnumToJSON(value?: AutomationGroupOperatorEnum | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AutomationGroupOperatorEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationGroupOperatorEnum {
|
|
51
|
+
return value as AutomationGroupOperatorEnum;
|
|
52
|
+
}
|
|
53
|
+
|