@wix/identity 1.0.25 → 1.0.27
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/iam-recovery-v1-recovery.http.d.ts +5 -0
- package/build/cjs/src/iam-recovery-v1-recovery.http.js +100 -0
- package/build/cjs/src/iam-recovery-v1-recovery.http.js.map +1 -0
- package/build/cjs/src/iam-recovery-v1-recovery.public.d.ts +9 -0
- package/build/cjs/src/iam-recovery-v1-recovery.public.js +25 -0
- package/build/cjs/src/iam-recovery-v1-recovery.public.js.map +1 -0
- package/build/cjs/src/iam-recovery-v1-recovery.types.d.ts +190 -0
- package/build/cjs/src/iam-recovery-v1-recovery.types.js +48 -0
- package/build/cjs/src/iam-recovery-v1-recovery.types.js.map +1 -0
- package/build/cjs/src/iam-recovery-v1-recovery.universal.d.ts +218 -0
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js +215 -0
- package/build/cjs/src/iam-recovery-v1-recovery.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/iam-recovery-v1-recovery.http.d.ts +5 -0
- package/build/es/src/iam-recovery-v1-recovery.http.js +95 -0
- package/build/es/src/iam-recovery-v1-recovery.http.js.map +1 -0
- package/build/es/src/iam-recovery-v1-recovery.public.d.ts +9 -0
- package/build/es/src/iam-recovery-v1-recovery.public.js +14 -0
- package/build/es/src/iam-recovery-v1-recovery.public.js.map +1 -0
- package/build/es/src/iam-recovery-v1-recovery.types.d.ts +190 -0
- package/build/es/src/iam-recovery-v1-recovery.types.js +45 -0
- package/build/es/src/iam-recovery-v1-recovery.types.js.map +1 -0
- package/build/es/src/iam-recovery-v1-recovery.universal.d.ts +218 -0
- package/build/es/src/iam-recovery-v1-recovery.universal.js +191 -0
- package/build/es/src/iam-recovery-v1-recovery.universal.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
/** Recovery token proto is the saved data on the recovery token. */
|
|
8
|
+
export interface RecoveryToken {
|
|
9
|
+
/**
|
|
10
|
+
* Recovery token ID
|
|
11
|
+
* @readonly
|
|
12
|
+
*/
|
|
13
|
+
_id?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Represents the time this SessionToken was created
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
_createdDate?: Date;
|
|
19
|
+
/**
|
|
20
|
+
* tenantId
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
tenantId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* TenantType
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
tenantType?: TenantType;
|
|
29
|
+
/**
|
|
30
|
+
* identity id
|
|
31
|
+
* @readonly
|
|
32
|
+
*/
|
|
33
|
+
identityId?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare enum TenantType {
|
|
36
|
+
UNKNOWN_TENANT_TYPE = "UNKNOWN_TENANT_TYPE",
|
|
37
|
+
ACCOUNT = "ACCOUNT",
|
|
38
|
+
SITE = "SITE",
|
|
39
|
+
ROOT = "ROOT"
|
|
40
|
+
}
|
|
41
|
+
export interface SendRecoveryEmailRequest {
|
|
42
|
+
/** email of the identity */
|
|
43
|
+
email: string;
|
|
44
|
+
/** language of the email - if not recived will fallback to the identity language */
|
|
45
|
+
language?: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface SendRecoveryEmailResponse {
|
|
48
|
+
}
|
|
49
|
+
export interface RecoverRequest {
|
|
50
|
+
/** recovery token */
|
|
51
|
+
recoveryToken: string;
|
|
52
|
+
/** new password to set for the identity */
|
|
53
|
+
password?: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface StateMachineResponse {
|
|
56
|
+
state?: StateType;
|
|
57
|
+
sessionToken?: string | null;
|
|
58
|
+
stateToken?: string | null;
|
|
59
|
+
identity?: Identity;
|
|
60
|
+
}
|
|
61
|
+
export declare enum StateType {
|
|
62
|
+
UNKNOWN_STATE = "UNKNOWN_STATE",
|
|
63
|
+
SUCCESS = "SUCCESS",
|
|
64
|
+
REQUIRE_OWNER_APPROVAL = "REQUIRE_OWNER_APPROVAL",
|
|
65
|
+
REQUIRE_EMAIL_VERIFICATION = "REQUIRE_EMAIL_VERIFICATION",
|
|
66
|
+
STATUS_CHECK = "STATUS_CHECK"
|
|
67
|
+
}
|
|
68
|
+
export interface Identity {
|
|
69
|
+
/** Identity ID */
|
|
70
|
+
_id?: string | null;
|
|
71
|
+
identifiers?: Identifier[];
|
|
72
|
+
/** @readonly */
|
|
73
|
+
status?: Status;
|
|
74
|
+
/** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */
|
|
75
|
+
revision?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Represents the time this Identity was created
|
|
78
|
+
* @readonly
|
|
79
|
+
*/
|
|
80
|
+
_createdDate?: Date;
|
|
81
|
+
/**
|
|
82
|
+
* Represents the time this Identity was last updated
|
|
83
|
+
* @readonly
|
|
84
|
+
*/
|
|
85
|
+
_updatedDate?: Date;
|
|
86
|
+
/** All the identity configured connections to authenticate with */
|
|
87
|
+
connections?: Connection[];
|
|
88
|
+
identityProfile?: IdentityProfile;
|
|
89
|
+
/** Stores additional information about the identity that can impact user access. This data can't be set by users. */
|
|
90
|
+
metadata?: Metadata;
|
|
91
|
+
email?: Email;
|
|
92
|
+
statusV2?: StatusV2;
|
|
93
|
+
}
|
|
94
|
+
export interface Identifier extends IdentifierValueOneOf {
|
|
95
|
+
email?: string;
|
|
96
|
+
userName?: string;
|
|
97
|
+
}
|
|
98
|
+
/** @oneof */
|
|
99
|
+
export interface IdentifierValueOneOf {
|
|
100
|
+
email?: string;
|
|
101
|
+
userName?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare enum Status {
|
|
104
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
105
|
+
BLOCKED = "BLOCKED",
|
|
106
|
+
ACTIVE = "ACTIVE",
|
|
107
|
+
PROVISIONED = "PROVISIONED",
|
|
108
|
+
DELETED = "DELETED",
|
|
109
|
+
UNPROVISIONED = "UNPROVISIONED"
|
|
110
|
+
}
|
|
111
|
+
export interface Connection extends ConnectionTypeOneOf {
|
|
112
|
+
idpConnection?: IdpConnection;
|
|
113
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
114
|
+
}
|
|
115
|
+
/** @oneof */
|
|
116
|
+
export interface ConnectionTypeOneOf {
|
|
117
|
+
idpConnection?: IdpConnection;
|
|
118
|
+
authenticatorConnection?: AuthenticatorConnection;
|
|
119
|
+
}
|
|
120
|
+
export interface IdpConnection {
|
|
121
|
+
idpConnectionId?: string;
|
|
122
|
+
idpUserId?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface AuthenticatorConnection {
|
|
125
|
+
authenticatorConnectionId?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface IdentityProfile {
|
|
128
|
+
firstName?: string | null;
|
|
129
|
+
lastName?: string | null;
|
|
130
|
+
nickname?: string | null;
|
|
131
|
+
picture?: string | null;
|
|
132
|
+
emails?: string[];
|
|
133
|
+
phones?: string[];
|
|
134
|
+
labels?: string[];
|
|
135
|
+
language?: string | null;
|
|
136
|
+
privacyStatus?: PrivacyStatus;
|
|
137
|
+
/** custom profile fields */
|
|
138
|
+
customFields?: CustomField[];
|
|
139
|
+
}
|
|
140
|
+
export declare enum PrivacyStatus {
|
|
141
|
+
UNDEFINED = "UNDEFINED",
|
|
142
|
+
PUBLIC = "PUBLIC",
|
|
143
|
+
PRIVATE = "PRIVATE"
|
|
144
|
+
}
|
|
145
|
+
export interface CustomField {
|
|
146
|
+
name?: string;
|
|
147
|
+
value?: CustomValue;
|
|
148
|
+
}
|
|
149
|
+
export interface CustomValue extends CustomValueValueOneOf {
|
|
150
|
+
strValue?: string;
|
|
151
|
+
numValue?: number;
|
|
152
|
+
dateValue?: Date;
|
|
153
|
+
listValue?: ListValue;
|
|
154
|
+
mapValue?: MapValue;
|
|
155
|
+
}
|
|
156
|
+
/** @oneof */
|
|
157
|
+
export interface CustomValueValueOneOf {
|
|
158
|
+
strValue?: string;
|
|
159
|
+
numValue?: number;
|
|
160
|
+
dateValue?: Date;
|
|
161
|
+
listValue?: ListValue;
|
|
162
|
+
mapValue?: MapValue;
|
|
163
|
+
}
|
|
164
|
+
export interface ListValue {
|
|
165
|
+
value?: CustomValue[];
|
|
166
|
+
}
|
|
167
|
+
export interface MapValue {
|
|
168
|
+
value?: Record<string, CustomValue>;
|
|
169
|
+
}
|
|
170
|
+
export interface Metadata {
|
|
171
|
+
/**
|
|
172
|
+
* represents general tags such as "isOwner", "isContributor"
|
|
173
|
+
* @readonly
|
|
174
|
+
*/
|
|
175
|
+
tags?: string[];
|
|
176
|
+
}
|
|
177
|
+
export interface Email {
|
|
178
|
+
address?: string;
|
|
179
|
+
isVerified?: boolean;
|
|
180
|
+
}
|
|
181
|
+
export interface StatusV2 {
|
|
182
|
+
name?: StatusName;
|
|
183
|
+
reasons?: Reason[];
|
|
184
|
+
}
|
|
185
|
+
export declare enum StatusName {
|
|
186
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
187
|
+
PENDING = "PENDING",
|
|
188
|
+
ACTIVE = "ACTIVE",
|
|
189
|
+
DELETED = "DELETED",
|
|
190
|
+
BLOCKED = "BLOCKED"
|
|
191
|
+
}
|
|
192
|
+
export declare enum Reason {
|
|
193
|
+
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
194
|
+
PENDING_ADMIN_APPROVAL_REQUIRED = "PENDING_ADMIN_APPROVAL_REQUIRED",
|
|
195
|
+
PENDING_EMAIL_VERIFICATION_REQUIRED = "PENDING_EMAIL_VERIFICATION_REQUIRED"
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Sends an recovery email with recovery token
|
|
199
|
+
* @param email - email of the identity
|
|
200
|
+
* @public
|
|
201
|
+
* @documentationMaturity preview
|
|
202
|
+
* @requiredField email
|
|
203
|
+
*/
|
|
204
|
+
export declare function sendRecoveryEmail(email: string, options?: SendRecoveryEmailOptions): Promise<void>;
|
|
205
|
+
export interface SendRecoveryEmailOptions {
|
|
206
|
+
/** language of the email - if not recived will fallback to the identity language */
|
|
207
|
+
language?: string | null;
|
|
208
|
+
}
|
|
209
|
+
/** @param recoveryToken - recovery token
|
|
210
|
+
* @public
|
|
211
|
+
* @documentationMaturity preview
|
|
212
|
+
* @requiredField recoveryToken
|
|
213
|
+
*/
|
|
214
|
+
export declare function recover(recoveryToken: string, options?: RecoverOptions): Promise<StateMachineResponse>;
|
|
215
|
+
export interface RecoverOptions {
|
|
216
|
+
/** new password to set for the identity */
|
|
217
|
+
password?: string | null;
|
|
218
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { serializer, transformError } from '@wix/metro-runtime/velo';
|
|
11
|
+
import * as ambassadorWixIamRecoveryV1Recovery from './iam-recovery-v1-recovery.http';
|
|
12
|
+
let __verbose = false;
|
|
13
|
+
function __log(...args) {
|
|
14
|
+
__verbose && console.log(...args);
|
|
15
|
+
}
|
|
16
|
+
function __inspect(obj) {
|
|
17
|
+
return obj;
|
|
18
|
+
}
|
|
19
|
+
export const __debug = {
|
|
20
|
+
verboseLogging: {
|
|
21
|
+
on: () => (__verbose = true),
|
|
22
|
+
off: () => (__verbose = false),
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const _toVeloEntity = '$';
|
|
26
|
+
const _fromVeloEntity = '$';
|
|
27
|
+
export var TenantType;
|
|
28
|
+
(function (TenantType) {
|
|
29
|
+
TenantType["UNKNOWN_TENANT_TYPE"] = "UNKNOWN_TENANT_TYPE";
|
|
30
|
+
TenantType["ACCOUNT"] = "ACCOUNT";
|
|
31
|
+
TenantType["SITE"] = "SITE";
|
|
32
|
+
TenantType["ROOT"] = "ROOT";
|
|
33
|
+
})(TenantType || (TenantType = {}));
|
|
34
|
+
export var StateType;
|
|
35
|
+
(function (StateType) {
|
|
36
|
+
StateType["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
37
|
+
StateType["SUCCESS"] = "SUCCESS";
|
|
38
|
+
StateType["REQUIRE_OWNER_APPROVAL"] = "REQUIRE_OWNER_APPROVAL";
|
|
39
|
+
StateType["REQUIRE_EMAIL_VERIFICATION"] = "REQUIRE_EMAIL_VERIFICATION";
|
|
40
|
+
StateType["STATUS_CHECK"] = "STATUS_CHECK";
|
|
41
|
+
})(StateType || (StateType = {}));
|
|
42
|
+
export var Status;
|
|
43
|
+
(function (Status) {
|
|
44
|
+
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
45
|
+
Status["BLOCKED"] = "BLOCKED";
|
|
46
|
+
Status["ACTIVE"] = "ACTIVE";
|
|
47
|
+
Status["PROVISIONED"] = "PROVISIONED";
|
|
48
|
+
Status["DELETED"] = "DELETED";
|
|
49
|
+
Status["UNPROVISIONED"] = "UNPROVISIONED";
|
|
50
|
+
})(Status || (Status = {}));
|
|
51
|
+
export var PrivacyStatus;
|
|
52
|
+
(function (PrivacyStatus) {
|
|
53
|
+
PrivacyStatus["UNDEFINED"] = "UNDEFINED";
|
|
54
|
+
PrivacyStatus["PUBLIC"] = "PUBLIC";
|
|
55
|
+
PrivacyStatus["PRIVATE"] = "PRIVATE";
|
|
56
|
+
})(PrivacyStatus || (PrivacyStatus = {}));
|
|
57
|
+
export var StatusName;
|
|
58
|
+
(function (StatusName) {
|
|
59
|
+
StatusName["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
60
|
+
StatusName["PENDING"] = "PENDING";
|
|
61
|
+
StatusName["ACTIVE"] = "ACTIVE";
|
|
62
|
+
StatusName["DELETED"] = "DELETED";
|
|
63
|
+
StatusName["BLOCKED"] = "BLOCKED";
|
|
64
|
+
})(StatusName || (StatusName = {}));
|
|
65
|
+
export var Reason;
|
|
66
|
+
(function (Reason) {
|
|
67
|
+
Reason["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
68
|
+
Reason["PENDING_ADMIN_APPROVAL_REQUIRED"] = "PENDING_ADMIN_APPROVAL_REQUIRED";
|
|
69
|
+
Reason["PENDING_EMAIL_VERIFICATION_REQUIRED"] = "PENDING_EMAIL_VERIFICATION_REQUIRED";
|
|
70
|
+
})(Reason || (Reason = {}));
|
|
71
|
+
const _customField = { value: '_customValue' };
|
|
72
|
+
const _customValue = { listValue: '_listValue', mapValue: '_mapValue' };
|
|
73
|
+
const _identity = { identityProfile: '_identityProfile' };
|
|
74
|
+
const _identityProfile = { customFields: '_customField' };
|
|
75
|
+
const _listValue = { value: '_customValue' };
|
|
76
|
+
const _mapValue = { value: 'Map#_customValue' };
|
|
77
|
+
const _recoverRequest = {};
|
|
78
|
+
const _sendRecoveryEmailRequest = {};
|
|
79
|
+
const _sendRecoveryEmailResponse = {};
|
|
80
|
+
const _stateMachineResponse = { identity: '_identity' };
|
|
81
|
+
/**
|
|
82
|
+
* Sends an recovery email with recovery token
|
|
83
|
+
* @param email - email of the identity
|
|
84
|
+
* @public
|
|
85
|
+
* @documentationMaturity preview
|
|
86
|
+
* @requiredField email
|
|
87
|
+
*/
|
|
88
|
+
export function sendRecoveryEmail(email, options) {
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
91
|
+
const requestTransformation = { email: '$[0]', language: '$[1].language' };
|
|
92
|
+
const responseTransformation = '$';
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
95
|
+
const { toAmbassadorRequest } = serializer({
|
|
96
|
+
rootSchema: _sendRecoveryEmailRequest,
|
|
97
|
+
depSchemas: {},
|
|
98
|
+
fqdnTransformation: {
|
|
99
|
+
paths: [],
|
|
100
|
+
transformation: _fromVeloEntity,
|
|
101
|
+
},
|
|
102
|
+
customTransformation: requestTransformation,
|
|
103
|
+
});
|
|
104
|
+
const { fromJSON } = serializer({
|
|
105
|
+
rootSchema: _sendRecoveryEmailResponse,
|
|
106
|
+
depSchemas: {},
|
|
107
|
+
fqdnTransformation: {
|
|
108
|
+
paths: [],
|
|
109
|
+
transformation: _toVeloEntity,
|
|
110
|
+
},
|
|
111
|
+
customTransformation: responseTransformation,
|
|
112
|
+
});
|
|
113
|
+
const payload = toAmbassadorRequest([email, options]);
|
|
114
|
+
const reqOpts = ambassadorWixIamRecoveryV1Recovery.sendRecoveryEmail(payload);
|
|
115
|
+
__log(`"SendRecoveryEmail" sending request with: ${__inspect(reqOpts)}`);
|
|
116
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
117
|
+
try {
|
|
118
|
+
const result = yield httpClient.request(reqOpts);
|
|
119
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
120
|
+
return fromJSON(result.data);
|
|
121
|
+
}
|
|
122
|
+
catch (err) {
|
|
123
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
124
|
+
'email',
|
|
125
|
+
'options',
|
|
126
|
+
]);
|
|
127
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
128
|
+
throw transformedError;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/** @param recoveryToken - recovery token
|
|
133
|
+
* @public
|
|
134
|
+
* @documentationMaturity preview
|
|
135
|
+
* @requiredField recoveryToken
|
|
136
|
+
*/
|
|
137
|
+
export function recover(recoveryToken, options) {
|
|
138
|
+
var _a, _b, _c;
|
|
139
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
140
|
+
const requestTransformation = {
|
|
141
|
+
recoveryToken: '$[0]',
|
|
142
|
+
password: '$[1].password',
|
|
143
|
+
};
|
|
144
|
+
const responseTransformation = '$';
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
147
|
+
const { toAmbassadorRequest } = serializer({
|
|
148
|
+
rootSchema: _recoverRequest,
|
|
149
|
+
depSchemas: {},
|
|
150
|
+
fqdnTransformation: {
|
|
151
|
+
paths: [],
|
|
152
|
+
transformation: _fromVeloEntity,
|
|
153
|
+
},
|
|
154
|
+
customTransformation: requestTransformation,
|
|
155
|
+
});
|
|
156
|
+
const { fromJSON } = serializer({
|
|
157
|
+
rootSchema: _stateMachineResponse,
|
|
158
|
+
depSchemas: {
|
|
159
|
+
_customField,
|
|
160
|
+
_customValue,
|
|
161
|
+
_identity,
|
|
162
|
+
_identityProfile,
|
|
163
|
+
_listValue,
|
|
164
|
+
_mapValue,
|
|
165
|
+
},
|
|
166
|
+
fqdnTransformation: {
|
|
167
|
+
paths: [],
|
|
168
|
+
transformation: _toVeloEntity,
|
|
169
|
+
},
|
|
170
|
+
customTransformation: responseTransformation,
|
|
171
|
+
});
|
|
172
|
+
const payload = toAmbassadorRequest([recoveryToken, options]);
|
|
173
|
+
const reqOpts = ambassadorWixIamRecoveryV1Recovery.recover(payload);
|
|
174
|
+
__log(`"Recover" sending request with: ${__inspect(reqOpts)}`);
|
|
175
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
176
|
+
try {
|
|
177
|
+
const result = yield httpClient.request(reqOpts);
|
|
178
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
179
|
+
return fromJSON(result.data);
|
|
180
|
+
}
|
|
181
|
+
catch (err) {
|
|
182
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
183
|
+
'recoveryToken',
|
|
184
|
+
'options',
|
|
185
|
+
]);
|
|
186
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
187
|
+
throw transformedError;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=iam-recovery-v1-recovery.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iam-recovery-v1-recovery.universal.js","sourceRoot":"","sources":["../../../src/iam-recovery-v1-recovery.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,kCAAkC,MAAM,iCAAiC,CAAC;AAEtF,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE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,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/identity",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "5ca4d681f455f00cb68ac1e449c0b074c00f62fc625ffe3397e0804f"
|
|
37
37
|
}
|