@randock/nameshift-api-client 0.0.430 → 0.0.432

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 (39) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +3 -3
  3. package/dist/apis/MarketingApi.d.ts +40 -0
  4. package/dist/apis/MarketingApi.js +193 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/BuyerNotificationDto.d.ts +2 -0
  8. package/dist/models/BuyerNotificationDto.js +2 -0
  9. package/dist/models/BuyerNotificationListItemDto.d.ts +2 -0
  10. package/dist/models/BuyerNotificationListItemDto.js +2 -0
  11. package/dist/models/GetMarketingSales200Response.d.ts +47 -0
  12. package/dist/models/GetMarketingSales200Response.js +62 -0
  13. package/dist/models/MarketingOrderListItemDto.d.ts +57 -0
  14. package/dist/models/MarketingOrderListItemDto.js +68 -0
  15. package/dist/models/MarketingSalesFiltersDto.d.ts +38 -0
  16. package/dist/models/MarketingSalesFiltersDto.js +55 -0
  17. package/dist/models/RentIndexationDto.d.ts +56 -0
  18. package/dist/models/RentIndexationDto.js +67 -0
  19. package/dist/models/SubscriptionDetailsDto.d.ts +53 -0
  20. package/dist/models/SubscriptionDetailsDto.js +44 -1
  21. package/dist/models/UserNotificationDto.d.ts +2 -0
  22. package/dist/models/UserNotificationDto.js +2 -0
  23. package/dist/models/UserNotificationListItemDto.d.ts +2 -0
  24. package/dist/models/UserNotificationListItemDto.js +2 -0
  25. package/dist/models/index.d.ts +4 -0
  26. package/dist/models/index.js +4 -0
  27. package/package.json +1 -1
  28. package/src/apis/MarketingApi.ts +127 -0
  29. package/src/apis/index.ts +1 -0
  30. package/src/models/BuyerNotificationDto.ts +2 -0
  31. package/src/models/BuyerNotificationListItemDto.ts +2 -0
  32. package/src/models/GetMarketingSales200Response.ts +106 -0
  33. package/src/models/MarketingOrderListItemDto.ts +110 -0
  34. package/src/models/MarketingSalesFiltersDto.ts +75 -0
  35. package/src/models/RentIndexationDto.ts +102 -0
  36. package/src/models/SubscriptionDetailsDto.ts +73 -0
  37. package/src/models/UserNotificationDto.ts +2 -0
  38. package/src/models/UserNotificationListItemDto.ts +2 -0
  39. package/src/models/index.ts +4 -0
@@ -21,6 +21,7 @@ src/apis/InvoicesApi.ts
21
21
  src/apis/LeadsApi.ts
22
22
  src/apis/LeadsPublicApi.ts
23
23
  src/apis/MandrillPublicApi.ts
24
+ src/apis/MarketingApi.ts
24
25
  src/apis/MolliePublicApi.ts
25
26
  src/apis/NickyPublicApi.ts
26
27
  src/apis/NotificationsApi.ts
@@ -266,6 +267,7 @@ src/models/GetBuyerLeads200Response.ts
266
267
  src/models/GetBuyerSubscriptions200Response.ts
267
268
  src/models/GetBuyerTransfers200Response.ts
268
269
  src/models/GetInvoices200Response.ts
270
+ src/models/GetMarketingSales200Response.ts
269
271
  src/models/GetSellerChallengesListDto.ts
270
272
  src/models/GetSellerChallengesListDtoChallengesInner.ts
271
273
  src/models/HistoricalMetrics.ts
@@ -337,6 +339,8 @@ src/models/MajesticMetrics.ts
337
339
  src/models/MajesticTopicTrustFlow.ts
338
340
  src/models/ManualLeadBuyerDto.ts
339
341
  src/models/ManualLeadLeaseToOwnDto.ts
342
+ src/models/MarketingOrderListItemDto.ts
343
+ src/models/MarketingSalesFiltersDto.ts
340
344
  src/models/MoneyDecimalDto.ts
341
345
  src/models/MoneyDto.ts
342
346
  src/models/MoneyInput.ts
@@ -391,6 +395,7 @@ src/models/RentConfigurationDto.ts
391
395
  src/models/RentConfigurationInput.ts
392
396
  src/models/RentConfigurationPresetsDto.ts
393
397
  src/models/RentDto.ts
398
+ src/models/RentIndexationDto.ts
394
399
  src/models/RequestAccessTokenInput.ts
395
400
  src/models/RequestEmailOtpInput.ts
396
401
  src/models/RequestUserEmailChangeOtpInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.430
1
+ ## @randock/nameshift-api-client@0.0.432
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.430 --save
39
+ npm install @randock/nameshift-api-client@0.0.432 --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
- d089da1b58ed0fd5caa8d99d7b910ba78529f772ac39772f0a2dfef3e7a3fbe916bec1e2faf5dcf88b7a0281c9c82d55
47
+ d5c08935d8e3718b5fc609802731dbd39e50fc8c68f835015cb7f21512d8e92b23f0fd65d05be2c085befa45bb976465
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { GetMarketingSales200Response, MarketingSalesFiltersDto } from '../models/index';
14
+ export interface MarketingApiGetMarketingSalesRequest {
15
+ filter?: object;
16
+ page?: number;
17
+ limit?: number;
18
+ sortBy?: Array<string>;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class MarketingApi extends runtime.BaseAPI {
24
+ /**
25
+ *
26
+ */
27
+ getMarketingSalesRaw(requestParameters: MarketingApiGetMarketingSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMarketingSales200Response>>;
28
+ /**
29
+ *
30
+ */
31
+ getMarketingSales(requestParameters?: MarketingApiGetMarketingSalesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMarketingSales200Response>;
32
+ /**
33
+ *
34
+ */
35
+ getMarketingSalesFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketingSalesFiltersDto>>;
36
+ /**
37
+ *
38
+ */
39
+ getMarketingSalesFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketingSalesFiltersDto>;
40
+ }
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.MarketingApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var MarketingApi = /** @class */ (function (_super) {
74
+ __extends(MarketingApi, _super);
75
+ function MarketingApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ *
80
+ */
81
+ MarketingApi.prototype.getMarketingSalesRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ if (requestParameters['filter'] != null) {
89
+ queryParameters['filter'] = requestParameters['filter'];
90
+ }
91
+ if (requestParameters['page'] != null) {
92
+ queryParameters['page'] = requestParameters['page'];
93
+ }
94
+ if (requestParameters['limit'] != null) {
95
+ queryParameters['limit'] = requestParameters['limit'];
96
+ }
97
+ if (requestParameters['sortBy'] != null) {
98
+ queryParameters['sortBy'] = requestParameters['sortBy'];
99
+ }
100
+ headerParameters = {};
101
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
102
+ token = this.configuration.accessToken;
103
+ return [4 /*yield*/, token("bearer", [])];
104
+ case 1:
105
+ tokenString = _a.sent();
106
+ if (tokenString) {
107
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
108
+ }
109
+ _a.label = 2;
110
+ case 2: return [4 /*yield*/, this.request({
111
+ path: "/marketing/sales",
112
+ method: 'GET',
113
+ headers: headerParameters,
114
+ query: queryParameters,
115
+ }, initOverrides)];
116
+ case 3:
117
+ response = _a.sent();
118
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetMarketingSales200ResponseFromJSON)(jsonValue); })];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ /**
124
+ *
125
+ */
126
+ MarketingApi.prototype.getMarketingSales = function () {
127
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
128
+ var response;
129
+ if (requestParameters === void 0) { requestParameters = {}; }
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0: return [4 /*yield*/, this.getMarketingSalesRaw(requestParameters, initOverrides)];
133
+ case 1:
134
+ response = _a.sent();
135
+ return [4 /*yield*/, response.value()];
136
+ case 2: return [2 /*return*/, _a.sent()];
137
+ }
138
+ });
139
+ });
140
+ };
141
+ /**
142
+ *
143
+ */
144
+ MarketingApi.prototype.getMarketingSalesFiltersRaw = function (initOverrides) {
145
+ return __awaiter(this, void 0, void 0, function () {
146
+ var queryParameters, headerParameters, token, tokenString, response;
147
+ return __generator(this, function (_a) {
148
+ switch (_a.label) {
149
+ case 0:
150
+ queryParameters = {};
151
+ headerParameters = {};
152
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
153
+ token = this.configuration.accessToken;
154
+ return [4 /*yield*/, token("bearer", [])];
155
+ case 1:
156
+ tokenString = _a.sent();
157
+ if (tokenString) {
158
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
159
+ }
160
+ _a.label = 2;
161
+ case 2: return [4 /*yield*/, this.request({
162
+ path: "/marketing/sales/filters",
163
+ method: 'GET',
164
+ headers: headerParameters,
165
+ query: queryParameters,
166
+ }, initOverrides)];
167
+ case 3:
168
+ response = _a.sent();
169
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MarketingSalesFiltersDtoFromJSON)(jsonValue); })];
170
+ }
171
+ });
172
+ });
173
+ };
174
+ /**
175
+ *
176
+ */
177
+ MarketingApi.prototype.getMarketingSalesFilters = function (initOverrides) {
178
+ return __awaiter(this, void 0, void 0, function () {
179
+ var response;
180
+ return __generator(this, function (_a) {
181
+ switch (_a.label) {
182
+ case 0: return [4 /*yield*/, this.getMarketingSalesFiltersRaw(initOverrides)];
183
+ case 1:
184
+ response = _a.sent();
185
+ return [4 /*yield*/, response.value()];
186
+ case 2: return [2 /*return*/, _a.sent()];
187
+ }
188
+ });
189
+ });
190
+ };
191
+ return MarketingApi;
192
+ }(runtime.BaseAPI));
193
+ exports.MarketingApi = MarketingApi;
@@ -16,6 +16,7 @@ export * from './InvoicesApi';
16
16
  export * from './LeadsApi';
17
17
  export * from './LeadsPublicApi';
18
18
  export * from './MandrillPublicApi';
19
+ export * from './MarketingApi';
19
20
  export * from './MolliePublicApi';
20
21
  export * from './NickyPublicApi';
21
22
  export * from './NotificationsApi';
@@ -34,6 +34,7 @@ __exportStar(require("./InvoicesApi"), exports);
34
34
  __exportStar(require("./LeadsApi"), exports);
35
35
  __exportStar(require("./LeadsPublicApi"), exports);
36
36
  __exportStar(require("./MandrillPublicApi"), exports);
37
+ __exportStar(require("./MarketingApi"), exports);
37
38
  __exportStar(require("./MolliePublicApi"), exports);
38
39
  __exportStar(require("./NickyPublicApi"), exports);
39
40
  __exportStar(require("./NotificationsApi"), exports);
@@ -110,6 +110,8 @@ export declare const BuyerNotificationDtoTypeEnum: {
110
110
  readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
111
111
  readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
112
112
  readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
113
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
114
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
113
115
  readonly PASSWORD_RESET: "password_reset";
114
116
  readonly USER_EMAIL_CHANGED: "user_email_changed";
115
117
  readonly BUYER_INVOICE: "buyer_invoice";
@@ -71,6 +71,8 @@ exports.BuyerNotificationDtoTypeEnum = {
71
71
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
72
72
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
73
73
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
74
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
75
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
74
76
  PASSWORD_RESET: 'password_reset',
75
77
  USER_EMAIL_CHANGED: 'user_email_changed',
76
78
  BUYER_INVOICE: 'buyer_invoice',
@@ -103,6 +103,8 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
103
103
  readonly SELLER_RENT_SUBSCRIPTION_CANCELLED: "seller_rent_subscription_cancelled";
104
104
  readonly LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "lease_to_own_subscription_has_been_activated_for_first_time";
105
105
  readonly RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: "rent_subscription_has_been_activated_for_first_time";
106
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: "rent_subscription_rent_indexation_advance_notice";
107
+ readonly RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: "rent_subscription_rent_indexation_applied";
106
108
  readonly PASSWORD_RESET: "password_reset";
107
109
  readonly USER_EMAIL_CHANGED: "user_email_changed";
108
110
  readonly BUYER_INVOICE: "buyer_invoice";
@@ -70,6 +70,8 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
70
70
  SELLER_RENT_SUBSCRIPTION_CANCELLED: 'seller_rent_subscription_cancelled',
71
71
  LEASE_TO_OWN_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'lease_to_own_subscription_has_been_activated_for_first_time',
72
72
  RENT_SUBSCRIPTION_HAS_BEEN_ACTIVATED_FOR_FIRST_TIME: 'rent_subscription_has_been_activated_for_first_time',
73
+ RENT_SUBSCRIPTION_RENT_INDEXATION_ADVANCE_NOTICE: 'rent_subscription_rent_indexation_advance_notice',
74
+ RENT_SUBSCRIPTION_RENT_INDEXATION_APPLIED: 'rent_subscription_rent_indexation_applied',
73
75
  PASSWORD_RESET: 'password_reset',
74
76
  USER_EMAIL_CHANGED: 'user_email_changed',
75
77
  BUYER_INVOICE: 'buyer_invoice',
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { MarketingOrderListItemDto } from './MarketingOrderListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetMarketingSales200Response
19
+ */
20
+ export interface GetMarketingSales200Response {
21
+ /**
22
+ *
23
+ * @type {Array<MarketingOrderListItemDto>}
24
+ * @memberof GetMarketingSales200Response
25
+ */
26
+ data: Array<MarketingOrderListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetMarketingSales200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetMarketingSales200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetMarketingSales200Response interface.
42
+ */
43
+ export declare function instanceOfGetMarketingSales200Response(value: object): value is GetMarketingSales200Response;
44
+ export declare function GetMarketingSales200ResponseFromJSON(json: any): GetMarketingSales200Response;
45
+ export declare function GetMarketingSales200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMarketingSales200Response;
46
+ export declare function GetMarketingSales200ResponseToJSON(json: any): GetMarketingSales200Response;
47
+ export declare function GetMarketingSales200ResponseToJSONTyped(value?: GetMarketingSales200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetMarketingSales200Response = instanceOfGetMarketingSales200Response;
17
+ exports.GetMarketingSales200ResponseFromJSON = GetMarketingSales200ResponseFromJSON;
18
+ exports.GetMarketingSales200ResponseFromJSONTyped = GetMarketingSales200ResponseFromJSONTyped;
19
+ exports.GetMarketingSales200ResponseToJSON = GetMarketingSales200ResponseToJSON;
20
+ exports.GetMarketingSales200ResponseToJSONTyped = GetMarketingSales200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var MarketingOrderListItemDto_1 = require("./MarketingOrderListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the GetMarketingSales200Response interface.
26
+ */
27
+ function instanceOfGetMarketingSales200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function GetMarketingSales200ResponseFromJSON(json) {
37
+ return GetMarketingSales200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function GetMarketingSales200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(MarketingOrderListItemDto_1.MarketingOrderListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function GetMarketingSales200ResponseToJSON(json) {
50
+ return GetMarketingSales200ResponseToJSONTyped(json, false);
51
+ }
52
+ function GetMarketingSales200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(MarketingOrderListItemDto_1.MarketingOrderListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MarketingOrderListItemDto
17
+ */
18
+ export interface MarketingOrderListItemDto {
19
+ /**
20
+ * The order domain ID
21
+ * @type {string}
22
+ * @memberof MarketingOrderListItemDto
23
+ */
24
+ domainId: string;
25
+ /**
26
+ * The order domain name
27
+ * @type {string}
28
+ * @memberof MarketingOrderListItemDto
29
+ */
30
+ domainName: string;
31
+ /**
32
+ * The order base price
33
+ * @type {MoneyDto}
34
+ * @memberof MarketingOrderListItemDto
35
+ */
36
+ basePrice: MoneyDto;
37
+ /**
38
+ * The order base price converted to EUR
39
+ * @type {MoneyDto}
40
+ * @memberof MarketingOrderListItemDto
41
+ */
42
+ basePriceEur: MoneyDto | null;
43
+ /**
44
+ * The buyer invoice paid date
45
+ * @type {Date}
46
+ * @memberof MarketingOrderListItemDto
47
+ */
48
+ paidAt: Date;
49
+ }
50
+ /**
51
+ * Check if a given object implements the MarketingOrderListItemDto interface.
52
+ */
53
+ export declare function instanceOfMarketingOrderListItemDto(value: object): value is MarketingOrderListItemDto;
54
+ export declare function MarketingOrderListItemDtoFromJSON(json: any): MarketingOrderListItemDto;
55
+ export declare function MarketingOrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingOrderListItemDto;
56
+ export declare function MarketingOrderListItemDtoToJSON(json: any): MarketingOrderListItemDto;
57
+ export declare function MarketingOrderListItemDtoToJSONTyped(value?: MarketingOrderListItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMarketingOrderListItemDto = instanceOfMarketingOrderListItemDto;
17
+ exports.MarketingOrderListItemDtoFromJSON = MarketingOrderListItemDtoFromJSON;
18
+ exports.MarketingOrderListItemDtoFromJSONTyped = MarketingOrderListItemDtoFromJSONTyped;
19
+ exports.MarketingOrderListItemDtoToJSON = MarketingOrderListItemDtoToJSON;
20
+ exports.MarketingOrderListItemDtoToJSONTyped = MarketingOrderListItemDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the MarketingOrderListItemDto interface.
24
+ */
25
+ function instanceOfMarketingOrderListItemDto(value) {
26
+ if (!('domainId' in value) || value['domainId'] === undefined)
27
+ return false;
28
+ if (!('domainName' in value) || value['domainName'] === undefined)
29
+ return false;
30
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
31
+ return false;
32
+ if (!('basePriceEur' in value) || value['basePriceEur'] === undefined)
33
+ return false;
34
+ if (!('paidAt' in value) || value['paidAt'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function MarketingOrderListItemDtoFromJSON(json) {
39
+ return MarketingOrderListItemDtoFromJSONTyped(json, false);
40
+ }
41
+ function MarketingOrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'domainId': json['domainId'],
47
+ 'domainName': json['domainName'],
48
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
49
+ 'basePriceEur': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePriceEur']),
50
+ 'paidAt': (new Date(json['paidAt'])),
51
+ };
52
+ }
53
+ function MarketingOrderListItemDtoToJSON(json) {
54
+ return MarketingOrderListItemDtoToJSONTyped(json, false);
55
+ }
56
+ function MarketingOrderListItemDtoToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'domainId': value['domainId'],
63
+ 'domainName': value['domainName'],
64
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
65
+ 'basePriceEur': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePriceEur']),
66
+ 'paidAt': ((value['paidAt']).toISOString()),
67
+ };
68
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface MarketingSalesFiltersDto
16
+ */
17
+ export interface MarketingSalesFiltersDto {
18
+ /**
19
+ * List of existing TLDs in marketing sales
20
+ * @type {Array<string>}
21
+ * @memberof MarketingSalesFiltersDto
22
+ */
23
+ existingTldList: Array<string>;
24
+ /**
25
+ * List of existing currencies in marketing sales
26
+ * @type {Array<string>}
27
+ * @memberof MarketingSalesFiltersDto
28
+ */
29
+ existingCurrencies: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MarketingSalesFiltersDto interface.
33
+ */
34
+ export declare function instanceOfMarketingSalesFiltersDto(value: object): value is MarketingSalesFiltersDto;
35
+ export declare function MarketingSalesFiltersDtoFromJSON(json: any): MarketingSalesFiltersDto;
36
+ export declare function MarketingSalesFiltersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingSalesFiltersDto;
37
+ export declare function MarketingSalesFiltersDtoToJSON(json: any): MarketingSalesFiltersDto;
38
+ export declare function MarketingSalesFiltersDtoToJSONTyped(value?: MarketingSalesFiltersDto | null, ignoreDiscriminator?: boolean): any;