pingram 1.0.40-alpha.1721 → 1.0.40-alpha.1722
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/models/ConfirmChangeEmailRequest.d.ts +6 -0
- package/dist/generated/src/models/ConfirmChangeEmailRequest.js +4 -2
- package/dist/generated/src/models/ConfirmChangeEmailResponse.d.ts +38 -0
- package/dist/generated/src/models/ConfirmChangeEmailResponse.js +55 -0
- package/dist/generated/src/models/ConfirmPasswordChangeRequest.d.ts +38 -0
- package/dist/generated/src/models/ConfirmPasswordChangeRequest.js +54 -0
- package/dist/generated/src/models/PasswordStatusResponse.d.ts +3 -3
- package/dist/generated/src/models/PasswordStatusResponse.js +3 -3
- package/dist/generated/src/models/StartChangeEmailRequest.d.ts +9 -3
- package/dist/generated/src/models/StartChangeEmailRequest.js +3 -3
- package/dist/generated/src/models/StartPasswordChangeRequest.d.ts +44 -0
- package/dist/generated/src/models/StartPasswordChangeRequest.js +54 -0
- package/dist/generated/src/models/index.d.ts +3 -1
- package/dist/generated/src/models/index.js +3 -1
- package/package.json +1 -1
- package/dist/generated/src/models/SetPasswordRequest.d.ts +0 -32
- package/dist/generated/src/models/SetPasswordRequest.js +0 -50
|
@@ -21,6 +21,12 @@ export interface ConfirmChangeEmailRequest {
|
|
|
21
21
|
* @memberof ConfirmChangeEmailRequest
|
|
22
22
|
*/
|
|
23
23
|
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* The password chosen when a social-only account started the change. Required while the code was sent to the current inbox.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConfirmChangeEmailRequest
|
|
28
|
+
*/
|
|
29
|
+
newPassword?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the ConfirmChangeEmailRequest interface.
|
|
@@ -34,7 +34,8 @@ function ConfirmChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
code: json['code']
|
|
37
|
+
code: json['code'],
|
|
38
|
+
newPassword: json['newPassword'] == null ? undefined : json['newPassword']
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function ConfirmChangeEmailRequestToJSON(json) {
|
|
@@ -45,6 +46,7 @@ function ConfirmChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
45
46
|
return value;
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
|
-
code: value['code']
|
|
49
|
+
code: value['code'],
|
|
50
|
+
newPassword: value['newPassword']
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Result of confirming one step of a login email change.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConfirmChangeEmailResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfirmChangeEmailResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfirmChangeEmailResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* True when the current inbox approved the change and a code was sent to the new address. False when the login email itself was updated.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ConfirmChangeEmailResponse
|
|
28
|
+
*/
|
|
29
|
+
codeSentToNewEmail: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ConfirmChangeEmailResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfConfirmChangeEmailResponse(value: object): value is ConfirmChangeEmailResponse;
|
|
35
|
+
export declare function ConfirmChangeEmailResponseFromJSON(json: any): ConfirmChangeEmailResponse;
|
|
36
|
+
export declare function ConfirmChangeEmailResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmChangeEmailResponse;
|
|
37
|
+
export declare function ConfirmChangeEmailResponseToJSON(json: any): ConfirmChangeEmailResponse;
|
|
38
|
+
export declare function ConfirmChangeEmailResponseToJSONTyped(value?: ConfirmChangeEmailResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfConfirmChangeEmailResponse = instanceOfConfirmChangeEmailResponse;
|
|
17
|
+
exports.ConfirmChangeEmailResponseFromJSON = ConfirmChangeEmailResponseFromJSON;
|
|
18
|
+
exports.ConfirmChangeEmailResponseFromJSONTyped = ConfirmChangeEmailResponseFromJSONTyped;
|
|
19
|
+
exports.ConfirmChangeEmailResponseToJSON = ConfirmChangeEmailResponseToJSON;
|
|
20
|
+
exports.ConfirmChangeEmailResponseToJSONTyped = ConfirmChangeEmailResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConfirmChangeEmailResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConfirmChangeEmailResponse(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('codeSentToNewEmail' in value) ||
|
|
28
|
+
value['codeSentToNewEmail'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ConfirmChangeEmailResponseFromJSON(json) {
|
|
33
|
+
return ConfirmChangeEmailResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ConfirmChangeEmailResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
message: json['message'],
|
|
41
|
+
codeSentToNewEmail: json['codeSentToNewEmail']
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ConfirmChangeEmailResponseToJSON(json) {
|
|
45
|
+
return ConfirmChangeEmailResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ConfirmChangeEmailResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
message: value['message'],
|
|
53
|
+
codeSentToNewEmail: value['codeSentToNewEmail']
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ConfirmPasswordChangeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfirmPasswordChangeRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfirmPasswordChangeRequest
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* The same new password sent when the change started.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConfirmPasswordChangeRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ConfirmPasswordChangeRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfConfirmPasswordChangeRequest(value: object): value is ConfirmPasswordChangeRequest;
|
|
35
|
+
export declare function ConfirmPasswordChangeRequestFromJSON(json: any): ConfirmPasswordChangeRequest;
|
|
36
|
+
export declare function ConfirmPasswordChangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmPasswordChangeRequest;
|
|
37
|
+
export declare function ConfirmPasswordChangeRequestToJSON(json: any): ConfirmPasswordChangeRequest;
|
|
38
|
+
export declare function ConfirmPasswordChangeRequestToJSONTyped(value?: ConfirmPasswordChangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfConfirmPasswordChangeRequest = instanceOfConfirmPasswordChangeRequest;
|
|
17
|
+
exports.ConfirmPasswordChangeRequestFromJSON = ConfirmPasswordChangeRequestFromJSON;
|
|
18
|
+
exports.ConfirmPasswordChangeRequestFromJSONTyped = ConfirmPasswordChangeRequestFromJSONTyped;
|
|
19
|
+
exports.ConfirmPasswordChangeRequestToJSON = ConfirmPasswordChangeRequestToJSON;
|
|
20
|
+
exports.ConfirmPasswordChangeRequestToJSONTyped = ConfirmPasswordChangeRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConfirmPasswordChangeRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConfirmPasswordChangeRequest(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ConfirmPasswordChangeRequestFromJSON(json) {
|
|
32
|
+
return ConfirmPasswordChangeRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ConfirmPasswordChangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
code: json['code'],
|
|
40
|
+
password: json['password']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ConfirmPasswordChangeRequestToJSON(json) {
|
|
44
|
+
return ConfirmPasswordChangeRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ConfirmPasswordChangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
code: value['code'],
|
|
52
|
+
password: value['password']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Whether the signed-in
|
|
13
|
+
* Whether the signed-in account has a password, and which social providers are linked.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface PasswordStatusResponse
|
|
16
16
|
*/
|
|
17
17
|
export interface PasswordStatusResponse {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* False only when the account is still a social sign-in with no password.
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof PasswordStatusResponse
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
hasPassword: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Linked social sign-in providers, such as Google.
|
|
26
26
|
* @type {Array<string>}
|
|
@@ -22,7 +22,7 @@ exports.PasswordStatusResponseToJSONTyped = PasswordStatusResponseToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the PasswordStatusResponse interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfPasswordStatusResponse(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('hasPassword' in value) || value['hasPassword'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('providers' in value) || value['providers'] === undefined)
|
|
28
28
|
return false;
|
|
@@ -36,7 +36,7 @@ function PasswordStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
|
|
39
|
+
hasPassword: json['hasPassword'],
|
|
40
40
|
providers: json['providers']
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -48,7 +48,7 @@ function PasswordStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
|
|
51
|
+
hasPassword: value['hasPassword'],
|
|
52
52
|
providers: value['providers']
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -22,13 +22,19 @@ export interface StartChangeEmailRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
newEmail: string;
|
|
24
24
|
/**
|
|
25
|
-
* Current account password. Required
|
|
25
|
+
* Current account password. Required when the account already has a password.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof StartChangeEmailRequest
|
|
28
28
|
*/
|
|
29
|
-
password
|
|
29
|
+
password?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Password to set. Required when the account has no password yet, so the new email address can be used to sign in after social sign-in is removed.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StartChangeEmailRequest
|
|
34
|
+
*/
|
|
35
|
+
newPassword?: string;
|
|
36
|
+
/**
|
|
37
|
+
* TOTP code. Required when software-token MFA is enabled on an account that has a password.
|
|
32
38
|
* @type {string}
|
|
33
39
|
* @memberof StartChangeEmailRequest
|
|
34
40
|
*/
|
|
@@ -24,8 +24,6 @@ exports.StartChangeEmailRequestToJSONTyped = StartChangeEmailRequestToJSONTyped;
|
|
|
24
24
|
function instanceOfStartChangeEmailRequest(value) {
|
|
25
25
|
if (!('newEmail' in value) || value['newEmail'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function StartChangeEmailRequestFromJSON(json) {
|
|
@@ -37,7 +35,8 @@ function StartChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
35
|
}
|
|
38
36
|
return {
|
|
39
37
|
newEmail: json['newEmail'],
|
|
40
|
-
password: json['password'],
|
|
38
|
+
password: json['password'] == null ? undefined : json['password'],
|
|
39
|
+
newPassword: json['newPassword'] == null ? undefined : json['newPassword'],
|
|
41
40
|
mfaCode: json['mfaCode'] == null ? undefined : json['mfaCode']
|
|
42
41
|
};
|
|
43
42
|
}
|
|
@@ -51,6 +50,7 @@ function StartChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
51
50
|
return {
|
|
52
51
|
newEmail: value['newEmail'],
|
|
53
52
|
password: value['password'],
|
|
53
|
+
newPassword: value['newPassword'],
|
|
54
54
|
mfaCode: value['mfaCode']
|
|
55
55
|
};
|
|
56
56
|
}
|
|
@@ -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 StartPasswordChangeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StartPasswordChangeRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New password.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StartPasswordChangeRequest
|
|
22
|
+
*/
|
|
23
|
+
password: string;
|
|
24
|
+
/**
|
|
25
|
+
* Current password. Required when the account already has one.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StartPasswordChangeRequest
|
|
28
|
+
*/
|
|
29
|
+
currentPassword?: string;
|
|
30
|
+
/**
|
|
31
|
+
* TOTP code. Required when software-token MFA is enabled and the account has a password.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StartPasswordChangeRequest
|
|
34
|
+
*/
|
|
35
|
+
mfaCode?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StartPasswordChangeRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStartPasswordChangeRequest(value: object): value is StartPasswordChangeRequest;
|
|
41
|
+
export declare function StartPasswordChangeRequestFromJSON(json: any): StartPasswordChangeRequest;
|
|
42
|
+
export declare function StartPasswordChangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartPasswordChangeRequest;
|
|
43
|
+
export declare function StartPasswordChangeRequestToJSON(json: any): StartPasswordChangeRequest;
|
|
44
|
+
export declare function StartPasswordChangeRequestToJSONTyped(value?: StartPasswordChangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfStartPasswordChangeRequest = instanceOfStartPasswordChangeRequest;
|
|
17
|
+
exports.StartPasswordChangeRequestFromJSON = StartPasswordChangeRequestFromJSON;
|
|
18
|
+
exports.StartPasswordChangeRequestFromJSONTyped = StartPasswordChangeRequestFromJSONTyped;
|
|
19
|
+
exports.StartPasswordChangeRequestToJSON = StartPasswordChangeRequestToJSON;
|
|
20
|
+
exports.StartPasswordChangeRequestToJSONTyped = StartPasswordChangeRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StartPasswordChangeRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStartPasswordChangeRequest(value) {
|
|
25
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StartPasswordChangeRequestFromJSON(json) {
|
|
30
|
+
return StartPasswordChangeRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StartPasswordChangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
password: json['password'],
|
|
38
|
+
currentPassword: json['currentPassword'] == null ? undefined : json['currentPassword'],
|
|
39
|
+
mfaCode: json['mfaCode'] == null ? undefined : json['mfaCode']
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function StartPasswordChangeRequestToJSON(json) {
|
|
43
|
+
return StartPasswordChangeRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StartPasswordChangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
password: value['password'],
|
|
51
|
+
currentPassword: value['currentPassword'],
|
|
52
|
+
mfaCode: value['mfaCode']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -37,6 +37,8 @@ export * from './CancelSubscriptionRequest';
|
|
|
37
37
|
export * from './ChangePhoneRequest';
|
|
38
38
|
export * from './ChannelsEnum';
|
|
39
39
|
export * from './ConfirmChangeEmailRequest';
|
|
40
|
+
export * from './ConfirmChangeEmailResponse';
|
|
41
|
+
export * from './ConfirmPasswordChangeRequest';
|
|
40
42
|
export * from './CreateAccountRequest';
|
|
41
43
|
export * from './CreateAccountRequestPlan';
|
|
42
44
|
export * from './CreateAccountResponse';
|
|
@@ -266,7 +268,6 @@ export * from './SenderPostBodyUser';
|
|
|
266
268
|
export * from './SenderPostBodyWebPush';
|
|
267
269
|
export * from './SenderPostResponse';
|
|
268
270
|
export * from './SetDefaultTemplateRequest';
|
|
269
|
-
export * from './SetPasswordRequest';
|
|
270
271
|
export * from './SignInUsernameRequest';
|
|
271
272
|
export * from './SignInUsernameResponse';
|
|
272
273
|
export * from './SignOutRequest';
|
|
@@ -298,6 +299,7 @@ export * from './SmsSenderIdAdmin';
|
|
|
298
299
|
export * from './SmsSenderIdAdminUpdateRequest';
|
|
299
300
|
export * from './SmsSenderIdCreateRequest';
|
|
300
301
|
export * from './StartChangeEmailRequest';
|
|
302
|
+
export * from './StartPasswordChangeRequest';
|
|
301
303
|
export * from './SubNotification';
|
|
302
304
|
export * from './SubNotificationPUTRequest';
|
|
303
305
|
export * from './SuccessResponse';
|
|
@@ -55,6 +55,8 @@ __exportStar(require("./CancelSubscriptionRequest"), exports);
|
|
|
55
55
|
__exportStar(require("./ChangePhoneRequest"), exports);
|
|
56
56
|
__exportStar(require("./ChannelsEnum"), exports);
|
|
57
57
|
__exportStar(require("./ConfirmChangeEmailRequest"), exports);
|
|
58
|
+
__exportStar(require("./ConfirmChangeEmailResponse"), exports);
|
|
59
|
+
__exportStar(require("./ConfirmPasswordChangeRequest"), exports);
|
|
58
60
|
__exportStar(require("./CreateAccountRequest"), exports);
|
|
59
61
|
__exportStar(require("./CreateAccountRequestPlan"), exports);
|
|
60
62
|
__exportStar(require("./CreateAccountResponse"), exports);
|
|
@@ -284,7 +286,6 @@ __exportStar(require("./SenderPostBodyUser"), exports);
|
|
|
284
286
|
__exportStar(require("./SenderPostBodyWebPush"), exports);
|
|
285
287
|
__exportStar(require("./SenderPostResponse"), exports);
|
|
286
288
|
__exportStar(require("./SetDefaultTemplateRequest"), exports);
|
|
287
|
-
__exportStar(require("./SetPasswordRequest"), exports);
|
|
288
289
|
__exportStar(require("./SignInUsernameRequest"), exports);
|
|
289
290
|
__exportStar(require("./SignInUsernameResponse"), exports);
|
|
290
291
|
__exportStar(require("./SignOutRequest"), exports);
|
|
@@ -316,6 +317,7 @@ __exportStar(require("./SmsSenderIdAdmin"), exports);
|
|
|
316
317
|
__exportStar(require("./SmsSenderIdAdminUpdateRequest"), exports);
|
|
317
318
|
__exportStar(require("./SmsSenderIdCreateRequest"), exports);
|
|
318
319
|
__exportStar(require("./StartChangeEmailRequest"), exports);
|
|
320
|
+
__exportStar(require("./StartPasswordChangeRequest"), exports);
|
|
319
321
|
__exportStar(require("./SubNotification"), exports);
|
|
320
322
|
__exportStar(require("./SubNotificationPUTRequest"), exports);
|
|
321
323
|
__exportStar(require("./SuccessResponse"), exports);
|
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 SetPasswordRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface SetPasswordRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SetPasswordRequest
|
|
22
|
-
*/
|
|
23
|
-
password: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the SetPasswordRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfSetPasswordRequest(value: object): value is SetPasswordRequest;
|
|
29
|
-
export declare function SetPasswordRequestFromJSON(json: any): SetPasswordRequest;
|
|
30
|
-
export declare function SetPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPasswordRequest;
|
|
31
|
-
export declare function SetPasswordRequestToJSON(json: any): SetPasswordRequest;
|
|
32
|
-
export declare function SetPasswordRequestToJSONTyped(value?: SetPasswordRequest | 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.instanceOfSetPasswordRequest = instanceOfSetPasswordRequest;
|
|
17
|
-
exports.SetPasswordRequestFromJSON = SetPasswordRequestFromJSON;
|
|
18
|
-
exports.SetPasswordRequestFromJSONTyped = SetPasswordRequestFromJSONTyped;
|
|
19
|
-
exports.SetPasswordRequestToJSON = SetPasswordRequestToJSON;
|
|
20
|
-
exports.SetPasswordRequestToJSONTyped = SetPasswordRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the SetPasswordRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfSetPasswordRequest(value) {
|
|
25
|
-
if (!('password' in value) || value['password'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function SetPasswordRequestFromJSON(json) {
|
|
30
|
-
return SetPasswordRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function SetPasswordRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
password: json['password']
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function SetPasswordRequestToJSON(json) {
|
|
41
|
-
return SetPasswordRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function SetPasswordRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
password: value['password']
|
|
49
|
-
};
|
|
50
|
-
}
|