monorise 1.15.0 → 2.0.0-dev.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.
Files changed (34) hide show
  1. package/dist/base/index.d.ts +227 -1
  2. package/dist/base/index.js +382 -0
  3. package/dist/base/index.js.map +1 -1
  4. package/dist/cli/cli.js +300 -131
  5. package/dist/cli/cli.js.map +1 -1
  6. package/dist/cli/templates/files/api-keys.ts +12 -0
  7. package/dist/cli/templates/files/monorise.config.ts +2 -0
  8. package/dist/cli/templates/files/proxy-route.ts +12 -22
  9. package/dist/cli/templates/files/sst.config.ts +4 -1
  10. package/dist/cli/templates/files/ws-ticket-route.ts +21 -0
  11. package/dist/core/index.d.ts +63 -36
  12. package/dist/core/index.js +785 -208
  13. package/dist/core/index.js.map +1 -1
  14. package/dist/index.d.ts +24 -7
  15. package/dist/proxy/index.d.ts +275 -2
  16. package/dist/proxy/index.js +696 -37
  17. package/dist/proxy/index.js.map +1 -1
  18. package/dist/react/index.d.ts +2 -164
  19. package/dist/react/index.d.ts.map +1 -1
  20. package/dist/react/index.js +47 -189
  21. package/dist/react/index.js.map +1 -1
  22. package/dist/react/lib/api.d.ts +1 -2
  23. package/dist/react/lib/api.d.ts.map +1 -1
  24. package/dist/react/store/monorise.store.d.ts +0 -54
  25. package/dist/react/store/monorise.store.d.ts.map +1 -1
  26. package/dist/sst/components/monorise-core.d.ts.map +1 -1
  27. package/dist/sst/index.js +4 -1
  28. package/dist/sst/index.js.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/cli/templates/files/proxy-request.ts +0 -50
  31. package/dist/react/actions/auth.action.d.ts +0 -24
  32. package/dist/react/actions/auth.action.d.ts.map +0 -1
  33. package/dist/react/services/auth.service.d.ts +0 -21
  34. package/dist/react/services/auth.service.d.ts.map +0 -1
@@ -1,24 +0,0 @@
1
- import type { Entity } from '../../base/index';
2
- import type { AuthService } from '../services/auth.service';
3
- import type { MonoriseStore } from '../store/monorise.store';
4
- declare const initAuthActions: (store: MonoriseStore, authService: AuthService) => {
5
- requestLogin: (entityType: Entity, payload: {
6
- email: string;
7
- }) => Promise<any>;
8
- useProfile: <T extends Record<string, unknown>>() => T & {
9
- displayName: string;
10
- email: string;
11
- accountId: string;
12
- impersonatorId?: string;
13
- };
14
- getProfile: () => Promise<void>;
15
- useIsUnauthorized: () => {
16
- isUnauthorized: boolean;
17
- isLoading: boolean;
18
- };
19
- setIsUnauthorized: (isUnauthorized: boolean) => void;
20
- logout: () => void;
21
- };
22
- export { initAuthActions };
23
- export type AuthActions = ReturnType<typeof initAuthActions>;
24
- //# sourceMappingURL=auth.action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.action.d.ts","sourceRoot":"","sources":["../../actions/auth.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,QAAA,MAAM,eAAe,GAAI,OAAO,aAAa,EAAE,aAAa,WAAW;+BAEvD,MAAM,WACT;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;iBAUR,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,OAAK,CAAC,GAAG;QAC5D,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;;;;;;wCAwC0C,OAAO;;CAyBnD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { Entity } from '../../base/index';
2
- import type { AxiosInterceptor } from '../types/api.type';
3
- type LoginPayload = {
4
- email: string;
5
- };
6
- type Options = {
7
- apiBaseUrl?: string;
8
- };
9
- declare const initAuthService: (axios: AxiosInterceptor) => {
10
- requestLoginMagicLink: (entityType: Entity, payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
11
- getSessionProfile: <T extends Record<string, unknown>>() => Promise<import("axios").AxiosResponse<T & {
12
- displayName: string;
13
- email: string;
14
- accountId: string;
15
- }, any, {}>>;
16
- logout: () => Promise<import("axios").AxiosResponse<any, any, {}>>;
17
- setOptions: (opts: Options) => void;
18
- };
19
- export default initAuthService;
20
- export type AuthService = ReturnType<typeof initAuthService>;
21
- //# sourceMappingURL=auth.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../services/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,OAAO,gBAAgB;wCAIH,MAAM,WAAW,YAAY;wBAgB7C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;qBAGzC,MAAM;eACZ,MAAM;mBACF,MAAM;;;uBAWG,OAAO;CAalC,CAAC;AAEF,eAAe,eAAe,CAAC;AAE/B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}