@wix/auto_sdk_identity_authentication 1.0.63 → 1.0.65
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.js +46 -40
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +10 -0
- package/build/cjs/index.typings.js +46 -40
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -0
- package/build/cjs/meta.js +33 -33
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +46 -40
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +10 -0
- package/build/es/index.typings.mjs +46 -40
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -0
- package/build/es/meta.mjs +33 -33
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +16 -1
- package/build/internal/cjs/meta.d.ts +11 -1
- package/build/internal/es/index.typings.d.mts +16 -1
- package/build/internal/es/meta.d.mts +11 -1
- package/package.json +2 -2
|
@@ -14,6 +14,27 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
14
14
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
15
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
var TRANSFORM_PATHS_0 = [{ path: "profile.customFields.value.numValue" }];
|
|
18
|
+
var TRANSFORM_PATHS_1 = [{ path: "profile.customFields.value.dateValue" }];
|
|
19
|
+
var TRANSFORM_PATHS_2 = [
|
|
20
|
+
{ path: "identity.createdDate" },
|
|
21
|
+
{ path: "identity.updatedDate" },
|
|
22
|
+
{ path: "identity.identityProfile.customFields.value.dateValue" },
|
|
23
|
+
{ path: "additionalData.*.dateValue" }
|
|
24
|
+
];
|
|
25
|
+
var TRANSFORM_PATHS_3 = [
|
|
26
|
+
{ path: "identity.identityProfile.customFields.value.numValue" },
|
|
27
|
+
{ path: "additionalData.*.numValue" }
|
|
28
|
+
];
|
|
29
|
+
var TRANSFORM_PATHS_4 = [
|
|
30
|
+
{ path: "identity.createdDate" },
|
|
31
|
+
{ path: "identity.updatedDate" },
|
|
32
|
+
{ path: "identity.identityProfile.customFields.value.dateValue" }
|
|
33
|
+
];
|
|
34
|
+
var TRANSFORM_PATHS_5 = [
|
|
35
|
+
{ path: "identity.identityProfile.customFields.value.numValue" }
|
|
36
|
+
];
|
|
37
|
+
var TRANSFORM_PATHS_6 = [{ path: "body" }];
|
|
17
38
|
function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
|
|
18
39
|
const domainToMappings = {
|
|
19
40
|
_: [
|
|
@@ -133,11 +154,11 @@ function registerV2(payload) {
|
|
|
133
154
|
const serializedData = transformPaths(payload, [
|
|
134
155
|
{
|
|
135
156
|
transformFn: transformSDKFloatToRESTFloat,
|
|
136
|
-
paths:
|
|
157
|
+
paths: TRANSFORM_PATHS_0
|
|
137
158
|
},
|
|
138
159
|
{
|
|
139
160
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
140
|
-
paths:
|
|
161
|
+
paths: TRANSFORM_PATHS_1
|
|
141
162
|
}
|
|
142
163
|
]);
|
|
143
164
|
const metadata = {
|
|
@@ -157,19 +178,11 @@ function registerV2(payload) {
|
|
|
157
178
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
158
179
|
{
|
|
159
180
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
160
|
-
paths:
|
|
161
|
-
{ path: "identity.createdDate" },
|
|
162
|
-
{ path: "identity.updatedDate" },
|
|
163
|
-
{ path: "identity.identityProfile.customFields.value.dateValue" },
|
|
164
|
-
{ path: "additionalData.*.dateValue" }
|
|
165
|
-
]
|
|
181
|
+
paths: TRANSFORM_PATHS_2
|
|
166
182
|
},
|
|
167
183
|
{
|
|
168
184
|
transformFn: transformRESTFloatToSDKFloat,
|
|
169
|
-
paths:
|
|
170
|
-
{ path: "identity.identityProfile.customFields.value.numValue" },
|
|
171
|
-
{ path: "additionalData.*.numValue" }
|
|
172
|
-
]
|
|
185
|
+
paths: TRANSFORM_PATHS_3
|
|
173
186
|
}
|
|
174
187
|
])
|
|
175
188
|
};
|
|
@@ -217,19 +230,11 @@ function loginV2(payload) {
|
|
|
217
230
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
218
231
|
{
|
|
219
232
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
220
|
-
paths:
|
|
221
|
-
{ path: "identity.createdDate" },
|
|
222
|
-
{ path: "identity.updatedDate" },
|
|
223
|
-
{ path: "identity.identityProfile.customFields.value.dateValue" },
|
|
224
|
-
{ path: "additionalData.*.dateValue" }
|
|
225
|
-
]
|
|
233
|
+
paths: TRANSFORM_PATHS_2
|
|
226
234
|
},
|
|
227
235
|
{
|
|
228
236
|
transformFn: transformRESTFloatToSDKFloat,
|
|
229
|
-
paths:
|
|
230
|
-
{ path: "identity.identityProfile.customFields.value.numValue" },
|
|
231
|
-
{ path: "additionalData.*.numValue" }
|
|
232
|
-
]
|
|
237
|
+
paths: TRANSFORM_PATHS_3
|
|
233
238
|
}
|
|
234
239
|
])
|
|
235
240
|
};
|
|
@@ -263,11 +268,11 @@ function signOn(payload) {
|
|
|
263
268
|
const serializedData = transformPaths(payload, [
|
|
264
269
|
{
|
|
265
270
|
transformFn: transformSDKFloatToRESTFloat,
|
|
266
|
-
paths:
|
|
271
|
+
paths: TRANSFORM_PATHS_0
|
|
267
272
|
},
|
|
268
273
|
{
|
|
269
274
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
270
|
-
paths:
|
|
275
|
+
paths: TRANSFORM_PATHS_1
|
|
271
276
|
}
|
|
272
277
|
]);
|
|
273
278
|
const metadata = {
|
|
@@ -287,17 +292,11 @@ function signOn(payload) {
|
|
|
287
292
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
288
293
|
{
|
|
289
294
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
290
|
-
paths:
|
|
291
|
-
{ path: "identity.createdDate" },
|
|
292
|
-
{ path: "identity.updatedDate" },
|
|
293
|
-
{ path: "identity.identityProfile.customFields.value.dateValue" }
|
|
294
|
-
]
|
|
295
|
+
paths: TRANSFORM_PATHS_4
|
|
295
296
|
},
|
|
296
297
|
{
|
|
297
298
|
transformFn: transformRESTFloatToSDKFloat,
|
|
298
|
-
paths:
|
|
299
|
-
{ path: "identity.identityProfile.customFields.value.numValue" }
|
|
300
|
-
]
|
|
299
|
+
paths: TRANSFORM_PATHS_5
|
|
301
300
|
}
|
|
302
301
|
])
|
|
303
302
|
};
|
|
@@ -324,7 +323,7 @@ function logout(payload) {
|
|
|
324
323
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
325
324
|
{
|
|
326
325
|
transformFn: transformRESTBytesToSDKBytes,
|
|
327
|
-
paths:
|
|
326
|
+
paths: TRANSFORM_PATHS_6
|
|
328
327
|
}
|
|
329
328
|
])
|
|
330
329
|
};
|
|
@@ -337,6 +336,10 @@ function logout(payload) {
|
|
|
337
336
|
import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformations/address";
|
|
338
337
|
import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
|
|
339
338
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
339
|
+
var TRANSFORM_PATHS_02 = [{ path: "profile.addresses.address" }];
|
|
340
|
+
var TRANSFORM_PATHS_12 = [
|
|
341
|
+
{ path: "identity.identityProfile.addresses.address" }
|
|
342
|
+
];
|
|
340
343
|
var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
|
|
341
344
|
PrivacyStatus2["UNDEFINED"] = "UNDEFINED";
|
|
342
345
|
PrivacyStatus2["PUBLIC"] = "PUBLIC";
|
|
@@ -389,6 +392,7 @@ var StateType = /* @__PURE__ */ ((StateType2) => {
|
|
|
389
392
|
StateType2["REQUIRE_FIRST_FACTOR"] = "REQUIRE_FIRST_FACTOR";
|
|
390
393
|
StateType2["REQUIRE_MISSING_FIELDS"] = "REQUIRE_MISSING_FIELDS";
|
|
391
394
|
StateType2["REQUIRE_REGISTRATION_FACTOR"] = "REQUIRE_REGISTRATION_FACTOR";
|
|
395
|
+
StateType2["REQUIRE_LOGIN_CHALLENGE"] = "REQUIRE_LOGIN_CHALLENGE";
|
|
392
396
|
return StateType2;
|
|
393
397
|
})(StateType || {});
|
|
394
398
|
var StatusName = /* @__PURE__ */ ((StatusName2) => {
|
|
@@ -455,12 +459,13 @@ async function registerV22(loginId, options) {
|
|
|
455
459
|
profile: options?.profile,
|
|
456
460
|
captchaTokens: options?.captchaTokens,
|
|
457
461
|
clientMetaData: options?.clientMetaData,
|
|
458
|
-
factorType: options?.factorType
|
|
462
|
+
factorType: options?.factorType,
|
|
463
|
+
organizationId: options?.organizationId
|
|
459
464
|
}),
|
|
460
465
|
[
|
|
461
466
|
{
|
|
462
467
|
transformFn: transformSDKAddressToRESTAddress,
|
|
463
|
-
paths:
|
|
468
|
+
paths: TRANSFORM_PATHS_02
|
|
464
469
|
}
|
|
465
470
|
]
|
|
466
471
|
);
|
|
@@ -473,7 +478,7 @@ async function registerV22(loginId, options) {
|
|
|
473
478
|
transformPaths2(result.data, [
|
|
474
479
|
{
|
|
475
480
|
transformFn: transformRESTAddressToSDKAddress,
|
|
476
|
-
paths:
|
|
481
|
+
paths: TRANSFORM_PATHS_12
|
|
477
482
|
}
|
|
478
483
|
])
|
|
479
484
|
);
|
|
@@ -488,7 +493,8 @@ async function registerV22(loginId, options) {
|
|
|
488
493
|
profile: "$[1].profile",
|
|
489
494
|
captchaTokens: "$[1].captchaTokens",
|
|
490
495
|
clientMetaData: "$[1].clientMetaData",
|
|
491
|
-
factorType: "$[1].factorType"
|
|
496
|
+
factorType: "$[1].factorType",
|
|
497
|
+
organizationId: "$[1].organizationId"
|
|
492
498
|
},
|
|
493
499
|
singleArgumentUnchanged: false
|
|
494
500
|
},
|
|
@@ -539,7 +545,7 @@ async function loginV22(loginId, options) {
|
|
|
539
545
|
transformPaths2(result.data, [
|
|
540
546
|
{
|
|
541
547
|
transformFn: transformRESTAddressToSDKAddress,
|
|
542
|
-
paths:
|
|
548
|
+
paths: TRANSFORM_PATHS_12
|
|
543
549
|
}
|
|
544
550
|
])
|
|
545
551
|
);
|
|
@@ -599,7 +605,7 @@ async function signOn2(loginId, options) {
|
|
|
599
605
|
[
|
|
600
606
|
{
|
|
601
607
|
transformFn: transformSDKAddressToRESTAddress,
|
|
602
|
-
paths:
|
|
608
|
+
paths: TRANSFORM_PATHS_02
|
|
603
609
|
}
|
|
604
610
|
]
|
|
605
611
|
);
|
|
@@ -612,7 +618,7 @@ async function signOn2(loginId, options) {
|
|
|
612
618
|
transformPaths2(result.data, [
|
|
613
619
|
{
|
|
614
620
|
transformFn: transformRESTAddressToSDKAddress,
|
|
615
|
-
paths:
|
|
621
|
+
paths: TRANSFORM_PATHS_12
|
|
616
622
|
}
|
|
617
623
|
])
|
|
618
624
|
);
|