@veruna/api-contracts 9.1.0 → 9.2.0

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.
@@ -0,0 +1,8 @@
1
+ import { ProfileAnchor } from './profile-anchor.enum';
2
+ import { ProfileTab } from './profile-tab.enum';
3
+ export declare const PAGE_ROUTES: {
4
+ readonly HOME: "/";
5
+ readonly DAILY_REWARDS: "/daily-rewards";
6
+ readonly TARIFFS: "/tariffs";
7
+ };
8
+ export declare function buildProfileUrl(tab: ProfileTab, anchor?: ProfileAnchor): string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PAGE_ROUTES = void 0;
4
+ exports.buildProfileUrl = buildProfileUrl;
5
+ exports.PAGE_ROUTES = {
6
+ HOME: '/',
7
+ DAILY_REWARDS: '/daily-rewards',
8
+ TARIFFS: '/tariffs',
9
+ };
10
+ function buildProfileUrl(tab, anchor) {
11
+ return `/profile/my?tab=${tab}${anchor ? `#${anchor}` : ''}`;
12
+ }
13
+ //# sourceMappingURL=frontend-routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend-routes.js","sourceRoot":"","sources":["../../shared/frontend-routes.ts"],"names":[],"mappings":";;;AAeA,0CAEC;AATY,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,GAAG;IACT,aAAa,EAAE,gBAAgB;IAC/B,OAAO,EAAE,UAAU;CACb,CAAC;AAGX,SAAgB,eAAe,CAAC,GAAe,EAAE,MAAsB;IACnE,OAAO,mBAAmB,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACjE,CAAC"}
@@ -11,3 +11,6 @@ export * from './email-normalization';
11
11
  export * from './email-normalization.types';
12
12
  export * from './metadata.schema';
13
13
  export * from './audience.enum';
14
+ export * from './profile-tab.enum';
15
+ export * from './profile-anchor.enum';
16
+ export * from './frontend-routes';
@@ -27,4 +27,7 @@ __exportStar(require("./email-normalization"), exports);
27
27
  __exportStar(require("./email-normalization.types"), exports);
28
28
  __exportStar(require("./metadata.schema"), exports);
29
29
  __exportStar(require("./audience.enum"), exports);
30
+ __exportStar(require("./profile-tab.enum"), exports);
31
+ __exportStar(require("./profile-anchor.enum"), exports);
32
+ __exportStar(require("./frontend-routes"), exports);
30
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,0CAAwB;AACxB,qDAAmC;AACnC,mDAAiC;AACjC,8CAA4B;AAC5B,kEAAgD;AAChD,wDAAsC;AACtC,8DAA4C;AAC5C,oDAAkC;AAClC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,0CAAwB;AACxB,qDAAmC;AACnC,mDAAiC;AACjC,8CAA4B;AAC5B,kEAAgD;AAChD,wDAAsC;AACtC,8DAA4C;AAC5C,oDAAkC;AAClC,kDAAgC;AAChC,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC"}
@@ -0,0 +1,5 @@
1
+ export declare enum ProfileAnchor {
2
+ EMAIL = "email",
3
+ CHANGE_TARIFF = "change-tariff",
4
+ PASSWORD = "password"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileAnchor = void 0;
4
+ var ProfileAnchor;
5
+ (function (ProfileAnchor) {
6
+ ProfileAnchor["EMAIL"] = "email";
7
+ ProfileAnchor["CHANGE_TARIFF"] = "change-tariff";
8
+ ProfileAnchor["PASSWORD"] = "password";
9
+ })(ProfileAnchor || (exports.ProfileAnchor = ProfileAnchor = {}));
10
+ //# sourceMappingURL=profile-anchor.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-anchor.enum.js","sourceRoot":"","sources":["../../shared/profile-anchor.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,gDAA+B,CAAA;IAC/B,sCAAqB,CAAA;AACzB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
@@ -0,0 +1,11 @@
1
+ export declare enum ProfileTab {
2
+ PROFILE = "profile",
3
+ SUBSCRIPTION = "subscription",
4
+ SECURITY = "security",
5
+ NOTIFICATIONS = "notifications",
6
+ INTEGRATIONS = "integrations",
7
+ TRANSACTIONS = "transactions",
8
+ FILES = "files",
9
+ BILLING = "billing",
10
+ APPEARANCE = "appearance"
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProfileTab = void 0;
4
+ var ProfileTab;
5
+ (function (ProfileTab) {
6
+ ProfileTab["PROFILE"] = "profile";
7
+ ProfileTab["SUBSCRIPTION"] = "subscription";
8
+ ProfileTab["SECURITY"] = "security";
9
+ ProfileTab["NOTIFICATIONS"] = "notifications";
10
+ ProfileTab["INTEGRATIONS"] = "integrations";
11
+ ProfileTab["TRANSACTIONS"] = "transactions";
12
+ ProfileTab["FILES"] = "files";
13
+ ProfileTab["BILLING"] = "billing";
14
+ ProfileTab["APPEARANCE"] = "appearance";
15
+ })(ProfileTab || (exports.ProfileTab = ProfileTab = {}));
16
+ //# sourceMappingURL=profile-tab.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-tab.enum.js","sourceRoot":"","sources":["../../shared/profile-tab.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,UAUX;AAVD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,2CAA6B,CAAA;IAC7B,mCAAqB,CAAA;IACrB,6CAA+B,CAAA;IAC/B,2CAA6B,CAAA;IAC7B,2CAA6B,CAAA;IAC7B,6BAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,uCAAyB,CAAA;AAC7B,CAAC,EAVW,UAAU,0BAAV,UAAU,QAUrB"}