@simulacrum/auth0-simulator 0.11.0 → 0.11.2
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/index.cjs +192 -315
- package/dist/index.d.cts +11 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +11 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +194 -316
- package/dist/index.js.map +1 -1
- package/package.json +13 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AnyState, ExtendSimulationActions, ExtendSimulationSchema, ExtendSimulationSelectors, FoundationSimulator, SimulationHandlers, SimulationStore, TableOutput
|
|
1
|
+
import { AnyState, ExtendSimulationActions, ExtendSimulationSchema, ExtendSimulationSelectors, ExtendStoreConfig, FoundationSimulator, SimulationHandlers, SimulationStore, TableOutput } from "@simulacrum/foundation-simulator";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { Router } from "express";
|
|
3
4
|
|
|
4
5
|
//#region src/store/entities.d.ts
|
|
5
6
|
declare const auth0UserSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -105,9 +106,13 @@ type ExtendedSchema = ({
|
|
|
105
106
|
};
|
|
106
107
|
type ExtendActions = typeof inputActions;
|
|
107
108
|
type ExtendSelectors = typeof inputSelectors;
|
|
108
|
-
type
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
type Auth0Schema = ReturnType<ExtendedSchema>;
|
|
110
|
+
type Auth0Actions = ReturnType<ExtendActions>;
|
|
111
|
+
type Auth0Selectors = ReturnType<ExtendSelectors>;
|
|
112
|
+
type ExtendedSimulationStore = SimulationStore<Auth0Schema, Auth0Actions, Auth0Selectors>;
|
|
113
|
+
declare const inputActions: (_args: ExtendSimulationActions<ExtendedSchema>) => ExtendSimulationActions<ExtendedSchema>;
|
|
114
|
+
declare const inputSelectors: (_args: ExtendSimulationSelectors<ExtendedSchema>) => ExtendSimulationSelectors<ExtendedSchema>;
|
|
115
|
+
type Auth0ExtendStoreInput = ExtendStoreConfig<Auth0Schema, Auth0Actions, Auth0Selectors>;
|
|
111
116
|
//#endregion
|
|
112
117
|
//#region src/types.d.ts
|
|
113
118
|
declare const configurationSchema: z.ZodObject<{
|
|
@@ -176,13 +181,12 @@ type Auth0Simulator = (args?: {
|
|
|
176
181
|
debug?: boolean;
|
|
177
182
|
initialState?: Auth0InitialStore;
|
|
178
183
|
extend?: {
|
|
179
|
-
extendStore?:
|
|
184
|
+
extendStore?: Auth0ExtendStoreInput;
|
|
180
185
|
openapiHandlers?: (simulationStore: ExtendedSimulationStore) => SimulationHandlers;
|
|
181
|
-
extendRouter?:
|
|
186
|
+
extendRouter?: (router: Router, simulationStore: ExtendedSimulationStore) => void;
|
|
182
187
|
};
|
|
183
188
|
options?: Partial<Auth0Configuration>;
|
|
184
189
|
}) => FoundationSimulator<ExtendedSimulationStore>;
|
|
185
|
-
type SimulationInput = Parameters<typeof createFoundationSimulationServer>[0];
|
|
186
190
|
declare const simulation: Auth0Simulator;
|
|
187
191
|
//#endregion
|
|
188
192
|
export { Auth0Simulator, auth0UserSchema, defaultUser, simulation };
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/store/entities.ts","../src/store/index.ts","../src/types.ts","../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/store/entities.ts","../src/store/index.ts","../src/types.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,iBAAe,CAAA,CAAA,WAAA,CAAA,CAAA;;;EAAf,QAAA,cAcT,cAAA,YAAA,CAAA,CAAA;EAAA,KAAA,eAAA,YAAA,CAAA;;;;;;;;;;;;OAdwB,CAAA,EAAA,MAAA,GAAA,SAAA;SAAA,CAAA,EAAA,MAAA,GAAA,SAAA;CAAA,CAAA,EAAA;EAehB,EAAA,EAAA,MAAA;EAA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QAAA,EAAA,MAAA;IAEX,KAAA,EAAA,MAAA;;;;;;;;;;;;;;;;IAFkC,KAAA,EAAA,MAAA;IAAA,QAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAGxB,CAAA,EAAA;EAIA,IAAA,CAAA,EAAA,MAAA,GAAA,SAAiB;EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;UAAkB,CAAA,EAAA,MAAA,GAAA,SAAA;UAAb,CAAA,EAAA,MAAA,GAAA,SAAA;EAAK,YAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;ECV3B,UAAA,CAAA,EAAA,MAAc,GAAA,SAAA;EAAA,YAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;AAAe,KCQ7B,YAAA,GAAe,CAAA,CAAE,KDRY,CAAA,OCQC,mBDRD,CAAA;KCUpC,cAAA,GDPc,UAAA,GAAA,UAAA,GAAA,OAAA,GAAA,MAAA;AACK,KCqBZ,kBAAA,GAAqB,QDrBT,CCqBkB,IDrBlB,CCqBuB,YDrBvB,ECqBqC,cDrBrC,CAAA,CAAA,GCsBtB,IDtBsB,CCsBjB,YDtBiB,ECsBH,cDtBG,CAAA;;;ADRpB,KGDQ,cAAA,GHCR,CAAA,KAAA,EAAA;;iBGCa;;kBAEC;wCAEK,4BACd;4BAEK,yBACS;;YAGX,QAAQ;MACd,oBAAoB;cAEb,YAAY"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AnyState, ExtendSimulationActions, ExtendSimulationSchema, ExtendSimulationSelectors, FoundationSimulator, SimulationHandlers, SimulationStore, TableOutput
|
|
1
|
+
import { AnyState, ExtendSimulationActions, ExtendSimulationSchema, ExtendSimulationSelectors, ExtendStoreConfig, FoundationSimulator, SimulationHandlers, SimulationStore, TableOutput } from "@simulacrum/foundation-simulator";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { Router } from "express";
|
|
3
4
|
|
|
4
5
|
//#region src/store/entities.d.ts
|
|
5
6
|
declare const auth0UserSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -105,9 +106,13 @@ type ExtendedSchema = ({
|
|
|
105
106
|
};
|
|
106
107
|
type ExtendActions = typeof inputActions;
|
|
107
108
|
type ExtendSelectors = typeof inputSelectors;
|
|
108
|
-
type
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
type Auth0Schema = ReturnType<ExtendedSchema>;
|
|
110
|
+
type Auth0Actions = ReturnType<ExtendActions>;
|
|
111
|
+
type Auth0Selectors = ReturnType<ExtendSelectors>;
|
|
112
|
+
type ExtendedSimulationStore = SimulationStore<Auth0Schema, Auth0Actions, Auth0Selectors>;
|
|
113
|
+
declare const inputActions: (_args: ExtendSimulationActions<ExtendedSchema>) => ExtendSimulationActions<ExtendedSchema>;
|
|
114
|
+
declare const inputSelectors: (_args: ExtendSimulationSelectors<ExtendedSchema>) => ExtendSimulationSelectors<ExtendedSchema>;
|
|
115
|
+
type Auth0ExtendStoreInput = ExtendStoreConfig<Auth0Schema, Auth0Actions, Auth0Selectors>;
|
|
111
116
|
//#endregion
|
|
112
117
|
//#region src/types.d.ts
|
|
113
118
|
declare const configurationSchema: z.ZodObject<{
|
|
@@ -176,13 +181,12 @@ type Auth0Simulator = (args?: {
|
|
|
176
181
|
debug?: boolean;
|
|
177
182
|
initialState?: Auth0InitialStore;
|
|
178
183
|
extend?: {
|
|
179
|
-
extendStore?:
|
|
184
|
+
extendStore?: Auth0ExtendStoreInput;
|
|
180
185
|
openapiHandlers?: (simulationStore: ExtendedSimulationStore) => SimulationHandlers;
|
|
181
|
-
extendRouter?:
|
|
186
|
+
extendRouter?: (router: Router, simulationStore: ExtendedSimulationStore) => void;
|
|
182
187
|
};
|
|
183
188
|
options?: Partial<Auth0Configuration>;
|
|
184
189
|
}) => FoundationSimulator<ExtendedSimulationStore>;
|
|
185
|
-
type SimulationInput = Parameters<typeof createFoundationSimulationServer>[0];
|
|
186
190
|
declare const simulation: Auth0Simulator;
|
|
187
191
|
//#endregion
|
|
188
192
|
export { Auth0Simulator, auth0UserSchema, defaultUser, simulation };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/store/entities.ts","../src/store/index.ts","../src/types.ts","../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/store/entities.ts","../src/store/index.ts","../src/types.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,iBAAe,CAAA,CAAA,WAAA,CAAA,CAAA;;;EAAf,QAAA,cAcT,cAAA,YAAA,CAAA,CAAA;EAAA,KAAA,eAAA,YAAA,CAAA;;;;;;;;;;;;OAdwB,CAAA,EAAA,MAAA,GAAA,SAAA;SAAA,CAAA,EAAA,MAAA,GAAA,SAAA;CAAA,CAAA,EAAA;EAehB,EAAA,EAAA,MAAA;EAAS,IAAA,EAAA,MAAA;UAAkB,EAAA,MAAA;OAAb,CAAA,EAAA,MAAA,GAAA,SAAA;EAAK,OAAA,CAAA,EAAA,MAAA,GAAA,SAAA;AAC/B,CAAA,EAAA;EAKa,IAAA,EAAA,MAAA;EAEX,EAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;;KARU,SAAA,GAAY,CAAA,CAAE,aAAa;cAC1B;;;;;;;cAKA,yBAAuB,CAAA,CAAA;;;IAAA,IAAA,aAAA;IAAA,QAAA,cAAA,cAAA,YAAA,CAAA,CAAA;IAGxB,KAAA,eAAW,YAAA,CAAA;IAIX,OAAA,eAAiB,YAAA,CAAA;EAAA,CAAA,EAAA,OAAA,cAAA,EAAA;IAAkB,EAAA,EAAA,MAAA;IAAf,IAAE,EAAA,MAAA;IAAK,QAAA,EAAA,MAAA;;;;ICV3B,IAAA,EAAA,MAAA;IAAc,EAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAM,QAAA,CAAA,EAAA,MAAA,GAAA,SAAA;IAAS,KAAA,CAAA,EAAA,MAA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