@randock/nameshift-api-client 0.0.513 → 0.0.514

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.513
1
+ ## @randock/nameshift-api-client@0.0.514
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.513 --save
39
+ npm install @randock/nameshift-api-client@0.0.514 --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
- 03c9754bed6cc26a07373e18a1e0edc58ff90aca7642625e86cacf4d9beaf670b93490270a0aae2c73e081ef31fe8f68
47
+ bdfea85df725f86998eb880790bb90bf77a17abe53c6371d18028f976121457a2f2cc85c4edcea427f06fcd6c849a629
@@ -15,6 +15,7 @@ export interface AccountsPublicApiGetAccountInformationRequest {
15
15
  accountId: string;
16
16
  }
17
17
  export interface AccountsPublicApiRegisterRequest {
18
+ xNsClient: string;
18
19
  registerAccountInput: RegisterAccountInput;
19
20
  xRecaptchaToken?: string;
20
21
  }
@@ -131,12 +131,18 @@ var AccountsPublicApi = /** @class */ (function (_super) {
131
131
  return __generator(this, function (_a) {
132
132
  switch (_a.label) {
133
133
  case 0:
134
+ if (requestParameters['xNsClient'] == null) {
135
+ throw new runtime.RequiredError('xNsClient', 'Required parameter "xNsClient" was null or undefined when calling register().');
136
+ }
134
137
  if (requestParameters['registerAccountInput'] == null) {
135
138
  throw new runtime.RequiredError('registerAccountInput', 'Required parameter "registerAccountInput" was null or undefined when calling register().');
136
139
  }
137
140
  queryParameters = {};
138
141
  headerParameters = {};
139
142
  headerParameters['Content-Type'] = 'application/json';
143
+ if (requestParameters['xNsClient'] != null) {
144
+ headerParameters['x-ns-client'] = String(requestParameters['xNsClient']);
145
+ }
140
146
  if (requestParameters['xRecaptchaToken'] != null) {
141
147
  headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
142
148
  }
@@ -140,6 +140,12 @@ export interface AdminListAccountDto {
140
140
  * @memberof AdminListAccountDto
141
141
  */
142
142
  companyName: string | null;
143
+ /**
144
+ * Where the account registered from; null for accounts older than the field.
145
+ * @type {string}
146
+ * @memberof AdminListAccountDto
147
+ */
148
+ registrationSource: AdminListAccountDtoRegistrationSourceEnum | null;
143
149
  /**
144
150
  * Whether third-party sales data sharing is allowed.
145
151
  * @type {boolean}
@@ -187,6 +193,14 @@ export declare const AdminListAccountDtoPayoutProviderEnum: {
187
193
  readonly BANK_ACCOUNT: "bank_account";
188
194
  };
189
195
  export type AdminListAccountDtoPayoutProviderEnum = typeof AdminListAccountDtoPayoutProviderEnum[keyof typeof AdminListAccountDtoPayoutProviderEnum];
196
+ /**
197
+ * @export
198
+ */
199
+ export declare const AdminListAccountDtoRegistrationSourceEnum: {
200
+ readonly WEB: "web";
201
+ readonly MOBILE_APP: "mobile_app";
202
+ };
203
+ export type AdminListAccountDtoRegistrationSourceEnum = typeof AdminListAccountDtoRegistrationSourceEnum[keyof typeof AdminListAccountDtoRegistrationSourceEnum];
190
204
  /**
191
205
  * Check if a given object implements the AdminListAccountDto interface.
192
206
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = exports.AdminListAccountDtoAliasStatusEnum = void 0;
16
+ exports.AdminListAccountDtoRegistrationSourceEnum = exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = exports.AdminListAccountDtoAliasStatusEnum = void 0;
17
17
  exports.instanceOfAdminListAccountDto = instanceOfAdminListAccountDto;
18
18
  exports.AdminListAccountDtoFromJSON = AdminListAccountDtoFromJSON;
19
19
  exports.AdminListAccountDtoFromJSONTyped = AdminListAccountDtoFromJSONTyped;
@@ -54,6 +54,13 @@ exports.AdminListAccountDtoPayoutProviderEnum = {
54
54
  STRIPE: 'stripe',
55
55
  BANK_ACCOUNT: 'bank_account'
56
56
  };
57
+ /**
58
+ * @export
59
+ */
60
+ exports.AdminListAccountDtoRegistrationSourceEnum = {
61
+ WEB: 'web',
62
+ MOBILE_APP: 'mobile_app'
63
+ };
57
64
  /**
58
65
  * Check if a given object implements the AdminListAccountDto interface.
59
66
  */
@@ -98,6 +105,8 @@ function instanceOfAdminListAccountDto(value) {
98
105
  return false;
99
106
  if (!('companyName' in value) || value['companyName'] === undefined)
100
107
  return false;
108
+ if (!('registrationSource' in value) || value['registrationSource'] === undefined)
109
+ return false;
101
110
  if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
102
111
  return false;
103
112
  if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
@@ -132,6 +141,7 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
132
141
  'affiliateId': json['affiliateId'],
133
142
  'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoFromJSON)(json['portfolioSize']),
134
143
  'companyName': json['companyName'],
144
+ 'registrationSource': json['registrationSource'],
135
145
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
136
146
  'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
137
147
  };
@@ -165,6 +175,7 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
165
175
  'affiliateId': value['affiliateId'],
166
176
  'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoToJSON)(value['portfolioSize']),
167
177
  'companyName': value['companyName'],
178
+ 'registrationSource': value['registrationSource'],
168
179
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
169
180
  'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
170
181
  };
@@ -140,6 +140,12 @@ export interface CustomerSuccessListAccountDto {
140
140
  * @memberof CustomerSuccessListAccountDto
141
141
  */
142
142
  companyName: string | null;
143
+ /**
144
+ * Where the account registered from; null for accounts older than the field.
145
+ * @type {string}
146
+ * @memberof CustomerSuccessListAccountDto
147
+ */
148
+ registrationSource: CustomerSuccessListAccountDtoRegistrationSourceEnum | null;
143
149
  /**
144
150
  * Whether third-party sales data sharing is allowed.
145
151
  * @type {boolean}
@@ -187,6 +193,14 @@ export declare const CustomerSuccessListAccountDtoPayoutProviderEnum: {
187
193
  readonly BANK_ACCOUNT: "bank_account";
188
194
  };
189
195
  export type CustomerSuccessListAccountDtoPayoutProviderEnum = typeof CustomerSuccessListAccountDtoPayoutProviderEnum[keyof typeof CustomerSuccessListAccountDtoPayoutProviderEnum];
196
+ /**
197
+ * @export
198
+ */
199
+ export declare const CustomerSuccessListAccountDtoRegistrationSourceEnum: {
200
+ readonly WEB: "web";
201
+ readonly MOBILE_APP: "mobile_app";
202
+ };
203
+ export type CustomerSuccessListAccountDtoRegistrationSourceEnum = typeof CustomerSuccessListAccountDtoRegistrationSourceEnum[keyof typeof CustomerSuccessListAccountDtoRegistrationSourceEnum];
190
204
  /**
191
205
  * Check if a given object implements the CustomerSuccessListAccountDto interface.
192
206
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CustomerSuccessListAccountDtoPayoutProviderEnum = exports.CustomerSuccessListAccountDtoOnboardingStatusEnum = exports.CustomerSuccessListAccountDtoOnboardingProviderEnum = exports.CustomerSuccessListAccountDtoAliasStatusEnum = void 0;
16
+ exports.CustomerSuccessListAccountDtoRegistrationSourceEnum = exports.CustomerSuccessListAccountDtoPayoutProviderEnum = exports.CustomerSuccessListAccountDtoOnboardingStatusEnum = exports.CustomerSuccessListAccountDtoOnboardingProviderEnum = exports.CustomerSuccessListAccountDtoAliasStatusEnum = void 0;
17
17
  exports.instanceOfCustomerSuccessListAccountDto = instanceOfCustomerSuccessListAccountDto;
18
18
  exports.CustomerSuccessListAccountDtoFromJSON = CustomerSuccessListAccountDtoFromJSON;
19
19
  exports.CustomerSuccessListAccountDtoFromJSONTyped = CustomerSuccessListAccountDtoFromJSONTyped;
@@ -54,6 +54,13 @@ exports.CustomerSuccessListAccountDtoPayoutProviderEnum = {
54
54
  STRIPE: 'stripe',
55
55
  BANK_ACCOUNT: 'bank_account'
56
56
  };
57
+ /**
58
+ * @export
59
+ */
60
+ exports.CustomerSuccessListAccountDtoRegistrationSourceEnum = {
61
+ WEB: 'web',
62
+ MOBILE_APP: 'mobile_app'
63
+ };
57
64
  /**
58
65
  * Check if a given object implements the CustomerSuccessListAccountDto interface.
59
66
  */
@@ -98,6 +105,8 @@ function instanceOfCustomerSuccessListAccountDto(value) {
98
105
  return false;
99
106
  if (!('companyName' in value) || value['companyName'] === undefined)
100
107
  return false;
108
+ if (!('registrationSource' in value) || value['registrationSource'] === undefined)
109
+ return false;
101
110
  if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
102
111
  return false;
103
112
  if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
@@ -132,6 +141,7 @@ function CustomerSuccessListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
132
141
  'affiliateId': json['affiliateId'],
133
142
  'portfolioSize': (0, CustomerSuccessListAccountPortfolioSizeDto_1.CustomerSuccessListAccountPortfolioSizeDtoFromJSON)(json['portfolioSize']),
134
143
  'companyName': json['companyName'],
144
+ 'registrationSource': json['registrationSource'],
135
145
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
136
146
  'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
137
147
  };
@@ -165,6 +175,7 @@ function CustomerSuccessListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
165
175
  'affiliateId': value['affiliateId'],
166
176
  'portfolioSize': (0, CustomerSuccessListAccountPortfolioSizeDto_1.CustomerSuccessListAccountPortfolioSizeDtoToJSON)(value['portfolioSize']),
167
177
  'companyName': value['companyName'],
178
+ 'registrationSource': value['registrationSource'],
168
179
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
169
180
  'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
170
181
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.513",
3
+ "version": "0.0.514",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,6 +36,7 @@ export interface AccountsPublicApiGetAccountInformationRequest {
36
36
  }
37
37
 
38
38
  export interface AccountsPublicApiRegisterRequest {
39
+ xNsClient: string;
39
40
  registerAccountInput: RegisterAccountInput;
40
41
  xRecaptchaToken?: string;
41
42
  }
@@ -85,6 +86,13 @@ export class AccountsPublicApi extends runtime.BaseAPI {
85
86
  * Register account
86
87
  */
87
88
  async registerRaw(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
89
+ if (requestParameters['xNsClient'] == null) {
90
+ throw new runtime.RequiredError(
91
+ 'xNsClient',
92
+ 'Required parameter "xNsClient" was null or undefined when calling register().'
93
+ );
94
+ }
95
+
88
96
  if (requestParameters['registerAccountInput'] == null) {
89
97
  throw new runtime.RequiredError(
90
98
  'registerAccountInput',
@@ -98,6 +106,10 @@ export class AccountsPublicApi extends runtime.BaseAPI {
98
106
 
99
107
  headerParameters['Content-Type'] = 'application/json';
100
108
 
109
+ if (requestParameters['xNsClient'] != null) {
110
+ headerParameters['x-ns-client'] = String(requestParameters['xNsClient']);
111
+ }
112
+
101
113
  if (requestParameters['xRecaptchaToken'] != null) {
102
114
  headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
103
115
  }
@@ -175,6 +175,12 @@ export interface AdminListAccountDto {
175
175
  * @memberof AdminListAccountDto
176
176
  */
177
177
  companyName: string | null;
178
+ /**
179
+ * Where the account registered from; null for accounts older than the field.
180
+ * @type {string}
181
+ * @memberof AdminListAccountDto
182
+ */
183
+ registrationSource: AdminListAccountDtoRegistrationSourceEnum | null;
178
184
  /**
179
185
  * Whether third-party sales data sharing is allowed.
180
186
  * @type {boolean}
@@ -228,6 +234,15 @@ export const AdminListAccountDtoPayoutProviderEnum = {
228
234
  } as const;
229
235
  export type AdminListAccountDtoPayoutProviderEnum = typeof AdminListAccountDtoPayoutProviderEnum[keyof typeof AdminListAccountDtoPayoutProviderEnum];
230
236
 
237
+ /**
238
+ * @export
239
+ */
240
+ export const AdminListAccountDtoRegistrationSourceEnum = {
241
+ WEB: 'web',
242
+ MOBILE_APP: 'mobile_app'
243
+ } as const;
244
+ export type AdminListAccountDtoRegistrationSourceEnum = typeof AdminListAccountDtoRegistrationSourceEnum[keyof typeof AdminListAccountDtoRegistrationSourceEnum];
245
+
231
246
 
232
247
  /**
233
248
  * Check if a given object implements the AdminListAccountDto interface.
@@ -253,6 +268,7 @@ export function instanceOfAdminListAccountDto(value: object): value is AdminList
253
268
  if (!('affiliateId' in value) || value['affiliateId'] === undefined) return false;
254
269
  if (!('portfolioSize' in value) || value['portfolioSize'] === undefined) return false;
255
270
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
271
+ if (!('registrationSource' in value) || value['registrationSource'] === undefined) return false;
256
272
  if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
257
273
  if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
258
274
  return true;
@@ -288,6 +304,7 @@ export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
288
304
  'affiliateId': json['affiliateId'],
289
305
  'portfolioSize': ListAccountPortfolioSizeDtoFromJSON(json['portfolioSize']),
290
306
  'companyName': json['companyName'],
307
+ 'registrationSource': json['registrationSource'],
291
308
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
292
309
  'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
293
310
  };
@@ -324,6 +341,7 @@ export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | nul
324
341
  'affiliateId': value['affiliateId'],
325
342
  'portfolioSize': ListAccountPortfolioSizeDtoToJSON(value['portfolioSize']),
326
343
  'companyName': value['companyName'],
344
+ 'registrationSource': value['registrationSource'],
327
345
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
328
346
  'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
329
347
  };
@@ -175,6 +175,12 @@ export interface CustomerSuccessListAccountDto {
175
175
  * @memberof CustomerSuccessListAccountDto
176
176
  */
177
177
  companyName: string | null;
178
+ /**
179
+ * Where the account registered from; null for accounts older than the field.
180
+ * @type {string}
181
+ * @memberof CustomerSuccessListAccountDto
182
+ */
183
+ registrationSource: CustomerSuccessListAccountDtoRegistrationSourceEnum | null;
178
184
  /**
179
185
  * Whether third-party sales data sharing is allowed.
180
186
  * @type {boolean}
@@ -228,6 +234,15 @@ export const CustomerSuccessListAccountDtoPayoutProviderEnum = {
228
234
  } as const;
229
235
  export type CustomerSuccessListAccountDtoPayoutProviderEnum = typeof CustomerSuccessListAccountDtoPayoutProviderEnum[keyof typeof CustomerSuccessListAccountDtoPayoutProviderEnum];
230
236
 
237
+ /**
238
+ * @export
239
+ */
240
+ export const CustomerSuccessListAccountDtoRegistrationSourceEnum = {
241
+ WEB: 'web',
242
+ MOBILE_APP: 'mobile_app'
243
+ } as const;
244
+ export type CustomerSuccessListAccountDtoRegistrationSourceEnum = typeof CustomerSuccessListAccountDtoRegistrationSourceEnum[keyof typeof CustomerSuccessListAccountDtoRegistrationSourceEnum];
245
+
231
246
 
232
247
  /**
233
248
  * Check if a given object implements the CustomerSuccessListAccountDto interface.
@@ -253,6 +268,7 @@ export function instanceOfCustomerSuccessListAccountDto(value: object): value is
253
268
  if (!('affiliateId' in value) || value['affiliateId'] === undefined) return false;
254
269
  if (!('portfolioSize' in value) || value['portfolioSize'] === undefined) return false;
255
270
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
271
+ if (!('registrationSource' in value) || value['registrationSource'] === undefined) return false;
256
272
  if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
257
273
  if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
258
274
  return true;
@@ -288,6 +304,7 @@ export function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDisc
288
304
  'affiliateId': json['affiliateId'],
289
305
  'portfolioSize': CustomerSuccessListAccountPortfolioSizeDtoFromJSON(json['portfolioSize']),
290
306
  'companyName': json['companyName'],
307
+ 'registrationSource': json['registrationSource'],
291
308
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
292
309
  'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
293
310
  };
@@ -324,6 +341,7 @@ export function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccess
324
341
  'affiliateId': value['affiliateId'],
325
342
  'portfolioSize': CustomerSuccessListAccountPortfolioSizeDtoToJSON(value['portfolioSize']),
326
343
  'companyName': value['companyName'],
344
+ 'registrationSource': value['registrationSource'],
327
345
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
328
346
  'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
329
347
  };