@reactionary/core 0.12.3 → 0.12.5
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/analytics/index.js +1 -0
- package/analytics/placed-order.js +15 -0
- package/capabilities/analytics.capability.js +4 -0
- package/capabilities/identity.capability.js +14 -0
- package/package.json +1 -1
- package/schemas/errors/identity-conflict.error.js +8 -0
- package/schemas/errors/index.js +1 -0
- package/schemas/models/identity-provider.model.js +26 -0
- package/schemas/models/index.js +1 -0
- package/schemas/mutations/analytics/events/commerce.mutation.js +3 -1
- package/schemas/mutations/identity.mutation.js +13 -1
- package/schemas/queries/identity.query.js +2 -0
- package/schemas/session.schema.js +6 -1
- package/src/analytics/index.d.ts +1 -0
- package/src/analytics/placed-order.d.ts +24 -0
- package/src/capabilities/identity.capability.d.ts +13 -2
- package/src/schemas/errors/identity-conflict.error.d.ts +7 -0
- package/src/schemas/errors/index.d.ts +1 -0
- package/src/schemas/models/analytics/event.model.d.ts +6948 -2666
- package/src/schemas/models/identity-provider.model.d.ts +23 -0
- package/src/schemas/models/index.d.ts +1 -0
- package/src/schemas/mutations/analytics/events/commerce.mutation.d.ts +2143 -2
- package/src/schemas/mutations/analytics/events/index.d.ts +2143 -2
- package/src/schemas/mutations/identity.mutation.d.ts +17 -0
- package/src/schemas/queries/identity.query.d.ts +2 -0
- package/src/schemas/session.schema.d.ts +15 -0
|
@@ -9,6 +9,23 @@ export declare const IdentityMutationRegisterSchema: z.ZodObject<{
|
|
|
9
9
|
username: z.ZodString;
|
|
10
10
|
password: z.ZodString;
|
|
11
11
|
}, z.core.$loose>;
|
|
12
|
+
export declare const IdentityMutationStartExternalLoginSchema: z.ZodObject<{
|
|
13
|
+
provider: z.ZodObject<{
|
|
14
|
+
key: z.ZodString;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
callbackUrl: z.ZodURL;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
export declare const IdentityMutationCompleteExternalLoginSchema: z.ZodObject<{
|
|
19
|
+
provider: z.ZodObject<{
|
|
20
|
+
key: z.ZodString;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
callbackUrl: z.ZodURL;
|
|
23
|
+
callbackParameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
24
|
+
}, z.core.$loose>;
|
|
12
25
|
export type IdentityMutationLogin = InferType<typeof IdentityMutationLoginSchema>;
|
|
13
26
|
export type IdentityMutationLogout = InferType<typeof IdentityMutationLogoutSchema>;
|
|
14
27
|
export type IdentityMutationRegister = InferType<typeof IdentityMutationRegisterSchema>;
|
|
28
|
+
export type IdentityMutationStartExternalLogin = InferType<typeof IdentityMutationStartExternalLoginSchema>;
|
|
29
|
+
export type IdentityMutationCompleteExternalLogin = Omit<InferType<typeof IdentityMutationCompleteExternalLoginSchema>, 'callbackParameters'> & {
|
|
30
|
+
callbackParameters: Record<string, string>;
|
|
31
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type * as z from 'zod';
|
|
2
2
|
import type { InferType } from '../../zod-utils.js';
|
|
3
3
|
export declare const IdentityQuerySelfSchema: z.ZodObject<{}, z.core.$loose>;
|
|
4
|
+
export declare const IdentityQueryProvidersSchema: z.ZodObject<{}, z.core.$loose>;
|
|
5
|
+
export type IdentityQueryProviders = InferType<typeof IdentityQueryProvidersSchema>;
|
|
4
6
|
export type IdentityQuerySelf = InferType<typeof IdentityQuerySelfSchema>;
|
|
@@ -203,6 +203,11 @@ export declare const IdentityContextSchema: z.ZodObject<{
|
|
|
203
203
|
type: z.ZodLiteral<"Registered">;
|
|
204
204
|
}, z.core.$loose>], "type">;
|
|
205
205
|
lastUpdated: z.ZodCoercedDate<unknown>;
|
|
206
|
+
pendingExternalLogin: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
provider: z.ZodString;
|
|
208
|
+
state: z.ZodString;
|
|
209
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
210
|
+
}, z.core.$loose>>;
|
|
206
211
|
}, z.core.$loose>;
|
|
207
212
|
export declare const SessionSchema: z.ZodObject<{
|
|
208
213
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -221,6 +226,11 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
221
226
|
type: z.ZodLiteral<"Registered">;
|
|
222
227
|
}, z.core.$loose>], "type">;
|
|
223
228
|
lastUpdated: z.ZodCoercedDate<unknown>;
|
|
229
|
+
pendingExternalLogin: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
provider: z.ZodString;
|
|
231
|
+
state: z.ZodString;
|
|
232
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
233
|
+
}, z.core.$loose>>;
|
|
224
234
|
}, z.core.$loose>;
|
|
225
235
|
marketingContext: z.ZodDefault<z.ZodObject<{
|
|
226
236
|
identifier: z.ZodObject<{
|
|
@@ -258,6 +268,11 @@ export declare const RequestContextSchema: z.ZodObject<{
|
|
|
258
268
|
type: z.ZodLiteral<"Registered">;
|
|
259
269
|
}, z.core.$loose>], "type">;
|
|
260
270
|
lastUpdated: z.ZodCoercedDate<unknown>;
|
|
271
|
+
pendingExternalLogin: z.ZodOptional<z.ZodObject<{
|
|
272
|
+
provider: z.ZodString;
|
|
273
|
+
state: z.ZodString;
|
|
274
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
275
|
+
}, z.core.$loose>>;
|
|
261
276
|
}, z.core.$loose>;
|
|
262
277
|
marketingContext: z.ZodDefault<z.ZodObject<{
|
|
263
278
|
identifier: z.ZodObject<{
|