@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.
Files changed (156) hide show
  1. package/.openapi-generator/FILES +39 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +1 -0
  4. package/dist/apis/AccountsApi.js +2 -1
  5. package/dist/apis/AutomationsApi.d.ts +160 -0
  6. package/dist/apis/AutomationsApi.js +748 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AccountPaymentMethodProfileDto.d.ts +1 -0
  10. package/dist/models/AccountPaymentMethodProfileDto.js +2 -1
  11. package/dist/models/AutomationActionDto.d.ts +45 -0
  12. package/dist/models/AutomationActionDto.js +60 -0
  13. package/dist/models/AutomationActionInput.d.ts +45 -0
  14. package/dist/models/AutomationActionInput.js +56 -0
  15. package/dist/models/AutomationActionStatusEnum.d.ts +26 -0
  16. package/dist/models/AutomationActionStatusEnum.js +52 -0
  17. package/dist/models/AutomationActionTypeEnum.d.ts +27 -0
  18. package/dist/models/AutomationActionTypeEnum.js +53 -0
  19. package/dist/models/AutomationAggregateEnum.d.ts +24 -0
  20. package/dist/models/AutomationAggregateEnum.js +50 -0
  21. package/dist/models/AutomationCatalogDelayUnitDto.d.ts +45 -0
  22. package/dist/models/AutomationCatalogDelayUnitDto.js +60 -0
  23. package/dist/models/AutomationCatalogDto.d.ts +77 -0
  24. package/dist/models/AutomationCatalogDto.js +82 -0
  25. package/dist/models/AutomationCatalogFactDto.d.ts +54 -0
  26. package/dist/models/AutomationCatalogFactDto.js +67 -0
  27. package/dist/models/AutomationCatalogTriggerDto.d.ts +60 -0
  28. package/dist/models/AutomationCatalogTriggerDto.js +71 -0
  29. package/dist/models/AutomationConditionDto.d.ts +65 -0
  30. package/dist/models/AutomationConditionDto.js +76 -0
  31. package/dist/models/AutomationConditionEvaluationDto.d.ts +77 -0
  32. package/dist/models/AutomationConditionEvaluationDto.js +84 -0
  33. package/dist/models/AutomationConditionGroupDto.d.ts +53 -0
  34. package/dist/models/AutomationConditionGroupDto.js +68 -0
  35. package/dist/models/AutomationConditionGroupDtoChildrenInner.d.ts +27 -0
  36. package/dist/models/AutomationConditionGroupDtoChildrenInner.js +54 -0
  37. package/dist/models/AutomationConditionGroupEvaluationDto.d.ts +59 -0
  38. package/dist/models/AutomationConditionGroupEvaluationDto.js +72 -0
  39. package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.d.ts +27 -0
  40. package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.js +54 -0
  41. package/dist/models/AutomationConditionGroupInput.d.ts +53 -0
  42. package/dist/models/AutomationConditionGroupInput.js +68 -0
  43. package/dist/models/AutomationConditionGroupInputChildrenInner.d.ts +27 -0
  44. package/dist/models/AutomationConditionGroupInputChildrenInner.js +54 -0
  45. package/dist/models/AutomationConditionInput.d.ts +65 -0
  46. package/dist/models/AutomationConditionInput.js +74 -0
  47. package/dist/models/AutomationDelayDto.d.ts +39 -0
  48. package/dist/models/AutomationDelayDto.js +56 -0
  49. package/dist/models/AutomationDelayInput.d.ts +39 -0
  50. package/dist/models/AutomationDelayInput.js +56 -0
  51. package/dist/models/AutomationDelayUnitEnum.d.ts +25 -0
  52. package/dist/models/AutomationDelayUnitEnum.js +51 -0
  53. package/dist/models/AutomationDto.d.ts +96 -0
  54. package/dist/models/AutomationDto.js +95 -0
  55. package/dist/models/AutomationFactEnum.d.ts +36 -0
  56. package/dist/models/AutomationFactEnum.js +62 -0
  57. package/dist/models/AutomationFactGroupEnum.d.ts +27 -0
  58. package/dist/models/AutomationFactGroupEnum.js +53 -0
  59. package/dist/models/AutomationFactValueTypeEnum.d.ts +30 -0
  60. package/dist/models/AutomationFactValueTypeEnum.js +56 -0
  61. package/dist/models/AutomationGroupOperatorEnum.d.ts +25 -0
  62. package/dist/models/AutomationGroupOperatorEnum.js +51 -0
  63. package/dist/models/AutomationInput.d.ts +66 -0
  64. package/dist/models/AutomationInput.js +71 -0
  65. package/dist/models/AutomationOperatorEnum.d.ts +37 -0
  66. package/dist/models/AutomationOperatorEnum.js +63 -0
  67. package/dist/models/AutomationRunActionDto.d.ts +46 -0
  68. package/dist/models/AutomationRunActionDto.js +61 -0
  69. package/dist/models/AutomationRunAutomationDto.d.ts +58 -0
  70. package/dist/models/AutomationRunAutomationDto.js +69 -0
  71. package/dist/models/AutomationRunDto.d.ts +65 -0
  72. package/dist/models/AutomationRunDto.js +74 -0
  73. package/dist/models/AutomationRunLeadDto.d.ts +44 -0
  74. package/dist/models/AutomationRunLeadDto.js +59 -0
  75. package/dist/models/AutomationSimulationDto.d.ts +64 -0
  76. package/dist/models/AutomationSimulationDto.js +73 -0
  77. package/dist/models/AutomationStatusInput.d.ts +32 -0
  78. package/dist/models/AutomationStatusInput.js +51 -0
  79. package/dist/models/AutomationTriggerEnum.d.ts +28 -0
  80. package/dist/models/AutomationTriggerEnum.js +54 -0
  81. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  82. package/dist/models/FeatureFlagListItemDto.js +2 -1
  83. package/dist/models/GetAutomationRuns200Response.d.ts +47 -0
  84. package/dist/models/GetAutomationRuns200Response.js +62 -0
  85. package/dist/models/GetAutomations200Response.d.ts +47 -0
  86. package/dist/models/GetAutomations200Response.js +62 -0
  87. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  88. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  89. package/dist/models/InvoiceDtoTransaction.d.ts +1 -0
  90. package/dist/models/InvoiceDtoTransaction.js +2 -1
  91. package/dist/models/InvoiceTransactionDto.d.ts +1 -0
  92. package/dist/models/InvoiceTransactionDto.js +2 -1
  93. package/dist/models/LeadMessageDto.d.ts +6 -0
  94. package/dist/models/LeadMessageDto.js +4 -0
  95. package/dist/models/OrderListItemDtoTransaction.d.ts +1 -0
  96. package/dist/models/OrderListItemDtoTransaction.js +2 -1
  97. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  98. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  99. package/dist/models/SimulateAutomationsInput.d.ts +70 -0
  100. package/dist/models/SimulateAutomationsInput.js +69 -0
  101. package/dist/models/SubscriptionListItemDtoTransaction.d.ts +1 -0
  102. package/dist/models/SubscriptionListItemDtoTransaction.js +2 -1
  103. package/dist/models/index.d.ts +38 -0
  104. package/dist/models/index.js +38 -0
  105. package/package.json +1 -1
  106. package/src/apis/AccountsApi.ts +2 -1
  107. package/src/apis/AutomationsApi.ts +622 -0
  108. package/src/apis/index.ts +1 -0
  109. package/src/models/AccountPaymentMethodProfileDto.ts +2 -1
  110. package/src/models/AutomationActionDto.ts +94 -0
  111. package/src/models/AutomationActionInput.ts +92 -0
  112. package/src/models/AutomationActionStatusEnum.ts +54 -0
  113. package/src/models/AutomationActionTypeEnum.ts +55 -0
  114. package/src/models/AutomationAggregateEnum.ts +52 -0
  115. package/src/models/AutomationCatalogDelayUnitDto.ts +94 -0
  116. package/src/models/AutomationCatalogDto.ts +151 -0
  117. package/src/models/AutomationCatalogFactDto.ts +124 -0
  118. package/src/models/AutomationCatalogTriggerDto.ts +133 -0
  119. package/src/models/AutomationConditionDto.ts +127 -0
  120. package/src/models/AutomationConditionEvaluationDto.ts +145 -0
  121. package/src/models/AutomationConditionGroupDto.ts +109 -0
  122. package/src/models/AutomationConditionGroupDtoChildrenInner.ts +73 -0
  123. package/src/models/AutomationConditionGroupEvaluationDto.ts +118 -0
  124. package/src/models/AutomationConditionGroupEvaluationDtoChildrenInner.ts +73 -0
  125. package/src/models/AutomationConditionGroupInput.ts +109 -0
  126. package/src/models/AutomationConditionGroupInputChildrenInner.ts +73 -0
  127. package/src/models/AutomationConditionInput.ts +126 -0
  128. package/src/models/AutomationDelayDto.ts +85 -0
  129. package/src/models/AutomationDelayInput.ts +85 -0
  130. package/src/models/AutomationDelayUnitEnum.ts +53 -0
  131. package/src/models/AutomationDto.ts +187 -0
  132. package/src/models/AutomationFactEnum.ts +64 -0
  133. package/src/models/AutomationFactGroupEnum.ts +55 -0
  134. package/src/models/AutomationFactValueTypeEnum.ts +58 -0
  135. package/src/models/AutomationGroupOperatorEnum.ts +53 -0
  136. package/src/models/AutomationInput.ts +140 -0
  137. package/src/models/AutomationOperatorEnum.ts +65 -0
  138. package/src/models/AutomationRunActionDto.ts +101 -0
  139. package/src/models/AutomationRunAutomationDto.ts +117 -0
  140. package/src/models/AutomationRunDto.ts +135 -0
  141. package/src/models/AutomationRunLeadDto.ts +84 -0
  142. package/src/models/AutomationSimulationDto.ts +126 -0
  143. package/src/models/AutomationStatusInput.ts +66 -0
  144. package/src/models/AutomationTriggerEnum.ts +56 -0
  145. package/src/models/FeatureFlagListItemDto.ts +2 -1
  146. package/src/models/GetAutomationRuns200Response.ts +106 -0
  147. package/src/models/GetAutomations200Response.ts +106 -0
  148. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  149. package/src/models/InvoiceDtoTransaction.ts +2 -1
  150. package/src/models/InvoiceTransactionDto.ts +2 -1
  151. package/src/models/LeadMessageDto.ts +9 -0
  152. package/src/models/OrderListItemDtoTransaction.ts +2 -1
  153. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  154. package/src/models/SimulateAutomationsInput.ts +133 -0
  155. package/src/models/SubscriptionListItemDtoTransaction.ts +2 -1
  156. package/src/models/index.ts +38 -0
@@ -0,0 +1,140 @@
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 { AutomationDelayInput } from './AutomationDelayInput';
17
+ import {
18
+ AutomationDelayInputFromJSON,
19
+ AutomationDelayInputFromJSONTyped,
20
+ AutomationDelayInputToJSON,
21
+ AutomationDelayInputToJSONTyped,
22
+ } from './AutomationDelayInput';
23
+ import type { AutomationTriggerEnum } from './AutomationTriggerEnum';
24
+ import {
25
+ AutomationTriggerEnumFromJSON,
26
+ AutomationTriggerEnumFromJSONTyped,
27
+ AutomationTriggerEnumToJSON,
28
+ AutomationTriggerEnumToJSONTyped,
29
+ } from './AutomationTriggerEnum';
30
+ import type { AutomationActionInput } from './AutomationActionInput';
31
+ import {
32
+ AutomationActionInputFromJSON,
33
+ AutomationActionInputFromJSONTyped,
34
+ AutomationActionInputToJSON,
35
+ AutomationActionInputToJSONTyped,
36
+ } from './AutomationActionInput';
37
+ import type { AutomationConditionGroupInput } from './AutomationConditionGroupInput';
38
+ import {
39
+ AutomationConditionGroupInputFromJSON,
40
+ AutomationConditionGroupInputFromJSONTyped,
41
+ AutomationConditionGroupInputToJSON,
42
+ AutomationConditionGroupInputToJSONTyped,
43
+ } from './AutomationConditionGroupInput';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface AutomationInput
49
+ */
50
+ export interface AutomationInput {
51
+ /**
52
+ * Name the seller recognises the automation by.
53
+ * @type {string}
54
+ * @memberof AutomationInput
55
+ */
56
+ name: string;
57
+ /**
58
+ * Whether the automation is applied.
59
+ * @type {boolean}
60
+ * @memberof AutomationInput
61
+ */
62
+ enabled?: boolean;
63
+ /**
64
+ * What makes the automation be evaluated.
65
+ * @type {AutomationTriggerEnum}
66
+ * @memberof AutomationInput
67
+ */
68
+ trigger: AutomationTriggerEnum;
69
+ /**
70
+ * How long the trigger waits before the automation applies.
71
+ * @type {AutomationDelayInput}
72
+ * @memberof AutomationInput
73
+ */
74
+ delay?: AutomationDelayInput | null;
75
+ /**
76
+ * Conditions that have to hold for the actions to run.
77
+ * @type {AutomationConditionGroupInput}
78
+ * @memberof AutomationInput
79
+ */
80
+ conditions: AutomationConditionGroupInput;
81
+ /**
82
+ * What the automation does when its conditions hold.
83
+ * @type {Array<AutomationActionInput>}
84
+ * @memberof AutomationInput
85
+ */
86
+ actions: Array<AutomationActionInput>;
87
+ }
88
+
89
+
90
+
91
+ /**
92
+ * Check if a given object implements the AutomationInput interface.
93
+ */
94
+ export function instanceOfAutomationInput(value: object): value is AutomationInput {
95
+ if (!('name' in value) || value['name'] === undefined) return false;
96
+ if (!('trigger' in value) || value['trigger'] === undefined) return false;
97
+ if (!('conditions' in value) || value['conditions'] === undefined) return false;
98
+ if (!('actions' in value) || value['actions'] === undefined) return false;
99
+ return true;
100
+ }
101
+
102
+ export function AutomationInputFromJSON(json: any): AutomationInput {
103
+ return AutomationInputFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function AutomationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationInput {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'name': json['name'],
113
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
114
+ 'trigger': AutomationTriggerEnumFromJSON(json['trigger']),
115
+ 'delay': json['delay'] == null ? undefined : AutomationDelayInputFromJSON(json['delay']),
116
+ 'conditions': AutomationConditionGroupInputFromJSON(json['conditions']),
117
+ 'actions': ((json['actions'] as Array<any>).map(AutomationActionInputFromJSON)),
118
+ };
119
+ }
120
+
121
+ export function AutomationInputToJSON(json: any): AutomationInput {
122
+ return AutomationInputToJSONTyped(json, false);
123
+ }
124
+
125
+ export function AutomationInputToJSONTyped(value?: AutomationInput | null, ignoreDiscriminator: boolean = false): any {
126
+ if (value == null) {
127
+ return value;
128
+ }
129
+
130
+ return {
131
+
132
+ 'name': value['name'],
133
+ 'enabled': value['enabled'],
134
+ 'trigger': AutomationTriggerEnumToJSON(value['trigger']),
135
+ 'delay': AutomationDelayInputToJSON(value['delay']),
136
+ 'conditions': AutomationConditionGroupInputToJSON(value['conditions']),
137
+ 'actions': ((value['actions'] as Array<any>).map(AutomationActionInputToJSON)),
138
+ };
139
+ }
140
+
@@ -0,0 +1,65 @@
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 fact is compared against the value.
18
+ * @export
19
+ */
20
+ export const AutomationOperatorEnum = {
21
+ EQUAL: 'equal',
22
+ NOT_EQUAL: 'not_equal',
23
+ CONTAINS: 'contains',
24
+ NOT_CONTAINS: 'not_contains',
25
+ STARTS_WITH: 'starts_with',
26
+ NOT_STARTS_WITH: 'not_starts_with',
27
+ ENDS_WITH: 'ends_with',
28
+ NOT_ENDS_WITH: 'not_ends_with',
29
+ IN: 'in',
30
+ NOT_IN: 'not_in',
31
+ LESS_THAN: 'less_than',
32
+ LESS_THAN_OR_EQUAL: 'less_than_or_equal',
33
+ GREATER_THAN: 'greater_than',
34
+ GREATER_THAN_OR_EQUAL: 'greater_than_or_equal'
35
+ } as const;
36
+ export type AutomationOperatorEnum = typeof AutomationOperatorEnum[keyof typeof AutomationOperatorEnum];
37
+
38
+
39
+ export function instanceOfAutomationOperatorEnum(value: any): boolean {
40
+ for (const key in AutomationOperatorEnum) {
41
+ if (Object.prototype.hasOwnProperty.call(AutomationOperatorEnum, key)) {
42
+ if (AutomationOperatorEnum[key as keyof typeof AutomationOperatorEnum] === value) {
43
+ return true;
44
+ }
45
+ }
46
+ }
47
+ return false;
48
+ }
49
+
50
+ export function AutomationOperatorEnumFromJSON(json: any): AutomationOperatorEnum {
51
+ return AutomationOperatorEnumFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function AutomationOperatorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationOperatorEnum {
55
+ return json as AutomationOperatorEnum;
56
+ }
57
+
58
+ export function AutomationOperatorEnumToJSON(value?: AutomationOperatorEnum | null): any {
59
+ return value as any;
60
+ }
61
+
62
+ export function AutomationOperatorEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationOperatorEnum {
63
+ return value as AutomationOperatorEnum;
64
+ }
65
+
@@ -0,0 +1,101 @@
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 { AutomationActionStatusEnum } from './AutomationActionStatusEnum';
17
+ import {
18
+ AutomationActionStatusEnumFromJSON,
19
+ AutomationActionStatusEnumFromJSONTyped,
20
+ AutomationActionStatusEnumToJSON,
21
+ AutomationActionStatusEnumToJSONTyped,
22
+ } from './AutomationActionStatusEnum';
23
+ import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
24
+ import {
25
+ AutomationActionTypeEnumFromJSON,
26
+ AutomationActionTypeEnumFromJSONTyped,
27
+ AutomationActionTypeEnumToJSON,
28
+ AutomationActionTypeEnumToJSONTyped,
29
+ } from './AutomationActionTypeEnum';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AutomationRunActionDto
35
+ */
36
+ export interface AutomationRunActionDto {
37
+ /**
38
+ * Action the automation ran.
39
+ * @type {AutomationActionTypeEnum}
40
+ * @memberof AutomationRunActionDto
41
+ */
42
+ type: AutomationActionTypeEnum;
43
+ /**
44
+ * How the action ended.
45
+ * @type {AutomationActionStatusEnum}
46
+ * @memberof AutomationRunActionDto
47
+ */
48
+ status: AutomationActionStatusEnum;
49
+ /**
50
+ * Code of why the action was skipped or failed.
51
+ * @type {string}
52
+ * @memberof AutomationRunActionDto
53
+ */
54
+ reason: string | null;
55
+ }
56
+
57
+
58
+
59
+ /**
60
+ * Check if a given object implements the AutomationRunActionDto interface.
61
+ */
62
+ export function instanceOfAutomationRunActionDto(value: object): value is AutomationRunActionDto {
63
+ if (!('type' in value) || value['type'] === undefined) return false;
64
+ if (!('status' in value) || value['status'] === undefined) return false;
65
+ if (!('reason' in value) || value['reason'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function AutomationRunActionDtoFromJSON(json: any): AutomationRunActionDto {
70
+ return AutomationRunActionDtoFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function AutomationRunActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunActionDto {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'type': AutomationActionTypeEnumFromJSON(json['type']),
80
+ 'status': AutomationActionStatusEnumFromJSON(json['status']),
81
+ 'reason': json['reason'],
82
+ };
83
+ }
84
+
85
+ export function AutomationRunActionDtoToJSON(json: any): AutomationRunActionDto {
86
+ return AutomationRunActionDtoToJSONTyped(json, false);
87
+ }
88
+
89
+ export function AutomationRunActionDtoToJSONTyped(value?: AutomationRunActionDto | null, ignoreDiscriminator: boolean = false): any {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+
94
+ return {
95
+
96
+ 'type': AutomationActionTypeEnumToJSON(value['type']),
97
+ 'status': AutomationActionStatusEnumToJSON(value['status']),
98
+ 'reason': value['reason'],
99
+ };
100
+ }
101
+
@@ -0,0 +1,117 @@
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 { AutomationConditionGroupEvaluationDto } from './AutomationConditionGroupEvaluationDto';
17
+ import {
18
+ AutomationConditionGroupEvaluationDtoFromJSON,
19
+ AutomationConditionGroupEvaluationDtoFromJSONTyped,
20
+ AutomationConditionGroupEvaluationDtoToJSON,
21
+ AutomationConditionGroupEvaluationDtoToJSONTyped,
22
+ } from './AutomationConditionGroupEvaluationDto';
23
+ import type { AutomationRunActionDto } from './AutomationRunActionDto';
24
+ import {
25
+ AutomationRunActionDtoFromJSON,
26
+ AutomationRunActionDtoFromJSONTyped,
27
+ AutomationRunActionDtoToJSON,
28
+ AutomationRunActionDtoToJSONTyped,
29
+ } from './AutomationRunActionDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AutomationRunAutomationDto
35
+ */
36
+ export interface AutomationRunAutomationDto {
37
+ /**
38
+ * Id of the automation, which may no longer exist.
39
+ * @type {string}
40
+ * @memberof AutomationRunAutomationDto
41
+ */
42
+ automationId: string;
43
+ /**
44
+ * Name the automation had when it ran.
45
+ * @type {string}
46
+ * @memberof AutomationRunAutomationDto
47
+ */
48
+ automationName: string;
49
+ /**
50
+ * Whether the conditions of the automation held.
51
+ * @type {boolean}
52
+ * @memberof AutomationRunAutomationDto
53
+ */
54
+ matched: boolean;
55
+ /**
56
+ * How each condition went, with the value its fact had.
57
+ * @type {AutomationConditionGroupEvaluationDto}
58
+ * @memberof AutomationRunAutomationDto
59
+ */
60
+ conditions: AutomationConditionGroupEvaluationDto;
61
+ /**
62
+ * Actions of the automation and how each one ended.
63
+ * @type {Array<AutomationRunActionDto>}
64
+ * @memberof AutomationRunAutomationDto
65
+ */
66
+ actions: Array<AutomationRunActionDto>;
67
+ }
68
+
69
+ /**
70
+ * Check if a given object implements the AutomationRunAutomationDto interface.
71
+ */
72
+ export function instanceOfAutomationRunAutomationDto(value: object): value is AutomationRunAutomationDto {
73
+ if (!('automationId' in value) || value['automationId'] === undefined) return false;
74
+ if (!('automationName' in value) || value['automationName'] === undefined) return false;
75
+ if (!('matched' in value) || value['matched'] === undefined) return false;
76
+ if (!('conditions' in value) || value['conditions'] === undefined) return false;
77
+ if (!('actions' in value) || value['actions'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function AutomationRunAutomationDtoFromJSON(json: any): AutomationRunAutomationDto {
82
+ return AutomationRunAutomationDtoFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function AutomationRunAutomationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunAutomationDto {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'automationId': json['automationId'],
92
+ 'automationName': json['automationName'],
93
+ 'matched': json['matched'],
94
+ 'conditions': AutomationConditionGroupEvaluationDtoFromJSON(json['conditions']),
95
+ 'actions': ((json['actions'] as Array<any>).map(AutomationRunActionDtoFromJSON)),
96
+ };
97
+ }
98
+
99
+ export function AutomationRunAutomationDtoToJSON(json: any): AutomationRunAutomationDto {
100
+ return AutomationRunAutomationDtoToJSONTyped(json, false);
101
+ }
102
+
103
+ export function AutomationRunAutomationDtoToJSONTyped(value?: AutomationRunAutomationDto | null, ignoreDiscriminator: boolean = false): any {
104
+ if (value == null) {
105
+ return value;
106
+ }
107
+
108
+ return {
109
+
110
+ 'automationId': value['automationId'],
111
+ 'automationName': value['automationName'],
112
+ 'matched': value['matched'],
113
+ 'conditions': AutomationConditionGroupEvaluationDtoToJSON(value['conditions']),
114
+ 'actions': ((value['actions'] as Array<any>).map(AutomationRunActionDtoToJSON)),
115
+ };
116
+ }
117
+
@@ -0,0 +1,135 @@
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 { AutomationTriggerEnum } from './AutomationTriggerEnum';
17
+ import {
18
+ AutomationTriggerEnumFromJSON,
19
+ AutomationTriggerEnumFromJSONTyped,
20
+ AutomationTriggerEnumToJSON,
21
+ AutomationTriggerEnumToJSONTyped,
22
+ } from './AutomationTriggerEnum';
23
+ import type { AutomationRunAutomationDto } from './AutomationRunAutomationDto';
24
+ import {
25
+ AutomationRunAutomationDtoFromJSON,
26
+ AutomationRunAutomationDtoFromJSONTyped,
27
+ AutomationRunAutomationDtoToJSON,
28
+ AutomationRunAutomationDtoToJSONTyped,
29
+ } from './AutomationRunAutomationDto';
30
+ import type { AutomationRunLeadDto } from './AutomationRunLeadDto';
31
+ import {
32
+ AutomationRunLeadDtoFromJSON,
33
+ AutomationRunLeadDtoFromJSONTyped,
34
+ AutomationRunLeadDtoToJSON,
35
+ AutomationRunLeadDtoToJSONTyped,
36
+ } from './AutomationRunLeadDto';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface AutomationRunDto
42
+ */
43
+ export interface AutomationRunDto {
44
+ /**
45
+ * Run id.
46
+ * @type {string}
47
+ * @memberof AutomationRunDto
48
+ */
49
+ id: string;
50
+ /**
51
+ * What made the automations be evaluated.
52
+ * @type {AutomationTriggerEnum}
53
+ * @memberof AutomationRunDto
54
+ */
55
+ trigger: AutomationTriggerEnum;
56
+ /**
57
+ * Whether any automation of the run matched.
58
+ * @type {boolean}
59
+ * @memberof AutomationRunDto
60
+ */
61
+ matched: boolean;
62
+ /**
63
+ * Lead the automations were evaluated for.
64
+ * @type {AutomationRunLeadDto}
65
+ * @memberof AutomationRunDto
66
+ */
67
+ lead: AutomationRunLeadDto;
68
+ /**
69
+ * Automations evaluated in the run and how each one went.
70
+ * @type {Array<AutomationRunAutomationDto>}
71
+ * @memberof AutomationRunDto
72
+ */
73
+ automations: Array<AutomationRunAutomationDto>;
74
+ /**
75
+ * When the automations were evaluated.
76
+ * @type {Date}
77
+ * @memberof AutomationRunDto
78
+ */
79
+ createdAt: Date;
80
+ }
81
+
82
+
83
+
84
+ /**
85
+ * Check if a given object implements the AutomationRunDto interface.
86
+ */
87
+ export function instanceOfAutomationRunDto(value: object): value is AutomationRunDto {
88
+ if (!('id' in value) || value['id'] === undefined) return false;
89
+ if (!('trigger' in value) || value['trigger'] === undefined) return false;
90
+ if (!('matched' in value) || value['matched'] === undefined) return false;
91
+ if (!('lead' in value) || value['lead'] === undefined) return false;
92
+ if (!('automations' in value) || value['automations'] === undefined) return false;
93
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
94
+ return true;
95
+ }
96
+
97
+ export function AutomationRunDtoFromJSON(json: any): AutomationRunDto {
98
+ return AutomationRunDtoFromJSONTyped(json, false);
99
+ }
100
+
101
+ export function AutomationRunDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunDto {
102
+ if (json == null) {
103
+ return json;
104
+ }
105
+ return {
106
+
107
+ 'id': json['id'],
108
+ 'trigger': AutomationTriggerEnumFromJSON(json['trigger']),
109
+ 'matched': json['matched'],
110
+ 'lead': AutomationRunLeadDtoFromJSON(json['lead']),
111
+ 'automations': ((json['automations'] as Array<any>).map(AutomationRunAutomationDtoFromJSON)),
112
+ 'createdAt': (new Date(json['createdAt'])),
113
+ };
114
+ }
115
+
116
+ export function AutomationRunDtoToJSON(json: any): AutomationRunDto {
117
+ return AutomationRunDtoToJSONTyped(json, false);
118
+ }
119
+
120
+ export function AutomationRunDtoToJSONTyped(value?: AutomationRunDto | null, ignoreDiscriminator: boolean = false): any {
121
+ if (value == null) {
122
+ return value;
123
+ }
124
+
125
+ return {
126
+
127
+ 'id': value['id'],
128
+ 'trigger': AutomationTriggerEnumToJSON(value['trigger']),
129
+ 'matched': value['matched'],
130
+ 'lead': AutomationRunLeadDtoToJSON(value['lead']),
131
+ 'automations': ((value['automations'] as Array<any>).map(AutomationRunAutomationDtoToJSON)),
132
+ 'createdAt': ((value['createdAt']).toISOString()),
133
+ };
134
+ }
135
+
@@ -0,0 +1,84 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface AutomationRunLeadDto
20
+ */
21
+ export interface AutomationRunLeadDto {
22
+ /**
23
+ * Lead id.
24
+ * @type {string}
25
+ * @memberof AutomationRunLeadDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Name of the domain the lead is for.
30
+ * @type {string}
31
+ * @memberof AutomationRunLeadDto
32
+ */
33
+ domainName: string;
34
+ /**
35
+ * Email of the buyer of the lead.
36
+ * @type {string}
37
+ * @memberof AutomationRunLeadDto
38
+ */
39
+ buyerEmail: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AutomationRunLeadDto interface.
44
+ */
45
+ export function instanceOfAutomationRunLeadDto(value: object): value is AutomationRunLeadDto {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('domainName' in value) || value['domainName'] === undefined) return false;
48
+ if (!('buyerEmail' in value) || value['buyerEmail'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AutomationRunLeadDtoFromJSON(json: any): AutomationRunLeadDto {
53
+ return AutomationRunLeadDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AutomationRunLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunLeadDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'domainName': json['domainName'],
64
+ 'buyerEmail': json['buyerEmail'],
65
+ };
66
+ }
67
+
68
+ export function AutomationRunLeadDtoToJSON(json: any): AutomationRunLeadDto {
69
+ return AutomationRunLeadDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AutomationRunLeadDtoToJSONTyped(value?: AutomationRunLeadDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'id': value['id'],
80
+ 'domainName': value['domainName'],
81
+ 'buyerEmail': value['buyerEmail'],
82
+ };
83
+ }
84
+