@randock/nameshift-api-client 0.0.465 → 0.0.466
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 +1 -1
- package/README.md +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +2 -2
- package/dist/apis/LeadsPublicApi.js +3 -3
- package/dist/apis/OrdersPublicApi.d.ts +15 -1
- package/dist/apis/OrdersPublicApi.js +49 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +15 -1
- package/dist/apis/SubscriptionsPublicApi.js +49 -0
- package/dist/models/{AssociateLeadVisitorInput.d.ts → AssociateVisitorInput.d.ts} +9 -9
- package/dist/models/{AssociateLeadVisitorInput.js → AssociateVisitorInput.js} +13 -13
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/LeadsPublicApi.ts +8 -8
- package/src/apis/OrdersPublicApi.ts +52 -0
- package/src/apis/SubscriptionsPublicApi.ts +52 -0
- package/src/models/{AssociateLeadVisitorInput.ts → AssociateVisitorInput.ts} +11 -11
- package/src/models/index.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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/
|
|
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.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.466
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.466 --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
|
-
|
|
47
|
+
29647ae2c949308eb631602de8b0277a39d524b648a3392401bd14d948ce13755ba17410e14ee6eb6e350c949edd3f39
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { AssociateVisitorInput, CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLeadInput, VerifyLeadInput } from '../models/index';
|
|
14
14
|
export interface LeadsPublicApiAssociateLeadVisitorRequest {
|
|
15
15
|
leadId: string;
|
|
16
|
-
|
|
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['
|
|
92
|
-
throw new runtime.RequiredError('
|
|
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.
|
|
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
|
|
15
|
+
* @interface AssociateVisitorInput
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
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
|
|
21
|
+
* @memberof AssociateVisitorInput
|
|
22
22
|
*/
|
|
23
23
|
visitorId: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Check if a given object implements the
|
|
26
|
+
* Check if a given object implements the AssociateVisitorInput interface.
|
|
27
27
|
*/
|
|
28
|
-
export declare function
|
|
29
|
-
export declare function
|
|
30
|
-
export declare function
|
|
31
|
-
export declare function
|
|
32
|
-
export declare function
|
|
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.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
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
|
|
22
|
+
* Check if a given object implements the AssociateVisitorInput interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
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
|
|
30
|
-
return
|
|
29
|
+
function AssociateVisitorInputFromJSON(json) {
|
|
30
|
+
return AssociateVisitorInputFromJSONTyped(json, false);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
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
|
|
41
|
-
return
|
|
40
|
+
function AssociateVisitorInputToJSON(json) {
|
|
41
|
+
return AssociateVisitorInputToJSONTyped(json, false);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function AssociateVisitorInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
44
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
45
|
if (value == null) {
|
|
46
46
|
return value;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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 './
|
|
77
|
+
export * from './AssociateVisitorInput';
|
|
78
78
|
export * from './AuBankAccountDetails';
|
|
79
79
|
export * from './AuctionBidDto';
|
|
80
80
|
export * from './AuctionBidInput';
|
package/dist/models/index.js
CHANGED
|
@@ -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("./
|
|
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
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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['
|
|
100
|
+
if (requestParameters['associateVisitorInput'] == null) {
|
|
101
101
|
throw new runtime.RequiredError(
|
|
102
|
-
'
|
|
103
|
-
'Required parameter "
|
|
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:
|
|
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
|
|
19
|
+
* @interface AssociateVisitorInput
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
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
|
|
25
|
+
* @memberof AssociateVisitorInput
|
|
26
26
|
*/
|
|
27
27
|
visitorId: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Check if a given object implements the
|
|
31
|
+
* Check if a given object implements the AssociateVisitorInput interface.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
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
|
|
39
|
-
return
|
|
38
|
+
export function AssociateVisitorInputFromJSON(json: any): AssociateVisitorInput {
|
|
39
|
+
return AssociateVisitorInputFromJSONTyped(json, false);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export function
|
|
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
|
|
53
|
-
return
|
|
52
|
+
export function AssociateVisitorInputToJSON(json: any): AssociateVisitorInput {
|
|
53
|
+
return AssociateVisitorInputToJSONTyped(json, false);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export function
|
|
56
|
+
export function AssociateVisitorInputToJSONTyped(value?: AssociateVisitorInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
57
|
if (value == null) {
|
|
58
58
|
return value;
|
|
59
59
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -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 './
|
|
79
|
+
export * from './AssociateVisitorInput';
|
|
80
80
|
export * from './AuBankAccountDetails';
|
|
81
81
|
export * from './AuctionBidDto';
|
|
82
82
|
export * from './AuctionBidInput';
|