@randock/nameshift-api-client 0.0.477 → 0.0.479
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/README.md +3 -3
- package/dist/apis/DomainsApi.d.ts +8 -4
- package/dist/apis/DomainsApi.js +13 -6
- package/dist/models/LedgerMutationDto.d.ts +27 -0
- package/dist/models/LedgerMutationDto.js +21 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +18 -5
- package/src/models/LedgerMutationDto.ts +39 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.479
|
|
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.479 --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
|
+
7b9323bda73bf014c44a01f32534b2e06c06396dbc535bde6faab88443a9aa3cc9455ae913b0df1708568ecf78b1a181
|
|
@@ -45,6 +45,10 @@ export interface DomainsApiCheckDomainVerificationRequest {
|
|
|
45
45
|
export interface DomainsApiDeleteDomainsRequest {
|
|
46
46
|
deleteDomainsInput: DeleteDomainsInput;
|
|
47
47
|
}
|
|
48
|
+
export interface DomainsApiExportDomainsRequest {
|
|
49
|
+
searchFilter?: string;
|
|
50
|
+
filter?: object;
|
|
51
|
+
}
|
|
48
52
|
export interface DomainsApiGetAffiliateCommissionRequest {
|
|
49
53
|
domainName: string;
|
|
50
54
|
}
|
|
@@ -211,15 +215,15 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
211
215
|
*/
|
|
212
216
|
deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
213
217
|
/**
|
|
214
|
-
* Queues an export of
|
|
218
|
+
* Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
215
219
|
* Export domains
|
|
216
220
|
*/
|
|
217
|
-
exportDomainsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
221
|
+
exportDomainsRaw(requestParameters: DomainsApiExportDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
218
222
|
/**
|
|
219
|
-
* Queues an export of
|
|
223
|
+
* Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
220
224
|
* Export domains
|
|
221
225
|
*/
|
|
222
|
-
exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
226
|
+
exportDomains(requestParameters?: DomainsApiExportDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
223
227
|
/**
|
|
224
228
|
* Returns the affiliate commission information for a domain owned by the seller. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
225
229
|
* Get domain affiliate commission
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -692,16 +692,22 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
692
692
|
});
|
|
693
693
|
};
|
|
694
694
|
/**
|
|
695
|
-
* Queues an export of
|
|
695
|
+
* Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
696
696
|
* Export domains
|
|
697
697
|
*/
|
|
698
|
-
DomainsApi.prototype.exportDomainsRaw = function (initOverrides) {
|
|
698
|
+
DomainsApi.prototype.exportDomainsRaw = function (requestParameters, initOverrides) {
|
|
699
699
|
return __awaiter(this, void 0, void 0, function () {
|
|
700
700
|
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
701
701
|
return __generator(this, function (_c) {
|
|
702
702
|
switch (_c.label) {
|
|
703
703
|
case 0:
|
|
704
704
|
queryParameters = {};
|
|
705
|
+
if (requestParameters['searchFilter'] != null) {
|
|
706
|
+
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
707
|
+
}
|
|
708
|
+
if (requestParameters['filter'] != null) {
|
|
709
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
710
|
+
}
|
|
705
711
|
headerParameters = {};
|
|
706
712
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
707
713
|
_a = headerParameters;
|
|
@@ -734,14 +740,15 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
734
740
|
});
|
|
735
741
|
};
|
|
736
742
|
/**
|
|
737
|
-
* Queues an export of
|
|
743
|
+
* Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
738
744
|
* Export domains
|
|
739
745
|
*/
|
|
740
|
-
DomainsApi.prototype.exportDomains = function (
|
|
741
|
-
return __awaiter(this,
|
|
746
|
+
DomainsApi.prototype.exportDomains = function () {
|
|
747
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
748
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
742
749
|
return __generator(this, function (_a) {
|
|
743
750
|
switch (_a.label) {
|
|
744
|
-
case 0: return [4 /*yield*/, this.exportDomainsRaw(initOverrides)];
|
|
751
|
+
case 0: return [4 /*yield*/, this.exportDomainsRaw(requestParameters, initOverrides)];
|
|
745
752
|
case 1:
|
|
746
753
|
_a.sent();
|
|
747
754
|
return [2 /*return*/];
|
|
@@ -58,7 +58,34 @@ export interface LedgerMutationDto {
|
|
|
58
58
|
* @memberof LedgerMutationDto
|
|
59
59
|
*/
|
|
60
60
|
attachments: Array<LedgerMutationAttachmentDto>;
|
|
61
|
+
/**
|
|
62
|
+
* Snelstart bank transaction the mutation was booked with, when it could be traced back to one.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof LedgerMutationDto
|
|
65
|
+
*/
|
|
66
|
+
snelstartBankTransactionId: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Payment provider the bank transaction was synced from, when it was synced by us.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof LedgerMutationDto
|
|
71
|
+
*/
|
|
72
|
+
externalTransactionSource: LedgerMutationDtoExternalTransactionSourceEnum | null;
|
|
73
|
+
/**
|
|
74
|
+
* Identifier of the record at the payment provider the bank transaction was synced from.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof LedgerMutationDto
|
|
77
|
+
*/
|
|
78
|
+
externalTransactionId: string | null;
|
|
61
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const LedgerMutationDtoExternalTransactionSourceEnum: {
|
|
84
|
+
readonly STRIPE: "stripe";
|
|
85
|
+
readonly AIRWALLEX: "airwallex";
|
|
86
|
+
readonly MOLLIE: "mollie";
|
|
87
|
+
};
|
|
88
|
+
export type LedgerMutationDtoExternalTransactionSourceEnum = typeof LedgerMutationDtoExternalTransactionSourceEnum[keyof typeof LedgerMutationDtoExternalTransactionSourceEnum];
|
|
62
89
|
/**
|
|
63
90
|
* Check if a given object implements the LedgerMutationDto interface.
|
|
64
91
|
*/
|
|
@@ -13,12 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LedgerMutationDtoExternalTransactionSourceEnum = void 0;
|
|
16
17
|
exports.instanceOfLedgerMutationDto = instanceOfLedgerMutationDto;
|
|
17
18
|
exports.LedgerMutationDtoFromJSON = LedgerMutationDtoFromJSON;
|
|
18
19
|
exports.LedgerMutationDtoFromJSONTyped = LedgerMutationDtoFromJSONTyped;
|
|
19
20
|
exports.LedgerMutationDtoToJSON = LedgerMutationDtoToJSON;
|
|
20
21
|
exports.LedgerMutationDtoToJSONTyped = LedgerMutationDtoToJSONTyped;
|
|
21
22
|
var LedgerMutationAttachmentDto_1 = require("./LedgerMutationAttachmentDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LedgerMutationDtoExternalTransactionSourceEnum = {
|
|
27
|
+
STRIPE: 'stripe',
|
|
28
|
+
AIRWALLEX: 'airwallex',
|
|
29
|
+
MOLLIE: 'mollie'
|
|
30
|
+
};
|
|
22
31
|
/**
|
|
23
32
|
* Check if a given object implements the LedgerMutationDto interface.
|
|
24
33
|
*/
|
|
@@ -37,6 +46,12 @@ function instanceOfLedgerMutationDto(value) {
|
|
|
37
46
|
return false;
|
|
38
47
|
if (!('attachments' in value) || value['attachments'] === undefined)
|
|
39
48
|
return false;
|
|
49
|
+
if (!('snelstartBankTransactionId' in value) || value['snelstartBankTransactionId'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('externalTransactionSource' in value) || value['externalTransactionSource'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('externalTransactionId' in value) || value['externalTransactionId'] === undefined)
|
|
54
|
+
return false;
|
|
40
55
|
return true;
|
|
41
56
|
}
|
|
42
57
|
function LedgerMutationDtoFromJSON(json) {
|
|
@@ -54,6 +69,9 @@ function LedgerMutationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
69
|
'description': json['description'],
|
|
55
70
|
'date': (new Date(json['date'])),
|
|
56
71
|
'attachments': (json['attachments'].map(LedgerMutationAttachmentDto_1.LedgerMutationAttachmentDtoFromJSON)),
|
|
72
|
+
'snelstartBankTransactionId': json['snelstartBankTransactionId'],
|
|
73
|
+
'externalTransactionSource': json['externalTransactionSource'],
|
|
74
|
+
'externalTransactionId': json['externalTransactionId'],
|
|
57
75
|
};
|
|
58
76
|
}
|
|
59
77
|
function LedgerMutationDtoToJSON(json) {
|
|
@@ -72,5 +90,8 @@ function LedgerMutationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
90
|
'description': value['description'],
|
|
73
91
|
'date': ((value['date']).toISOString()),
|
|
74
92
|
'attachments': (value['attachments'].map(LedgerMutationAttachmentDto_1.LedgerMutationAttachmentDtoToJSON)),
|
|
93
|
+
'snelstartBankTransactionId': value['snelstartBankTransactionId'],
|
|
94
|
+
'externalTransactionSource': value['externalTransactionSource'],
|
|
95
|
+
'externalTransactionId': value['externalTransactionId'],
|
|
75
96
|
};
|
|
76
97
|
}
|
package/package.json
CHANGED
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -144,6 +144,11 @@ export interface DomainsApiDeleteDomainsRequest {
|
|
|
144
144
|
deleteDomainsInput: DeleteDomainsInput;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
export interface DomainsApiExportDomainsRequest {
|
|
148
|
+
searchFilter?: string;
|
|
149
|
+
filter?: object;
|
|
150
|
+
}
|
|
151
|
+
|
|
147
152
|
export interface DomainsApiGetAffiliateCommissionRequest {
|
|
148
153
|
domainName: string;
|
|
149
154
|
}
|
|
@@ -711,12 +716,20 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
711
716
|
}
|
|
712
717
|
|
|
713
718
|
/**
|
|
714
|
-
* Queues an export of
|
|
719
|
+
* Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
715
720
|
* Export domains
|
|
716
721
|
*/
|
|
717
|
-
async exportDomainsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
722
|
+
async exportDomainsRaw(requestParameters: DomainsApiExportDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
718
723
|
const queryParameters: any = {};
|
|
719
724
|
|
|
725
|
+
if (requestParameters['searchFilter'] != null) {
|
|
726
|
+
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
if (requestParameters['filter'] != null) {
|
|
730
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
731
|
+
}
|
|
732
|
+
|
|
720
733
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
721
734
|
|
|
722
735
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -742,11 +755,11 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
742
755
|
}
|
|
743
756
|
|
|
744
757
|
/**
|
|
745
|
-
* Queues an export of
|
|
758
|
+
* Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
746
759
|
* Export domains
|
|
747
760
|
*/
|
|
748
|
-
async exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
749
|
-
await this.exportDomainsRaw(initOverrides);
|
|
761
|
+
async exportDomains(requestParameters: DomainsApiExportDomainsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
762
|
+
await this.exportDomainsRaw(requestParameters, initOverrides);
|
|
750
763
|
}
|
|
751
764
|
|
|
752
765
|
/**
|
|
@@ -69,8 +69,38 @@ export interface LedgerMutationDto {
|
|
|
69
69
|
* @memberof LedgerMutationDto
|
|
70
70
|
*/
|
|
71
71
|
attachments: Array<LedgerMutationAttachmentDto>;
|
|
72
|
+
/**
|
|
73
|
+
* Snelstart bank transaction the mutation was booked with, when it could be traced back to one.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof LedgerMutationDto
|
|
76
|
+
*/
|
|
77
|
+
snelstartBankTransactionId: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Payment provider the bank transaction was synced from, when it was synced by us.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof LedgerMutationDto
|
|
82
|
+
*/
|
|
83
|
+
externalTransactionSource: LedgerMutationDtoExternalTransactionSourceEnum | null;
|
|
84
|
+
/**
|
|
85
|
+
* Identifier of the record at the payment provider the bank transaction was synced from.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LedgerMutationDto
|
|
88
|
+
*/
|
|
89
|
+
externalTransactionId: string | null;
|
|
72
90
|
}
|
|
73
91
|
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const LedgerMutationDtoExternalTransactionSourceEnum = {
|
|
97
|
+
STRIPE: 'stripe',
|
|
98
|
+
AIRWALLEX: 'airwallex',
|
|
99
|
+
MOLLIE: 'mollie'
|
|
100
|
+
} as const;
|
|
101
|
+
export type LedgerMutationDtoExternalTransactionSourceEnum = typeof LedgerMutationDtoExternalTransactionSourceEnum[keyof typeof LedgerMutationDtoExternalTransactionSourceEnum];
|
|
102
|
+
|
|
103
|
+
|
|
74
104
|
/**
|
|
75
105
|
* Check if a given object implements the LedgerMutationDto interface.
|
|
76
106
|
*/
|
|
@@ -82,6 +112,9 @@ export function instanceOfLedgerMutationDto(value: object): value is LedgerMutat
|
|
|
82
112
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
83
113
|
if (!('date' in value) || value['date'] === undefined) return false;
|
|
84
114
|
if (!('attachments' in value) || value['attachments'] === undefined) return false;
|
|
115
|
+
if (!('snelstartBankTransactionId' in value) || value['snelstartBankTransactionId'] === undefined) return false;
|
|
116
|
+
if (!('externalTransactionSource' in value) || value['externalTransactionSource'] === undefined) return false;
|
|
117
|
+
if (!('externalTransactionId' in value) || value['externalTransactionId'] === undefined) return false;
|
|
85
118
|
return true;
|
|
86
119
|
}
|
|
87
120
|
|
|
@@ -102,6 +135,9 @@ export function LedgerMutationDtoFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
102
135
|
'description': json['description'],
|
|
103
136
|
'date': (new Date(json['date'])),
|
|
104
137
|
'attachments': ((json['attachments'] as Array<any>).map(LedgerMutationAttachmentDtoFromJSON)),
|
|
138
|
+
'snelstartBankTransactionId': json['snelstartBankTransactionId'],
|
|
139
|
+
'externalTransactionSource': json['externalTransactionSource'],
|
|
140
|
+
'externalTransactionId': json['externalTransactionId'],
|
|
105
141
|
};
|
|
106
142
|
}
|
|
107
143
|
|
|
@@ -123,6 +159,9 @@ export function LedgerMutationDtoToJSONTyped(value?: LedgerMutationDto | null, i
|
|
|
123
159
|
'description': value['description'],
|
|
124
160
|
'date': ((value['date']).toISOString()),
|
|
125
161
|
'attachments': ((value['attachments'] as Array<any>).map(LedgerMutationAttachmentDtoToJSON)),
|
|
162
|
+
'snelstartBankTransactionId': value['snelstartBankTransactionId'],
|
|
163
|
+
'externalTransactionSource': value['externalTransactionSource'],
|
|
164
|
+
'externalTransactionId': value['externalTransactionId'],
|
|
126
165
|
};
|
|
127
166
|
}
|
|
128
167
|
|