@wirecat/cli-core 1.0.0-rc.0 → 1.1.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.
- package/CHANGELOG.md +186 -0
- package/THIRD_PARTY_NOTICES +47 -0
- package/dist/cli/account-rename.js +1 -1
- package/dist/cli/bot/api-input.d.ts +5 -0
- package/dist/cli/bot/api-input.js +6 -1
- package/dist/cli/bot/api.js +7 -1
- package/dist/cli/domain-lists-command.d.ts +16 -0
- package/dist/cli/domain-lists-command.js +88 -0
- package/dist/cli/index.d.ts +4 -3
- package/dist/cli/index.js +3 -2
- package/dist/cli/model-catalogue-command.d.ts +6 -0
- package/dist/cli/model-catalogue-command.js +1 -1
- package/dist/cli/oauth-session.d.ts +38 -4
- package/dist/cli/oauth-session.js +66 -22
- package/dist/cli/service-api.js +3 -1
- package/dist/cli/shared-command-exports.d.ts +2 -0
- package/dist/cli/shared-command-exports.js +3 -0
- package/dist/cli/token-session.d.ts +9 -0
- package/dist/cli/token-session.js +29 -2
- package/dist/crm/manifest/map.d.ts +5 -2
- package/dist/crm/manifest/map.js +14 -2
- package/dist/domain/domain-lists.d.ts +86 -0
- package/dist/domain/domain-lists.js +110 -0
- package/dist/domain/free-mail-domains.generated.d.ts +1 -0
- package/dist/domain/free-mail-domains.generated.js +4 -0
- package/dist/domain/organization-sectors.d.ts +16 -0
- package/dist/domain/organization-sectors.generated.d.ts +12 -0
- package/dist/domain/organization-sectors.generated.js +15 -0
- package/dist/domain/organization-sectors.js +22 -0
- package/dist/domain/person-kinds.d.ts +5 -0
- package/dist/domain/person-kinds.js +5 -0
- package/dist/entities/domain-list.d.ts +27 -0
- package/dist/entities/domain-list.js +28 -0
- package/dist/entities/index.d.ts +20 -1
- package/dist/entities/index.js +3 -1
- package/dist/entities/knowledge-lists.d.ts +1 -0
- package/dist/entities/knowledge-lists.js +2 -0
- package/dist/errors/reasons.js +14 -3
- package/dist/mail/mail-types.d.ts +48 -0
- package/dist/mail/mail-types.js +218 -0
- package/dist/mail/score.d.ts +2 -0
- package/dist/mail/score.js +9 -2
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/storage.d.ts +10 -2
- package/dist/oauth/storage.js +23 -9
- package/dist/services/domain-lists-download.d.ts +26 -0
- package/dist/services/domain-lists-download.js +155 -0
- package/dist/services/search-all-rank.d.ts +44 -0
- package/dist/services/search-all-rank.js +112 -0
- package/dist/services/search-all-tracker.d.ts +58 -0
- package/dist/services/search-all-tracker.js +155 -0
- package/dist/services/search-all.d.ts +1 -8
- package/dist/services/search-all.js +18 -199
- package/dist/services/tracker-meaning.js +1 -1
- package/dist/store/areas.d.ts +1 -0
- package/dist/store/index.d.ts +2 -1
- package/dist/store/index.js +1 -1
- package/dist/store/people.d.ts +30 -0
- package/dist/store/people.js +16 -1
- package/dist/store/sqlite/accounts.js +3 -1
- package/dist/store/sqlite/domain-organizations.d.ts +36 -0
- package/dist/store/sqlite/domain-organizations.js +288 -0
- package/dist/store/sqlite/email-types.d.ts +79 -0
- package/dist/store/sqlite/email-types.js +261 -0
- package/dist/store/sqlite/emails.d.ts +11 -2
- package/dist/store/sqlite/emails.js +18 -7
- package/dist/store/sqlite/identities.d.ts +4 -1
- package/dist/store/sqlite/identities.js +11 -2
- package/dist/store/sqlite/identity-rekey.js +2 -0
- package/dist/store/sqlite/knowledge.d.ts +2 -9
- package/dist/store/sqlite/manifest.js +6 -0
- package/dist/store/sqlite/merged-persons.d.ts +3 -2
- package/dist/store/sqlite/merged-persons.js +5 -3
- package/dist/store/sqlite/migrations.generated.js +77 -0
- package/dist/store/sqlite/organizations.d.ts +12 -1
- package/dist/store/sqlite/organizations.js +9 -1
- package/dist/store/sqlite/people-list.js +69 -11
- package/dist/store/sqlite/person-links.js +13 -3
- package/dist/store/sqlite/person-match-scan.js +14 -1
- package/dist/store/sqlite/schema/sender-bots.d.ts +344 -0
- package/dist/store/sqlite/schema/sender-bots.js +30 -0
- package/dist/store/sqlite/schema.d.ts +49 -0
- package/dist/store/sqlite/schema.js +7 -0
- package/dist/store/sqlite/sender-bots.d.ts +108 -0
- package/dist/store/sqlite/sender-bots.js +431 -0
- package/dist/store/sqlite/sender-signals.d.ts +13 -3
- package/dist/store/sqlite/sender-signals.js +17 -13
- package/dist/store/sqlite/tracker.d.ts +11 -9
- package/dist/store/sqlite/tracker.js +27 -12
- package/dist/store/sqlite/work-tasks.js +2 -0
- package/dist/tracker/cli/index.d.ts +1 -1
- package/dist/tracker/cli/index.js +83 -24
- package/dist/tracker/sync.js +43 -20
- package/dist/tracker/writes.d.ts +28 -0
- package/dist/tracker/writes.js +141 -19
- package/package.json +3 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SECTOR_DOMAINS } from "./organization-sectors.generated.js";
|
|
2
|
+
/** Sectors only the domain-list pack gives (`domain-lists update`): UT1 has them, Wikidata's table does not. */
|
|
3
|
+
export declare const PACK_SECTORS: readonly ["gaming_gambling", "adult"];
|
|
4
|
+
/**
|
|
5
|
+
* What an organization does (a bank, an airline, a shop), from the websites Wikidata lists, built into the package by
|
|
6
|
+
* `scripts/organization-sectors.ts`, and from the domain-list pack. Apart from `Category`, which says what an
|
|
7
|
+
* organization is to the owner.
|
|
8
|
+
*/
|
|
9
|
+
export type Sector = keyof typeof SECTOR_DOMAINS | (typeof PACK_SECTORS)[number];
|
|
10
|
+
/** Most specific first: an organization holding domains of two sectors takes the first. */
|
|
11
|
+
export declare const SECTORS: Sector[];
|
|
12
|
+
export declare const isSector: (value: string) => value is Sector;
|
|
13
|
+
/** The sector of a registrable domain from the built-in table, lower case as `registrableOf` gives it. */
|
|
14
|
+
export declare const sectorOfDomain: (domain: string) => Sector | undefined;
|
|
15
|
+
/** A mailbox provider anyone can sign up to (microlink's MIT list, built in): its domain names no organization. */
|
|
16
|
+
export declare const isFreeMailDomain: (domain: string) => boolean;
|