@randock/nameshift-api-client 0.0.201 → 0.0.202

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.
@@ -52,6 +52,7 @@ src/models/BuyerDto.ts
52
52
  src/models/BuyerLeadListItemDomainDto.ts
53
53
  src/models/BuyerLeadListItemDto.ts
54
54
  src/models/BuyerSecurityUserDto.ts
55
+ src/models/BuyerSessionDto.ts
55
56
  src/models/BuyerSubscriptionListItemDto.ts
56
57
  src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
57
58
  src/models/ChangeOrderStatusInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.201
1
+ ## @randock/nameshift-api-client@0.0.202
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.201 --save
39
+ npm install @randock/nameshift-api-client@0.0.202 --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
- 79e66c808a1667d8a12380a4c140c46356dbf7de3dfa9ace3e14756b83bf47ed8a90857d0407151e1583df081b98812e
47
+ 07be8487dc3cd76997bbcb1aab1bbaefc3f52a1d8dff4d250c8358bd48b7a693b1bcd870b459072848fa74bc1e87bc1d
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSecurityUserDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
13
+ import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -112,11 +112,11 @@ export declare class BuyersApi extends runtime.BaseAPI {
112
112
  /**
113
113
  *
114
114
  */
115
- buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSecurityUserDto>>;
115
+ buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionDto>>;
116
116
  /**
117
117
  *
118
118
  */
119
- buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSecurityUserDto>;
119
+ buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto>;
120
120
  /**
121
121
  *
122
122
  */
@@ -263,7 +263,7 @@ var BuyersApi = /** @class */ (function (_super) {
263
263
  }, initOverrides)];
264
264
  case 3:
265
265
  response = _a.sent();
266
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerSecurityUserDtoFromJSON)(jsonValue); })];
266
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerSessionDtoFromJSON)(jsonValue); })];
267
267
  }
268
268
  });
269
269
  });
@@ -0,0 +1,76 @@
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 BuyerSessionDto
16
+ */
17
+ export interface BuyerSessionDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BuyerSessionDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BuyerSessionDto
28
+ */
29
+ email: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BuyerSessionDto
34
+ */
35
+ intercomHash: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BuyerSessionDto
40
+ */
41
+ locale: string;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof BuyerSessionDto
46
+ */
47
+ roles: Array<string>;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof BuyerSessionDto
52
+ */
53
+ type: BuyerSessionDtoTypeEnum;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof BuyerSessionDto
58
+ */
59
+ hasSubscriptions: boolean;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const BuyerSessionDtoTypeEnum: {
65
+ readonly BUYER: "buyer";
66
+ readonly SELLER: "seller";
67
+ };
68
+ export type BuyerSessionDtoTypeEnum = typeof BuyerSessionDtoTypeEnum[keyof typeof BuyerSessionDtoTypeEnum];
69
+ /**
70
+ * Check if a given object implements the BuyerSessionDto interface.
71
+ */
72
+ export declare function instanceOfBuyerSessionDto(value: object): value is BuyerSessionDto;
73
+ export declare function BuyerSessionDtoFromJSON(json: any): BuyerSessionDto;
74
+ export declare function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionDto;
75
+ export declare function BuyerSessionDtoToJSON(json: any): BuyerSessionDto;
76
+ export declare function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
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.BuyerSessionDtoTypeEnum = void 0;
17
+ exports.instanceOfBuyerSessionDto = instanceOfBuyerSessionDto;
18
+ exports.BuyerSessionDtoFromJSON = BuyerSessionDtoFromJSON;
19
+ exports.BuyerSessionDtoFromJSONTyped = BuyerSessionDtoFromJSONTyped;
20
+ exports.BuyerSessionDtoToJSON = BuyerSessionDtoToJSON;
21
+ exports.BuyerSessionDtoToJSONTyped = BuyerSessionDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.BuyerSessionDtoTypeEnum = {
26
+ BUYER: 'buyer',
27
+ SELLER: 'seller'
28
+ };
29
+ /**
30
+ * Check if a given object implements the BuyerSessionDto interface.
31
+ */
32
+ function instanceOfBuyerSessionDto(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 (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function BuyerSessionDtoFromJSON(json) {
50
+ return BuyerSessionDtoFromJSONTyped(json, false);
51
+ }
52
+ function BuyerSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'email': json['email'],
59
+ 'intercomHash': json['intercomHash'],
60
+ 'locale': json['locale'],
61
+ 'roles': json['roles'],
62
+ 'type': json['type'],
63
+ 'hasSubscriptions': json['hasSubscriptions'],
64
+ };
65
+ }
66
+ function BuyerSessionDtoToJSON(json) {
67
+ return BuyerSessionDtoToJSONTyped(json, false);
68
+ }
69
+ function BuyerSessionDtoToJSONTyped(value, ignoreDiscriminator) {
70
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'email': value['email'],
77
+ 'intercomHash': value['intercomHash'],
78
+ 'locale': value['locale'],
79
+ 'roles': value['roles'],
80
+ 'type': value['type'],
81
+ 'hasSubscriptions': value['hasSubscriptions'],
82
+ };
83
+ }
@@ -27,6 +27,7 @@ export * from './BuyerDto';
27
27
  export * from './BuyerLeadListItemDomainDto';
28
28
  export * from './BuyerLeadListItemDto';
29
29
  export * from './BuyerSecurityUserDto';
30
+ export * from './BuyerSessionDto';
30
31
  export * from './BuyerSubscriptionListItemDto';
31
32
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
32
33
  export * from './ChangeOrderStatusInput';
@@ -45,6 +45,7 @@ __exportStar(require("./BuyerDto"), exports);
45
45
  __exportStar(require("./BuyerLeadListItemDomainDto"), exports);
46
46
  __exportStar(require("./BuyerLeadListItemDto"), exports);
47
47
  __exportStar(require("./BuyerSecurityUserDto"), exports);
48
+ __exportStar(require("./BuyerSessionDto"), exports);
48
49
  __exportStar(require("./BuyerSubscriptionListItemDto"), exports);
49
50
  __exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
50
51
  __exportStar(require("./ChangeOrderStatusInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.201",
3
+ "version": "0.0.202",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,7 +20,7 @@ import type {
20
20
  BatchReadBuyerLeadMessageInput,
21
21
  BatchVerifyBuyerLeadsInput,
22
22
  BuyerDomainTransferAuthCodeDto,
23
- BuyerSecurityUserDto,
23
+ BuyerSessionDto,
24
24
  CreateBuyerLeadMessageInput,
25
25
  GetAllInvoices200Response,
26
26
  GetBuyerLeads200Response,
@@ -47,8 +47,8 @@ import {
47
47
  BatchVerifyBuyerLeadsInputToJSON,
48
48
  BuyerDomainTransferAuthCodeDtoFromJSON,
49
49
  BuyerDomainTransferAuthCodeDtoToJSON,
50
- BuyerSecurityUserDtoFromJSON,
51
- BuyerSecurityUserDtoToJSON,
50
+ BuyerSessionDtoFromJSON,
51
+ BuyerSessionDtoToJSON,
52
52
  CreateBuyerLeadMessageInputFromJSON,
53
53
  CreateBuyerLeadMessageInputToJSON,
54
54
  GetAllInvoices200ResponseFromJSON,
@@ -308,7 +308,7 @@ export class BuyersApi extends runtime.BaseAPI {
308
308
  /**
309
309
  *
310
310
  */
311
- async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSecurityUserDto>> {
311
+ async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionDto>> {
312
312
  const queryParameters: any = {};
313
313
 
314
314
  const headerParameters: runtime.HTTPHeaders = {};
@@ -328,13 +328,13 @@ export class BuyersApi extends runtime.BaseAPI {
328
328
  query: queryParameters,
329
329
  }, initOverrides);
330
330
 
331
- return new runtime.JSONApiResponse(response, (jsonValue) => BuyerSecurityUserDtoFromJSON(jsonValue));
331
+ return new runtime.JSONApiResponse(response, (jsonValue) => BuyerSessionDtoFromJSON(jsonValue));
332
332
  }
333
333
 
334
334
  /**
335
335
  *
336
336
  */
337
- async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSecurityUserDto> {
337
+ async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto> {
338
338
  const response = await this.buyerMeRaw(initOverrides);
339
339
  return await response.value();
340
340
  }
@@ -0,0 +1,131 @@
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 BuyerSessionDto
20
+ */
21
+ export interface BuyerSessionDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BuyerSessionDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BuyerSessionDto
32
+ */
33
+ email: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BuyerSessionDto
38
+ */
39
+ intercomHash: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BuyerSessionDto
44
+ */
45
+ locale: string;
46
+ /**
47
+ *
48
+ * @type {Array<string>}
49
+ * @memberof BuyerSessionDto
50
+ */
51
+ roles: Array<string>;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof BuyerSessionDto
56
+ */
57
+ type: BuyerSessionDtoTypeEnum;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof BuyerSessionDto
62
+ */
63
+ hasSubscriptions: boolean;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const BuyerSessionDtoTypeEnum = {
71
+ BUYER: 'buyer',
72
+ SELLER: 'seller'
73
+ } as const;
74
+ export type BuyerSessionDtoTypeEnum = typeof BuyerSessionDtoTypeEnum[keyof typeof BuyerSessionDtoTypeEnum];
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the BuyerSessionDto interface.
79
+ */
80
+ export function instanceOfBuyerSessionDto(value: object): value is BuyerSessionDto {
81
+ if (!('id' in value) || value['id'] === undefined) return false;
82
+ if (!('email' in value) || value['email'] === undefined) return false;
83
+ if (!('intercomHash' in value) || value['intercomHash'] === undefined) return false;
84
+ if (!('locale' in value) || value['locale'] === undefined) return false;
85
+ if (!('roles' in value) || value['roles'] === undefined) return false;
86
+ if (!('type' in value) || value['type'] === undefined) return false;
87
+ if (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function BuyerSessionDtoFromJSON(json: any): BuyerSessionDto {
92
+ return BuyerSessionDtoFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionDto {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'id': json['id'],
102
+ 'email': json['email'],
103
+ 'intercomHash': json['intercomHash'],
104
+ 'locale': json['locale'],
105
+ 'roles': json['roles'],
106
+ 'type': json['type'],
107
+ 'hasSubscriptions': json['hasSubscriptions'],
108
+ };
109
+ }
110
+
111
+ export function BuyerSessionDtoToJSON(json: any): BuyerSessionDto {
112
+ return BuyerSessionDtoToJSONTyped(json, false);
113
+ }
114
+
115
+ export function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'id': value['id'],
123
+ 'email': value['email'],
124
+ 'intercomHash': value['intercomHash'],
125
+ 'locale': value['locale'],
126
+ 'roles': value['roles'],
127
+ 'type': value['type'],
128
+ 'hasSubscriptions': value['hasSubscriptions'],
129
+ };
130
+ }
131
+
@@ -29,6 +29,7 @@ export * from './BuyerDto';
29
29
  export * from './BuyerLeadListItemDomainDto';
30
30
  export * from './BuyerLeadListItemDto';
31
31
  export * from './BuyerSecurityUserDto';
32
+ export * from './BuyerSessionDto';
32
33
  export * from './BuyerSubscriptionListItemDto';
33
34
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
34
35
  export * from './ChangeOrderStatusInput';