@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
package/build/cjs/index.js
CHANGED
|
@@ -56,6 +56,27 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
56
56
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
57
57
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
58
58
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
59
|
+
var TRANSFORM_PATHS_0 = [{ path: "profile.customFields.value.numValue" }];
|
|
60
|
+
var TRANSFORM_PATHS_1 = [{ path: "profile.customFields.value.dateValue" }];
|
|
61
|
+
var TRANSFORM_PATHS_2 = [
|
|
62
|
+
{ path: "identity.createdDate" },
|
|
63
|
+
{ path: "identity.updatedDate" },
|
|
64
|
+
{ path: "identity.identityProfile.customFields.value.dateValue" },
|
|
65
|
+
{ path: "additionalData.*.dateValue" }
|
|
66
|
+
];
|
|
67
|
+
var TRANSFORM_PATHS_3 = [
|
|
68
|
+
{ path: "identity.identityProfile.customFields.value.numValue" },
|
|
69
|
+
{ path: "additionalData.*.numValue" }
|
|
70
|
+
];
|
|
71
|
+
var TRANSFORM_PATHS_4 = [
|
|
72
|
+
{ path: "identity.createdDate" },
|
|
73
|
+
{ path: "identity.updatedDate" },
|
|
74
|
+
{ path: "identity.identityProfile.customFields.value.dateValue" }
|
|
75
|
+
];
|
|
76
|
+
var TRANSFORM_PATHS_5 = [
|
|
77
|
+
{ path: "identity.identityProfile.customFields.value.numValue" }
|
|
78
|
+
];
|
|
79
|
+
var TRANSFORM_PATHS_6 = [{ path: "body" }];
|
|
59
80
|
function resolveWixIamAuthenticationV1AuthenticationServiceUrl(opts) {
|
|
60
81
|
const domainToMappings = {
|
|
61
82
|
_: [
|
|
@@ -175,11 +196,11 @@ function registerV2(payload) {
|
|
|
175
196
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
176
197
|
{
|
|
177
198
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
178
|
-
paths:
|
|
199
|
+
paths: TRANSFORM_PATHS_0
|
|
179
200
|
},
|
|
180
201
|
{
|
|
181
202
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
182
|
-
paths:
|
|
203
|
+
paths: TRANSFORM_PATHS_1
|
|
183
204
|
}
|
|
184
205
|
]);
|
|
185
206
|
const metadata = {
|
|
@@ -199,19 +220,11 @@ function registerV2(payload) {
|
|
|
199
220
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
200
221
|
{
|
|
201
222
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
202
|
-
paths:
|
|
203
|
-
{ path: "identity.createdDate" },
|
|
204
|
-
{ path: "identity.updatedDate" },
|
|
205
|
-
{ path: "identity.identityProfile.customFields.value.dateValue" },
|
|
206
|
-
{ path: "additionalData.*.dateValue" }
|
|
207
|
-
]
|
|
223
|
+
paths: TRANSFORM_PATHS_2
|
|
208
224
|
},
|
|
209
225
|
{
|
|
210
226
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
211
|
-
paths:
|
|
212
|
-
{ path: "identity.identityProfile.customFields.value.numValue" },
|
|
213
|
-
{ path: "additionalData.*.numValue" }
|
|
214
|
-
]
|
|
227
|
+
paths: TRANSFORM_PATHS_3
|
|
215
228
|
}
|
|
216
229
|
])
|
|
217
230
|
};
|
|
@@ -259,19 +272,11 @@ function loginV2(payload) {
|
|
|
259
272
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
260
273
|
{
|
|
261
274
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
262
|
-
paths:
|
|
263
|
-
{ path: "identity.createdDate" },
|
|
264
|
-
{ path: "identity.updatedDate" },
|
|
265
|
-
{ path: "identity.identityProfile.customFields.value.dateValue" },
|
|
266
|
-
{ path: "additionalData.*.dateValue" }
|
|
267
|
-
]
|
|
275
|
+
paths: TRANSFORM_PATHS_2
|
|
268
276
|
},
|
|
269
277
|
{
|
|
270
278
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
271
|
-
paths:
|
|
272
|
-
{ path: "identity.identityProfile.customFields.value.numValue" },
|
|
273
|
-
{ path: "additionalData.*.numValue" }
|
|
274
|
-
]
|
|
279
|
+
paths: TRANSFORM_PATHS_3
|
|
275
280
|
}
|
|
276
281
|
])
|
|
277
282
|
};
|
|
@@ -305,11 +310,11 @@ function signOn(payload) {
|
|
|
305
310
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
306
311
|
{
|
|
307
312
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
308
|
-
paths:
|
|
313
|
+
paths: TRANSFORM_PATHS_0
|
|
309
314
|
},
|
|
310
315
|
{
|
|
311
316
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
312
|
-
paths:
|
|
317
|
+
paths: TRANSFORM_PATHS_1
|
|
313
318
|
}
|
|
314
319
|
]);
|
|
315
320
|
const metadata = {
|
|
@@ -329,17 +334,11 @@ function signOn(payload) {
|
|
|
329
334
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
330
335
|
{
|
|
331
336
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
332
|
-
paths:
|
|
333
|
-
{ path: "identity.createdDate" },
|
|
334
|
-
{ path: "identity.updatedDate" },
|
|
335
|
-
{ path: "identity.identityProfile.customFields.value.dateValue" }
|
|
336
|
-
]
|
|
337
|
+
paths: TRANSFORM_PATHS_4
|
|
337
338
|
},
|
|
338
339
|
{
|
|
339
340
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
340
|
-
paths:
|
|
341
|
-
{ path: "identity.identityProfile.customFields.value.numValue" }
|
|
342
|
-
]
|
|
341
|
+
paths: TRANSFORM_PATHS_5
|
|
343
342
|
}
|
|
344
343
|
])
|
|
345
344
|
};
|
|
@@ -366,7 +365,7 @@ function logout(payload) {
|
|
|
366
365
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
367
366
|
{
|
|
368
367
|
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
|
369
|
-
paths:
|
|
368
|
+
paths: TRANSFORM_PATHS_6
|
|
370
369
|
}
|
|
371
370
|
])
|
|
372
371
|
};
|
|
@@ -379,6 +378,10 @@ function logout(payload) {
|
|
|
379
378
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
380
379
|
var import_address2 = require("@wix/sdk-runtime/transformations/address");
|
|
381
380
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
381
|
+
var TRANSFORM_PATHS_02 = [{ path: "profile.addresses.address" }];
|
|
382
|
+
var TRANSFORM_PATHS_12 = [
|
|
383
|
+
{ path: "identity.identityProfile.addresses.address" }
|
|
384
|
+
];
|
|
382
385
|
var PrivacyStatus = /* @__PURE__ */ ((PrivacyStatus2) => {
|
|
383
386
|
PrivacyStatus2["UNDEFINED"] = "UNDEFINED";
|
|
384
387
|
PrivacyStatus2["PUBLIC"] = "PUBLIC";
|
|
@@ -431,6 +434,7 @@ var StateType = /* @__PURE__ */ ((StateType2) => {
|
|
|
431
434
|
StateType2["REQUIRE_FIRST_FACTOR"] = "REQUIRE_FIRST_FACTOR";
|
|
432
435
|
StateType2["REQUIRE_MISSING_FIELDS"] = "REQUIRE_MISSING_FIELDS";
|
|
433
436
|
StateType2["REQUIRE_REGISTRATION_FACTOR"] = "REQUIRE_REGISTRATION_FACTOR";
|
|
437
|
+
StateType2["REQUIRE_LOGIN_CHALLENGE"] = "REQUIRE_LOGIN_CHALLENGE";
|
|
434
438
|
return StateType2;
|
|
435
439
|
})(StateType || {});
|
|
436
440
|
var StatusName = /* @__PURE__ */ ((StatusName2) => {
|
|
@@ -497,12 +501,13 @@ async function registerV22(loginId, options) {
|
|
|
497
501
|
profile: options?.profile,
|
|
498
502
|
captchaTokens: options?.captchaTokens,
|
|
499
503
|
clientMetaData: options?.clientMetaData,
|
|
500
|
-
factorType: options?.factorType
|
|
504
|
+
factorType: options?.factorType,
|
|
505
|
+
organizationId: options?.organizationId
|
|
501
506
|
}),
|
|
502
507
|
[
|
|
503
508
|
{
|
|
504
509
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
505
|
-
paths:
|
|
510
|
+
paths: TRANSFORM_PATHS_02
|
|
506
511
|
}
|
|
507
512
|
]
|
|
508
513
|
);
|
|
@@ -515,7 +520,7 @@ async function registerV22(loginId, options) {
|
|
|
515
520
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
516
521
|
{
|
|
517
522
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
518
|
-
paths:
|
|
523
|
+
paths: TRANSFORM_PATHS_12
|
|
519
524
|
}
|
|
520
525
|
])
|
|
521
526
|
);
|
|
@@ -530,7 +535,8 @@ async function registerV22(loginId, options) {
|
|
|
530
535
|
profile: "$[1].profile",
|
|
531
536
|
captchaTokens: "$[1].captchaTokens",
|
|
532
537
|
clientMetaData: "$[1].clientMetaData",
|
|
533
|
-
factorType: "$[1].factorType"
|
|
538
|
+
factorType: "$[1].factorType",
|
|
539
|
+
organizationId: "$[1].organizationId"
|
|
534
540
|
},
|
|
535
541
|
singleArgumentUnchanged: false
|
|
536
542
|
},
|
|
@@ -581,7 +587,7 @@ async function loginV22(loginId, options) {
|
|
|
581
587
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
582
588
|
{
|
|
583
589
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
584
|
-
paths:
|
|
590
|
+
paths: TRANSFORM_PATHS_12
|
|
585
591
|
}
|
|
586
592
|
])
|
|
587
593
|
);
|
|
@@ -641,7 +647,7 @@ async function signOn2(loginId, options) {
|
|
|
641
647
|
[
|
|
642
648
|
{
|
|
643
649
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
644
|
-
paths:
|
|
650
|
+
paths: TRANSFORM_PATHS_02
|
|
645
651
|
}
|
|
646
652
|
]
|
|
647
653
|
);
|
|
@@ -654,7 +660,7 @@ async function signOn2(loginId, options) {
|
|
|
654
660
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
655
661
|
{
|
|
656
662
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
657
|
-
paths:
|
|
663
|
+
paths: TRANSFORM_PATHS_12
|
|
658
664
|
}
|
|
659
665
|
])
|
|
660
666
|
);
|