@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,94 @@
|
|
|
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 { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionTypeEnumFromJSON,
|
|
19
|
+
AutomationActionTypeEnumFromJSONTyped,
|
|
20
|
+
AutomationActionTypeEnumToJSON,
|
|
21
|
+
AutomationActionTypeEnumToJSONTyped,
|
|
22
|
+
} from './AutomationActionTypeEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationActionDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationActionDto {
|
|
30
|
+
/**
|
|
31
|
+
* What the automation does to the lead.
|
|
32
|
+
* @type {AutomationActionTypeEnum}
|
|
33
|
+
* @memberof AutomationActionDto
|
|
34
|
+
*/
|
|
35
|
+
type: AutomationActionTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Text the action sends to the buyer, with {{variable}} tokens.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AutomationActionDto
|
|
40
|
+
*/
|
|
41
|
+
message: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Quick reply the action sends instead of a message of its own.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AutomationActionDto
|
|
46
|
+
*/
|
|
47
|
+
quickReplyId: string | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationActionDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationActionDto(value: object): value is AutomationActionDto {
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
58
|
+
if (!('quickReplyId' in value) || value['quickReplyId'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AutomationActionDtoFromJSON(json: any): AutomationActionDto {
|
|
63
|
+
return AutomationActionDtoFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AutomationActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionDto {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'type': AutomationActionTypeEnumFromJSON(json['type']),
|
|
73
|
+
'message': json['message'],
|
|
74
|
+
'quickReplyId': json['quickReplyId'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AutomationActionDtoToJSON(json: any): AutomationActionDto {
|
|
79
|
+
return AutomationActionDtoToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AutomationActionDtoToJSONTyped(value?: AutomationActionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'type': AutomationActionTypeEnumToJSON(value['type']),
|
|
90
|
+
'message': value['message'],
|
|
91
|
+
'quickReplyId': value['quickReplyId'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionTypeEnumFromJSON,
|
|
19
|
+
AutomationActionTypeEnumFromJSONTyped,
|
|
20
|
+
AutomationActionTypeEnumToJSON,
|
|
21
|
+
AutomationActionTypeEnumToJSONTyped,
|
|
22
|
+
} from './AutomationActionTypeEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationActionInput
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationActionInput {
|
|
30
|
+
/**
|
|
31
|
+
* What the automation does to the lead.
|
|
32
|
+
* @type {AutomationActionTypeEnum}
|
|
33
|
+
* @memberof AutomationActionInput
|
|
34
|
+
*/
|
|
35
|
+
type: AutomationActionTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Text the action sends to the buyer, with {{variable}} tokens.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AutomationActionInput
|
|
40
|
+
*/
|
|
41
|
+
message?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Quick reply the action sends instead of a message of its own.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AutomationActionInput
|
|
46
|
+
*/
|
|
47
|
+
quickReplyId?: string | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationActionInput interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationActionInput(value: object): value is AutomationActionInput {
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AutomationActionInputFromJSON(json: any): AutomationActionInput {
|
|
61
|
+
return AutomationActionInputFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AutomationActionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionInput {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'type': AutomationActionTypeEnumFromJSON(json['type']),
|
|
71
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
72
|
+
'quickReplyId': json['quickReplyId'] == null ? undefined : json['quickReplyId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function AutomationActionInputToJSON(json: any): AutomationActionInput {
|
|
77
|
+
return AutomationActionInputToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AutomationActionInputToJSONTyped(value?: AutomationActionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'type': AutomationActionTypeEnumToJSON(value['type']),
|
|
88
|
+
'message': value['message'],
|
|
89
|
+
'quickReplyId': value['quickReplyId'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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 action ended.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationActionStatusEnum = {
|
|
21
|
+
EXECUTED: 'executed',
|
|
22
|
+
SKIPPED: 'skipped',
|
|
23
|
+
FAILED: 'failed'
|
|
24
|
+
} as const;
|
|
25
|
+
export type AutomationActionStatusEnum = typeof AutomationActionStatusEnum[keyof typeof AutomationActionStatusEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfAutomationActionStatusEnum(value: any): boolean {
|
|
29
|
+
for (const key in AutomationActionStatusEnum) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(AutomationActionStatusEnum, key)) {
|
|
31
|
+
if (AutomationActionStatusEnum[key as keyof typeof AutomationActionStatusEnum] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function AutomationActionStatusEnumFromJSON(json: any): AutomationActionStatusEnum {
|
|
40
|
+
return AutomationActionStatusEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function AutomationActionStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionStatusEnum {
|
|
44
|
+
return json as AutomationActionStatusEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AutomationActionStatusEnumToJSON(value?: AutomationActionStatusEnum | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AutomationActionStatusEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationActionStatusEnum {
|
|
52
|
+
return value as AutomationActionStatusEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -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 automation does to the lead.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationActionTypeEnum = {
|
|
21
|
+
REJECT_LEAD_OFFER: 'reject_lead_offer',
|
|
22
|
+
SEND_LEAD_MESSAGE: 'send_lead_message',
|
|
23
|
+
ARCHIVE_LEAD: 'archive_lead',
|
|
24
|
+
MUTE_LEAD: 'mute_lead'
|
|
25
|
+
} as const;
|
|
26
|
+
export type AutomationActionTypeEnum = typeof AutomationActionTypeEnum[keyof typeof AutomationActionTypeEnum];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfAutomationActionTypeEnum(value: any): boolean {
|
|
30
|
+
for (const key in AutomationActionTypeEnum) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(AutomationActionTypeEnum, key)) {
|
|
32
|
+
if (AutomationActionTypeEnum[key as keyof typeof AutomationActionTypeEnum] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function AutomationActionTypeEnumFromJSON(json: any): AutomationActionTypeEnum {
|
|
41
|
+
return AutomationActionTypeEnumFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function AutomationActionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionTypeEnum {
|
|
45
|
+
return json as AutomationActionTypeEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function AutomationActionTypeEnumToJSON(value?: AutomationActionTypeEnum | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AutomationActionTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationActionTypeEnum {
|
|
53
|
+
return value as AutomationActionTypeEnum;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
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 trigger happens to, which triggers are grouped by.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationAggregateEnum = {
|
|
21
|
+
LEAD: 'lead'
|
|
22
|
+
} as const;
|
|
23
|
+
export type AutomationAggregateEnum = typeof AutomationAggregateEnum[keyof typeof AutomationAggregateEnum];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfAutomationAggregateEnum(value: any): boolean {
|
|
27
|
+
for (const key in AutomationAggregateEnum) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(AutomationAggregateEnum, key)) {
|
|
29
|
+
if (AutomationAggregateEnum[key as keyof typeof AutomationAggregateEnum] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AutomationAggregateEnumFromJSON(json: any): AutomationAggregateEnum {
|
|
38
|
+
return AutomationAggregateEnumFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AutomationAggregateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationAggregateEnum {
|
|
42
|
+
return json as AutomationAggregateEnum;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AutomationAggregateEnumToJSON(value?: AutomationAggregateEnum | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AutomationAggregateEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationAggregateEnum {
|
|
50
|
+
return value as AutomationAggregateEnum;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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 AutomationCatalogDelayUnitDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationCatalogDelayUnitDto {
|
|
30
|
+
/**
|
|
31
|
+
* Unit a trigger can wait in.
|
|
32
|
+
* @type {AutomationDelayUnitEnum}
|
|
33
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
34
|
+
*/
|
|
35
|
+
unit: AutomationDelayUnitEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Smallest amount of the unit.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
40
|
+
*/
|
|
41
|
+
minAmount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Largest amount of the unit.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
46
|
+
*/
|
|
47
|
+
maxAmount: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationCatalogDelayUnitDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationCatalogDelayUnitDto(value: object): value is AutomationCatalogDelayUnitDto {
|
|
56
|
+
if (!('unit' in value) || value['unit'] === undefined) return false;
|
|
57
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
|
|
58
|
+
if (!('maxAmount' in value) || value['maxAmount'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AutomationCatalogDelayUnitDtoFromJSON(json: any): AutomationCatalogDelayUnitDto {
|
|
63
|
+
return AutomationCatalogDelayUnitDtoFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AutomationCatalogDelayUnitDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogDelayUnitDto {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'unit': AutomationDelayUnitEnumFromJSON(json['unit']),
|
|
73
|
+
'minAmount': json['minAmount'],
|
|
74
|
+
'maxAmount': json['maxAmount'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AutomationCatalogDelayUnitDtoToJSON(json: any): AutomationCatalogDelayUnitDto {
|
|
79
|
+
return AutomationCatalogDelayUnitDtoToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AutomationCatalogDelayUnitDtoToJSONTyped(value?: AutomationCatalogDelayUnitDto | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'unit': AutomationDelayUnitEnumToJSON(value['unit']),
|
|
90
|
+
'minAmount': value['minAmount'],
|
|
91
|
+
'maxAmount': value['maxAmount'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,151 @@
|
|
|
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 { AutomationCatalogTriggerDto } from './AutomationCatalogTriggerDto';
|
|
17
|
+
import {
|
|
18
|
+
AutomationCatalogTriggerDtoFromJSON,
|
|
19
|
+
AutomationCatalogTriggerDtoFromJSONTyped,
|
|
20
|
+
AutomationCatalogTriggerDtoToJSON,
|
|
21
|
+
AutomationCatalogTriggerDtoToJSONTyped,
|
|
22
|
+
} from './AutomationCatalogTriggerDto';
|
|
23
|
+
import type { AutomationCatalogDelayUnitDto } from './AutomationCatalogDelayUnitDto';
|
|
24
|
+
import {
|
|
25
|
+
AutomationCatalogDelayUnitDtoFromJSON,
|
|
26
|
+
AutomationCatalogDelayUnitDtoFromJSONTyped,
|
|
27
|
+
AutomationCatalogDelayUnitDtoToJSON,
|
|
28
|
+
AutomationCatalogDelayUnitDtoToJSONTyped,
|
|
29
|
+
} from './AutomationCatalogDelayUnitDto';
|
|
30
|
+
import type { QuickReplyVariableEnum } from './QuickReplyVariableEnum';
|
|
31
|
+
import {
|
|
32
|
+
QuickReplyVariableEnumFromJSON,
|
|
33
|
+
QuickReplyVariableEnumFromJSONTyped,
|
|
34
|
+
QuickReplyVariableEnumToJSON,
|
|
35
|
+
QuickReplyVariableEnumToJSONTyped,
|
|
36
|
+
} from './QuickReplyVariableEnum';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface AutomationCatalogDto
|
|
42
|
+
*/
|
|
43
|
+
export interface AutomationCatalogDto {
|
|
44
|
+
/**
|
|
45
|
+
* Triggers an automation can be built on.
|
|
46
|
+
* @type {Array<AutomationCatalogTriggerDto>}
|
|
47
|
+
* @memberof AutomationCatalogDto
|
|
48
|
+
*/
|
|
49
|
+
triggers: Array<AutomationCatalogTriggerDto>;
|
|
50
|
+
/**
|
|
51
|
+
* Automations an account can have.
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof AutomationCatalogDto
|
|
54
|
+
*/
|
|
55
|
+
maxAutomations: number;
|
|
56
|
+
/**
|
|
57
|
+
* Conditions an automation can have.
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof AutomationCatalogDto
|
|
60
|
+
*/
|
|
61
|
+
maxConditions: number;
|
|
62
|
+
/**
|
|
63
|
+
* Levels of groups an automation can nest, the root included.
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AutomationCatalogDto
|
|
66
|
+
*/
|
|
67
|
+
maxDepth: number;
|
|
68
|
+
/**
|
|
69
|
+
* Units a trigger can wait in, with the amounts each takes.
|
|
70
|
+
* @type {Array<AutomationCatalogDelayUnitDto>}
|
|
71
|
+
* @memberof AutomationCatalogDto
|
|
72
|
+
*/
|
|
73
|
+
delayUnits: Array<AutomationCatalogDelayUnitDto>;
|
|
74
|
+
/**
|
|
75
|
+
* Currencies a condition on a currency can name.
|
|
76
|
+
* @type {Array<string>}
|
|
77
|
+
* @memberof AutomationCatalogDto
|
|
78
|
+
*/
|
|
79
|
+
currencies: Array<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Variables the message of an action can use.
|
|
82
|
+
* @type {Array<QuickReplyVariableEnum>}
|
|
83
|
+
* @memberof AutomationCatalogDto
|
|
84
|
+
*/
|
|
85
|
+
messageVariables: Array<QuickReplyVariableEnum>;
|
|
86
|
+
/**
|
|
87
|
+
* Characters the message of an action can have.
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof AutomationCatalogDto
|
|
90
|
+
*/
|
|
91
|
+
maxMessageLength: number;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the AutomationCatalogDto interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfAutomationCatalogDto(value: object): value is AutomationCatalogDto {
|
|
98
|
+
if (!('triggers' in value) || value['triggers'] === undefined) return false;
|
|
99
|
+
if (!('maxAutomations' in value) || value['maxAutomations'] === undefined) return false;
|
|
100
|
+
if (!('maxConditions' in value) || value['maxConditions'] === undefined) return false;
|
|
101
|
+
if (!('maxDepth' in value) || value['maxDepth'] === undefined) return false;
|
|
102
|
+
if (!('delayUnits' in value) || value['delayUnits'] === undefined) return false;
|
|
103
|
+
if (!('currencies' in value) || value['currencies'] === undefined) return false;
|
|
104
|
+
if (!('messageVariables' in value) || value['messageVariables'] === undefined) return false;
|
|
105
|
+
if (!('maxMessageLength' in value) || value['maxMessageLength'] === undefined) return false;
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function AutomationCatalogDtoFromJSON(json: any): AutomationCatalogDto {
|
|
110
|
+
return AutomationCatalogDtoFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function AutomationCatalogDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogDto {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'triggers': ((json['triggers'] as Array<any>).map(AutomationCatalogTriggerDtoFromJSON)),
|
|
120
|
+
'maxAutomations': json['maxAutomations'],
|
|
121
|
+
'maxConditions': json['maxConditions'],
|
|
122
|
+
'maxDepth': json['maxDepth'],
|
|
123
|
+
'delayUnits': ((json['delayUnits'] as Array<any>).map(AutomationCatalogDelayUnitDtoFromJSON)),
|
|
124
|
+
'currencies': json['currencies'],
|
|
125
|
+
'messageVariables': ((json['messageVariables'] as Array<any>).map(QuickReplyVariableEnumFromJSON)),
|
|
126
|
+
'maxMessageLength': json['maxMessageLength'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function AutomationCatalogDtoToJSON(json: any): AutomationCatalogDto {
|
|
131
|
+
return AutomationCatalogDtoToJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function AutomationCatalogDtoToJSONTyped(value?: AutomationCatalogDto | null, ignoreDiscriminator: boolean = false): any {
|
|
135
|
+
if (value == null) {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'triggers': ((value['triggers'] as Array<any>).map(AutomationCatalogTriggerDtoToJSON)),
|
|
142
|
+
'maxAutomations': value['maxAutomations'],
|
|
143
|
+
'maxConditions': value['maxConditions'],
|
|
144
|
+
'maxDepth': value['maxDepth'],
|
|
145
|
+
'delayUnits': ((value['delayUnits'] as Array<any>).map(AutomationCatalogDelayUnitDtoToJSON)),
|
|
146
|
+
'currencies': value['currencies'],
|
|
147
|
+
'messageVariables': ((value['messageVariables'] as Array<any>).map(QuickReplyVariableEnumToJSON)),
|
|
148
|
+
'maxMessageLength': value['maxMessageLength'],
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|