@randock/nameshift-api-client 0.0.108 → 0.0.110

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.
@@ -33,7 +33,7 @@ src/models/BuyerDomainTransferListItemDomainDto.ts
33
33
  src/models/BuyerDomainTransferListItemDto.ts
34
34
  src/models/BuyerLeadListItemDomainDto.ts
35
35
  src/models/BuyerLeadListItemDto.ts
36
- src/models/BuyerUserDto.ts
36
+ src/models/BuyerSecurityUserDto.ts
37
37
  src/models/ChangeOrderStatusInput.ts
38
38
  src/models/ChartDataPoint.ts
39
39
  src/models/ConflictException.ts
@@ -114,12 +114,13 @@ src/models/PutLeadOfferInput.ts
114
114
  src/models/RegisterAccountInput.ts
115
115
  src/models/RelatedSellerDomain.ts
116
116
  src/models/RequestAccessTokenInput.ts
117
- src/models/SecurityUserDto.ts
118
117
  src/models/SellerDomainTransferAuthCodeDto.ts
119
118
  src/models/SellerDomainTransferDomainDto.ts
120
119
  src/models/SellerDomainTransferDto.ts
121
120
  src/models/SellerDomainTransferListItemDomainDto.ts
122
121
  src/models/SellerDomainTransferListItemDto.ts
122
+ src/models/SellerSecurityUserAccountDto.ts
123
+ src/models/SellerSecurityUserDto.ts
123
124
  src/models/SetDomainTransferConfirmationInput.ts
124
125
  src/models/SetNewPasswordInput.ts
125
126
  src/models/StoreBuyerLocaleInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.108
1
+ ## @randock/nameshift-api-client@0.0.110
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.108 --save
39
+ npm install @randock/nameshift-api-client@0.0.110 --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
- 00ef6f22a96247ade912d79fae52fa2ddf7067d08aadc34ecf473017497476abfaba62ff9cc0b868edecd0a89d68578a
47
+ 40a3a87e8f8e8ebc3325ce82a816b87e3624e8caa5b2180a19fd087f9a5840a7537071e690b00c6bd301c34faea30f0a
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerUserDto, CreateBuyerLeadMessageInput, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
13
+ import type { BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerSecurityUserDto, CreateBuyerLeadMessageInput, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -86,11 +86,11 @@ export declare class BuyersApi extends runtime.BaseAPI {
86
86
  /**
87
87
  *
88
88
  */
89
- buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>>;
89
+ buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSecurityUserDto>>;
90
90
  /**
91
91
  *
92
92
  */
93
- buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto>;
93
+ buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSecurityUserDto>;
94
94
  /**
95
95
  *
96
96
  */
@@ -210,7 +210,7 @@ var BuyersApi = /** @class */ (function (_super) {
210
210
  }, initOverrides)];
211
211
  case 3:
212
212
  response = _a.sent();
213
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerUserDtoFromJSON)(jsonValue); })];
213
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerSecurityUserDtoFromJSON)(jsonValue); })];
214
214
  }
215
215
  });
216
216
  });
@@ -0,0 +1,69 @@
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 BuyerSecurityUserDto
16
+ */
17
+ export interface BuyerSecurityUserDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BuyerSecurityUserDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BuyerSecurityUserDto
28
+ */
29
+ email: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BuyerSecurityUserDto
34
+ */
35
+ intercomHash: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BuyerSecurityUserDto
40
+ */
41
+ locale: string;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof BuyerSecurityUserDto
46
+ */
47
+ roles: Array<string>;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof BuyerSecurityUserDto
52
+ */
53
+ type: BuyerSecurityUserDtoTypeEnum;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const BuyerSecurityUserDtoTypeEnum: {
59
+ readonly BUYER: "buyer";
60
+ readonly SELLER: "seller";
61
+ };
62
+ export type BuyerSecurityUserDtoTypeEnum = typeof BuyerSecurityUserDtoTypeEnum[keyof typeof BuyerSecurityUserDtoTypeEnum];
63
+ /**
64
+ * Check if a given object implements the BuyerSecurityUserDto interface.
65
+ */
66
+ export declare function instanceOfBuyerSecurityUserDto(value: object): value is BuyerSecurityUserDto;
67
+ export declare function BuyerSecurityUserDtoFromJSON(json: any): BuyerSecurityUserDto;
68
+ export declare function BuyerSecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSecurityUserDto;
69
+ export declare function BuyerSecurityUserDtoToJSON(value?: BuyerSecurityUserDto | null): any;
@@ -13,50 +13,62 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfBuyerUserDto = instanceOfBuyerUserDto;
17
- exports.BuyerUserDtoFromJSON = BuyerUserDtoFromJSON;
18
- exports.BuyerUserDtoFromJSONTyped = BuyerUserDtoFromJSONTyped;
19
- exports.BuyerUserDtoToJSON = BuyerUserDtoToJSON;
16
+ exports.BuyerSecurityUserDtoTypeEnum = void 0;
17
+ exports.instanceOfBuyerSecurityUserDto = instanceOfBuyerSecurityUserDto;
18
+ exports.BuyerSecurityUserDtoFromJSON = BuyerSecurityUserDtoFromJSON;
19
+ exports.BuyerSecurityUserDtoFromJSONTyped = BuyerSecurityUserDtoFromJSONTyped;
20
+ exports.BuyerSecurityUserDtoToJSON = BuyerSecurityUserDtoToJSON;
20
21
  /**
21
- * Check if a given object implements the BuyerUserDto interface.
22
+ * @export
22
23
  */
23
- function instanceOfBuyerUserDto(value) {
24
+ exports.BuyerSecurityUserDtoTypeEnum = {
25
+ BUYER: 'buyer',
26
+ SELLER: 'seller'
27
+ };
28
+ /**
29
+ * Check if a given object implements the BuyerSecurityUserDto interface.
30
+ */
31
+ function instanceOfBuyerSecurityUserDto(value) {
24
32
  if (!('id' in value) || value['id'] === undefined)
25
33
  return false;
26
- if (!('buyerId' in value) || value['buyerId'] === undefined)
34
+ if (!('email' in value) || value['email'] === undefined)
35
+ return false;
36
+ if (!('intercomHash' in value) || value['intercomHash'] === undefined)
27
37
  return false;
28
38
  if (!('locale' in value) || value['locale'] === undefined)
29
39
  return false;
30
- if (!('email' in value) || value['email'] === undefined)
31
- return false;
32
40
  if (!('roles' in value) || value['roles'] === undefined)
33
41
  return false;
42
+ if (!('type' in value) || value['type'] === undefined)
43
+ return false;
34
44
  return true;
35
45
  }
36
- function BuyerUserDtoFromJSON(json) {
37
- return BuyerUserDtoFromJSONTyped(json, false);
46
+ function BuyerSecurityUserDtoFromJSON(json) {
47
+ return BuyerSecurityUserDtoFromJSONTyped(json, false);
38
48
  }
39
- function BuyerUserDtoFromJSONTyped(json, ignoreDiscriminator) {
49
+ function BuyerSecurityUserDtoFromJSONTyped(json, ignoreDiscriminator) {
40
50
  if (json == null) {
41
51
  return json;
42
52
  }
43
53
  return {
44
54
  'id': json['id'],
45
- 'buyerId': json['buyerId'],
46
- 'locale': json['locale'],
47
55
  'email': json['email'],
56
+ 'intercomHash': json['intercomHash'],
57
+ 'locale': json['locale'],
48
58
  'roles': json['roles'],
59
+ 'type': json['type'],
49
60
  };
50
61
  }
51
- function BuyerUserDtoToJSON(value) {
62
+ function BuyerSecurityUserDtoToJSON(value) {
52
63
  if (value == null) {
53
64
  return value;
54
65
  }
55
66
  return {
56
67
  'id': value['id'],
57
- 'buyerId': value['buyerId'],
58
- 'locale': value['locale'],
59
68
  'email': value['email'],
69
+ 'intercomHash': value['intercomHash'],
70
+ 'locale': value['locale'],
60
71
  'roles': value['roles'],
72
+ 'type': value['type'],
61
73
  };
62
74
  }
@@ -0,0 +1,37 @@
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 SellerSecurityUserAccountDto
16
+ */
17
+ export interface SellerSecurityUserAccountDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SellerSecurityUserAccountDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SellerSecurityUserAccountDto
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SellerSecurityUserAccountDto interface.
33
+ */
34
+ export declare function instanceOfSellerSecurityUserAccountDto(value: object): value is SellerSecurityUserAccountDto;
35
+ export declare function SellerSecurityUserAccountDtoFromJSON(json: any): SellerSecurityUserAccountDto;
36
+ export declare function SellerSecurityUserAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSecurityUserAccountDto;
37
+ export declare function SellerSecurityUserAccountDtoToJSON(value?: SellerSecurityUserAccountDto | null): any;
@@ -0,0 +1,50 @@
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.instanceOfSellerSecurityUserAccountDto = instanceOfSellerSecurityUserAccountDto;
17
+ exports.SellerSecurityUserAccountDtoFromJSON = SellerSecurityUserAccountDtoFromJSON;
18
+ exports.SellerSecurityUserAccountDtoFromJSONTyped = SellerSecurityUserAccountDtoFromJSONTyped;
19
+ exports.SellerSecurityUserAccountDtoToJSON = SellerSecurityUserAccountDtoToJSON;
20
+ /**
21
+ * Check if a given object implements the SellerSecurityUserAccountDto interface.
22
+ */
23
+ function instanceOfSellerSecurityUserAccountDto(value) {
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function SellerSecurityUserAccountDtoFromJSON(json) {
31
+ return SellerSecurityUserAccountDtoFromJSONTyped(json, false);
32
+ }
33
+ function SellerSecurityUserAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'name': json['name'],
40
+ };
41
+ }
42
+ function SellerSecurityUserAccountDtoToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'name': value['name'],
49
+ };
50
+ }
@@ -0,0 +1,88 @@
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 { SellerSecurityUserAccountDto } from './SellerSecurityUserAccountDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SellerSecurityUserDto
17
+ */
18
+ export interface SellerSecurityUserDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SellerSecurityUserDto
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SellerSecurityUserDto
29
+ */
30
+ email: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SellerSecurityUserDto
35
+ */
36
+ intercomHash: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SellerSecurityUserDto
41
+ */
42
+ locale: string;
43
+ /**
44
+ *
45
+ * @type {Array<string>}
46
+ * @memberof SellerSecurityUserDto
47
+ */
48
+ roles: Array<string>;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SellerSecurityUserDto
53
+ */
54
+ type: SellerSecurityUserDtoTypeEnum;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof SellerSecurityUserDto
59
+ */
60
+ firstname: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SellerSecurityUserDto
65
+ */
66
+ lastname: string;
67
+ /**
68
+ *
69
+ * @type {SellerSecurityUserAccountDto}
70
+ * @memberof SellerSecurityUserDto
71
+ */
72
+ account: SellerSecurityUserAccountDto;
73
+ }
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const SellerSecurityUserDtoTypeEnum: {
78
+ readonly BUYER: "buyer";
79
+ readonly SELLER: "seller";
80
+ };
81
+ export type SellerSecurityUserDtoTypeEnum = typeof SellerSecurityUserDtoTypeEnum[keyof typeof SellerSecurityUserDtoTypeEnum];
82
+ /**
83
+ * Check if a given object implements the SellerSecurityUserDto interface.
84
+ */
85
+ export declare function instanceOfSellerSecurityUserDto(value: object): value is SellerSecurityUserDto;
86
+ export declare function SellerSecurityUserDtoFromJSON(json: any): SellerSecurityUserDto;
87
+ export declare function SellerSecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSecurityUserDto;
88
+ export declare function SellerSecurityUserDtoToJSON(value?: SellerSecurityUserDto | null): any;
@@ -0,0 +1,87 @@
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.SellerSecurityUserDtoTypeEnum = void 0;
17
+ exports.instanceOfSellerSecurityUserDto = instanceOfSellerSecurityUserDto;
18
+ exports.SellerSecurityUserDtoFromJSON = SellerSecurityUserDtoFromJSON;
19
+ exports.SellerSecurityUserDtoFromJSONTyped = SellerSecurityUserDtoFromJSONTyped;
20
+ exports.SellerSecurityUserDtoToJSON = SellerSecurityUserDtoToJSON;
21
+ var SellerSecurityUserAccountDto_1 = require("./SellerSecurityUserAccountDto");
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SellerSecurityUserDtoTypeEnum = {
26
+ BUYER: 'buyer',
27
+ SELLER: 'seller'
28
+ };
29
+ /**
30
+ * Check if a given object implements the SellerSecurityUserDto interface.
31
+ */
32
+ function instanceOfSellerSecurityUserDto(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('email' in value) || value['email'] === undefined)
36
+ return false;
37
+ if (!('intercomHash' in value) || value['intercomHash'] === undefined)
38
+ return false;
39
+ if (!('locale' in value) || value['locale'] === undefined)
40
+ return false;
41
+ if (!('roles' in value) || value['roles'] === undefined)
42
+ return false;
43
+ if (!('type' in value) || value['type'] === undefined)
44
+ return false;
45
+ if (!('firstname' in value) || value['firstname'] === undefined)
46
+ return false;
47
+ if (!('lastname' in value) || value['lastname'] === undefined)
48
+ return false;
49
+ if (!('account' in value) || value['account'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function SellerSecurityUserDtoFromJSON(json) {
54
+ return SellerSecurityUserDtoFromJSONTyped(json, false);
55
+ }
56
+ function SellerSecurityUserDtoFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'email': json['email'],
63
+ 'intercomHash': json['intercomHash'],
64
+ 'locale': json['locale'],
65
+ 'roles': json['roles'],
66
+ 'type': json['type'],
67
+ 'firstname': json['firstname'],
68
+ 'lastname': json['lastname'],
69
+ 'account': (0, SellerSecurityUserAccountDto_1.SellerSecurityUserAccountDtoFromJSON)(json['account']),
70
+ };
71
+ }
72
+ function SellerSecurityUserDtoToJSON(value) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'email': value['email'],
79
+ 'intercomHash': value['intercomHash'],
80
+ 'locale': value['locale'],
81
+ 'roles': value['roles'],
82
+ 'type': value['type'],
83
+ 'firstname': value['firstname'],
84
+ 'lastname': value['lastname'],
85
+ 'account': (0, SellerSecurityUserAccountDto_1.SellerSecurityUserAccountDtoToJSON)(value['account']),
86
+ };
87
+ }
@@ -13,7 +13,7 @@ export * from './BuyerDomainTransferListItemDomainDto';
13
13
  export * from './BuyerDomainTransferListItemDto';
14
14
  export * from './BuyerLeadListItemDomainDto';
15
15
  export * from './BuyerLeadListItemDto';
16
- export * from './BuyerUserDto';
16
+ export * from './BuyerSecurityUserDto';
17
17
  export * from './ChangeOrderStatusInput';
18
18
  export * from './ChartDataPoint';
19
19
  export * from './ConflictException';
@@ -94,12 +94,13 @@ export * from './PutLeadOfferInput';
94
94
  export * from './RegisterAccountInput';
95
95
  export * from './RelatedSellerDomain';
96
96
  export * from './RequestAccessTokenInput';
97
- export * from './SecurityUserDto';
98
97
  export * from './SellerDomainTransferAuthCodeDto';
99
98
  export * from './SellerDomainTransferDomainDto';
100
99
  export * from './SellerDomainTransferDto';
101
100
  export * from './SellerDomainTransferListItemDomainDto';
102
101
  export * from './SellerDomainTransferListItemDto';
102
+ export * from './SellerSecurityUserAccountDto';
103
+ export * from './SellerSecurityUserDto';
103
104
  export * from './SetDomainTransferConfirmationInput';
104
105
  export * from './SetNewPasswordInput';
105
106
  export * from './StoreBuyerLocaleInput';
@@ -31,7 +31,7 @@ __exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
31
31
  __exportStar(require("./BuyerDomainTransferListItemDto"), exports);
32
32
  __exportStar(require("./BuyerLeadListItemDomainDto"), exports);
33
33
  __exportStar(require("./BuyerLeadListItemDto"), exports);
34
- __exportStar(require("./BuyerUserDto"), exports);
34
+ __exportStar(require("./BuyerSecurityUserDto"), exports);
35
35
  __exportStar(require("./ChangeOrderStatusInput"), exports);
36
36
  __exportStar(require("./ChartDataPoint"), exports);
37
37
  __exportStar(require("./ConflictException"), exports);
@@ -112,12 +112,13 @@ __exportStar(require("./PutLeadOfferInput"), exports);
112
112
  __exportStar(require("./RegisterAccountInput"), exports);
113
113
  __exportStar(require("./RelatedSellerDomain"), exports);
114
114
  __exportStar(require("./RequestAccessTokenInput"), exports);
115
- __exportStar(require("./SecurityUserDto"), exports);
116
115
  __exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
117
116
  __exportStar(require("./SellerDomainTransferDomainDto"), exports);
118
117
  __exportStar(require("./SellerDomainTransferDto"), exports);
119
118
  __exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
120
119
  __exportStar(require("./SellerDomainTransferListItemDto"), exports);
120
+ __exportStar(require("./SellerSecurityUserAccountDto"), exports);
121
+ __exportStar(require("./SellerSecurityUserDto"), exports);
121
122
  __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
122
123
  __exportStar(require("./SetNewPasswordInput"), exports);
123
124
  __exportStar(require("./StoreBuyerLocaleInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -18,7 +18,7 @@ import type {
18
18
  BadRequestException,
19
19
  BatchReadBuyerLeadMessageInput,
20
20
  BuyerDomainTransferAuthCodeDto,
21
- BuyerUserDto,
21
+ BuyerSecurityUserDto,
22
22
  CreateBuyerLeadMessageInput,
23
23
  GetBuyerInvoices200Response,
24
24
  GetBuyerLeads200Response,
@@ -39,8 +39,8 @@ import {
39
39
  BatchReadBuyerLeadMessageInputToJSON,
40
40
  BuyerDomainTransferAuthCodeDtoFromJSON,
41
41
  BuyerDomainTransferAuthCodeDtoToJSON,
42
- BuyerUserDtoFromJSON,
43
- BuyerUserDtoToJSON,
42
+ BuyerSecurityUserDtoFromJSON,
43
+ BuyerSecurityUserDtoToJSON,
44
44
  CreateBuyerLeadMessageInputFromJSON,
45
45
  CreateBuyerLeadMessageInputToJSON,
46
46
  GetBuyerInvoices200ResponseFromJSON,
@@ -230,7 +230,7 @@ export class BuyersApi extends runtime.BaseAPI {
230
230
  /**
231
231
  *
232
232
  */
233
- async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>> {
233
+ async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSecurityUserDto>> {
234
234
  const queryParameters: any = {};
235
235
 
236
236
  const headerParameters: runtime.HTTPHeaders = {};
@@ -250,13 +250,13 @@ export class BuyersApi extends runtime.BaseAPI {
250
250
  query: queryParameters,
251
251
  }, initOverrides);
252
252
 
253
- return new runtime.JSONApiResponse(response, (jsonValue) => BuyerUserDtoFromJSON(jsonValue));
253
+ return new runtime.JSONApiResponse(response, (jsonValue) => BuyerSecurityUserDtoFromJSON(jsonValue));
254
254
  }
255
255
 
256
256
  /**
257
257
  *
258
258
  */
259
- async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto> {
259
+ async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSecurityUserDto> {
260
260
  const response = await this.buyerMeRaw(initOverrides);
261
261
  return await response.value();
262
262
  }
@@ -0,0 +1,117 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BuyerSecurityUserDto
20
+ */
21
+ export interface BuyerSecurityUserDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BuyerSecurityUserDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BuyerSecurityUserDto
32
+ */
33
+ email: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BuyerSecurityUserDto
38
+ */
39
+ intercomHash: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BuyerSecurityUserDto
44
+ */
45
+ locale: string;
46
+ /**
47
+ *
48
+ * @type {Array<string>}
49
+ * @memberof BuyerSecurityUserDto
50
+ */
51
+ roles: Array<string>;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof BuyerSecurityUserDto
56
+ */
57
+ type: BuyerSecurityUserDtoTypeEnum;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const BuyerSecurityUserDtoTypeEnum = {
65
+ BUYER: 'buyer',
66
+ SELLER: 'seller'
67
+ } as const;
68
+ export type BuyerSecurityUserDtoTypeEnum = typeof BuyerSecurityUserDtoTypeEnum[keyof typeof BuyerSecurityUserDtoTypeEnum];
69
+
70
+
71
+ /**
72
+ * Check if a given object implements the BuyerSecurityUserDto interface.
73
+ */
74
+ export function instanceOfBuyerSecurityUserDto(value: object): value is BuyerSecurityUserDto {
75
+ if (!('id' in value) || value['id'] === undefined) return false;
76
+ if (!('email' in value) || value['email'] === undefined) return false;
77
+ if (!('intercomHash' in value) || value['intercomHash'] === undefined) return false;
78
+ if (!('locale' in value) || value['locale'] === undefined) return false;
79
+ if (!('roles' in value) || value['roles'] === undefined) return false;
80
+ if (!('type' in value) || value['type'] === undefined) return false;
81
+ return true;
82
+ }
83
+
84
+ export function BuyerSecurityUserDtoFromJSON(json: any): BuyerSecurityUserDto {
85
+ return BuyerSecurityUserDtoFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function BuyerSecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSecurityUserDto {
89
+ if (json == null) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'id': json['id'],
95
+ 'email': json['email'],
96
+ 'intercomHash': json['intercomHash'],
97
+ 'locale': json['locale'],
98
+ 'roles': json['roles'],
99
+ 'type': json['type'],
100
+ };
101
+ }
102
+
103
+ export function BuyerSecurityUserDtoToJSON(value?: BuyerSecurityUserDto | null): any {
104
+ if (value == null) {
105
+ return value;
106
+ }
107
+ return {
108
+
109
+ 'id': value['id'],
110
+ 'email': value['email'],
111
+ 'intercomHash': value['intercomHash'],
112
+ 'locale': value['locale'],
113
+ 'roles': value['roles'],
114
+ 'type': value['type'],
115
+ };
116
+ }
117
+
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SellerSecurityUserAccountDto
20
+ */
21
+ export interface SellerSecurityUserAccountDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SellerSecurityUserAccountDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SellerSecurityUserAccountDto
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SellerSecurityUserAccountDto interface.
38
+ */
39
+ export function instanceOfSellerSecurityUserAccountDto(value: object): value is SellerSecurityUserAccountDto {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SellerSecurityUserAccountDtoFromJSON(json: any): SellerSecurityUserAccountDto {
46
+ return SellerSecurityUserAccountDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SellerSecurityUserAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSecurityUserAccountDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function SellerSecurityUserAccountDtoToJSON(value?: SellerSecurityUserAccountDto | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'id': value['id'],
67
+ 'name': value['name'],
68
+ };
69
+ }
70
+
@@ -0,0 +1,151 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { SellerSecurityUserAccountDto } from './SellerSecurityUserAccountDto';
17
+ import {
18
+ SellerSecurityUserAccountDtoFromJSON,
19
+ SellerSecurityUserAccountDtoFromJSONTyped,
20
+ SellerSecurityUserAccountDtoToJSON,
21
+ } from './SellerSecurityUserAccountDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SellerSecurityUserDto
27
+ */
28
+ export interface SellerSecurityUserDto {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SellerSecurityUserDto
33
+ */
34
+ id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SellerSecurityUserDto
39
+ */
40
+ email: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof SellerSecurityUserDto
45
+ */
46
+ intercomHash: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof SellerSecurityUserDto
51
+ */
52
+ locale: string;
53
+ /**
54
+ *
55
+ * @type {Array<string>}
56
+ * @memberof SellerSecurityUserDto
57
+ */
58
+ roles: Array<string>;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof SellerSecurityUserDto
63
+ */
64
+ type: SellerSecurityUserDtoTypeEnum;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof SellerSecurityUserDto
69
+ */
70
+ firstname: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof SellerSecurityUserDto
75
+ */
76
+ lastname: string;
77
+ /**
78
+ *
79
+ * @type {SellerSecurityUserAccountDto}
80
+ * @memberof SellerSecurityUserDto
81
+ */
82
+ account: SellerSecurityUserAccountDto;
83
+ }
84
+
85
+
86
+ /**
87
+ * @export
88
+ */
89
+ export const SellerSecurityUserDtoTypeEnum = {
90
+ BUYER: 'buyer',
91
+ SELLER: 'seller'
92
+ } as const;
93
+ export type SellerSecurityUserDtoTypeEnum = typeof SellerSecurityUserDtoTypeEnum[keyof typeof SellerSecurityUserDtoTypeEnum];
94
+
95
+
96
+ /**
97
+ * Check if a given object implements the SellerSecurityUserDto interface.
98
+ */
99
+ export function instanceOfSellerSecurityUserDto(value: object): value is SellerSecurityUserDto {
100
+ if (!('id' in value) || value['id'] === undefined) return false;
101
+ if (!('email' in value) || value['email'] === undefined) return false;
102
+ if (!('intercomHash' in value) || value['intercomHash'] === undefined) return false;
103
+ if (!('locale' in value) || value['locale'] === undefined) return false;
104
+ if (!('roles' in value) || value['roles'] === undefined) return false;
105
+ if (!('type' in value) || value['type'] === undefined) return false;
106
+ if (!('firstname' in value) || value['firstname'] === undefined) return false;
107
+ if (!('lastname' in value) || value['lastname'] === undefined) return false;
108
+ if (!('account' in value) || value['account'] === undefined) return false;
109
+ return true;
110
+ }
111
+
112
+ export function SellerSecurityUserDtoFromJSON(json: any): SellerSecurityUserDto {
113
+ return SellerSecurityUserDtoFromJSONTyped(json, false);
114
+ }
115
+
116
+ export function SellerSecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSecurityUserDto {
117
+ if (json == null) {
118
+ return json;
119
+ }
120
+ return {
121
+
122
+ 'id': json['id'],
123
+ 'email': json['email'],
124
+ 'intercomHash': json['intercomHash'],
125
+ 'locale': json['locale'],
126
+ 'roles': json['roles'],
127
+ 'type': json['type'],
128
+ 'firstname': json['firstname'],
129
+ 'lastname': json['lastname'],
130
+ 'account': SellerSecurityUserAccountDtoFromJSON(json['account']),
131
+ };
132
+ }
133
+
134
+ export function SellerSecurityUserDtoToJSON(value?: SellerSecurityUserDto | null): any {
135
+ if (value == null) {
136
+ return value;
137
+ }
138
+ return {
139
+
140
+ 'id': value['id'],
141
+ 'email': value['email'],
142
+ 'intercomHash': value['intercomHash'],
143
+ 'locale': value['locale'],
144
+ 'roles': value['roles'],
145
+ 'type': value['type'],
146
+ 'firstname': value['firstname'],
147
+ 'lastname': value['lastname'],
148
+ 'account': SellerSecurityUserAccountDtoToJSON(value['account']),
149
+ };
150
+ }
151
+
@@ -15,7 +15,7 @@ export * from './BuyerDomainTransferListItemDomainDto';
15
15
  export * from './BuyerDomainTransferListItemDto';
16
16
  export * from './BuyerLeadListItemDomainDto';
17
17
  export * from './BuyerLeadListItemDto';
18
- export * from './BuyerUserDto';
18
+ export * from './BuyerSecurityUserDto';
19
19
  export * from './ChangeOrderStatusInput';
20
20
  export * from './ChartDataPoint';
21
21
  export * from './ConflictException';
@@ -96,12 +96,13 @@ export * from './PutLeadOfferInput';
96
96
  export * from './RegisterAccountInput';
97
97
  export * from './RelatedSellerDomain';
98
98
  export * from './RequestAccessTokenInput';
99
- export * from './SecurityUserDto';
100
99
  export * from './SellerDomainTransferAuthCodeDto';
101
100
  export * from './SellerDomainTransferDomainDto';
102
101
  export * from './SellerDomainTransferDto';
103
102
  export * from './SellerDomainTransferListItemDomainDto';
104
103
  export * from './SellerDomainTransferListItemDto';
104
+ export * from './SellerSecurityUserAccountDto';
105
+ export * from './SellerSecurityUserDto';
105
106
  export * from './SetDomainTransferConfirmationInput';
106
107
  export * from './SetNewPasswordInput';
107
108
  export * from './StoreBuyerLocaleInput';
@@ -1,55 +0,0 @@
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 BuyerUserDto
16
- */
17
- export interface BuyerUserDto {
18
- /**
19
- * Buyer access token id
20
- * @type {string}
21
- * @memberof BuyerUserDto
22
- */
23
- id: string;
24
- /**
25
- * Buyer Id
26
- * @type {string}
27
- * @memberof BuyerUserDto
28
- */
29
- buyerId: string;
30
- /**
31
- * Buyer user locale
32
- * @type {string}
33
- * @memberof BuyerUserDto
34
- */
35
- locale: string;
36
- /**
37
- * Buyer user email address
38
- * @type {string}
39
- * @memberof BuyerUserDto
40
- */
41
- email: string;
42
- /**
43
- * Buyer user roles
44
- * @type {Array<string>}
45
- * @memberof BuyerUserDto
46
- */
47
- roles: Array<string>;
48
- }
49
- /**
50
- * Check if a given object implements the BuyerUserDto interface.
51
- */
52
- export declare function instanceOfBuyerUserDto(value: object): value is BuyerUserDto;
53
- export declare function BuyerUserDtoFromJSON(json: any): BuyerUserDto;
54
- export declare function BuyerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerUserDto;
55
- export declare function BuyerUserDtoToJSON(value?: BuyerUserDto | null): any;
@@ -1,61 +0,0 @@
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 SecurityUserDto
16
- */
17
- export interface SecurityUserDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SecurityUserDto
22
- */
23
- id: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof SecurityUserDto
28
- */
29
- accountId: string;
30
- /**
31
- *
32
- * @type {Array<string>}
33
- * @memberof SecurityUserDto
34
- */
35
- roles: Array<string>;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof SecurityUserDto
40
- */
41
- firstname: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SecurityUserDto
46
- */
47
- lastname: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof SecurityUserDto
52
- */
53
- intercomHash: string;
54
- }
55
- /**
56
- * Check if a given object implements the SecurityUserDto interface.
57
- */
58
- export declare function instanceOfSecurityUserDto(value: object): value is SecurityUserDto;
59
- export declare function SecurityUserDtoFromJSON(json: any): SecurityUserDto;
60
- export declare function SecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityUserDto;
61
- export declare function SecurityUserDtoToJSON(value?: SecurityUserDto | null): any;
@@ -1,66 +0,0 @@
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.instanceOfSecurityUserDto = instanceOfSecurityUserDto;
17
- exports.SecurityUserDtoFromJSON = SecurityUserDtoFromJSON;
18
- exports.SecurityUserDtoFromJSONTyped = SecurityUserDtoFromJSONTyped;
19
- exports.SecurityUserDtoToJSON = SecurityUserDtoToJSON;
20
- /**
21
- * Check if a given object implements the SecurityUserDto interface.
22
- */
23
- function instanceOfSecurityUserDto(value) {
24
- if (!('id' in value) || value['id'] === undefined)
25
- return false;
26
- if (!('accountId' in value) || value['accountId'] === undefined)
27
- return false;
28
- if (!('roles' in value) || value['roles'] === undefined)
29
- return false;
30
- if (!('firstname' in value) || value['firstname'] === undefined)
31
- return false;
32
- if (!('lastname' in value) || value['lastname'] === undefined)
33
- return false;
34
- if (!('intercomHash' in value) || value['intercomHash'] === undefined)
35
- return false;
36
- return true;
37
- }
38
- function SecurityUserDtoFromJSON(json) {
39
- return SecurityUserDtoFromJSONTyped(json, false);
40
- }
41
- function SecurityUserDtoFromJSONTyped(json, ignoreDiscriminator) {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
- 'id': json['id'],
47
- 'accountId': json['accountId'],
48
- 'roles': json['roles'],
49
- 'firstname': json['firstname'],
50
- 'lastname': json['lastname'],
51
- 'intercomHash': json['intercomHash'],
52
- };
53
- }
54
- function SecurityUserDtoToJSON(value) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'id': value['id'],
60
- 'accountId': value['accountId'],
61
- 'roles': value['roles'],
62
- 'firstname': value['firstname'],
63
- 'lastname': value['lastname'],
64
- 'intercomHash': value['intercomHash'],
65
- };
66
- }
@@ -1,97 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift API
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface BuyerUserDto
20
- */
21
- export interface BuyerUserDto {
22
- /**
23
- * Buyer access token id
24
- * @type {string}
25
- * @memberof BuyerUserDto
26
- */
27
- id: string;
28
- /**
29
- * Buyer Id
30
- * @type {string}
31
- * @memberof BuyerUserDto
32
- */
33
- buyerId: string;
34
- /**
35
- * Buyer user locale
36
- * @type {string}
37
- * @memberof BuyerUserDto
38
- */
39
- locale: string;
40
- /**
41
- * Buyer user email address
42
- * @type {string}
43
- * @memberof BuyerUserDto
44
- */
45
- email: string;
46
- /**
47
- * Buyer user roles
48
- * @type {Array<string>}
49
- * @memberof BuyerUserDto
50
- */
51
- roles: Array<string>;
52
- }
53
-
54
- /**
55
- * Check if a given object implements the BuyerUserDto interface.
56
- */
57
- export function instanceOfBuyerUserDto(value: object): value is BuyerUserDto {
58
- if (!('id' in value) || value['id'] === undefined) return false;
59
- if (!('buyerId' in value) || value['buyerId'] === undefined) return false;
60
- if (!('locale' in value) || value['locale'] === undefined) return false;
61
- if (!('email' in value) || value['email'] === undefined) return false;
62
- if (!('roles' in value) || value['roles'] === undefined) return false;
63
- return true;
64
- }
65
-
66
- export function BuyerUserDtoFromJSON(json: any): BuyerUserDto {
67
- return BuyerUserDtoFromJSONTyped(json, false);
68
- }
69
-
70
- export function BuyerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerUserDto {
71
- if (json == null) {
72
- return json;
73
- }
74
- return {
75
-
76
- 'id': json['id'],
77
- 'buyerId': json['buyerId'],
78
- 'locale': json['locale'],
79
- 'email': json['email'],
80
- 'roles': json['roles'],
81
- };
82
- }
83
-
84
- export function BuyerUserDtoToJSON(value?: BuyerUserDto | null): any {
85
- if (value == null) {
86
- return value;
87
- }
88
- return {
89
-
90
- 'id': value['id'],
91
- 'buyerId': value['buyerId'],
92
- 'locale': value['locale'],
93
- 'email': value['email'],
94
- 'roles': value['roles'],
95
- };
96
- }
97
-
@@ -1,106 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift API
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface SecurityUserDto
20
- */
21
- export interface SecurityUserDto {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof SecurityUserDto
26
- */
27
- id: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof SecurityUserDto
32
- */
33
- accountId: string;
34
- /**
35
- *
36
- * @type {Array<string>}
37
- * @memberof SecurityUserDto
38
- */
39
- roles: Array<string>;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof SecurityUserDto
44
- */
45
- firstname: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof SecurityUserDto
50
- */
51
- lastname: string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof SecurityUserDto
56
- */
57
- intercomHash: string;
58
- }
59
-
60
- /**
61
- * Check if a given object implements the SecurityUserDto interface.
62
- */
63
- export function instanceOfSecurityUserDto(value: object): value is SecurityUserDto {
64
- if (!('id' in value) || value['id'] === undefined) return false;
65
- if (!('accountId' in value) || value['accountId'] === undefined) return false;
66
- if (!('roles' in value) || value['roles'] === undefined) return false;
67
- if (!('firstname' in value) || value['firstname'] === undefined) return false;
68
- if (!('lastname' in value) || value['lastname'] === undefined) return false;
69
- if (!('intercomHash' in value) || value['intercomHash'] === undefined) return false;
70
- return true;
71
- }
72
-
73
- export function SecurityUserDtoFromJSON(json: any): SecurityUserDto {
74
- return SecurityUserDtoFromJSONTyped(json, false);
75
- }
76
-
77
- export function SecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityUserDto {
78
- if (json == null) {
79
- return json;
80
- }
81
- return {
82
-
83
- 'id': json['id'],
84
- 'accountId': json['accountId'],
85
- 'roles': json['roles'],
86
- 'firstname': json['firstname'],
87
- 'lastname': json['lastname'],
88
- 'intercomHash': json['intercomHash'],
89
- };
90
- }
91
-
92
- export function SecurityUserDtoToJSON(value?: SecurityUserDto | null): any {
93
- if (value == null) {
94
- return value;
95
- }
96
- return {
97
-
98
- 'id': value['id'],
99
- 'accountId': value['accountId'],
100
- 'roles': value['roles'],
101
- 'firstname': value['firstname'],
102
- 'lastname': value['lastname'],
103
- 'intercomHash': value['intercomHash'],
104
- };
105
- }
106
-