lancer-shared 1.0.134 → 1.0.136

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.
@@ -4,7 +4,7 @@ export declare const COLLECTIONS: {
4
4
  readonly CAMPAIGNS: "campaigns";
5
5
  readonly LEADS: "leads";
6
6
  readonly EVENTS: "events";
7
- readonly SCRAPER_ACCOUNTS: "system/accounts/scrapers";
8
- readonly MANAGER_ACCOUNTS: "system/accounts/managers";
7
+ readonly SCRAPER_ACCOUNTS: "scrapers";
8
+ readonly BIDDER_ACCOUNTS: "bidders";
9
9
  readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
10
10
  };
@@ -8,7 +8,7 @@ exports.COLLECTIONS = {
8
8
  CAMPAIGNS: 'campaigns',
9
9
  LEADS: 'leads',
10
10
  EVENTS: 'events',
11
- SCRAPER_ACCOUNTS: 'system/accounts/scrapers',
12
- MANAGER_ACCOUNTS: 'system/accounts/managers',
11
+ SCRAPER_ACCOUNTS: 'scrapers',
12
+ BIDDER_ACCOUNTS: 'bidders',
13
13
  CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
14
14
  };
@@ -15,4 +15,4 @@ export * from './common-questions';
15
15
  export * from './job-status';
16
16
  export * from './routes';
17
17
  export * from './collections';
18
- export * from './account-status';
18
+ export * from './upwork-accounts';
@@ -37,4 +37,4 @@ __exportStar(require("./common-questions"), exports);
37
37
  __exportStar(require("./job-status"), exports);
38
38
  __exportStar(require("./routes"), exports);
39
39
  __exportStar(require("./collections"), exports);
40
- __exportStar(require("./account-status"), exports);
40
+ __exportStar(require("./upwork-accounts"), exports);
@@ -0,0 +1,5 @@
1
+ import { AccountStatus } from '../types/account/account-status';
2
+ import { BidderAccountProvider } from '../types/account/bidder-account';
3
+ export declare const accountStatusOrder: AccountStatus[];
4
+ export declare const accountStatusDisplayMap: Record<AccountStatus, string>;
5
+ export declare const bidderAccountProviderDisplayMap: Record<BidderAccountProvider, string>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bidderAccountProviderDisplayMap = exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
4
+ exports.accountStatusOrder = [
5
+ 'verification_required',
6
+ 'shadow_banned',
7
+ 'healthy',
8
+ 'banned',
9
+ 'suspended',
10
+ ];
11
+ exports.accountStatusDisplayMap = {
12
+ verification_required: 'Verification Required',
13
+ shadow_banned: 'Shadow Banned',
14
+ healthy: 'Healthy',
15
+ banned: 'Banned',
16
+ suspended: 'Suspended',
17
+ };
18
+ exports.bidderAccountProviderDisplayMap = {
19
+ 'lancer-provided': 'Lancer Provided',
20
+ 'user-provided': 'User Provided',
21
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.134",
4
+ "version": "1.0.136",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",