@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
package/dist/apis/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AddressPublicApi';
|
|
|
5
5
|
export * from './AdminApi';
|
|
6
6
|
export * from './AuctionsApi';
|
|
7
7
|
export * from './AuctionsPublicApi';
|
|
8
|
+
export * from './AutomationsApi';
|
|
8
9
|
export * from './BankAccountsApi';
|
|
9
10
|
export * from './BrokeredLeadsApi';
|
|
10
11
|
export * from './BrokeredLeadsPublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./AddressPublicApi"), exports);
|
|
|
23
23
|
__exportStar(require("./AdminApi"), exports);
|
|
24
24
|
__exportStar(require("./AuctionsApi"), exports);
|
|
25
25
|
__exportStar(require("./AuctionsPublicApi"), exports);
|
|
26
|
+
__exportStar(require("./AutomationsApi"), exports);
|
|
26
27
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
27
28
|
__exportStar(require("./BrokeredLeadsApi"), exports);
|
|
28
29
|
__exportStar(require("./BrokeredLeadsPublicApi"), exports);
|
|
@@ -61,6 +61,7 @@ export declare const AccountPaymentMethodProfileDtoGatewayEnum: {
|
|
|
61
61
|
readonly MOLLIE: "mollie";
|
|
62
62
|
readonly NICKY: "nicky";
|
|
63
63
|
readonly AIRWALLEX: "airwallex";
|
|
64
|
+
readonly RADOM: "radom";
|
|
64
65
|
};
|
|
65
66
|
export type AccountPaymentMethodProfileDtoGatewayEnum = typeof AccountPaymentMethodProfileDtoGatewayEnum[keyof typeof AccountPaymentMethodProfileDtoGatewayEnum];
|
|
66
67
|
/**
|
|
@@ -27,7 +27,8 @@ exports.AccountPaymentMethodProfileDtoGatewayEnum = {
|
|
|
27
27
|
STRIPE: 'stripe',
|
|
28
28
|
MOLLIE: 'mollie',
|
|
29
29
|
NICKY: 'nicky',
|
|
30
|
-
AIRWALLEX: 'airwallex'
|
|
30
|
+
AIRWALLEX: 'airwallex',
|
|
31
|
+
RADOM: 'radom'
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* Check if a given object implements the AccountPaymentMethodProfileDto interface.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AutomationActionDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AutomationActionDto {
|
|
19
|
+
/**
|
|
20
|
+
* What the automation does to the lead.
|
|
21
|
+
* @type {AutomationActionTypeEnum}
|
|
22
|
+
* @memberof AutomationActionDto
|
|
23
|
+
*/
|
|
24
|
+
type: AutomationActionTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Text the action sends to the buyer, with {{variable}} tokens.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AutomationActionDto
|
|
29
|
+
*/
|
|
30
|
+
message: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Quick reply the action sends instead of a message of its own.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AutomationActionDto
|
|
35
|
+
*/
|
|
36
|
+
quickReplyId: string | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AutomationActionDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAutomationActionDto(value: object): value is AutomationActionDto;
|
|
42
|
+
export declare function AutomationActionDtoFromJSON(json: any): AutomationActionDto;
|
|
43
|
+
export declare function AutomationActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionDto;
|
|
44
|
+
export declare function AutomationActionDtoToJSON(json: any): AutomationActionDto;
|
|
45
|
+
export declare function AutomationActionDtoToJSONTyped(value?: AutomationActionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationActionDto = instanceOfAutomationActionDto;
|
|
17
|
+
exports.AutomationActionDtoFromJSON = AutomationActionDtoFromJSON;
|
|
18
|
+
exports.AutomationActionDtoFromJSONTyped = AutomationActionDtoFromJSONTyped;
|
|
19
|
+
exports.AutomationActionDtoToJSON = AutomationActionDtoToJSON;
|
|
20
|
+
exports.AutomationActionDtoToJSONTyped = AutomationActionDtoToJSONTyped;
|
|
21
|
+
var AutomationActionTypeEnum_1 = require("./AutomationActionTypeEnum");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AutomationActionDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAutomationActionDto(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('quickReplyId' in value) || value['quickReplyId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function AutomationActionDtoFromJSON(json) {
|
|
35
|
+
return AutomationActionDtoFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function AutomationActionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumFromJSON)(json['type']),
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
'quickReplyId': json['quickReplyId'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function AutomationActionDtoToJSON(json) {
|
|
48
|
+
return AutomationActionDtoToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function AutomationActionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumToJSON)(value['type']),
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'quickReplyId': value['quickReplyId'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AutomationActionInput
|
|
17
|
+
*/
|
|
18
|
+
export interface AutomationActionInput {
|
|
19
|
+
/**
|
|
20
|
+
* What the automation does to the lead.
|
|
21
|
+
* @type {AutomationActionTypeEnum}
|
|
22
|
+
* @memberof AutomationActionInput
|
|
23
|
+
*/
|
|
24
|
+
type: AutomationActionTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Text the action sends to the buyer, with {{variable}} tokens.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AutomationActionInput
|
|
29
|
+
*/
|
|
30
|
+
message?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Quick reply the action sends instead of a message of its own.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AutomationActionInput
|
|
35
|
+
*/
|
|
36
|
+
quickReplyId?: string | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AutomationActionInput interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAutomationActionInput(value: object): value is AutomationActionInput;
|
|
42
|
+
export declare function AutomationActionInputFromJSON(json: any): AutomationActionInput;
|
|
43
|
+
export declare function AutomationActionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionInput;
|
|
44
|
+
export declare function AutomationActionInputToJSON(json: any): AutomationActionInput;
|
|
45
|
+
export declare function AutomationActionInputToJSONTyped(value?: AutomationActionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationActionInput = instanceOfAutomationActionInput;
|
|
17
|
+
exports.AutomationActionInputFromJSON = AutomationActionInputFromJSON;
|
|
18
|
+
exports.AutomationActionInputFromJSONTyped = AutomationActionInputFromJSONTyped;
|
|
19
|
+
exports.AutomationActionInputToJSON = AutomationActionInputToJSON;
|
|
20
|
+
exports.AutomationActionInputToJSONTyped = AutomationActionInputToJSONTyped;
|
|
21
|
+
var AutomationActionTypeEnum_1 = require("./AutomationActionTypeEnum");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AutomationActionInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAutomationActionInput(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AutomationActionInputFromJSON(json) {
|
|
31
|
+
return AutomationActionInputFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AutomationActionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumFromJSON)(json['type']),
|
|
39
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
40
|
+
'quickReplyId': json['quickReplyId'] == null ? undefined : json['quickReplyId'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AutomationActionInputToJSON(json) {
|
|
44
|
+
return AutomationActionInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AutomationActionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumToJSON)(value['type']),
|
|
53
|
+
'message': value['message'],
|
|
54
|
+
'quickReplyId': value['quickReplyId'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* How the action ended.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AutomationActionStatusEnum: {
|
|
17
|
+
readonly EXECUTED: "executed";
|
|
18
|
+
readonly SKIPPED: "skipped";
|
|
19
|
+
readonly FAILED: "failed";
|
|
20
|
+
};
|
|
21
|
+
export type AutomationActionStatusEnum = typeof AutomationActionStatusEnum[keyof typeof AutomationActionStatusEnum];
|
|
22
|
+
export declare function instanceOfAutomationActionStatusEnum(value: any): boolean;
|
|
23
|
+
export declare function AutomationActionStatusEnumFromJSON(json: any): AutomationActionStatusEnum;
|
|
24
|
+
export declare function AutomationActionStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionStatusEnum;
|
|
25
|
+
export declare function AutomationActionStatusEnumToJSON(value?: AutomationActionStatusEnum | null): any;
|
|
26
|
+
export declare function AutomationActionStatusEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationActionStatusEnum;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AutomationActionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAutomationActionStatusEnum = instanceOfAutomationActionStatusEnum;
|
|
18
|
+
exports.AutomationActionStatusEnumFromJSON = AutomationActionStatusEnumFromJSON;
|
|
19
|
+
exports.AutomationActionStatusEnumFromJSONTyped = AutomationActionStatusEnumFromJSONTyped;
|
|
20
|
+
exports.AutomationActionStatusEnumToJSON = AutomationActionStatusEnumToJSON;
|
|
21
|
+
exports.AutomationActionStatusEnumToJSONTyped = AutomationActionStatusEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* How the action ended.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AutomationActionStatusEnum = {
|
|
27
|
+
EXECUTED: 'executed',
|
|
28
|
+
SKIPPED: 'skipped',
|
|
29
|
+
FAILED: 'failed'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfAutomationActionStatusEnum(value) {
|
|
32
|
+
for (var key in exports.AutomationActionStatusEnum) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.AutomationActionStatusEnum, key)) {
|
|
34
|
+
if (exports.AutomationActionStatusEnum[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function AutomationActionStatusEnumFromJSON(json) {
|
|
42
|
+
return AutomationActionStatusEnumFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AutomationActionStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function AutomationActionStatusEnumToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function AutomationActionStatusEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* What the automation does to the lead.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AutomationActionTypeEnum: {
|
|
17
|
+
readonly REJECT_LEAD_OFFER: "reject_lead_offer";
|
|
18
|
+
readonly SEND_LEAD_MESSAGE: "send_lead_message";
|
|
19
|
+
readonly ARCHIVE_LEAD: "archive_lead";
|
|
20
|
+
readonly MUTE_LEAD: "mute_lead";
|
|
21
|
+
};
|
|
22
|
+
export type AutomationActionTypeEnum = typeof AutomationActionTypeEnum[keyof typeof AutomationActionTypeEnum];
|
|
23
|
+
export declare function instanceOfAutomationActionTypeEnum(value: any): boolean;
|
|
24
|
+
export declare function AutomationActionTypeEnumFromJSON(json: any): AutomationActionTypeEnum;
|
|
25
|
+
export declare function AutomationActionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionTypeEnum;
|
|
26
|
+
export declare function AutomationActionTypeEnumToJSON(value?: AutomationActionTypeEnum | null): any;
|
|
27
|
+
export declare function AutomationActionTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationActionTypeEnum;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AutomationActionTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAutomationActionTypeEnum = instanceOfAutomationActionTypeEnum;
|
|
18
|
+
exports.AutomationActionTypeEnumFromJSON = AutomationActionTypeEnumFromJSON;
|
|
19
|
+
exports.AutomationActionTypeEnumFromJSONTyped = AutomationActionTypeEnumFromJSONTyped;
|
|
20
|
+
exports.AutomationActionTypeEnumToJSON = AutomationActionTypeEnumToJSON;
|
|
21
|
+
exports.AutomationActionTypeEnumToJSONTyped = AutomationActionTypeEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* What the automation does to the lead.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AutomationActionTypeEnum = {
|
|
27
|
+
REJECT_LEAD_OFFER: 'reject_lead_offer',
|
|
28
|
+
SEND_LEAD_MESSAGE: 'send_lead_message',
|
|
29
|
+
ARCHIVE_LEAD: 'archive_lead',
|
|
30
|
+
MUTE_LEAD: 'mute_lead'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfAutomationActionTypeEnum(value) {
|
|
33
|
+
for (var key in exports.AutomationActionTypeEnum) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.AutomationActionTypeEnum, key)) {
|
|
35
|
+
if (exports.AutomationActionTypeEnum[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function AutomationActionTypeEnumFromJSON(json) {
|
|
43
|
+
return AutomationActionTypeEnumFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AutomationActionTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function AutomationActionTypeEnumToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function AutomationActionTypeEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* What the trigger happens to, which triggers are grouped by.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AutomationAggregateEnum: {
|
|
17
|
+
readonly LEAD: "lead";
|
|
18
|
+
};
|
|
19
|
+
export type AutomationAggregateEnum = typeof AutomationAggregateEnum[keyof typeof AutomationAggregateEnum];
|
|
20
|
+
export declare function instanceOfAutomationAggregateEnum(value: any): boolean;
|
|
21
|
+
export declare function AutomationAggregateEnumFromJSON(json: any): AutomationAggregateEnum;
|
|
22
|
+
export declare function AutomationAggregateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationAggregateEnum;
|
|
23
|
+
export declare function AutomationAggregateEnumToJSON(value?: AutomationAggregateEnum | null): any;
|
|
24
|
+
export declare function AutomationAggregateEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationAggregateEnum;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AutomationAggregateEnum = void 0;
|
|
17
|
+
exports.instanceOfAutomationAggregateEnum = instanceOfAutomationAggregateEnum;
|
|
18
|
+
exports.AutomationAggregateEnumFromJSON = AutomationAggregateEnumFromJSON;
|
|
19
|
+
exports.AutomationAggregateEnumFromJSONTyped = AutomationAggregateEnumFromJSONTyped;
|
|
20
|
+
exports.AutomationAggregateEnumToJSON = AutomationAggregateEnumToJSON;
|
|
21
|
+
exports.AutomationAggregateEnumToJSONTyped = AutomationAggregateEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* What the trigger happens to, which triggers are grouped by.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AutomationAggregateEnum = {
|
|
27
|
+
LEAD: 'lead'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfAutomationAggregateEnum(value) {
|
|
30
|
+
for (var key in exports.AutomationAggregateEnum) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.AutomationAggregateEnum, key)) {
|
|
32
|
+
if (exports.AutomationAggregateEnum[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
function AutomationAggregateEnumFromJSON(json) {
|
|
40
|
+
return AutomationAggregateEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AutomationAggregateEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
function AutomationAggregateEnumToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
function AutomationAggregateEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationDelayUnitEnum } from './AutomationDelayUnitEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AutomationCatalogDelayUnitDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AutomationCatalogDelayUnitDto {
|
|
19
|
+
/**
|
|
20
|
+
* Unit a trigger can wait in.
|
|
21
|
+
* @type {AutomationDelayUnitEnum}
|
|
22
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
23
|
+
*/
|
|
24
|
+
unit: AutomationDelayUnitEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Smallest amount of the unit.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
29
|
+
*/
|
|
30
|
+
minAmount: number;
|
|
31
|
+
/**
|
|
32
|
+
* Largest amount of the unit.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
35
|
+
*/
|
|
36
|
+
maxAmount: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AutomationCatalogDelayUnitDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAutomationCatalogDelayUnitDto(value: object): value is AutomationCatalogDelayUnitDto;
|
|
42
|
+
export declare function AutomationCatalogDelayUnitDtoFromJSON(json: any): AutomationCatalogDelayUnitDto;
|
|
43
|
+
export declare function AutomationCatalogDelayUnitDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogDelayUnitDto;
|
|
44
|
+
export declare function AutomationCatalogDelayUnitDtoToJSON(json: any): AutomationCatalogDelayUnitDto;
|
|
45
|
+
export declare function AutomationCatalogDelayUnitDtoToJSONTyped(value?: AutomationCatalogDelayUnitDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationCatalogDelayUnitDto = instanceOfAutomationCatalogDelayUnitDto;
|
|
17
|
+
exports.AutomationCatalogDelayUnitDtoFromJSON = AutomationCatalogDelayUnitDtoFromJSON;
|
|
18
|
+
exports.AutomationCatalogDelayUnitDtoFromJSONTyped = AutomationCatalogDelayUnitDtoFromJSONTyped;
|
|
19
|
+
exports.AutomationCatalogDelayUnitDtoToJSON = AutomationCatalogDelayUnitDtoToJSON;
|
|
20
|
+
exports.AutomationCatalogDelayUnitDtoToJSONTyped = AutomationCatalogDelayUnitDtoToJSONTyped;
|
|
21
|
+
var AutomationDelayUnitEnum_1 = require("./AutomationDelayUnitEnum");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AutomationCatalogDelayUnitDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAutomationCatalogDelayUnitDto(value) {
|
|
26
|
+
if (!('unit' in value) || value['unit'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('maxAmount' in value) || value['maxAmount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function AutomationCatalogDelayUnitDtoFromJSON(json) {
|
|
35
|
+
return AutomationCatalogDelayUnitDtoFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function AutomationCatalogDelayUnitDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'unit': (0, AutomationDelayUnitEnum_1.AutomationDelayUnitEnumFromJSON)(json['unit']),
|
|
43
|
+
'minAmount': json['minAmount'],
|
|
44
|
+
'maxAmount': json['maxAmount'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function AutomationCatalogDelayUnitDtoToJSON(json) {
|
|
48
|
+
return AutomationCatalogDelayUnitDtoToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function AutomationCatalogDelayUnitDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'unit': (0, AutomationDelayUnitEnum_1.AutomationDelayUnitEnumToJSON)(value['unit']),
|
|
57
|
+
'minAmount': value['minAmount'],
|
|
58
|
+
'maxAmount': value['maxAmount'],
|
|
59
|
+
};
|
|
60
|
+
}
|