pingram 1.0.37-alpha.1627 → 1.0.38-alpha.1628
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/dist/generated/src/apis/ProfileApi.d.ts +1 -25
- package/dist/generated/src/apis/ProfileApi.js +0 -55
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/ConfirmChangeEmailRequest.d.ts +32 -0
- package/dist/generated/src/models/ConfirmChangeEmailRequest.js +50 -0
- package/dist/generated/src/models/StartChangeEmailRequest.d.ts +44 -0
- package/dist/generated/src/models/StartChangeEmailRequest.js +56 -0
- package/dist/generated/src/models/index.d.ts +2 -1
- package/dist/generated/src/models/index.js +2 -1
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
- package/dist/generated/src/models/ChangeEmailRequest.d.ts +0 -32
- package/dist/generated/src/models/ChangeEmailRequest.js +0 -50
|
@@ -10,13 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AcceptInviteRequest, AcceptInviteResponse,
|
|
13
|
+
import type { AcceptInviteRequest, AcceptInviteResponse, DeleteAccountRequest, MFASetupRequest, MFASetupResponse, MFAStatusResponse, MFAVerifyRequest, SuccessResponse } from '../models/index';
|
|
14
14
|
export interface AcceptInviteOperationRequest {
|
|
15
15
|
acceptInviteRequest: AcceptInviteRequest;
|
|
16
16
|
}
|
|
17
|
-
export interface ChangeEmailOperationRequest {
|
|
18
|
-
changeEmailRequest: ChangeEmailRequest;
|
|
19
|
-
}
|
|
20
17
|
export interface DeleteAccountOperationRequest {
|
|
21
18
|
deleteAccountRequest: DeleteAccountRequest;
|
|
22
19
|
}
|
|
@@ -49,19 +46,6 @@ export interface ProfileApiInterface {
|
|
|
49
46
|
* Accept a team invitation using a token
|
|
50
47
|
*/
|
|
51
48
|
acceptInvite(acceptInviteRequest: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptInviteResponse>;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Change the email address of the authenticated user
|
|
55
|
-
* @param {ChangeEmailRequest} changeEmailRequest
|
|
56
|
-
* @param {*} [options] Override http request option.
|
|
57
|
-
* @throws {RequiredError}
|
|
58
|
-
* @memberof ProfileApiInterface
|
|
59
|
-
*/
|
|
60
|
-
changeEmailRaw(requestParameters: ChangeEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
|
|
61
|
-
/**
|
|
62
|
-
* Change the email address of the authenticated user
|
|
63
|
-
*/
|
|
64
|
-
changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
|
|
65
49
|
/**
|
|
66
50
|
*
|
|
67
51
|
* @summary Permanently delete the authenticated user\'s account
|
|
@@ -139,14 +123,6 @@ export declare class ProfileApi extends runtime.BaseAPI implements ProfileApiInt
|
|
|
139
123
|
* Accept a team invitation using a token
|
|
140
124
|
*/
|
|
141
125
|
acceptInvite(acceptInviteRequest: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AcceptInviteResponse>;
|
|
142
|
-
/**
|
|
143
|
-
* Change the email address of the authenticated user
|
|
144
|
-
*/
|
|
145
|
-
changeEmailRaw(requestParameters: ChangeEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
|
|
146
|
-
/**
|
|
147
|
-
* Change the email address of the authenticated user
|
|
148
|
-
*/
|
|
149
|
-
changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
|
|
150
126
|
/**
|
|
151
127
|
* Permanently delete the authenticated user\'s account
|
|
152
128
|
*/
|
|
@@ -80,61 +80,6 @@ class ProfileApi extends runtime.BaseAPI {
|
|
|
80
80
|
const response = await this.acceptInviteRaw({ acceptInviteRequest: acceptInviteRequest }, initOverrides);
|
|
81
81
|
return await response.value();
|
|
82
82
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Change the email address of the authenticated user
|
|
85
|
-
*/
|
|
86
|
-
async changeEmailRaw(requestParameters, initOverrides) {
|
|
87
|
-
if (requestParameters['changeEmailRequest'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('changeEmailRequest', 'Required parameter "changeEmailRequest" was null or undefined when calling changeEmail().');
|
|
89
|
-
}
|
|
90
|
-
const queryParameters = {};
|
|
91
|
-
const headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
if (this.configuration &&
|
|
94
|
-
(this.configuration.username !== undefined ||
|
|
95
|
-
this.configuration.password !== undefined)) {
|
|
96
|
-
headerParameters['Authorization'] =
|
|
97
|
-
'Basic ' +
|
|
98
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
99
|
-
}
|
|
100
|
-
if (this.configuration &&
|
|
101
|
-
(this.configuration.username !== undefined ||
|
|
102
|
-
this.configuration.password !== undefined)) {
|
|
103
|
-
headerParameters['Authorization'] =
|
|
104
|
-
'Basic ' +
|
|
105
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
106
|
-
}
|
|
107
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
108
|
-
const token = this.configuration.accessToken;
|
|
109
|
-
const tokenString = await token('apiKey', []);
|
|
110
|
-
if (tokenString) {
|
|
111
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
if (this.configuration &&
|
|
115
|
-
(this.configuration.username !== undefined ||
|
|
116
|
-
this.configuration.password !== undefined)) {
|
|
117
|
-
headerParameters['Authorization'] =
|
|
118
|
-
'Basic ' +
|
|
119
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
120
|
-
}
|
|
121
|
-
let urlPath = `/profile/change-email`;
|
|
122
|
-
const response = await this.request({
|
|
123
|
-
path: urlPath,
|
|
124
|
-
method: 'POST',
|
|
125
|
-
headers: headerParameters,
|
|
126
|
-
query: queryParameters,
|
|
127
|
-
body: (0, index_1.ChangeEmailRequestToJSON)(requestParameters['changeEmailRequest'])
|
|
128
|
-
}, initOverrides);
|
|
129
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Change the email address of the authenticated user
|
|
133
|
-
*/
|
|
134
|
-
async changeEmail(changeEmailRequest, initOverrides) {
|
|
135
|
-
const response = await this.changeEmailRaw({ changeEmailRequest: changeEmailRequest }, initOverrides);
|
|
136
|
-
return await response.value();
|
|
137
|
-
}
|
|
138
83
|
/**
|
|
139
84
|
* Permanently delete the authenticated user\'s account
|
|
140
85
|
*/
|
|
@@ -36,7 +36,7 @@ export type { GetAutoJoinRequest, InviteMemberRequest, ListMembersRequest, Remov
|
|
|
36
36
|
export { MembersApi } from './MembersApi';
|
|
37
37
|
export type { OrderNumberRequest, ReleaseNumberRequest, SearchAvailableRequest, NumbersApiInterface } from './NumbersApi';
|
|
38
38
|
export { NumbersApi } from './NumbersApi';
|
|
39
|
-
export type { AcceptInviteOperationRequest,
|
|
39
|
+
export type { AcceptInviteOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
|
|
40
40
|
export { ProfileApi } from './ProfileApi';
|
|
41
41
|
export type { CreateUs10dlcBrandRequest, UpdateUs10dlcBrandRequest, UpdateUs10dlcCampaignRequest, RegistrationsApiInterface } from './RegistrationsApi';
|
|
42
42
|
export { RegistrationsApi } from './RegistrationsApi';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 ConfirmChangeEmailRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfirmChangeEmailRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfirmChangeEmailRequest
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ConfirmChangeEmailRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfConfirmChangeEmailRequest(value: object): value is ConfirmChangeEmailRequest;
|
|
29
|
+
export declare function ConfirmChangeEmailRequestFromJSON(json: any): ConfirmChangeEmailRequest;
|
|
30
|
+
export declare function ConfirmChangeEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmChangeEmailRequest;
|
|
31
|
+
export declare function ConfirmChangeEmailRequestToJSON(json: any): ConfirmChangeEmailRequest;
|
|
32
|
+
export declare function ConfirmChangeEmailRequestToJSONTyped(value?: ConfirmChangeEmailRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.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.instanceOfConfirmChangeEmailRequest = instanceOfConfirmChangeEmailRequest;
|
|
17
|
+
exports.ConfirmChangeEmailRequestFromJSON = ConfirmChangeEmailRequestFromJSON;
|
|
18
|
+
exports.ConfirmChangeEmailRequestFromJSONTyped = ConfirmChangeEmailRequestFromJSONTyped;
|
|
19
|
+
exports.ConfirmChangeEmailRequestToJSON = ConfirmChangeEmailRequestToJSON;
|
|
20
|
+
exports.ConfirmChangeEmailRequestToJSONTyped = ConfirmChangeEmailRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConfirmChangeEmailRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConfirmChangeEmailRequest(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ConfirmChangeEmailRequestFromJSON(json) {
|
|
30
|
+
return ConfirmChangeEmailRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ConfirmChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
code: json['code']
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ConfirmChangeEmailRequestToJSON(json) {
|
|
41
|
+
return ConfirmChangeEmailRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ConfirmChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
code: value['code']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 StartChangeEmailRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StartChangeEmailRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StartChangeEmailRequest
|
|
22
|
+
*/
|
|
23
|
+
newEmail: string;
|
|
24
|
+
/**
|
|
25
|
+
* Current account password. Required before a login-email change starts.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StartChangeEmailRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
/**
|
|
31
|
+
* TOTP code. Required when software-token MFA is enabled.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StartChangeEmailRequest
|
|
34
|
+
*/
|
|
35
|
+
mfaCode?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StartChangeEmailRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStartChangeEmailRequest(value: object): value is StartChangeEmailRequest;
|
|
41
|
+
export declare function StartChangeEmailRequestFromJSON(json: any): StartChangeEmailRequest;
|
|
42
|
+
export declare function StartChangeEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartChangeEmailRequest;
|
|
43
|
+
export declare function StartChangeEmailRequestToJSON(json: any): StartChangeEmailRequest;
|
|
44
|
+
export declare function StartChangeEmailRequestToJSONTyped(value?: StartChangeEmailRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.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.instanceOfStartChangeEmailRequest = instanceOfStartChangeEmailRequest;
|
|
17
|
+
exports.StartChangeEmailRequestFromJSON = StartChangeEmailRequestFromJSON;
|
|
18
|
+
exports.StartChangeEmailRequestFromJSONTyped = StartChangeEmailRequestFromJSONTyped;
|
|
19
|
+
exports.StartChangeEmailRequestToJSON = StartChangeEmailRequestToJSON;
|
|
20
|
+
exports.StartChangeEmailRequestToJSONTyped = StartChangeEmailRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StartChangeEmailRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStartChangeEmailRequest(value) {
|
|
25
|
+
if (!('newEmail' in value) || value['newEmail'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StartChangeEmailRequestFromJSON(json) {
|
|
32
|
+
return StartChangeEmailRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StartChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
newEmail: json['newEmail'],
|
|
40
|
+
password: json['password'],
|
|
41
|
+
mfaCode: json['mfaCode'] == null ? undefined : json['mfaCode']
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function StartChangeEmailRequestToJSON(json) {
|
|
45
|
+
return StartChangeEmailRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function StartChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
newEmail: value['newEmail'],
|
|
53
|
+
password: value['password'],
|
|
54
|
+
mfaCode: value['mfaCode']
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -33,9 +33,9 @@ export * from './BroadcastResponseAudience';
|
|
|
33
33
|
export * from './CampaignWebhookResponse';
|
|
34
34
|
export * from './CancelSubscriptionRequest';
|
|
35
35
|
export * from './Chained';
|
|
36
|
-
export * from './ChangeEmailRequest';
|
|
37
36
|
export * from './ChangePhoneRequest';
|
|
38
37
|
export * from './ChannelsEnum';
|
|
38
|
+
export * from './ConfirmChangeEmailRequest';
|
|
39
39
|
export * from './CreateAccountRequest';
|
|
40
40
|
export * from './CreateAccountRequestPlan';
|
|
41
41
|
export * from './CreateAccountResponse';
|
|
@@ -251,6 +251,7 @@ export * from './SenderPostResponse';
|
|
|
251
251
|
export * from './SetDefaultTemplateRequest';
|
|
252
252
|
export * from './SlackConnectInviteResponse';
|
|
253
253
|
export * from './SlackInteractivityResponse';
|
|
254
|
+
export * from './StartChangeEmailRequest';
|
|
254
255
|
export * from './SubNotification';
|
|
255
256
|
export * from './SubNotificationPUTRequest';
|
|
256
257
|
export * from './SuccessResponse';
|
|
@@ -51,9 +51,9 @@ __exportStar(require("./BroadcastResponseAudience"), exports);
|
|
|
51
51
|
__exportStar(require("./CampaignWebhookResponse"), exports);
|
|
52
52
|
__exportStar(require("./CancelSubscriptionRequest"), exports);
|
|
53
53
|
__exportStar(require("./Chained"), exports);
|
|
54
|
-
__exportStar(require("./ChangeEmailRequest"), exports);
|
|
55
54
|
__exportStar(require("./ChangePhoneRequest"), exports);
|
|
56
55
|
__exportStar(require("./ChannelsEnum"), exports);
|
|
56
|
+
__exportStar(require("./ConfirmChangeEmailRequest"), exports);
|
|
57
57
|
__exportStar(require("./CreateAccountRequest"), exports);
|
|
58
58
|
__exportStar(require("./CreateAccountRequestPlan"), exports);
|
|
59
59
|
__exportStar(require("./CreateAccountResponse"), exports);
|
|
@@ -269,6 +269,7 @@ __exportStar(require("./SenderPostResponse"), exports);
|
|
|
269
269
|
__exportStar(require("./SetDefaultTemplateRequest"), exports);
|
|
270
270
|
__exportStar(require("./SlackConnectInviteResponse"), exports);
|
|
271
271
|
__exportStar(require("./SlackInteractivityResponse"), exports);
|
|
272
|
+
__exportStar(require("./StartChangeEmailRequest"), exports);
|
|
272
273
|
__exportStar(require("./SubNotification"), exports);
|
|
273
274
|
__exportStar(require("./SubNotificationPUTRequest"), exports);
|
|
274
275
|
__exportStar(require("./SuccessResponse"), exports);
|
package/dist/src/client.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.Pingram = void 0;
|
|
9
9
|
const src_1 = require("../generated/src");
|
|
10
10
|
// SDK version for User-Agent header (injected at codegen time)
|
|
11
|
-
const SDK_VERSION = '1.0.
|
|
11
|
+
const SDK_VERSION = '1.0.38';
|
|
12
12
|
const USER_AGENT = `pingram-node/${SDK_VERSION}`;
|
|
13
13
|
const src_2 = require("../generated/src");
|
|
14
14
|
const src_3 = require("../generated/src");
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pingram
|
|
3
|
-
* Internal API for notification delivery and management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.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 ChangeEmailRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ChangeEmailRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ChangeEmailRequest
|
|
22
|
-
*/
|
|
23
|
-
newEmail: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ChangeEmailRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfChangeEmailRequest(value: object): value is ChangeEmailRequest;
|
|
29
|
-
export declare function ChangeEmailRequestFromJSON(json: any): ChangeEmailRequest;
|
|
30
|
-
export declare function ChangeEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeEmailRequest;
|
|
31
|
-
export declare function ChangeEmailRequestToJSON(json: any): ChangeEmailRequest;
|
|
32
|
-
export declare function ChangeEmailRequestToJSONTyped(value?: ChangeEmailRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Pingram
|
|
6
|
-
* Internal API for notification delivery and management
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.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.instanceOfChangeEmailRequest = instanceOfChangeEmailRequest;
|
|
17
|
-
exports.ChangeEmailRequestFromJSON = ChangeEmailRequestFromJSON;
|
|
18
|
-
exports.ChangeEmailRequestFromJSONTyped = ChangeEmailRequestFromJSONTyped;
|
|
19
|
-
exports.ChangeEmailRequestToJSON = ChangeEmailRequestToJSON;
|
|
20
|
-
exports.ChangeEmailRequestToJSONTyped = ChangeEmailRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ChangeEmailRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfChangeEmailRequest(value) {
|
|
25
|
-
if (!('newEmail' in value) || value['newEmail'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function ChangeEmailRequestFromJSON(json) {
|
|
30
|
-
return ChangeEmailRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function ChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
newEmail: json['newEmail']
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function ChangeEmailRequestToJSON(json) {
|
|
41
|
-
return ChangeEmailRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function ChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
newEmail: value['newEmail']
|
|
49
|
-
};
|
|
50
|
-
}
|