@randock/nameshift-api-client 0.0.465 → 0.0.467

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.
@@ -114,7 +114,7 @@ src/models/AirwallexDepositDtoFee.ts
114
114
  src/models/ApiKeyDto.ts
115
115
  src/models/ApiKeyScopeDto.ts
116
116
  src/models/ApplyDomainEditInput.ts
117
- src/models/AssociateLeadVisitorInput.ts
117
+ src/models/AssociateVisitorInput.ts
118
118
  src/models/AuBankAccountDetails.ts
119
119
  src/models/AuctionBidDto.ts
120
120
  src/models/AuctionBidInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.465
1
+ ## @randock/nameshift-api-client@0.0.467
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.465 --save
39
+ npm install @randock/nameshift-api-client@0.0.467 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- b76ba30a67215108475376354d7648b28a5f1352611594e2eb85dbf91f32353832b3918d51181bf979808a957c21005d
47
+ dc08588c118162675e60a1b72f6ed3a563bf41db769d261bd4d922a29429c2ccd490882a11869a48497931202ca0cf5e
@@ -10,10 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssociateLeadVisitorInput, CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
13
+ import type { AssociateVisitorInput, CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
14
14
  export interface LeadsPublicApiAssociateLeadVisitorRequest {
15
15
  leadId: string;
16
- associateLeadVisitorInput: AssociateLeadVisitorInput;
16
+ associateVisitorInput: AssociateVisitorInput;
17
17
  }
18
18
  export interface LeadsPublicApiCreateLeadRequest {
19
19
  createLeadInput: CreateLeadInput;
@@ -88,8 +88,8 @@ var LeadsPublicApi = /** @class */ (function (_super) {
88
88
  if (requestParameters['leadId'] == null) {
89
89
  throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling associateLeadVisitor().');
90
90
  }
91
- if (requestParameters['associateLeadVisitorInput'] == null) {
92
- throw new runtime.RequiredError('associateLeadVisitorInput', 'Required parameter "associateLeadVisitorInput" was null or undefined when calling associateLeadVisitor().');
91
+ if (requestParameters['associateVisitorInput'] == null) {
92
+ throw new runtime.RequiredError('associateVisitorInput', 'Required parameter "associateVisitorInput" was null or undefined when calling associateLeadVisitor().');
93
93
  }
94
94
  queryParameters = {};
95
95
  headerParameters = {};
@@ -99,7 +99,7 @@ var LeadsPublicApi = /** @class */ (function (_super) {
99
99
  method: 'POST',
100
100
  headers: headerParameters,
101
101
  query: queryParameters,
102
- body: (0, index_1.AssociateLeadVisitorInputToJSON)(requestParameters['associateLeadVisitorInput']),
102
+ body: (0, index_1.AssociateVisitorInputToJSON)(requestParameters['associateVisitorInput']),
103
103
  }, initOverrides)];
104
104
  case 1:
105
105
  response = _a.sent();
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateManualTransactionInput, CreateOrderInput, ObjectId, OrderDto, UpdateOrderInput } from '../models/index';
13
+ import type { AssociateVisitorInput, CreateManualTransactionInput, CreateOrderInput, ObjectId, OrderDto, UpdateOrderInput } from '../models/index';
14
+ export interface OrdersPublicApiAssociateOrderVisitorRequest {
15
+ orderId: string;
16
+ associateVisitorInput: AssociateVisitorInput;
17
+ }
14
18
  export interface OrdersPublicApiCreateOrderRequest {
15
19
  createOrderInput: CreateOrderInput;
16
20
  }
@@ -33,6 +37,16 @@ export interface OrdersPublicApiUpdateOrderRequest {
33
37
  *
34
38
  */
35
39
  export declare class OrdersPublicApi extends runtime.BaseAPI {
40
+ /**
41
+ * Links an umami session to the buyer behind this order, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
42
+ * Associate a visitor with an order buyer
43
+ */
44
+ associateOrderVisitorRaw(requestParameters: OrdersPublicApiAssociateOrderVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
+ /**
46
+ * Links an umami session to the buyer behind this order, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
47
+ * Associate a visitor with an order buyer
48
+ */
49
+ associateOrderVisitor(requestParameters: OrdersPublicApiAssociateOrderVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
36
50
  /**
37
51
  * Creates a new domain purchase order.
38
52
  * Create order
@@ -75,6 +75,55 @@ var OrdersPublicApi = /** @class */ (function (_super) {
75
75
  function OrdersPublicApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Links an umami session to the buyer behind this order, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
80
+ * Associate a visitor with an order buyer
81
+ */
82
+ OrdersPublicApi.prototype.associateOrderVisitorRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters['orderId'] == null) {
89
+ throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling associateOrderVisitor().');
90
+ }
91
+ if (requestParameters['associateVisitorInput'] == null) {
92
+ throw new runtime.RequiredError('associateVisitorInput', 'Required parameter "associateVisitorInput" was null or undefined when calling associateOrderVisitor().');
93
+ }
94
+ queryParameters = {};
95
+ headerParameters = {};
96
+ headerParameters['Content-Type'] = 'application/json';
97
+ return [4 /*yield*/, this.request({
98
+ path: "/orders/{orderId}/visitor".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
99
+ method: 'POST',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ body: (0, index_1.AssociateVisitorInputToJSON)(requestParameters['associateVisitorInput']),
103
+ }, initOverrides)];
104
+ case 1:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ * Links an umami session to the buyer behind this order, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
113
+ * Associate a visitor with an order buyer
114
+ */
115
+ OrdersPublicApi.prototype.associateOrderVisitor = function (requestParameters, initOverrides) {
116
+ return __awaiter(this, void 0, void 0, function () {
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4 /*yield*/, this.associateOrderVisitorRaw(requestParameters, initOverrides)];
120
+ case 1:
121
+ _a.sent();
122
+ return [2 /*return*/];
123
+ }
124
+ });
125
+ });
126
+ };
78
127
  /**
79
128
  * Creates a new domain purchase order.
80
129
  * Create order
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateSubscriptionInput, CreateSubscriptionManualTransactionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
13
+ import type { AssociateVisitorInput, CreateSubscriptionInput, CreateSubscriptionManualTransactionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
14
+ export interface SubscriptionsPublicApiAssociateSubscriptionVisitorRequest {
15
+ subscriptionId: string;
16
+ associateVisitorInput: AssociateVisitorInput;
17
+ }
14
18
  export interface SubscriptionsPublicApiCreateSubscriptionRequest {
15
19
  createSubscriptionInput: CreateSubscriptionInput;
16
20
  }
@@ -39,6 +43,16 @@ export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
39
43
  *
40
44
  */
41
45
  export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
46
+ /**
47
+ * Links an umami session to the buyer behind this subscription, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
48
+ * Associate a visitor with a subscription buyer
49
+ */
50
+ associateSubscriptionVisitorRaw(requestParameters: SubscriptionsPublicApiAssociateSubscriptionVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
51
+ /**
52
+ * Links an umami session to the buyer behind this subscription, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
53
+ * Associate a visitor with a subscription buyer
54
+ */
55
+ associateSubscriptionVisitor(requestParameters: SubscriptionsPublicApiAssociateSubscriptionVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
42
56
  /**
43
57
  * Creates a new domain subscription.
44
58
  * Create subscription
@@ -75,6 +75,55 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
75
75
  function SubscriptionsPublicApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Links an umami session to the buyer behind this subscription, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
80
+ * Associate a visitor with a subscription buyer
81
+ */
82
+ SubscriptionsPublicApi.prototype.associateSubscriptionVisitorRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters['subscriptionId'] == null) {
89
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling associateSubscriptionVisitor().');
90
+ }
91
+ if (requestParameters['associateVisitorInput'] == null) {
92
+ throw new runtime.RequiredError('associateVisitorInput', 'Required parameter "associateVisitorInput" was null or undefined when calling associateSubscriptionVisitor().');
93
+ }
94
+ queryParameters = {};
95
+ headerParameters = {};
96
+ headerParameters['Content-Type'] = 'application/json';
97
+ return [4 /*yield*/, this.request({
98
+ path: "/subscriptions/{subscriptionId}/visitor".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
99
+ method: 'POST',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ body: (0, index_1.AssociateVisitorInputToJSON)(requestParameters['associateVisitorInput']),
103
+ }, initOverrides)];
104
+ case 1:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ * Links an umami session to the buyer behind this subscription, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
113
+ * Associate a visitor with a subscription buyer
114
+ */
115
+ SubscriptionsPublicApi.prototype.associateSubscriptionVisitor = function (requestParameters, initOverrides) {
116
+ return __awaiter(this, void 0, void 0, function () {
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4 /*yield*/, this.associateSubscriptionVisitorRaw(requestParameters, initOverrides)];
120
+ case 1:
121
+ _a.sent();
122
+ return [2 /*return*/];
123
+ }
124
+ });
125
+ });
126
+ };
78
127
  /**
79
128
  * Creates a new domain subscription.
80
129
  * Create subscription
@@ -12,21 +12,21 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface AssociateLeadVisitorInput
15
+ * @interface AssociateVisitorInput
16
16
  */
17
- export interface AssociateLeadVisitorInput {
17
+ export interface AssociateVisitorInput {
18
18
  /**
19
19
  * Umami session id of the visitor, as reported by the tracker on the page the buyer is using.
20
20
  * @type {string}
21
- * @memberof AssociateLeadVisitorInput
21
+ * @memberof AssociateVisitorInput
22
22
  */
23
23
  visitorId: string;
24
24
  }
25
25
  /**
26
- * Check if a given object implements the AssociateLeadVisitorInput interface.
26
+ * Check if a given object implements the AssociateVisitorInput interface.
27
27
  */
28
- export declare function instanceOfAssociateLeadVisitorInput(value: object): value is AssociateLeadVisitorInput;
29
- export declare function AssociateLeadVisitorInputFromJSON(json: any): AssociateLeadVisitorInput;
30
- export declare function AssociateLeadVisitorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateLeadVisitorInput;
31
- export declare function AssociateLeadVisitorInputToJSON(json: any): AssociateLeadVisitorInput;
32
- export declare function AssociateLeadVisitorInputToJSONTyped(value?: AssociateLeadVisitorInput | null, ignoreDiscriminator?: boolean): any;
28
+ export declare function instanceOfAssociateVisitorInput(value: object): value is AssociateVisitorInput;
29
+ export declare function AssociateVisitorInputFromJSON(json: any): AssociateVisitorInput;
30
+ export declare function AssociateVisitorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateVisitorInput;
31
+ export declare function AssociateVisitorInputToJSON(json: any): AssociateVisitorInput;
32
+ export declare function AssociateVisitorInputToJSONTyped(value?: AssociateVisitorInput | null, ignoreDiscriminator?: boolean): any;
@@ -13,23 +13,23 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfAssociateLeadVisitorInput = instanceOfAssociateLeadVisitorInput;
17
- exports.AssociateLeadVisitorInputFromJSON = AssociateLeadVisitorInputFromJSON;
18
- exports.AssociateLeadVisitorInputFromJSONTyped = AssociateLeadVisitorInputFromJSONTyped;
19
- exports.AssociateLeadVisitorInputToJSON = AssociateLeadVisitorInputToJSON;
20
- exports.AssociateLeadVisitorInputToJSONTyped = AssociateLeadVisitorInputToJSONTyped;
16
+ exports.instanceOfAssociateVisitorInput = instanceOfAssociateVisitorInput;
17
+ exports.AssociateVisitorInputFromJSON = AssociateVisitorInputFromJSON;
18
+ exports.AssociateVisitorInputFromJSONTyped = AssociateVisitorInputFromJSONTyped;
19
+ exports.AssociateVisitorInputToJSON = AssociateVisitorInputToJSON;
20
+ exports.AssociateVisitorInputToJSONTyped = AssociateVisitorInputToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the AssociateLeadVisitorInput interface.
22
+ * Check if a given object implements the AssociateVisitorInput interface.
23
23
  */
24
- function instanceOfAssociateLeadVisitorInput(value) {
24
+ function instanceOfAssociateVisitorInput(value) {
25
25
  if (!('visitorId' in value) || value['visitorId'] === undefined)
26
26
  return false;
27
27
  return true;
28
28
  }
29
- function AssociateLeadVisitorInputFromJSON(json) {
30
- return AssociateLeadVisitorInputFromJSONTyped(json, false);
29
+ function AssociateVisitorInputFromJSON(json) {
30
+ return AssociateVisitorInputFromJSONTyped(json, false);
31
31
  }
32
- function AssociateLeadVisitorInputFromJSONTyped(json, ignoreDiscriminator) {
32
+ function AssociateVisitorInputFromJSONTyped(json, ignoreDiscriminator) {
33
33
  if (json == null) {
34
34
  return json;
35
35
  }
@@ -37,10 +37,10 @@ function AssociateLeadVisitorInputFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'visitorId': json['visitorId'],
38
38
  };
39
39
  }
40
- function AssociateLeadVisitorInputToJSON(json) {
41
- return AssociateLeadVisitorInputToJSONTyped(json, false);
40
+ function AssociateVisitorInputToJSON(json) {
41
+ return AssociateVisitorInputToJSONTyped(json, false);
42
42
  }
43
- function AssociateLeadVisitorInputToJSONTyped(value, ignoreDiscriminator) {
43
+ function AssociateVisitorInputToJSONTyped(value, ignoreDiscriminator) {
44
44
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
45
  if (value == null) {
46
46
  return value;
@@ -54,6 +54,12 @@ export interface BuyerDto {
54
54
  * @memberof BuyerDto
55
55
  */
56
56
  emailDomain: string;
57
+ /**
58
+ * Full email address of the buyer. Only returned to sellers with at least 500 domains pointing to our servers, and null otherwise.
59
+ * @type {string}
60
+ * @memberof BuyerDto
61
+ */
62
+ email: string | null;
57
63
  /**
58
64
  * Phone number of the buyer, if provided.
59
65
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfBuyerDto(value) {
37
37
  return false;
38
38
  if (!('emailDomain' in value) || value['emailDomain'] === undefined)
39
39
  return false;
40
+ if (!('email' in value) || value['email'] === undefined)
41
+ return false;
40
42
  if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
41
43
  return false;
42
44
  if (!('experience' in value) || value['experience'] === undefined)
@@ -63,6 +65,7 @@ function BuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
63
65
  'companyName': json['companyName'],
64
66
  'buyerName': json['buyerName'],
65
67
  'emailDomain': json['emailDomain'],
68
+ 'email': json['email'],
66
69
  'phoneNumber': json['phoneNumber'],
67
70
  'experience': (0, BuyerExperienceEnum_1.BuyerExperienceEnumFromJSON)(json['experience']),
68
71
  'accepted': (0, BuyerAcceptanceEnum_1.BuyerAcceptanceEnumFromJSON)(json['accepted']),
@@ -85,6 +88,7 @@ function BuyerDtoToJSONTyped(value, ignoreDiscriminator) {
85
88
  'companyName': value['companyName'],
86
89
  'buyerName': value['buyerName'],
87
90
  'emailDomain': value['emailDomain'],
91
+ 'email': value['email'],
88
92
  'phoneNumber': value['phoneNumber'],
89
93
  'experience': (0, BuyerExperienceEnum_1.BuyerExperienceEnumToJSON)(value['experience']),
90
94
  'accepted': (0, BuyerAcceptanceEnum_1.BuyerAcceptanceEnumToJSON)(value['accepted']),
@@ -74,7 +74,7 @@ export * from './AirwallexDepositDtoFee';
74
74
  export * from './ApiKeyDto';
75
75
  export * from './ApiKeyScopeDto';
76
76
  export * from './ApplyDomainEditInput';
77
- export * from './AssociateLeadVisitorInput';
77
+ export * from './AssociateVisitorInput';
78
78
  export * from './AuBankAccountDetails';
79
79
  export * from './AuctionBidDto';
80
80
  export * from './AuctionBidInput';
@@ -92,7 +92,7 @@ __exportStar(require("./AirwallexDepositDtoFee"), exports);
92
92
  __exportStar(require("./ApiKeyDto"), exports);
93
93
  __exportStar(require("./ApiKeyScopeDto"), exports);
94
94
  __exportStar(require("./ApplyDomainEditInput"), exports);
95
- __exportStar(require("./AssociateLeadVisitorInput"), exports);
95
+ __exportStar(require("./AssociateVisitorInput"), exports);
96
96
  __exportStar(require("./AuBankAccountDetails"), exports);
97
97
  __exportStar(require("./AuctionBidDto"), exports);
98
98
  __exportStar(require("./AuctionBidInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.465",
3
+ "version": "0.0.467",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- AssociateLeadVisitorInput,
18
+ AssociateVisitorInput,
19
19
  BadRequestException,
20
20
  CreateLeadInput,
21
21
  LeadStatusDto,
@@ -27,8 +27,8 @@ import type {
27
27
  VerifyLeadInput,
28
28
  } from '../models/index';
29
29
  import {
30
- AssociateLeadVisitorInputFromJSON,
31
- AssociateLeadVisitorInputToJSON,
30
+ AssociateVisitorInputFromJSON,
31
+ AssociateVisitorInputToJSON,
32
32
  BadRequestExceptionFromJSON,
33
33
  BadRequestExceptionToJSON,
34
34
  CreateLeadInputFromJSON,
@@ -51,7 +51,7 @@ import {
51
51
 
52
52
  export interface LeadsPublicApiAssociateLeadVisitorRequest {
53
53
  leadId: string;
54
- associateLeadVisitorInput: AssociateLeadVisitorInput;
54
+ associateVisitorInput: AssociateVisitorInput;
55
55
  }
56
56
 
57
57
  export interface LeadsPublicApiCreateLeadRequest {
@@ -97,10 +97,10 @@ export class LeadsPublicApi extends runtime.BaseAPI {
97
97
  );
98
98
  }
99
99
 
100
- if (requestParameters['associateLeadVisitorInput'] == null) {
100
+ if (requestParameters['associateVisitorInput'] == null) {
101
101
  throw new runtime.RequiredError(
102
- 'associateLeadVisitorInput',
103
- 'Required parameter "associateLeadVisitorInput" was null or undefined when calling associateLeadVisitor().'
102
+ 'associateVisitorInput',
103
+ 'Required parameter "associateVisitorInput" was null or undefined when calling associateLeadVisitor().'
104
104
  );
105
105
  }
106
106
 
@@ -115,7 +115,7 @@ export class LeadsPublicApi extends runtime.BaseAPI {
115
115
  method: 'POST',
116
116
  headers: headerParameters,
117
117
  query: queryParameters,
118
- body: AssociateLeadVisitorInputToJSON(requestParameters['associateLeadVisitorInput']),
118
+ body: AssociateVisitorInputToJSON(requestParameters['associateVisitorInput']),
119
119
  }, initOverrides);
120
120
 
121
121
  return new runtime.VoidApiResponse(response);
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AssociateVisitorInput,
18
19
  BadRequestException,
19
20
  CreateManualTransactionInput,
20
21
  CreateOrderInput,
@@ -25,6 +26,8 @@ import type {
25
26
  ValidationException,
26
27
  } from '../models/index';
27
28
  import {
29
+ AssociateVisitorInputFromJSON,
30
+ AssociateVisitorInputToJSON,
28
31
  BadRequestExceptionFromJSON,
29
32
  BadRequestExceptionToJSON,
30
33
  CreateManualTransactionInputFromJSON,
@@ -43,6 +46,11 @@ import {
43
46
  ValidationExceptionToJSON,
44
47
  } from '../models/index';
45
48
 
49
+ export interface OrdersPublicApiAssociateOrderVisitorRequest {
50
+ orderId: string;
51
+ associateVisitorInput: AssociateVisitorInput;
52
+ }
53
+
46
54
  export interface OrdersPublicApiCreateOrderRequest {
47
55
  createOrderInput: CreateOrderInput;
48
56
  }
@@ -71,6 +79,50 @@ export interface OrdersPublicApiUpdateOrderRequest {
71
79
  */
72
80
  export class OrdersPublicApi extends runtime.BaseAPI {
73
81
 
82
+ /**
83
+ * Links an umami session to the buyer behind this order, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
84
+ * Associate a visitor with an order buyer
85
+ */
86
+ async associateOrderVisitorRaw(requestParameters: OrdersPublicApiAssociateOrderVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
87
+ if (requestParameters['orderId'] == null) {
88
+ throw new runtime.RequiredError(
89
+ 'orderId',
90
+ 'Required parameter "orderId" was null or undefined when calling associateOrderVisitor().'
91
+ );
92
+ }
93
+
94
+ if (requestParameters['associateVisitorInput'] == null) {
95
+ throw new runtime.RequiredError(
96
+ 'associateVisitorInput',
97
+ 'Required parameter "associateVisitorInput" was null or undefined when calling associateOrderVisitor().'
98
+ );
99
+ }
100
+
101
+ const queryParameters: any = {};
102
+
103
+ const headerParameters: runtime.HTTPHeaders = {};
104
+
105
+ headerParameters['Content-Type'] = 'application/json';
106
+
107
+ const response = await this.request({
108
+ path: `/orders/{orderId}/visitor`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
109
+ method: 'POST',
110
+ headers: headerParameters,
111
+ query: queryParameters,
112
+ body: AssociateVisitorInputToJSON(requestParameters['associateVisitorInput']),
113
+ }, initOverrides);
114
+
115
+ return new runtime.VoidApiResponse(response);
116
+ }
117
+
118
+ /**
119
+ * Links an umami session to the buyer behind this order, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
120
+ * Associate a visitor with an order buyer
121
+ */
122
+ async associateOrderVisitor(requestParameters: OrdersPublicApiAssociateOrderVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
123
+ await this.associateOrderVisitorRaw(requestParameters, initOverrides);
124
+ }
125
+
74
126
  /**
75
127
  * Creates a new domain purchase order.
76
128
  * Create order
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AssociateVisitorInput,
18
19
  BadRequestException,
19
20
  CreateSubscriptionInput,
20
21
  CreateSubscriptionManualTransactionInput,
@@ -25,6 +26,8 @@ import type {
25
26
  ValidationException,
26
27
  } from '../models/index';
27
28
  import {
29
+ AssociateVisitorInputFromJSON,
30
+ AssociateVisitorInputToJSON,
28
31
  BadRequestExceptionFromJSON,
29
32
  BadRequestExceptionToJSON,
30
33
  CreateSubscriptionInputFromJSON,
@@ -43,6 +46,11 @@ import {
43
46
  ValidationExceptionToJSON,
44
47
  } from '../models/index';
45
48
 
49
+ export interface SubscriptionsPublicApiAssociateSubscriptionVisitorRequest {
50
+ subscriptionId: string;
51
+ associateVisitorInput: AssociateVisitorInput;
52
+ }
53
+
46
54
  export interface SubscriptionsPublicApiCreateSubscriptionRequest {
47
55
  createSubscriptionInput: CreateSubscriptionInput;
48
56
  }
@@ -78,6 +86,50 @@ export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
78
86
  */
79
87
  export class SubscriptionsPublicApi extends runtime.BaseAPI {
80
88
 
89
+ /**
90
+ * Links an umami session to the buyer behind this subscription, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
91
+ * Associate a visitor with a subscription buyer
92
+ */
93
+ async associateSubscriptionVisitorRaw(requestParameters: SubscriptionsPublicApiAssociateSubscriptionVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
94
+ if (requestParameters['subscriptionId'] == null) {
95
+ throw new runtime.RequiredError(
96
+ 'subscriptionId',
97
+ 'Required parameter "subscriptionId" was null or undefined when calling associateSubscriptionVisitor().'
98
+ );
99
+ }
100
+
101
+ if (requestParameters['associateVisitorInput'] == null) {
102
+ throw new runtime.RequiredError(
103
+ 'associateVisitorInput',
104
+ 'Required parameter "associateVisitorInput" was null or undefined when calling associateSubscriptionVisitor().'
105
+ );
106
+ }
107
+
108
+ const queryParameters: any = {};
109
+
110
+ const headerParameters: runtime.HTTPHeaders = {};
111
+
112
+ headerParameters['Content-Type'] = 'application/json';
113
+
114
+ const response = await this.request({
115
+ path: `/subscriptions/{subscriptionId}/visitor`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
116
+ method: 'POST',
117
+ headers: headerParameters,
118
+ query: queryParameters,
119
+ body: AssociateVisitorInputToJSON(requestParameters['associateVisitorInput']),
120
+ }, initOverrides);
121
+
122
+ return new runtime.VoidApiResponse(response);
123
+ }
124
+
125
+ /**
126
+ * Links an umami session to the buyer behind this subscription, so their analytics sessions can be cross-referenced. Safe to call repeatedly. No authentication required.
127
+ * Associate a visitor with a subscription buyer
128
+ */
129
+ async associateSubscriptionVisitor(requestParameters: SubscriptionsPublicApiAssociateSubscriptionVisitorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
130
+ await this.associateSubscriptionVisitorRaw(requestParameters, initOverrides);
131
+ }
132
+
81
133
  /**
82
134
  * Creates a new domain subscription.
83
135
  * Create subscription
@@ -16,30 +16,30 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface AssociateLeadVisitorInput
19
+ * @interface AssociateVisitorInput
20
20
  */
21
- export interface AssociateLeadVisitorInput {
21
+ export interface AssociateVisitorInput {
22
22
  /**
23
23
  * Umami session id of the visitor, as reported by the tracker on the page the buyer is using.
24
24
  * @type {string}
25
- * @memberof AssociateLeadVisitorInput
25
+ * @memberof AssociateVisitorInput
26
26
  */
27
27
  visitorId: string;
28
28
  }
29
29
 
30
30
  /**
31
- * Check if a given object implements the AssociateLeadVisitorInput interface.
31
+ * Check if a given object implements the AssociateVisitorInput interface.
32
32
  */
33
- export function instanceOfAssociateLeadVisitorInput(value: object): value is AssociateLeadVisitorInput {
33
+ export function instanceOfAssociateVisitorInput(value: object): value is AssociateVisitorInput {
34
34
  if (!('visitorId' in value) || value['visitorId'] === undefined) return false;
35
35
  return true;
36
36
  }
37
37
 
38
- export function AssociateLeadVisitorInputFromJSON(json: any): AssociateLeadVisitorInput {
39
- return AssociateLeadVisitorInputFromJSONTyped(json, false);
38
+ export function AssociateVisitorInputFromJSON(json: any): AssociateVisitorInput {
39
+ return AssociateVisitorInputFromJSONTyped(json, false);
40
40
  }
41
41
 
42
- export function AssociateLeadVisitorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateLeadVisitorInput {
42
+ export function AssociateVisitorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateVisitorInput {
43
43
  if (json == null) {
44
44
  return json;
45
45
  }
@@ -49,11 +49,11 @@ export function AssociateLeadVisitorInputFromJSONTyped(json: any, ignoreDiscrimi
49
49
  };
50
50
  }
51
51
 
52
- export function AssociateLeadVisitorInputToJSON(json: any): AssociateLeadVisitorInput {
53
- return AssociateLeadVisitorInputToJSONTyped(json, false);
52
+ export function AssociateVisitorInputToJSON(json: any): AssociateVisitorInput {
53
+ return AssociateVisitorInputToJSONTyped(json, false);
54
54
  }
55
55
 
56
- export function AssociateLeadVisitorInputToJSONTyped(value?: AssociateLeadVisitorInput | null, ignoreDiscriminator: boolean = false): any {
56
+ export function AssociateVisitorInputToJSONTyped(value?: AssociateVisitorInput | null, ignoreDiscriminator: boolean = false): any {
57
57
  if (value == null) {
58
58
  return value;
59
59
  }
@@ -77,6 +77,12 @@ export interface BuyerDto {
77
77
  * @memberof BuyerDto
78
78
  */
79
79
  emailDomain: string;
80
+ /**
81
+ * Full email address of the buyer. Only returned to sellers with at least 500 domains pointing to our servers, and null otherwise.
82
+ * @type {string}
83
+ * @memberof BuyerDto
84
+ */
85
+ email: string | null;
80
86
  /**
81
87
  * Phone number of the buyer, if provided.
82
88
  * @type {string}
@@ -121,6 +127,7 @@ export function instanceOfBuyerDto(value: object): value is BuyerDto {
121
127
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
122
128
  if (!('buyerName' in value) || value['buyerName'] === undefined) return false;
123
129
  if (!('emailDomain' in value) || value['emailDomain'] === undefined) return false;
130
+ if (!('email' in value) || value['email'] === undefined) return false;
124
131
  if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
125
132
  if (!('experience' in value) || value['experience'] === undefined) return false;
126
133
  if (!('accepted' in value) || value['accepted'] === undefined) return false;
@@ -145,6 +152,7 @@ export function BuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
145
152
  'companyName': json['companyName'],
146
153
  'buyerName': json['buyerName'],
147
154
  'emailDomain': json['emailDomain'],
155
+ 'email': json['email'],
148
156
  'phoneNumber': json['phoneNumber'],
149
157
  'experience': BuyerExperienceEnumFromJSON(json['experience']),
150
158
  'accepted': BuyerAcceptanceEnumFromJSON(json['accepted']),
@@ -170,6 +178,7 @@ export function BuyerDtoToJSONTyped(value?: BuyerDto | null, ignoreDiscriminator
170
178
  'companyName': value['companyName'],
171
179
  'buyerName': value['buyerName'],
172
180
  'emailDomain': value['emailDomain'],
181
+ 'email': value['email'],
173
182
  'phoneNumber': value['phoneNumber'],
174
183
  'experience': BuyerExperienceEnumToJSON(value['experience']),
175
184
  'accepted': BuyerAcceptanceEnumToJSON(value['accepted']),
@@ -76,7 +76,7 @@ export * from './AirwallexDepositDtoFee';
76
76
  export * from './ApiKeyDto';
77
77
  export * from './ApiKeyScopeDto';
78
78
  export * from './ApplyDomainEditInput';
79
- export * from './AssociateLeadVisitorInput';
79
+ export * from './AssociateVisitorInput';
80
80
  export * from './AuBankAccountDetails';
81
81
  export * from './AuctionBidDto';
82
82
  export * from './AuctionBidInput';