lancer-shared 1.0.126 → 1.0.128

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.
@@ -6,5 +6,6 @@ export declare const COLLECTIONS: {
6
6
  readonly EVENTS: "events";
7
7
  readonly SCRAPER_ACCOUNTS: "system/accounts/scrapers";
8
8
  readonly MANAGER_ACCOUNTS: "system/accounts/managers";
9
+ readonly BIDDING_CONFIG: (userId: string) => string;
9
10
  readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
10
11
  };
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.COLLECTIONS = void 0;
4
4
  // Base collection names
5
5
  exports.COLLECTIONS = {
6
- USERS: "users",
7
- SETTINGS: "settings",
8
- CAMPAIGNS: "campaigns",
9
- LEADS: "leads",
10
- EVENTS: "events",
11
- SCRAPER_ACCOUNTS: "system/accounts/scrapers",
12
- MANAGER_ACCOUNTS: "system/accounts/managers",
6
+ USERS: 'users',
7
+ SETTINGS: 'settings',
8
+ CAMPAIGNS: 'campaigns',
9
+ LEADS: 'leads',
10
+ EVENTS: 'events',
11
+ SCRAPER_ACCOUNTS: 'system/accounts/scrapers',
12
+ MANAGER_ACCOUNTS: 'system/accounts/managers',
13
+ BIDDING_CONFIG: (userId) => `users/${userId}/settings/agencyConfig`,
13
14
  CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
14
15
  };
@@ -1,11 +1,10 @@
1
- type Success<T> = {
1
+ export type Success<T> = {
2
2
  data: T;
3
3
  error: null;
4
4
  };
5
- type Failure<E> = {
5
+ export type Failure<E> = {
6
6
  data: null;
7
7
  error: E;
8
8
  };
9
- type Result<T, E = Error> = Success<T> | Failure<E>;
9
+ export type Result<T, E = Error> = Success<T> | Failure<E>;
10
10
  export declare function tryCatch<T, E = Error>(promise: Promise<T>): Promise<Result<T, E>>;
11
- export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.126",
4
+ "version": "1.0.128",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",