@referalli/cli 0.4.16 → 0.4.18
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 +15 -0
- package/dist/src/apply.d.ts +52 -1
- package/dist/src/apply.js +381 -37
- package/dist/src/commands.d.ts +1 -1
- package/dist/src/commands.js +5 -3
- package/dist/src/doctor.js +78 -10
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +4 -2
- package/dist/src/scan.js +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ All notable changes to `@referalli/cli` are recorded here. The format follows
|
|
|
5
5
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before 1.0, a minor
|
|
6
6
|
bump may include breaking changes; they are called out under **Changed**.
|
|
7
7
|
|
|
8
|
+
## 0.4.18 - 2026-11-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `apply` covers every settable program field (`attributionScope`, `productMatch`, `allowedRange`, `payoutTaxFormPolicy`, `merchantCreditBps`, `recordCountry`, `caps`, `countries`, `trafficSources`, `payPerCall`, `cartWindowDays`, `exclusiveWith`, `priority`, ...), `linked: [{source, windowDays, backfill}]`, per-program `payoutSchedule` and `emailSettings` (key from `apiKeyEnv`), and a top-level `payoutSchedule`.
|
|
12
|
+
- `commissionRule` may be a list of `{effectiveAt, rule}` versions; a version is published only when none exists at that `effectiveAt`, and future ones show as pending. `plan --exit-code` exits 1 on drift (`--check` still exits 2).
|
|
13
|
+
|
|
14
|
+
## 0.4.17 - 2026-11-19
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- `doctor` checks that a billing connection's customerRef can match referrals (`health.billing.customer_ref_namespace.<id>`): it compares the shape of recent referral and billing customerRefs and the program's sign-in connection (an `accountId` key against Atlas user ids fails). It fails a program-scoped run too.
|
|
18
|
+
- `doctor` with a program-scoped key skips nothing: payouts, email and the tracking token come from the new `GET /v1/programs/{id}/doctor-context`. `email.sender.<program>` names the sender each program mails from and warns on the shared Referalli sender or when no provider is configured (no email is sent). `billing.scope.<id>` flags an unscoped billing connection in an org with several programs.
|
|
19
|
+
- `apply`: `customerRefMetadataKeys` on billing connections; a plan warning when the metadata key doesn't look like an Atlas id key for an Atlas program; the create response's `warnings` are printed.
|
|
20
|
+
- `apply --env-out <file>` merges `NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN`, `REFERALLI_BILLING_CONNECTION_ID`, `REFERALLI_BILLING_SECRET` and `REFERALLI_API_KEY` into a dotenv file (mode 600, other lines kept).
|
|
21
|
+
- Program config: `programKey: {name, scopes}` mints the product's own key with a `programs:create` bootstrap key (written to `--secret-file` or `--env-out`, never printed); `auth`, `consent.cookieMunch` and `integrations.lucida` are plan checks (reported as drift for `--check`, never changed by `apply`).
|
|
22
|
+
|
|
8
23
|
## 0.4.16 - 2026-11-18
|
|
9
24
|
|
|
10
25
|
### Added
|
package/dist/src/apply.d.ts
CHANGED
|
@@ -12,11 +12,50 @@ export declare class ConfigError extends Error {
|
|
|
12
12
|
type Obj = Record<string, unknown>;
|
|
13
13
|
interface ProgramSpec extends Obj {
|
|
14
14
|
slug: string;
|
|
15
|
-
|
|
15
|
+
/** One rule, or versions: [{ effectiveAt, rule }] (a version without effectiveAt is in force once published). */
|
|
16
|
+
commissionRule?: Obj | Array<{
|
|
17
|
+
effectiveAt?: string;
|
|
18
|
+
rule: Obj;
|
|
19
|
+
}>;
|
|
20
|
+
/** Mirror referrals created in the source program (a slug) into this one. */
|
|
21
|
+
linked?: Array<{
|
|
22
|
+
source: string;
|
|
23
|
+
windowDays: number;
|
|
24
|
+
backfill?: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
/** The program's own payout schedule: a schedule, { kind: off }, or null (follow the org's). */
|
|
27
|
+
payoutSchedule?: Obj | null;
|
|
28
|
+
/** The program's own email provider and sender (PUT /v1/programs/{id}/email-settings); the key comes from apiKeyEnv. */
|
|
29
|
+
emailSettings?: Obj & {
|
|
30
|
+
apiKeyEnv?: string;
|
|
31
|
+
};
|
|
16
32
|
stripeCredits?: Obj & {
|
|
17
33
|
secretKeyEnv?: string;
|
|
18
34
|
};
|
|
19
35
|
refereeReward?: Obj | null;
|
|
36
|
+
/** Mint a program-scoped key for this program (needs a `programs:create` bootstrap key or an admin one); written to --secret-file / --env-out, never printed. */
|
|
37
|
+
programKey?: {
|
|
38
|
+
name: string;
|
|
39
|
+
scopes?: string[];
|
|
40
|
+
owner?: string;
|
|
41
|
+
};
|
|
42
|
+
/** Check only: the program has this sign-in connection. */
|
|
43
|
+
auth?: {
|
|
44
|
+
provider: string;
|
|
45
|
+
instanceId?: string;
|
|
46
|
+
};
|
|
47
|
+
/** Check only: the program's consent mode is cookiemunch, with this site registered. */
|
|
48
|
+
consent?: {
|
|
49
|
+
cookieMunch?: {
|
|
50
|
+
cbid: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/** Check only: reported, never changed. */
|
|
54
|
+
integrations?: {
|
|
55
|
+
lucida?: {
|
|
56
|
+
projectId: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
20
59
|
}
|
|
21
60
|
interface WebhookSpec extends Obj {
|
|
22
61
|
/** whe_…: matches the endpoint by id, so its url can change (R-10). */
|
|
@@ -67,6 +106,8 @@ export interface ApplyConfig {
|
|
|
67
106
|
};
|
|
68
107
|
trackingConsent?: Obj;
|
|
69
108
|
hostedPages?: Obj;
|
|
109
|
+
/** The org's payout schedule (PUT /v1/org/payout-schedule): a schedule, or null for off. */
|
|
110
|
+
payoutSchedule?: Obj | null;
|
|
70
111
|
/** The top-level sections the file has (even empty): the kinds `--prune` manages. */
|
|
71
112
|
sections: string[];
|
|
72
113
|
}
|
|
@@ -78,6 +119,8 @@ export interface Change {
|
|
|
78
119
|
kind: string;
|
|
79
120
|
label: string;
|
|
80
121
|
fields: Field[];
|
|
122
|
+
/** A check the CLI can't fix (auth, consent): it counts as drift for --check, and apply reports it without changing anything. */
|
|
123
|
+
checkOnly?: boolean;
|
|
81
124
|
/** Performs the change; returns once-shown secrets as [label, value]. */
|
|
82
125
|
run?: (ctx: RunCtx) => Promise<Array<[string, string]>>;
|
|
83
126
|
}
|
|
@@ -87,6 +130,8 @@ interface RunCtx {
|
|
|
87
130
|
ids: Map<string, string>;
|
|
88
131
|
/** Printed at once, never to --secret-file. */
|
|
89
132
|
out(line: string): void;
|
|
133
|
+
/** Values for --env-out (REFERALLI_BILLING_SECRET, REFERALLI_API_KEY…), set by the changes that learn them. */
|
|
134
|
+
envOut: Map<string, string>;
|
|
90
135
|
}
|
|
91
136
|
/** Every row of a list endpoint: a plain array, or the 2026-11-01 list envelope followed page by page. */
|
|
92
137
|
export declare function listAll<T extends {
|
|
@@ -98,6 +143,8 @@ export declare function buildPlan(client: Client, config: ApplyConfig, env: Node
|
|
|
98
143
|
}): Promise<{
|
|
99
144
|
changes: Change[];
|
|
100
145
|
ids: Map<string, string>;
|
|
146
|
+
envOut: Map<string, string>;
|
|
147
|
+
warnings: string[];
|
|
101
148
|
}>;
|
|
102
149
|
/** Plan lines. Values come from the file and the API's public fields: no secret is ever in them. */
|
|
103
150
|
export declare function formatPlan(changes: Change[]): string[];
|
|
@@ -107,11 +154,15 @@ export interface ApplyIo {
|
|
|
107
154
|
}
|
|
108
155
|
/** A secret's dotenv name: its label, upper snake case (the label goes above it as a comment). */
|
|
109
156
|
export declare const secretEnvName: (label: string) => string;
|
|
157
|
+
/** Set `vars` in a dotenv file: an existing line for a name is replaced in place, new names are appended, every other line stays. */
|
|
158
|
+
export declare function mergeEnvFile(path: string, vars: Map<string, string>): void;
|
|
110
159
|
export declare function runApply(io: ApplyIo, client: Client, file: string, opts: {
|
|
111
160
|
apply: boolean;
|
|
112
161
|
check: boolean;
|
|
162
|
+
driftCode?: number;
|
|
113
163
|
prune?: boolean;
|
|
114
164
|
secretFile?: string;
|
|
115
165
|
secretFormat?: string;
|
|
166
|
+
envOut?: string;
|
|
116
167
|
}): Promise<number>;
|
|
117
168
|
export {};
|
package/dist/src/apply.js
CHANGED
|
@@ -14,12 +14,17 @@ export class ConfigError extends Error {
|
|
|
14
14
|
// Program fields compared against GET /v1/programs/{id} and sent as-is on PATCH.
|
|
15
15
|
const PROGRAM_TOP = ['name', 'attributionModel', 'cookieWindowDays', 'signupToConversionDays', 'termsMd', 'status', 'publicHandle'];
|
|
16
16
|
// Program settings: PATCH takes them top-level, GET returns them under `settings`.
|
|
17
|
-
|
|
17
|
+
// One line per API setting (packages/api programs.ts SETTING_KEYS): a new API field needs one line here. Object values are compared by the keys the file names and sent whole (the API replaces the key).
|
|
18
|
+
const PROGRAM_SETTINGS = [
|
|
19
|
+
'probabilisticPolicy', 'selfReferralPolicy', 'splitCommissions', 'utmTemplate', 'allowPaidSearch', 'challengeLinks', 'settlement', 'creditRate',
|
|
20
|
+
'payPerCall', 'cartWindowDays', 'caps', 'countries', 'storefronts', 'signupPaymentGraceMinutes', 'mobileApp', 'howItWorksMd', 'trafficSources',
|
|
21
|
+
'exclusiveWith', 'priority', 'allowedRange', 'attributionScope', 'productMatch', 'payoutTaxFormPolicy', 'recordCountry', 'merchantCreditBps',
|
|
22
|
+
];
|
|
18
23
|
// Passed through to PATCH as-is; read back top-level, else under `settings` (R-07/R-22/R-31 fields).
|
|
19
24
|
const PROGRAM_PASS = ['termsUrl', 'faqUrl', 'supportUrl', 'trackingConsent'];
|
|
20
25
|
// Mappings merged into what's live: only the keys the file names are compared, and PATCH sends the live block with them applied.
|
|
21
26
|
const PROGRAM_BLOCKS = {
|
|
22
|
-
publicPage: ['pitch', 'autoApprove'],
|
|
27
|
+
publicPage: ['pitch', 'autoApprove', 'noindex'],
|
|
23
28
|
riskPolicy: ['holdBotScore', 'holdRiskScore', 'holdHighRiskLevel', 'holdDisposableEmail', 'holdVelocity', 'holdUnverifiedEmail', 'holdSelfReferral'],
|
|
24
29
|
widget: ['autoEnroll', 'destinationUrl'],
|
|
25
30
|
notificationEmails: ['enabled'],
|
|
@@ -27,11 +32,11 @@ const PROGRAM_BLOCKS = {
|
|
|
27
32
|
};
|
|
28
33
|
// Blocks GET returns under `settings`.
|
|
29
34
|
const SETTINGS_BLOCKS = ['riskPolicy', 'widget', 'notificationEmails'];
|
|
30
|
-
const PROGRAM_KEYS = ['slug', ...PROGRAM_TOP, ...PROGRAM_SETTINGS, ...PROGRAM_PASS, ...Object.keys(PROGRAM_BLOCKS), 'destinationUrl', 'commissionRule', 'stripeCredits', 'refereeReward'];
|
|
35
|
+
const PROGRAM_KEYS = ['slug', ...PROGRAM_TOP, ...PROGRAM_SETTINGS, ...PROGRAM_PASS, ...Object.keys(PROGRAM_BLOCKS), 'destinationUrl', 'commissionRule', 'linked', 'payoutSchedule', 'emailSettings', 'stripeCredits', 'refereeReward', 'programKey', 'auth', 'consent', 'integrations'];
|
|
31
36
|
const STRIPE_KEYS = ['enabled', 'referrerMatch', 'metadataKey', 'refereeRewards', 'balanceCurrency', 'createCustomerIfMissing', 'waitForCustomer', 'secretKeyEnv'];
|
|
32
37
|
const WEBHOOK_KEYS = ['id', 'url', 'topics', 'programs', 'status', 'alertContacts', 'managedBy'];
|
|
33
38
|
const API_KEY_KEYS = ['name', 'owner', 'mode', 'scopes', 'expiresInDays', 'programs', 'apiVersion'];
|
|
34
|
-
const BILLING_KEYS = ['name', 'provider', 'programs', 'status', 'customerRefMetadataKey', 'filter', 'stripeKeyEnv'];
|
|
39
|
+
const BILLING_KEYS = ['name', 'provider', 'programs', 'status', 'customerRefMetadataKey', 'customerRefMetadataKeys', 'filter', 'stripeKeyEnv'];
|
|
35
40
|
// Compared only when listed. shortcut: no metadata keys (GET doesn't return them), so no drift check; set them with `referalli api`.
|
|
36
41
|
const AUTH_FIELDS = ['name', 'status', 'autoEnrollUsers', 'destinationUrl', 'resolveBillingCustomers', 'signatureVersion', 'allowedOrigins'];
|
|
37
42
|
const AUTH_KEYS = ['provider', 'program', 'instanceId', 'appId', 'tokenVerification', ...AUTH_FIELDS];
|
|
@@ -39,12 +44,20 @@ const AUTH_KEYS = ['provider', 'program', 'instanceId', 'appId', 'tokenVerificat
|
|
|
39
44
|
const AUTH_PATCH_ONLY = ['status', 'resolveBillingCustomers', 'signatureVersion'];
|
|
40
45
|
const AUTH_PROTOCOL = ['atlas', 'custom'];
|
|
41
46
|
const PAYOUT_KEYS = ['provider', 'env', 'credentialEnv'];
|
|
47
|
+
const PROGRAM_EMAIL_KEYS = ['provider', 'apiKeyEnv', 'endpointUrl', 'fromAddress', 'fromName', 'replyTo'];
|
|
42
48
|
const EMAIL_KEYS = ['provider', 'apiKeyEnv', 'fromAddress', 'fromName', 'replyTo', 'defaultLocale', 'logoUrl', 'primaryColor'];
|
|
43
49
|
const HOSTED_KEYS = ['consent', 'chat', 'customOrigins'];
|
|
44
|
-
const SECTIONS = ['programs', 'webhooks', 'apiKeys', 'billingConnections', 'authConnections', 'payouts', 'email', 'trackingConsent', 'hostedPages'];
|
|
50
|
+
const SECTIONS = ['programs', 'payoutSchedule', 'webhooks', 'apiKeys', 'billingConnections', 'authConnections', 'payouts', 'email', 'trackingConsent', 'hostedPages'];
|
|
45
51
|
const SECRET_KEYS = ['secretKey', 'stripeKey', 'webhookSecret', 'credentials', 'apiKey', 'sharedSecret', 'identitySecret'];
|
|
46
52
|
// What the API stores when a rule leaves these out (packages/commissions ruleConfigSchema).
|
|
47
53
|
const RULE_DEFAULTS = { appliesTo: 'gross', recurring: { type: 'lifetime' }, holdDays: 30, rounding: 'half_even', overrides: [] };
|
|
54
|
+
/** What `programKey` mints when the file names no scopes: the standard program-key set (the most a bootstrap key may hand out). */
|
|
55
|
+
const DEFAULT_PROGRAM_KEY_SCOPES = [
|
|
56
|
+
'programs:read', 'programs:write', 'partners:read', 'commissions:read', 'commissions:write', 'billing:read', 'billing:write',
|
|
57
|
+
'webhooks:read', 'webhooks:write', 'connections:read', 'connections:write', 'links:read', 'referrals:read', 'events:write',
|
|
58
|
+
];
|
|
59
|
+
/** A metadata key that names an Atlas user id (atlas_user_id, atlasUserId, userId, sub…), as opposed to an account or org id. */
|
|
60
|
+
const looksLikeAtlasIdKey = (k) => /atlas|^user[_.-]?id$|^sub$|^owner[_.-]?(user)?[_.-]?id$/i.test(k);
|
|
48
61
|
const isObj = (v) => typeof v === 'object' && v !== null && !Array.isArray(v);
|
|
49
62
|
function checkKeys(o, allowed, where, required, movedTo) {
|
|
50
63
|
if (!isObj(o))
|
|
@@ -87,8 +100,30 @@ export function parseConfig(text, file = 'config') {
|
|
|
87
100
|
const block = Object.entries(PROGRAM_BLOCKS).find(([, keys]) => keys.includes(k))?.[0];
|
|
88
101
|
return block ? `${where}.${block}.${k}` : undefined;
|
|
89
102
|
});
|
|
90
|
-
if (
|
|
91
|
-
|
|
103
|
+
if (Array.isArray(p.commissionRule)) {
|
|
104
|
+
if (p.commissionRule.length === 0)
|
|
105
|
+
throw new ConfigError(`${where}.commissionRule: expected a rule or a non-empty list of { effectiveAt, rule }`);
|
|
106
|
+
p.commissionRule.forEach((v, j) => {
|
|
107
|
+
checkKeys(v, ['effectiveAt', 'rule'], `${where}.commissionRule[${j}]`);
|
|
108
|
+
if (!isObj(v.rule))
|
|
109
|
+
throw new ConfigError(`${where}.commissionRule[${j}]: "rule" is required (a mapping)`);
|
|
110
|
+
if (v.effectiveAt !== undefined && (typeof v.effectiveAt !== 'string' || Number.isNaN(Date.parse(v.effectiveAt))))
|
|
111
|
+
throw new ConfigError(`${where}.commissionRule[${j}].effectiveAt: expected an ISO 8601 date-time`);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
else if (p.commissionRule !== undefined && !isObj(p.commissionRule))
|
|
115
|
+
throw new ConfigError(`${where}.commissionRule: expected a mapping, or a list of { effectiveAt, rule }`);
|
|
116
|
+
if (p.linked !== undefined) {
|
|
117
|
+
list(p.linked, `${where}.linked`).forEach((l, j) => {
|
|
118
|
+
checkKeys(l, ['source', 'windowDays', 'backfill'], `${where}.linked[${j}]`, 'source');
|
|
119
|
+
if (!Number.isInteger(l.windowDays))
|
|
120
|
+
throw new ConfigError(`${where}.linked[${j}]: "windowDays" (whole days) is required`);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (p.emailSettings !== undefined)
|
|
124
|
+
checkKeys(p.emailSettings, PROGRAM_EMAIL_KEYS, `${where}.emailSettings`, 'provider');
|
|
125
|
+
if (p.payoutSchedule !== undefined && p.payoutSchedule !== null && !isObj(p.payoutSchedule))
|
|
126
|
+
throw new ConfigError(`${where}.payoutSchedule: expected a mapping such as { kind: daily } (or null to follow the org's)`);
|
|
92
127
|
for (const [block, keys] of Object.entries(PROGRAM_BLOCKS)) {
|
|
93
128
|
if (p[block] === undefined)
|
|
94
129
|
continue;
|
|
@@ -107,6 +142,27 @@ export function parseConfig(text, file = 'config') {
|
|
|
107
142
|
// null turns it off; a mapping is the PUT /v1/programs/{id}/referee-reward body.
|
|
108
143
|
if (p.refereeReward !== undefined && p.refereeReward !== null && !isObj(p.refereeReward))
|
|
109
144
|
throw new ConfigError(`${where}.refereeReward: expected a mapping (or null to turn it off)`);
|
|
145
|
+
if (p.programKey !== undefined) {
|
|
146
|
+
checkKeys(p.programKey, ['name', 'scopes', 'owner'], `${where}.programKey`, 'name');
|
|
147
|
+
const sc = p.programKey.scopes;
|
|
148
|
+
if (sc !== undefined && (!Array.isArray(sc) || sc.length === 0 || sc.some((x) => typeof x !== 'string')))
|
|
149
|
+
throw new ConfigError(`${where}.programKey.scopes: expected a list of scopes`);
|
|
150
|
+
}
|
|
151
|
+
if (p.auth !== undefined) {
|
|
152
|
+
checkKeys(p.auth, ['provider', 'instanceId'], `${where}.auth`, 'provider');
|
|
153
|
+
if (p.auth.provider === 'atlas' && (typeof p.auth.instanceId !== 'string' || !p.auth.instanceId))
|
|
154
|
+
throw new ConfigError(`${where}.auth: atlas needs an instanceId`);
|
|
155
|
+
}
|
|
156
|
+
if (p.consent !== undefined) {
|
|
157
|
+
checkKeys(p.consent, ['cookieMunch'], `${where}.consent`);
|
|
158
|
+
if (p.consent.cookieMunch !== undefined)
|
|
159
|
+
checkKeys(p.consent.cookieMunch, ['cbid'], `${where}.consent.cookieMunch`, 'cbid');
|
|
160
|
+
}
|
|
161
|
+
if (p.integrations !== undefined) {
|
|
162
|
+
checkKeys(p.integrations, ['lucida'], `${where}.integrations`);
|
|
163
|
+
if (p.integrations.lucida !== undefined)
|
|
164
|
+
checkKeys(p.integrations.lucida, ['projectId'], `${where}.integrations.lucida`, 'projectId');
|
|
165
|
+
}
|
|
110
166
|
return p;
|
|
111
167
|
});
|
|
112
168
|
const slugs = programs.map((p) => p.slug);
|
|
@@ -138,6 +194,10 @@ export function parseConfig(text, file = 'config') {
|
|
|
138
194
|
throw new ConfigError(`${where}: "provider" is required`);
|
|
139
195
|
if (b.status !== undefined && b.status !== 'active' && b.status !== 'paused')
|
|
140
196
|
throw new ConfigError(`${where}.status: active or paused`);
|
|
197
|
+
const keys = b.customerRefMetadataKeys;
|
|
198
|
+
if (keys !== undefined && (!Array.isArray(keys) || keys.length > 5 || keys.some((k) => typeof k !== 'string' || !/^[A-Za-z0-9_.-]{1,64}$/.test(k)))) {
|
|
199
|
+
throw new ConfigError(`${where}.customerRefMetadataKeys: a list of at most 5 metadata keys`);
|
|
200
|
+
}
|
|
141
201
|
if (b.stripeKeyEnv !== undefined && b.provider !== 'stripe')
|
|
142
202
|
throw new ConfigError(`${where}: stripeKeyEnv is for provider "stripe"`);
|
|
143
203
|
return b;
|
|
@@ -199,6 +259,9 @@ export function parseConfig(text, file = 'config') {
|
|
|
199
259
|
throw new ConfigError(`${key}: expected a mapping`);
|
|
200
260
|
return d[key];
|
|
201
261
|
};
|
|
262
|
+
if (d.payoutSchedule !== undefined && d.payoutSchedule !== null && !isObj(d.payoutSchedule))
|
|
263
|
+
throw new ConfigError('payoutSchedule: expected a mapping such as { kind: daily } (or null for off)');
|
|
264
|
+
const payoutSchedule = d.payoutSchedule;
|
|
202
265
|
const email = single('email', EMAIL_KEYS);
|
|
203
266
|
const trackingConsent = single('trackingConsent');
|
|
204
267
|
const hostedPages = single('hostedPages', HOSTED_KEYS);
|
|
@@ -209,11 +272,13 @@ export function parseConfig(text, file = 'config') {
|
|
|
209
272
|
checkKeys(hostedPages.chat, ['adapter', 'config', 'identitySecretEnv'], 'hostedPages.chat', 'adapter');
|
|
210
273
|
}
|
|
211
274
|
const sections = SECTIONS.filter((k) => d[k] !== undefined);
|
|
212
|
-
return { programs, webhooks, apiKeys, billingConnections, authConnections, payouts, email, trackingConsent, hostedPages, sections };
|
|
275
|
+
return { programs, webhooks, apiKeys, billingConnections, authConnections, payouts, email, trackingConsent, hostedPages, payoutSchedule, sections };
|
|
213
276
|
}
|
|
214
277
|
/** Key-order-insensitive JSON, for comparing values. */
|
|
215
278
|
const canon = (v) => JSON.stringify(v, (_k, x) => (isObj(x) ? Object.fromEntries(Object.entries(x).sort(([a], [b]) => a.localeCompare(b))) : x));
|
|
216
279
|
const same = (a, b) => canon(a ?? null) === canon(b ?? null);
|
|
280
|
+
/** Equal, except that a mapping only has to match on the keys `want` names (the API fills defaults into what it stores). */
|
|
281
|
+
const covers = (live, want) => (isObj(want) && isObj(live) ? Object.entries(want).every(([k, v]) => covers(live[k], v)) : same(live, want));
|
|
217
282
|
const sorted = (v) => [...(v ?? [])].sort();
|
|
218
283
|
/** An Idempotency-Key that is the same for a retry of the same create, and only for that. */
|
|
219
284
|
const idemKey = (kind, key, body) => `referalli-apply-${kind}-${createHash('sha256').update(`${key}\n${canon(body)}`).digest('hex').slice(0, 40)}`;
|
|
@@ -243,10 +308,19 @@ const programIdsFor = (ctx, slugs) => slugs?.length
|
|
|
243
308
|
/** Compare the file with the account; nothing is written. */
|
|
244
309
|
export async function buildPlan(client, config, env, opts = {}) {
|
|
245
310
|
const changes = [];
|
|
311
|
+
const envOut = new Map();
|
|
312
|
+
const warnings = [];
|
|
313
|
+
// Read lazily, at most once: a key that can't read them just skips the check that needs them.
|
|
314
|
+
const lazy = (fn) => {
|
|
315
|
+
let p;
|
|
316
|
+
return () => (p ??= fn().catch(() => null));
|
|
317
|
+
};
|
|
318
|
+
const authList = lazy(() => listAll(client, '/v1/auth/connections'));
|
|
246
319
|
const programs = await listAll(client, '/v1/programs');
|
|
247
320
|
const ids = new Map(programs.map((p) => [p.slug, p.id]));
|
|
248
321
|
const slugOf = new Map(programs.map((p) => [p.id, p.slug]));
|
|
249
322
|
const known = new Set([...ids.keys(), ...config.programs.map((p) => p.slug)]);
|
|
323
|
+
const scheduleList = lazy(() => client.request('GET', '/v1/org/payout-schedule'));
|
|
250
324
|
const checkRefs = (refs, where) => {
|
|
251
325
|
for (const s of refs ?? [])
|
|
252
326
|
if (!known.has(s))
|
|
@@ -259,6 +333,9 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
259
333
|
for (const k of [...PROGRAM_TOP, ...PROGRAM_SETTINGS, ...PROGRAM_PASS, ...Object.keys(PROGRAM_BLOCKS), 'destinationUrl'])
|
|
260
334
|
if (spec[k] !== undefined)
|
|
261
335
|
desired[k] = spec[k];
|
|
336
|
+
// exclusiveWith takes program ids: slugs of programs on the account (or in this file) are translated.
|
|
337
|
+
if (Array.isArray(desired.exclusiveWith))
|
|
338
|
+
desired.exclusiveWith = desired.exclusiveWith.map((x) => ids.get(x) ?? x);
|
|
262
339
|
if (!cur) {
|
|
263
340
|
const { destinationUrl, ...rest } = desired;
|
|
264
341
|
// POST takes the destination as the widget setting; PATCH moves it (and its links).
|
|
@@ -286,7 +363,7 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
286
363
|
// A block counts as changed only on the keys the file names; the new value is the live block with them applied.
|
|
287
364
|
const want = (k, v) => (k in PROGRAM_BLOCKS ? { ...(now(k) ?? {}), ...v } : v);
|
|
288
365
|
const fields = Object.entries(desired)
|
|
289
|
-
.filter(([k, v]) => !
|
|
366
|
+
.filter(([k, v]) => !covers(now(k), want(k, v)))
|
|
290
367
|
.map(([k, v]) => [k, now(k), want(k, v)]);
|
|
291
368
|
const patch = Object.fromEntries(fields.map(([k, , v]) => [k, v]));
|
|
292
369
|
changes.push({
|
|
@@ -301,24 +378,124 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
301
378
|
});
|
|
302
379
|
}
|
|
303
380
|
if (spec.commissionRule) {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
const
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
381
|
+
// A single rule, or versions: each is published once, matched by its effectiveAt (see below).
|
|
382
|
+
const versionsWanted = Array.isArray(spec.commissionRule) ? spec.commissionRule : [{ effectiveAt: undefined, rule: spec.commissionRule }];
|
|
383
|
+
// Newest version first, as the API lists them.
|
|
384
|
+
const existing = cur ? await listAll(client, `/v1/commission-rules?programId=${encodeURIComponent(cur.id)}`) : [];
|
|
385
|
+
const latest = existing[0];
|
|
386
|
+
const at = (v) => (v.effectiveAt ? Date.parse(v.effectiveAt) : null);
|
|
387
|
+
// Oldest effectiveAt first: version numbers follow the order they are published in. Versions without a date go first.
|
|
388
|
+
const ordered = [...versionsWanted].sort((x, y) => (at(x) ?? -Infinity) - (at(y) ?? -Infinity));
|
|
389
|
+
for (const v of ordered) {
|
|
390
|
+
const want = { ...RULE_DEFAULTS, ...v.rule };
|
|
391
|
+
// A draft accrues nothing: said on every plan, unchanged ones too (convertmepls R3).
|
|
392
|
+
const pending = at(v) !== null && at(v) > Date.now() ? ` [pending: takes effect ${v.effectiveAt}]` : '';
|
|
393
|
+
const rlabel = `commissionRule "${spec.slug}"${v.effectiveAt ? ` @ ${v.effectiveAt}` : ''}${v.rule.draft === true ? ' [draft: accrues nothing, terms hidden]' : ''}${pending}`;
|
|
394
|
+
// Compared on the keys the file (and the defaults) name: the API stores more, and extra keys must not look like drift.
|
|
395
|
+
const diff = (c) => Object.keys(want).filter((k) => !same(c[k], want[k])).map((k) => [k, c[k], want[k]]);
|
|
396
|
+
const publish = async (ctx) => {
|
|
397
|
+
const programId = ctx.ids.get(spec.slug);
|
|
398
|
+
// Keyed by the date it takes effect (or the version it replaces): a retry replays, a new date is a new version.
|
|
399
|
+
await create(ctx.client, '/v1/commission-rules', 'rule', `${spec.slug}@${v.effectiveAt ?? `v${latest?.version ?? 0}`}`, { programId, config: v.rule, ...(v.effectiveAt ? { effectiveAt: v.effectiveAt } : {}) });
|
|
400
|
+
return [];
|
|
401
|
+
};
|
|
402
|
+
const fresh = { action: 'create', kind: 'commissionRule', label: rlabel, fields: Object.entries(v.rule).map(([k, x]) => [k, undefined, x]), run: publish };
|
|
403
|
+
if (v.effectiveAt) {
|
|
404
|
+
// A version at this effectiveAt already exists: it is never published again (that would sit on top of any later versions).
|
|
405
|
+
// Versions are immutable, so a different config under the same date is reported, not changed: use a new effectiveAt.
|
|
406
|
+
const hit = existing.find((e) => at(e) === at(v));
|
|
407
|
+
if (!hit)
|
|
408
|
+
changes.push(fresh);
|
|
409
|
+
else {
|
|
410
|
+
const fields = diff(hit.config);
|
|
411
|
+
changes.push({ action: 'noop', kind: 'commissionRule', label: `${rlabel} (v${hit.version})`, fields: [] });
|
|
412
|
+
if (fields.length)
|
|
413
|
+
warnings.push(`${rlabel}: version ${hit.version} with this effectiveAt already exists with a different config (${fields.map(([k]) => k).join(', ')}); not re-published. Give the change a new effectiveAt.`);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
else if (!latest)
|
|
417
|
+
changes.push(fresh);
|
|
418
|
+
else {
|
|
419
|
+
const fields = diff(latest.config);
|
|
420
|
+
changes.push({ action: fields.length ? 'update' : 'noop', kind: 'commissionRule', label: `${rlabel} (v${latest.version})`, fields, run: publish });
|
|
421
|
+
}
|
|
316
422
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
423
|
+
}
|
|
424
|
+
if (spec.linked) {
|
|
425
|
+
const live = cur ? await client.request('GET', `/v1/programs/${cur.id}/linked`) : [];
|
|
426
|
+
const wanted = new Set();
|
|
427
|
+
for (const l of spec.linked) {
|
|
428
|
+
checkRefs([l.source], `program "${spec.slug}".linked`);
|
|
429
|
+
const sourceId = ids.get(l.source);
|
|
430
|
+
wanted.add(sourceId ?? l.source);
|
|
431
|
+
const have = sourceId ? live.find((x) => x.sourceProgramId === sourceId) : undefined;
|
|
432
|
+
const llabel = `linked "${spec.slug}" <- "${l.source}"`;
|
|
433
|
+
if (!have) {
|
|
434
|
+
changes.push({
|
|
435
|
+
action: 'create',
|
|
436
|
+
kind: 'linked',
|
|
437
|
+
label: llabel,
|
|
438
|
+
fields: [['windowDays', undefined, l.windowDays], ...(l.backfill ? [['backfill', undefined, true]] : [])],
|
|
439
|
+
run: async (ctx) => {
|
|
440
|
+
await ctx.client.request('POST', `/v1/programs/${ctx.ids.get(spec.slug)}/linked`, { sourceProgramId: ctx.ids.get(l.source), windowDays: l.windowDays, ...(l.backfill ? { backfill: true } : {}) });
|
|
441
|
+
return [];
|
|
442
|
+
},
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
changes.push({ action: 'noop', kind: 'linked', label: llabel, fields: [] });
|
|
447
|
+
// shortcut: the API has no way to change a link's window; unlink it (DELETE /v1/programs/{id}/linked/{source}) and apply again.
|
|
448
|
+
if (have.windowDays !== l.windowDays)
|
|
449
|
+
warnings.push(`${llabel}: windowDays is ${have.windowDays} on the account, ${l.windowDays} in the file; the API can't change a link's window. Unlink it (DELETE /v1/programs/${cur.id}/linked/${sourceId}) and apply again.`);
|
|
450
|
+
}
|
|
321
451
|
}
|
|
452
|
+
if (cur && opts.prune && config.sections.includes('programs')) {
|
|
453
|
+
for (const x of live)
|
|
454
|
+
if (!wanted.has(x.sourceProgramId))
|
|
455
|
+
changes.push({ action: 'delete', kind: 'linked', label: `linked "${spec.slug}" <- "${slugOf.get(x.sourceProgramId) ?? x.sourceProgramId}"`, fields: [], run: async (ctx) => { await ctx.client.request('DELETE', `/v1/programs/${cur.id}/linked/${x.sourceProgramId}`); return []; } });
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (spec.payoutSchedule !== undefined) {
|
|
459
|
+
const sched = await scheduleList();
|
|
460
|
+
const live = sched?.programs.find((p) => p.programId === cur?.id)?.override ?? null;
|
|
461
|
+
const want = spec.payoutSchedule;
|
|
462
|
+
changes.push({
|
|
463
|
+
action: !cur ? 'create' : covers(live, want) ? 'noop' : 'update',
|
|
464
|
+
kind: 'payoutSchedule',
|
|
465
|
+
label: `payoutSchedule "${spec.slug}"`,
|
|
466
|
+
fields: !cur || !covers(live, want) ? [['schedule', live, want]] : [],
|
|
467
|
+
run: async (ctx) => {
|
|
468
|
+
await ctx.client.request('PUT', `/v1/programs/${ctx.ids.get(spec.slug)}/payout-schedule`, { schedule: want });
|
|
469
|
+
return [];
|
|
470
|
+
},
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
if (spec.emailSettings) {
|
|
474
|
+
const { apiKeyEnv, ...want } = spec.emailSettings;
|
|
475
|
+
const live = cur ? await client.request('GET', `/v1/programs/${cur.id}/email-settings`) : null;
|
|
476
|
+
const isNew = !live?.configured;
|
|
477
|
+
const fields = Object.entries(want).filter(([k, v]) => isNew || !same(live[k], v)).map(([k, v]) => [k, live?.[k], v]);
|
|
478
|
+
// The key is write-only (the API says only hasApiKey): sent while none is stored or the provider changes.
|
|
479
|
+
const sendKey = Boolean(apiKeyEnv) && (isNew || !live.hasApiKey || want.provider !== live.provider);
|
|
480
|
+
if (sendKey) {
|
|
481
|
+
if (!env[apiKeyEnv])
|
|
482
|
+
throw new ConfigError(`programs "${spec.slug}".emailSettings: environment variable ${apiKeyEnv} is not set`);
|
|
483
|
+
fields.push(['apiKey', live?.hasApiKey ? '(set)' : '(none)', `(from $${apiKeyEnv})`]);
|
|
484
|
+
}
|
|
485
|
+
if (want.provider !== 'webhook' && !sendKey && (isNew || !live.hasApiKey || want.provider !== live.provider)) {
|
|
486
|
+
throw new ConfigError(`programs "${spec.slug}".emailSettings: ${String(want.provider)} needs a key: set apiKeyEnv to an environment variable holding it`);
|
|
487
|
+
}
|
|
488
|
+
changes.push({
|
|
489
|
+
action: isNew ? 'create' : fields.length ? 'update' : 'noop',
|
|
490
|
+
kind: 'emailSettings',
|
|
491
|
+
label: `emailSettings "${spec.slug}"`,
|
|
492
|
+
fields,
|
|
493
|
+
run: async (ctx) => {
|
|
494
|
+
const res = await ctx.client.request('PUT', `/v1/programs/${ctx.ids.get(spec.slug)}/email-settings`, { ...want, ...(sendKey ? { apiKey: env[apiKeyEnv] } : {}) });
|
|
495
|
+
// The webhook provider makes its own signing secret when no key is sent: shown once.
|
|
496
|
+
return res.signingSecret ? [[`emailSettings ${spec.slug} signingSecret`, res.signingSecret]] : [];
|
|
497
|
+
},
|
|
498
|
+
});
|
|
322
499
|
}
|
|
323
500
|
if (spec.stripeCredits) {
|
|
324
501
|
const { secretKeyEnv, ...s } = spec.stripeCredits;
|
|
@@ -379,6 +556,73 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
379
556
|
},
|
|
380
557
|
});
|
|
381
558
|
}
|
|
559
|
+
// Checks the CLI reports and does not fix: the sign-in connection, the consent site, the Lucida project.
|
|
560
|
+
if (spec.auth) {
|
|
561
|
+
const a = spec.auth;
|
|
562
|
+
const label = `auth ${a.provider}${a.instanceId ? ` ${a.instanceId}` : ''} on "${spec.slug}" (check)`;
|
|
563
|
+
const conns = cur ? ((await authList()) ?? []).filter((c) => c.programId === cur.id) : [];
|
|
564
|
+
const hit = conns.find((c) => c.provider === a.provider && (c.instanceId ?? null) === (a.instanceId ?? null));
|
|
565
|
+
const fields = !hit
|
|
566
|
+
? [[a.instanceId ? 'instanceId' : 'provider', conns.map((c) => c.instanceId ?? c.provider).join(', ') || '(no sign-in connection)', a.instanceId ?? a.provider]]
|
|
567
|
+
: hit.status && hit.status !== 'active'
|
|
568
|
+
? [['status', hit.status, 'active']]
|
|
569
|
+
: [];
|
|
570
|
+
changes.push({ action: fields.length ? 'update' : 'noop', kind: 'auth', label, fields, checkOnly: true });
|
|
571
|
+
}
|
|
572
|
+
if (spec.consent?.cookieMunch) {
|
|
573
|
+
const { cbid } = spec.consent.cookieMunch;
|
|
574
|
+
const live = cur ? (cur.trackingConsent ?? cur.settings.trackingConsent ?? null) : null;
|
|
575
|
+
const fields = live === 'cookiemunch' ? [] : [['trackingConsent', live, 'cookiemunch']];
|
|
576
|
+
const sites = cur ? await client.request('GET', '/v1/org/consent-partners/cookiemunch').catch(() => null) : null;
|
|
577
|
+
const site = sites?.sitePrograms?.find((x) => x.cbid === cbid);
|
|
578
|
+
if (cur && sites && (!site || (site.programIds && !site.programIds.includes(cur.id)))) {
|
|
579
|
+
fields.push(['cookiemunch site', site ? `registered for ${site.programIds.join(', ')}` : '(not registered)', `${cbid} for this program (POST /v1/org/consent-partners/cookiemunch/link)`]);
|
|
580
|
+
}
|
|
581
|
+
changes.push({ action: fields.length ? 'update' : 'noop', kind: 'consent', label: `consent cookieMunch ${cbid} on "${spec.slug}" (check)`, fields, checkOnly: true });
|
|
582
|
+
}
|
|
583
|
+
if (spec.integrations?.lucida) {
|
|
584
|
+
// shortcut: the Lucida integration is org-level (host + key, PUT /v1/integrations/lucida) with no project id of its own, so the project id is only reported.
|
|
585
|
+
const live = await client.request('GET', '/v1/integrations').catch(() => null);
|
|
586
|
+
const state = !live ? "can't read the org's integrations with this key" : live.lucida?.connected ? 'connected (org-level)' : 'not connected';
|
|
587
|
+
changes.push({
|
|
588
|
+
action: live && !live.lucida?.connected ? 'update' : 'noop',
|
|
589
|
+
kind: 'integration',
|
|
590
|
+
label: `integrations lucida projectId ${spec.integrations.lucida.projectId} on "${spec.slug}": ${state}; the project id is not stored by Referalli (check only)`,
|
|
591
|
+
fields: live && !live.lucida?.connected ? [['lucida', 'not connected', 'PUT /v1/integrations/lucida {host, apiKey}']] : [],
|
|
592
|
+
checkOnly: true,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
// A program-scoped key for the product itself, minted by the bootstrap key (programs:create) or an admin one.
|
|
596
|
+
if (spec.programKey) {
|
|
597
|
+
const pk = spec.programKey;
|
|
598
|
+
const label = `programKey "${pk.name}" for "${spec.slug}"`;
|
|
599
|
+
const scopes = pk.scopes ?? DEFAULT_PROGRAM_KEY_SCOPES;
|
|
600
|
+
const keys = cur ? await listAll(client, '/v1/api-keys').catch(() => null) : null;
|
|
601
|
+
const have = keys?.some((k) => k.name === pk.name && !k.revokedAt && (k.programIds ?? []).includes(cur.id));
|
|
602
|
+
if (have) {
|
|
603
|
+
changes.push({ action: 'noop', kind: 'programKey', label, fields: [] });
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
if (cur) {
|
|
607
|
+
await client.request('POST', '/v1/api-keys?dryRun=1', { name: pk.name, scopes, programIds: [cur.id], ...(pk.owner ? { owner: pk.owner } : {}) }).catch((err) => {
|
|
608
|
+
throw new ConfigError(`${label}: ${err instanceof Error ? err.message : String(err)}`);
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
changes.push({
|
|
612
|
+
action: 'create',
|
|
613
|
+
kind: 'programKey',
|
|
614
|
+
label: keys === null && cur ? `${label} (this key can't list keys, so an existing one can't be seen: apply this once)` : label,
|
|
615
|
+
fields: [['scopes', undefined, scopes], ['programs', undefined, [spec.slug]]],
|
|
616
|
+
run: async (ctx) => {
|
|
617
|
+
const res = await create(ctx.client, '/v1/api-keys', 'programkey', `${spec.slug}\n${pk.name}`, { name: pk.name, scopes, programIds: [ctx.ids.get(spec.slug)], ...(pk.owner ? { owner: pk.owner } : {}) });
|
|
618
|
+
// One key in the caller's mode (a pair only when the caller asked for both).
|
|
619
|
+
const minted = (res.key ?? res.live?.key);
|
|
620
|
+
ctx.envOut.set('REFERALLI_API_KEY', minted);
|
|
621
|
+
return [[`programKey ${pk.name}`, minted]];
|
|
622
|
+
},
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
}
|
|
382
626
|
}
|
|
383
627
|
const me = opts.prune ? await client.request('GET', '/v1/me') : null;
|
|
384
628
|
const fileIds = config.programs.map((p) => ids.get(p.slug)).filter((x) => Boolean(x));
|
|
@@ -524,10 +768,21 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
524
768
|
const cur = matches[0];
|
|
525
769
|
// programs and status are always managed (like webhooks); the optional fields only when the file sets them (null clears).
|
|
526
770
|
const want = { programs: sorted(spec.programs), status: spec.status ?? 'active' };
|
|
527
|
-
for (const k of ['customerRefMetadataKey', 'filter'])
|
|
771
|
+
for (const k of ['customerRefMetadataKey', 'customerRefMetadataKeys', 'filter'])
|
|
528
772
|
if (spec[k] !== undefined)
|
|
529
773
|
want[k] = spec[k];
|
|
774
|
+
// REF-B2: an Atlas program reports referrals under the Atlas user id; a billing key holding another id never matches.
|
|
775
|
+
const refKeys = [spec.customerRefMetadataKey, ...(spec.customerRefMetadataKeys ?? [])].filter((k) => typeof k === 'string' && k !== '');
|
|
776
|
+
if (refKeys.length && !refKeys.some(looksLikeAtlasIdKey)) {
|
|
777
|
+
const programIdsOf = (spec.programs?.length ? spec.programs : config.programs.map((p) => p.slug)).map((sl) => ids.get(sl)).filter((x) => Boolean(x));
|
|
778
|
+
const atlas = ((await authList()) ?? []).filter((a) => a.provider === 'atlas' && (!programIdsOf.length || programIdsOf.includes(a.programId)));
|
|
779
|
+
if (atlas.length) {
|
|
780
|
+
warnings.push(`${label}: customerRefMetadataKey "${refKeys.join('", "')}" doesn't look like an Atlas user-id key, but ${atlas.length === 1 ? 'its program signs' : 'its programs sign'} users in through Atlas, which reports referrals under the Atlas user id (user_…). If that metadata holds anything else (an account or org id), no payment will match a referral: check with referalli doctor (billing.customer_ref_namespace).`);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
530
783
|
const apiBody = (ctx, keys) => Object.fromEntries(keys.map((k) => (k === 'programs' ? ['programIds', programIdsFor(ctx, spec.programs)] : [k, want[k]])));
|
|
784
|
+
if (cur && !envOut.has('REFERALLI_BILLING_CONNECTION_ID'))
|
|
785
|
+
envOut.set('REFERALLI_BILLING_CONNECTION_ID', cur.id);
|
|
531
786
|
if (!cur) {
|
|
532
787
|
const key = spec.stripeKeyEnv;
|
|
533
788
|
if (key && !env[key])
|
|
@@ -548,6 +803,13 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
548
803
|
// POST takes no status: pause right after creating.
|
|
549
804
|
if (status === 'paused')
|
|
550
805
|
await ctx.client.request('PATCH', `/v1/billing/connections/${made.id}`, { status });
|
|
806
|
+
for (const w of made.warnings ?? [])
|
|
807
|
+
ctx.out(`Warning: ${label}: ${w}`);
|
|
808
|
+
if (!ctx.envOut.has('REFERALLI_BILLING_CONNECTION_ID')) {
|
|
809
|
+
ctx.envOut.set('REFERALLI_BILLING_CONNECTION_ID', made.id);
|
|
810
|
+
if (made.status !== 'awaiting_secret' && typeof made.webhookSecret === 'string')
|
|
811
|
+
ctx.envOut.set('REFERALLI_BILLING_SECRET', made.webhookSecret);
|
|
812
|
+
}
|
|
551
813
|
// awaiting_secret: the generated secret can't verify this provider; the provider's own is set later with PUT …/secret.
|
|
552
814
|
return typeof made.webhookSecret === 'string' && made.status !== 'awaiting_secret' ? [[label, made.webhookSecret]] : [];
|
|
553
815
|
},
|
|
@@ -561,6 +823,7 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
561
823
|
programs: sorted((cur.programIds ?? []).map((id) => slugOf.get(id) ?? id)),
|
|
562
824
|
status: cur.status === 'awaiting_secret' ? 'active' : cur.status,
|
|
563
825
|
customerRefMetadataKey: cur.customerRefMetadataKey,
|
|
826
|
+
customerRefMetadataKeys: cur.customerRefMetadataKeys ?? [],
|
|
564
827
|
filter: cur.filter,
|
|
565
828
|
};
|
|
566
829
|
const fields = Object.keys(want).filter((k) => !same(now[k], want[k])).map((k) => [k, now[k], want[k]]);
|
|
@@ -701,6 +964,22 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
701
964
|
}
|
|
702
965
|
}
|
|
703
966
|
}
|
|
967
|
+
// Org payout schedule: the PUT replaces it; null is off.
|
|
968
|
+
if (config.payoutSchedule !== undefined) {
|
|
969
|
+
const live = (await scheduleList())?.schedule ?? null;
|
|
970
|
+
const want = config.payoutSchedule;
|
|
971
|
+
const differs = !covers(live, want);
|
|
972
|
+
changes.push({
|
|
973
|
+
action: differs ? 'update' : 'noop',
|
|
974
|
+
kind: 'payoutSchedule',
|
|
975
|
+
label: 'org payoutSchedule',
|
|
976
|
+
fields: differs ? [['schedule', live, want]] : [],
|
|
977
|
+
run: async (ctx) => {
|
|
978
|
+
await ctx.client.request('PUT', '/v1/org/payout-schedule', { schedule: want });
|
|
979
|
+
return [];
|
|
980
|
+
},
|
|
981
|
+
});
|
|
982
|
+
}
|
|
704
983
|
// Email (R-11): PUT /v1/email/settings merges what it's sent; the key (BYOK) from apiKeyEnv, sent while none is stored or the provider changes.
|
|
705
984
|
if (config.email) {
|
|
706
985
|
const { apiKeyEnv, ...want } = config.email;
|
|
@@ -774,7 +1053,7 @@ export async function buildPlan(client, config, env, opts = {}) {
|
|
|
774
1053
|
},
|
|
775
1054
|
});
|
|
776
1055
|
}
|
|
777
|
-
return { changes, ids };
|
|
1056
|
+
return { changes, ids, envOut, warnings };
|
|
778
1057
|
}
|
|
779
1058
|
/** Edit distance, for "did you mean". */
|
|
780
1059
|
function distance(a, b) {
|
|
@@ -870,9 +1149,49 @@ function saveSecrets(path, format, secrets) {
|
|
|
870
1149
|
renameSync(tmp, path);
|
|
871
1150
|
return path;
|
|
872
1151
|
}
|
|
1152
|
+
/**
|
|
1153
|
+
* --env-out: the values a product's .env needs, merged into the file (other lines kept, mode 600).
|
|
1154
|
+
* The tracking token is public; the billing secret and the minted key are written only when this run has them.
|
|
1155
|
+
*/
|
|
1156
|
+
async function writeEnvOut(io, client, config, ids, learned, path) {
|
|
1157
|
+
const vars = new Map(learned);
|
|
1158
|
+
const first = config.programs.map((p) => ids.get(p.slug)).find(Boolean);
|
|
1159
|
+
if (first) {
|
|
1160
|
+
const prog = await client.request('GET', `/v1/programs/${encodeURIComponent(first)}`).catch(() => null);
|
|
1161
|
+
if (prog?.trackingToken)
|
|
1162
|
+
vars.set('NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN', prog.trackingToken);
|
|
1163
|
+
}
|
|
1164
|
+
mergeEnvFile(path, vars);
|
|
1165
|
+
const names = [...vars.keys()];
|
|
1166
|
+
const missing = ['REFERALLI_BILLING_SECRET'].filter((k) => !vars.has(k) && config.billingConnections.length > 0);
|
|
1167
|
+
return `Wrote ${names.join(', ') || 'nothing'} to ${path} (mode 600)${missing.length ? `; ${missing.join(', ')} left as it is (a secret is only known when this run creates it)` : ''}.`;
|
|
1168
|
+
}
|
|
1169
|
+
/** Set `vars` in a dotenv file: an existing line for a name is replaced in place, new names are appended, every other line stays. */
|
|
1170
|
+
export function mergeEnvFile(path, vars) {
|
|
1171
|
+
const before = existsSync(path) ? readFileSync(path, 'utf8') : '';
|
|
1172
|
+
const lines = before === '' ? [] : before.replace(/\n$/, '').split('\n');
|
|
1173
|
+
const left = new Map(vars);
|
|
1174
|
+
const out = lines.map((l) => {
|
|
1175
|
+
const name = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=/.exec(l)?.[1];
|
|
1176
|
+
if (name && left.has(name)) {
|
|
1177
|
+
const v = left.get(name);
|
|
1178
|
+
left.delete(name);
|
|
1179
|
+
return `${name}=${v}`;
|
|
1180
|
+
}
|
|
1181
|
+
return l;
|
|
1182
|
+
});
|
|
1183
|
+
for (const [k, v] of left)
|
|
1184
|
+
out.push(`${k}=${v}`);
|
|
1185
|
+
const tmp = `${path}.tmp-${process.pid}`;
|
|
1186
|
+
writeFileSync(tmp, `${out.join('\n')}\n`, { mode: 0o600 });
|
|
1187
|
+
chmodSync(tmp, 0o600);
|
|
1188
|
+
renameSync(tmp, path);
|
|
1189
|
+
}
|
|
873
1190
|
export async function runApply(io, client, file, opts) {
|
|
874
1191
|
const config = parseConfig(readFileSync(file, 'utf8'), file);
|
|
875
|
-
const { changes, ids } = await buildPlan(client, config, io.env, { prune: opts.prune });
|
|
1192
|
+
const { changes, ids, envOut, warnings } = await buildPlan(client, config, io.env, { prune: opts.prune });
|
|
1193
|
+
for (const w of warnings)
|
|
1194
|
+
io.out(`Warning: ${w}`);
|
|
876
1195
|
for (const line of formatPlan(changes))
|
|
877
1196
|
io.out(line);
|
|
878
1197
|
// Deletes last: whatever the file adds is in place before anything goes.
|
|
@@ -880,10 +1199,27 @@ export async function runApply(io, client, file, opts) {
|
|
|
880
1199
|
if (opts.check) {
|
|
881
1200
|
if (pending.length)
|
|
882
1201
|
io.out('Drift: the account does not match the file.');
|
|
883
|
-
return pending.length ? 2 : 0; // 2,
|
|
1202
|
+
return pending.length ? (opts.driftCode ?? 2) : 0; // --check: 2, so CI can tell drift from an error (1); --exit-code: 1
|
|
884
1203
|
}
|
|
885
|
-
if (!opts.apply
|
|
1204
|
+
if (!opts.apply)
|
|
886
1205
|
return 0;
|
|
1206
|
+
const checkOnly = pending.filter((c) => c.checkOnly);
|
|
1207
|
+
// A bootstrap key can't list keys, so the plan can't see a program key it minted before: the env file holding one counts as having it.
|
|
1208
|
+
const keyOnFile = !!opts.envOut && existsSync(opts.envOut) && /^REFERALLI_API_KEY=\S/m.test(readFileSync(opts.envOut, 'utf8'));
|
|
1209
|
+
const runnable = pending.filter((c) => !c.checkOnly && !(keyOnFile && c.kind === 'programKey'));
|
|
1210
|
+
if (keyOnFile && pending.some((c) => c.kind === 'programKey'))
|
|
1211
|
+
io.out(`programKey: ${opts.envOut} already has REFERALLI_API_KEY, not minting another`);
|
|
1212
|
+
for (const c of checkOnly)
|
|
1213
|
+
io.out(`Needs you (not changed by apply): ${c.label}`);
|
|
1214
|
+
// A minted program key is never printed: it goes to a file.
|
|
1215
|
+
if (runnable.some((c) => c.kind === 'programKey') && !opts.secretFile && !opts.envOut) {
|
|
1216
|
+
throw new ConfigError('programKey mints a key that is never printed: pass --secret-file PATH or --env-out PATH to receive it');
|
|
1217
|
+
}
|
|
1218
|
+
if (runnable.length === 0) {
|
|
1219
|
+
if (opts.envOut)
|
|
1220
|
+
io.out(await writeEnvOut(io, client, config, ids, envOut, opts.envOut));
|
|
1221
|
+
return 0;
|
|
1222
|
+
}
|
|
887
1223
|
// Checked first: a secret file that can't be written after the creates would lose the secrets.
|
|
888
1224
|
const format = opts.secretFormat === 'env' || (!opts.secretFormat && /\.env$|(^|\/)\.env[^/]*$/.test(opts.secretFile ?? '')) ? 'env' : 'json';
|
|
889
1225
|
if (opts.secretFormat && !['env', 'json'].includes(opts.secretFormat))
|
|
@@ -891,10 +1227,10 @@ export async function runApply(io, client, file, opts) {
|
|
|
891
1227
|
// An existing file must be one we can add to; its names are checked again after the creates.
|
|
892
1228
|
if (opts.secretFile && existsSync(opts.secretFile))
|
|
893
1229
|
existingSecretNames(opts.secretFile, format);
|
|
894
|
-
const ctx = { client, ids, out: (line) => io.out(line) };
|
|
1230
|
+
const ctx = { client, ids, out: (line) => io.out(line), envOut };
|
|
895
1231
|
const secrets = [];
|
|
896
1232
|
try {
|
|
897
|
-
for (const c of
|
|
1233
|
+
for (const c of runnable) {
|
|
898
1234
|
secrets.push(...(await c.run(ctx)));
|
|
899
1235
|
io.out(`${c.action === 'create' ? 'Created' : c.action === 'delete' ? 'Deleted' : 'Updated'} ${c.label}`);
|
|
900
1236
|
}
|
|
@@ -907,12 +1243,20 @@ export async function runApply(io, client, file, opts) {
|
|
|
907
1243
|
? `New secrets written to ${saved} (mode 600). They are shown once.`
|
|
908
1244
|
: `${opts.secretFile} already has a secret with one of these names, so the new ones went to ${saved} (mode 600). They are shown once.`);
|
|
909
1245
|
}
|
|
910
|
-
else
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
1246
|
+
else {
|
|
1247
|
+
// A secret that --env-out writes to its file isn't printed as well.
|
|
1248
|
+
const onFile = new Set(opts.envOut ? envOut.values() : []);
|
|
1249
|
+
const shown = secrets.filter(([label, value]) => !label.startsWith('programKey ') && !onFile.has(value));
|
|
1250
|
+
if (shown.length) {
|
|
1251
|
+
io.out('New secrets, shown once. Store them now:');
|
|
1252
|
+
for (const [label, value] of shown)
|
|
1253
|
+
io.out(` ${label} ${value}`);
|
|
1254
|
+
}
|
|
914
1255
|
}
|
|
1256
|
+
// In the finally too, so a failed later change can't lose a secret meant for the env file.
|
|
1257
|
+
if (opts.envOut)
|
|
1258
|
+
io.out(await writeEnvOut(io, client, config, ids, envOut, opts.envOut));
|
|
915
1259
|
}
|
|
916
|
-
io.out(`Apply complete: ${
|
|
1260
|
+
io.out(`Apply complete: ${runnable.length} change(s).`);
|
|
917
1261
|
return 0;
|
|
918
1262
|
}
|
package/dist/src/commands.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare function logsTail(io: Io, flags: Flags): Promise<number>;
|
|
|
38
38
|
*/
|
|
39
39
|
export declare function keys(io: Io, sub: string | undefined, arg: string | undefined, flags: Flags): Promise<number>;
|
|
40
40
|
export declare function api(io: Io, method: string | undefined, path: string | undefined, flags: Flags): Promise<number>;
|
|
41
|
-
/** `referalli plan <file> [--prune]` / `referalli apply <file> [--plan] [--check] [--prune] [--secret-file PATH]`. */
|
|
41
|
+
/** `referalli plan <file> [--prune]` / `referalli apply <file> [--plan] [--check|--exit-code] [--prune] [--secret-file PATH]`. */
|
|
42
42
|
export declare function apply(io: Io, positional: string | undefined, flags: Flags, planOnly: boolean): Promise<number>;
|
|
43
43
|
/** `referalli doctor [--program <id>] [--json]`, or `--scan <dir> [--strict]`, which needs no key. */
|
|
44
44
|
export declare function doctor(io: Io, flags: Flags): Promise<number>;
|
package/dist/src/commands.js
CHANGED
|
@@ -435,22 +435,24 @@ export async function api(io, method, path, flags) {
|
|
|
435
435
|
}
|
|
436
436
|
const SECRET_FIELDS = ['webhookSecret', 'secret', 'key'];
|
|
437
437
|
// --- plan / apply ------------------------------------------------------------------
|
|
438
|
-
/** `referalli plan <file> [--prune]` / `referalli apply <file> [--plan] [--check] [--prune] [--secret-file PATH]`. */
|
|
438
|
+
/** `referalli plan <file> [--prune]` / `referalli apply <file> [--plan] [--check|--exit-code] [--prune] [--secret-file PATH]`. */
|
|
439
439
|
export async function apply(io, positional, flags, planOnly) {
|
|
440
440
|
// `--file` as other ForgeDeck CLIs take it (convertmepls R6); the file is positional otherwise.
|
|
441
441
|
const file = positional ?? (typeof flags.file === 'string' ? flags.file : undefined);
|
|
442
442
|
if (positional && typeof flags.file === 'string' && flags.file !== positional)
|
|
443
443
|
throw new CliError('give the config file once: positionally or with --file');
|
|
444
444
|
if (!file)
|
|
445
|
-
throw new CliError(planOnly ? 'Usage: referalli plan <referalli.yaml> [--check] [--prune]' : 'Usage: referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json]');
|
|
445
|
+
throw new CliError(planOnly ? 'Usage: referalli plan <referalli.yaml> [--check|--exit-code] [--prune]' : 'Usage: referalli apply <referalli.yaml> [--plan] [--check|--exit-code] [--prune] [--secret-file PATH] [--secret-format env|json] [--env-out PATH]');
|
|
446
446
|
const { client } = signedIn(io);
|
|
447
447
|
try {
|
|
448
448
|
return await runApply(io, client, file, {
|
|
449
449
|
apply: !planOnly && !flags.plan,
|
|
450
|
-
check: flags.check === true,
|
|
450
|
+
check: flags.check === true || flags['exit-code'] === true,
|
|
451
|
+
driftCode: flags.check === true ? 2 : 1,
|
|
451
452
|
prune: flags.prune === true,
|
|
452
453
|
secretFile: typeof flags['secret-file'] === 'string' ? flags['secret-file'] : undefined,
|
|
453
454
|
secretFormat: typeof flags['secret-format'] === 'string' ? flags['secret-format'] : undefined,
|
|
455
|
+
envOut: typeof flags['env-out'] === 'string' ? flags['env-out'] : undefined,
|
|
454
456
|
});
|
|
455
457
|
}
|
|
456
458
|
catch (err) {
|
package/dist/src/doctor.js
CHANGED
|
@@ -218,8 +218,10 @@ function programConsentCheck(programs, scope) {
|
|
|
218
218
|
}
|
|
219
219
|
async function trackingCheck(client, env, programs, scope,
|
|
220
220
|
/** A program-scoped key: no org read; the token comes from the program (the consent check runs from the programs). */
|
|
221
|
-
scopedKey = null
|
|
222
|
-
|
|
221
|
+
scopedKey = null,
|
|
222
|
+
/** The token from doctor-context, for an API whose program GET lacks it. */
|
|
223
|
+
contextToken) {
|
|
224
|
+
const fromProgram = scopedKey ? (programs.find((p) => p.trackingToken)?.trackingToken ?? contextToken) : undefined;
|
|
223
225
|
if (scopedKey && !fromProgram)
|
|
224
226
|
throw new ApiError(403, 'program_scoped_key', 'older API: no trackingToken on the program'); // skipped as before
|
|
225
227
|
const org = fromProgram
|
|
@@ -285,12 +287,69 @@ async function healthChecks(client, scope, billing, tally) {
|
|
|
285
287
|
const id = `health.${h.id}`;
|
|
286
288
|
if (h.ok)
|
|
287
289
|
return { id, status: 'ok', message: h.detail };
|
|
288
|
-
|
|
290
|
+
// The customerRef namespace check reads only this key's own connections (RLS), so it fails a scoped run too.
|
|
291
|
+
const severe = (!scope || h.id.startsWith('billing.customer_ref_namespace.')) && (h.severity === 'error' || h.severity === 'critical');
|
|
289
292
|
const fix = [h.fix, h.docs].filter(Boolean).join(' ');
|
|
290
293
|
const status = severe ? 'fail' : h.severity === 'info' ? 'info' : 'warn';
|
|
291
294
|
return { id, status, message: h.detail, ...(fix ? { fix } : {}) };
|
|
292
295
|
});
|
|
293
296
|
}
|
|
297
|
+
/** The context of each program, or null when the API predates the endpoint (the checks then read the org directly). */
|
|
298
|
+
async function loadContexts(client, programs) {
|
|
299
|
+
try {
|
|
300
|
+
const all = await Promise.all(programs.map((p) => client.request('GET', `/v1/programs/${encodeURIComponent(p.id)}/doctor-context`)));
|
|
301
|
+
return new Map(all.map((c) => [c.programId, c]));
|
|
302
|
+
}
|
|
303
|
+
catch (err) {
|
|
304
|
+
if (err instanceof ApiError && (err.status === 404 || err.status === 403))
|
|
305
|
+
return null;
|
|
306
|
+
throw err;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
function payoutContextChecks(programs, ctxs, live) {
|
|
310
|
+
const paying = programs.filter((p) => p.status === 'active' && (p.settings?.settlement ?? 'payout') === 'payout');
|
|
311
|
+
if (paying.length === 0)
|
|
312
|
+
return [];
|
|
313
|
+
if (!live)
|
|
314
|
+
return [{ id: 'payouts.connection', status: 'ok', message: 'test mode pays every method through the test rail' }];
|
|
315
|
+
const active = [...new Set([...ctxs.values()].flatMap((c) => c.payouts.connections.filter((x) => x.status === 'active').map((x) => x.provider)))];
|
|
316
|
+
if (active.length)
|
|
317
|
+
return [{ id: 'payouts.connection', status: 'ok', message: `payout connection: ${active.join(', ')}` }];
|
|
318
|
+
const names = paying.map((p) => `"${p.name}"`).join(', ');
|
|
319
|
+
return [{ id: 'payouts.connection', status: 'warn', message: `no payout connection while ${names} settle by payout: partners can only be paid by hand`, fix: 'PUT /v1/payout-connections/{provider} (Settings → Payouts), or settlement: merchant_credit' }];
|
|
320
|
+
}
|
|
321
|
+
/** Which sender each program mails from today (REF-X5). Email is bring-your-own-key: with none configured nothing is sent unless the operator runs its own transport. */
|
|
322
|
+
function emailContextChecks(programs, ctxs) {
|
|
323
|
+
return programs.flatMap((p) => {
|
|
324
|
+
const e = ctxs.get(p.id)?.email;
|
|
325
|
+
if (!e)
|
|
326
|
+
return [];
|
|
327
|
+
const id = `email.sender.${p.id}`;
|
|
328
|
+
const reviewing = p.publicPage?.autoApprove === false;
|
|
329
|
+
if (e.source === 'program' || e.source === 'org') {
|
|
330
|
+
const verify = e.domainStatus && e.domainStatus !== 'verified' && e.domainStatus !== 'unknown' ? ` (sending domain ${e.domainStatus})` : '';
|
|
331
|
+
const check = { id, status: verify ? 'warn' : 'ok', message: `"${p.name}" mails from ${e.fromAddress ?? 'the provider default'} through ${e.provider} (${e.source === 'program' ? "the program's own" : "the org's"} provider)${verify}` };
|
|
332
|
+
return [verify ? { ...check, fix: 'POST /v1/email/settings/verify-domain' } : check];
|
|
333
|
+
}
|
|
334
|
+
if (e.source === 'platform') {
|
|
335
|
+
return [{ id, status: 'warn', message: `"${p.name}" has no bring-your-own sender: it mails from the shared Referalli sender ${e.fromAddress ?? ''}, not from your domain`, fix: 'PUT /v1/email/settings {"provider":"…","apiKey":"…","fromAddress":"…"}, or PUT /v1/programs/{id}/email-settings for one program' }];
|
|
336
|
+
}
|
|
337
|
+
return [{ id, status: reviewing ? 'warn' : 'info', message: `no email provider is configured for "${p.name}": no email is sent${reviewing ? ', and partners wait for approval without hearing back' : ''}`, fix: 'PUT /v1/email/settings {"provider":"…","apiKey":"…","fromAddress":"…"} (bring your own key), or PUT /v1/programs/{id}/email-settings for one program' }];
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
/** REF-B5: with several programs, a billing connection with no programIds is matched against every one of them. */
|
|
341
|
+
function billingScopeChecks(conns, programCount) {
|
|
342
|
+
if (programCount < 2)
|
|
343
|
+
return [];
|
|
344
|
+
return conns
|
|
345
|
+
.filter((c) => !c.programIds?.length && c.status !== 'deleted')
|
|
346
|
+
.map((c) => ({
|
|
347
|
+
id: `billing.scope.${c.id}`,
|
|
348
|
+
status: 'warn',
|
|
349
|
+
message: `billing connection "${c.name || c.id}" has no programIds: its events can earn for referrals in any of the org's ${programCount} programs`,
|
|
350
|
+
fix: `PATCH /v1/billing/connections/${c.id} {"programIds":["prg_…"]}`,
|
|
351
|
+
}));
|
|
352
|
+
}
|
|
294
353
|
/** A program settling by payout with no payout connection: partners can only be paid by hand. Test mode pays through the test rail. */
|
|
295
354
|
async function payoutChecks(client, programs, live) {
|
|
296
355
|
const paying = programs.filter((p) => p.status === 'active' && (p.settings?.settlement ?? 'payout') === 'payout');
|
|
@@ -409,12 +468,16 @@ async function e2eChecks(client, programId, fetchFn, env) {
|
|
|
409
468
|
.request('GET', '/v1/org')
|
|
410
469
|
.then((o) => o.trackingToken)
|
|
411
470
|
.catch((err) => {
|
|
412
|
-
if (err instanceof ApiError && err.status === 403)
|
|
413
|
-
|
|
414
|
-
|
|
471
|
+
if (!(err instanceof ApiError && err.status === 403))
|
|
472
|
+
throw err;
|
|
473
|
+
// A program key can't read the org, but doctor-context carries the (public) token.
|
|
474
|
+
return client
|
|
475
|
+
.request('GET', `/v1/programs/${encodeURIComponent(programId)}/doctor-context`)
|
|
476
|
+
.then((c) => c.tracking.trackingToken)
|
|
477
|
+
.catch(() => env.REFERALLI_TRACKING_TOKEN ?? env.NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN);
|
|
415
478
|
});
|
|
416
479
|
if (!trackingToken) {
|
|
417
|
-
return [{ id: 'e2e', status: 'warn', message: "skipped:
|
|
480
|
+
return [{ id: 'e2e', status: 'warn', message: "skipped: the tracking token couldn't be read (older API)", fix: 'set REFERALLI_TRACKING_TOKEN and run again' }];
|
|
418
481
|
}
|
|
419
482
|
const live = me.apiKey?.livemode !== false;
|
|
420
483
|
const scriptPath = `/t/${encodeURIComponent(trackingToken)}/aff.js`;
|
|
@@ -513,6 +576,9 @@ export async function runDoctor(io, client, flags, now = new Date()) {
|
|
|
513
576
|
});
|
|
514
577
|
// Read once: the billing checks and the health checks' tally both need it (health: empty if it can't be read; billing says why).
|
|
515
578
|
const billingList = client.request('GET', '/v1/billing/connections').then(rows);
|
|
579
|
+
// Read once: payouts, email and the tracking token come redacted from the API, so a program-scoped key skips nothing.
|
|
580
|
+
const contexts = await loadContexts(client, programs).catch(() => null);
|
|
581
|
+
const live = apiKey?.livemode !== false;
|
|
516
582
|
const checks = [
|
|
517
583
|
...key,
|
|
518
584
|
...programChecks,
|
|
@@ -520,11 +586,13 @@ export async function runDoctor(io, client, flags, now = new Date()) {
|
|
|
520
586
|
guard('webhooks', undefined, () => webhookChecks(client, scope, tally)),
|
|
521
587
|
guard('billing', undefined, async () => billingChecks(scope, await billingList, tally)),
|
|
522
588
|
orgWide('auth', () => authChecks(client, now, programs, scope, tally)),
|
|
523
|
-
orgWide('tracking', () => trackingCheck(client, io.env, programs, scope, scoped ? { livemode:
|
|
589
|
+
orgWide('tracking', () => trackingCheck(client, io.env, programs, scope, scoped ? { livemode: live } : null, contexts?.values().next().value?.tracking.trackingToken)),
|
|
524
590
|
...(scoped && scope ? [guard('tracking.consent', undefined, async () => programConsentCheck(programs, scope))] : []),
|
|
525
591
|
orgWide('health', async () => healthChecks(client, scope, await billingList.catch(() => []), tally)),
|
|
526
|
-
|
|
527
|
-
|
|
592
|
+
...(contexts
|
|
593
|
+
? [guard('payouts', undefined, async () => payoutContextChecks(programs, contexts, live)), guard('email', undefined, async () => emailContextChecks(programs, contexts))]
|
|
594
|
+
: [orgWide('payouts', () => payoutChecks(client, programs, live)), orgWide('email', () => emailChecks(client, programs))]),
|
|
595
|
+
...(!scope ? [guard('billing.scope', undefined, async () => billingScopeChecks(await billingList, programs.length))] : []),
|
|
528
596
|
guard('commissions', undefined, () => unpaidChecks(client, programs, now)),
|
|
529
597
|
guard('join', undefined, () => joinChecks(client, programs, fetchFn)),
|
|
530
598
|
...(flags.e2e && program ? [guard('e2e', undefined, () => e2eChecks(client, program, fetchFn, io.env))] : []),
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export { readConfig, writeConfig, configPath, type CliConfig } from './config.js
|
|
|
3
3
|
export { createClient, ApiError } from './client.js';
|
|
4
4
|
export type { Io } from './commands.js';
|
|
5
5
|
export { VERSION } from './version.js';
|
|
6
|
-
export declare const HELP = "referalli: the Referalli command line\n\nUsage:\n referalli login [--key rk_\u2026] [--base-url URL] [--no-browser]\n referalli logout\n referalli whoami\n referalli listen [--forward-to URL] [--events topic,topic] [--max-events N]\n referalli trigger <topic> [--data JSON]\n referalli trigger --billing <event> --connection <id> [--data JSON] (test mode; e.g. payment.paid)\n referalli trigger --stripe <event> --connection <id> [--data JSON] (test mode)\n referalli events tail [--events topic,topic] [--since 1h|ISO] [--json] [--max N]\n referalli logs tail [--max N]\n referalli open [docs|dashboard|keys|webhooks|spec|status]\n referalli api <METHOD> <path> [--data JSON] [--secret-file PATH]\n referalli keys create --name NAME [--owner WHO] [--mode both|live|test] [--scopes full,\u2026] [--programs ID,\u2026] [--expires-days N | --expires-at ISO]\n referalli keys list [--owner WHO] [--mode live|test]\n referalli keys revoke <key id> [--pair] [--cascade]\n referalli plan <referalli.yaml> [--check] [--prune] (or --file <referalli.yaml>)\n referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json]\n referalli doctor [--program <id>] [--json]\n referalli doctor --program <id> --e2e [--json] (also tests the program from outside; see the docs)\n referalli doctor --scan <dir> [--strict] [--json] (old Referally names in a source tree; no key needed)\n referalli partners list --program <id> [--since 7d|ISO] [--json]\n referalli billing owner set <accountRef> <customerRef> (the user an organization's payments earn for)\n referalli env pull [--mode live|test] (.env lines on stdout; default: the key's mode)\n\nEnvironment:\n REFERALLI_API_KEY use this key instead of the saved login\n REFERALLI_API_URL API base URL (default: the hosted API)\n REFERALLI_CONFIG_DIR where the login is saved (default ~/.config/referalli)\n REFERALLI_TRACKING_TOKEN doctor checks it is this mode's token (or NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN)\n REFERALLI_PROGRAM_ID the default for --program (doctor, partners list)\n REFERALLY_* spellings of these still work, with a notice";
|
|
6
|
+
export declare const HELP = "referalli: the Referalli command line\n\nUsage:\n referalli login [--key rk_\u2026] [--base-url URL] [--no-browser]\n referalli logout\n referalli whoami\n referalli listen [--forward-to URL] [--events topic,topic] [--max-events N]\n referalli trigger <topic> [--data JSON]\n referalli trigger --billing <event> --connection <id> [--data JSON] (test mode; e.g. payment.paid)\n referalli trigger --stripe <event> --connection <id> [--data JSON] (test mode)\n referalli events tail [--events topic,topic] [--since 1h|ISO] [--json] [--max N]\n referalli logs tail [--max N]\n referalli open [docs|dashboard|keys|webhooks|spec|status]\n referalli api <METHOD> <path> [--data JSON] [--secret-file PATH]\n referalli keys create --name NAME [--owner WHO] [--mode both|live|test] [--scopes full,\u2026] [--programs ID,\u2026] [--expires-days N | --expires-at ISO]\n referalli keys list [--owner WHO] [--mode live|test]\n referalli keys revoke <key id> [--pair] [--cascade]\n referalli plan <referalli.yaml> [--check|--exit-code] [--prune] (or --file <referalli.yaml>)\n referalli apply <referalli.yaml> [--plan] [--check|--exit-code] [--prune] [--secret-file PATH] [--secret-format env|json] [--env-out PATH]\n referalli doctor [--program <id>] [--json]\n referalli doctor --program <id> --e2e [--json] (also tests the program from outside; see the docs)\n referalli doctor --scan <dir> [--strict] [--json] (old Referally names in a source tree; no key needed)\n referalli partners list --program <id> [--since 7d|ISO] [--json]\n referalli billing owner set <accountRef> <customerRef> (the user an organization's payments earn for)\n referalli env pull [--mode live|test] (.env lines on stdout; default: the key's mode)\n\nEnvironment:\n REFERALLI_API_KEY use this key instead of the saved login\n REFERALLI_API_URL API base URL (default: the hosted API)\n REFERALLI_CONFIG_DIR where the login is saved (default ~/.config/referalli)\n REFERALLI_TRACKING_TOKEN doctor checks it is this mode's token (or NEXT_PUBLIC_REFERALLI_TRACKING_TOKEN)\n REFERALLI_PROGRAM_ID the default for --program (doctor, partners list)\n REFERALLY_* spellings of these still work, with a notice";
|
|
7
7
|
/** Run one command; returns the process exit code. */
|
|
8
8
|
export declare function runCli(argv: string[], baseIo: Io): Promise<number>;
|
package/dist/src/index.js
CHANGED
|
@@ -23,8 +23,8 @@ Usage:
|
|
|
23
23
|
referalli keys create --name NAME [--owner WHO] [--mode both|live|test] [--scopes full,…] [--programs ID,…] [--expires-days N | --expires-at ISO]
|
|
24
24
|
referalli keys list [--owner WHO] [--mode live|test]
|
|
25
25
|
referalli keys revoke <key id> [--pair] [--cascade]
|
|
26
|
-
referalli plan <referalli.yaml> [--check] [--prune] (or --file <referalli.yaml>)
|
|
27
|
-
referalli apply <referalli.yaml> [--plan] [--check] [--prune] [--secret-file PATH] [--secret-format env|json]
|
|
26
|
+
referalli plan <referalli.yaml> [--check|--exit-code] [--prune] (or --file <referalli.yaml>)
|
|
27
|
+
referalli apply <referalli.yaml> [--plan] [--check|--exit-code] [--prune] [--secret-file PATH] [--secret-format env|json] [--env-out PATH]
|
|
28
28
|
referalli doctor [--program <id>] [--json]
|
|
29
29
|
referalli doctor --program <id> --e2e [--json] (also tests the program from outside; see the docs)
|
|
30
30
|
referalli doctor --scan <dir> [--strict] [--json] (old Referally names in a source tree; no key needed)
|
|
@@ -66,6 +66,7 @@ export async function runCli(argv, baseIo) {
|
|
|
66
66
|
program: { type: 'string' },
|
|
67
67
|
'secret-file': { type: 'string' },
|
|
68
68
|
'secret-format': { type: 'string' },
|
|
69
|
+
'env-out': { type: 'string' },
|
|
69
70
|
file: { type: 'string' },
|
|
70
71
|
name: { type: 'string' },
|
|
71
72
|
owner: { type: 'string' },
|
|
@@ -79,6 +80,7 @@ export async function runCli(argv, baseIo) {
|
|
|
79
80
|
cascade: { type: 'boolean' },
|
|
80
81
|
plan: { type: 'boolean' },
|
|
81
82
|
check: { type: 'boolean' },
|
|
83
|
+
'exit-code': { type: 'boolean' },
|
|
82
84
|
prune: { type: 'boolean' },
|
|
83
85
|
json: { type: 'boolean' },
|
|
84
86
|
scan: { type: 'string' },
|
package/dist/src/scan.js
CHANGED
|
@@ -10,7 +10,7 @@ const PUBLISHED = new Set(['cli', 'express', 'mcp', 'next', 'react', 'react-nati
|
|
|
10
10
|
const packageName = (old) => {
|
|
11
11
|
const name = old.slice('@referally/'.length);
|
|
12
12
|
if (name === 'sdk-js')
|
|
13
|
-
return 'referalli';
|
|
13
|
+
return '@referalli/sdk';
|
|
14
14
|
return PUBLISHED.has(name) ? `@referalli/${name}` : 'no published replacement';
|
|
15
15
|
};
|
|
16
16
|
// Dates come from docs: Renamed from Referally (the cookie twin goes first, the rest on one later date).
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Kept in step with package.json by test/version.test.ts. */
|
|
2
|
-
export declare const VERSION = "0.4.
|
|
2
|
+
export declare const VERSION = "0.4.18";
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Kept in step with package.json by test/version.test.ts. */
|
|
2
|
-
export const VERSION = '0.4.
|
|
2
|
+
export const VERSION = '0.4.18';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/version.ts","../src/client.ts","../src/apply.ts","../src/doctor.ts","../src/config.ts","../src/scan.ts","../src/commands.ts","../src/index.ts","../src/js-yaml.d.ts","../bin/referalli.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/web-globals/streams.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[65,73,122,123,139,140],[73,119,120,122,139,140],[73,121,122,139,140],[122,139,140],[73,122,127,139,140,157],[73,122,123,128,133,139,140,142,154,165],[73,122,123,124,133,139,140,142],[73,122,139,140],[68,69,70,73,122,139,140],[73,122,125,139,140,166],[73,122,126,127,134,139,140,143],[73,122,127,139,140,154,162],[73,122,128,130,133,139,140,142],[73,121,122,129,139,140],[73,122,130,131,139,140],[73,122,132,133,139,140],[73,121,122,133,139,140],[73,122,133,134,135,139,140,154,165],[73,122,133,134,135,139,140,149,154,157],[73,114,122,130,133,136,139,140,142,154,165],[73,122,133,134,136,137,139,140,142,154,162,165],[73,122,136,138,139,140,154,162,165],[71,72,73,74,75,76,77,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,133,139,140],[73,122,139,140,141,165],[73,122,130,133,139,140,142,154],[73,122,139,140,143],[73,122,139,140,144],[73,121,122,139,140,145],[73,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,139,140,147],[73,122,139,140,148],[73,122,133,139,140,149,150],[73,122,139,140,149,151,166,168],[73,122,134,139,140],[73,122,133,139,140,154,155,157],[73,122,139,140,156,157],[73,122,139,140,154,155],[73,122,139,140,157],[73,122,139,140,158],[73,119,122,139,140,154,159,165],[73,122,133,139,140,160,161],[73,122,139,140,160,161],[73,122,127,139,140,142,154,162],[73,122,139,140,163],[73,122,139,140,142,164],[73,122,136,139,140,148,165],[73,122,127,139,140,166],[73,122,139,140,154,167],[73,122,139,140,141,168],[73,122,139,140,169],[73,114,122,139,140],[73,114,122,133,135,139,140,145,154,157,165,167,168,170],[73,122,139,140,154,171],[73,86,90,122,139,140,165],[73,86,122,139,140,154,165],[73,81,122,139,140],[73,83,86,122,139,140,162,165],[73,122,139,140,142,162],[73,122,139,140,172],[73,81,122,139,140,172],[73,83,86,122,139,140,142,165],[73,78,79,82,85,122,133,139,140,154,165],[73,86,93,122,139,140],[73,78,84,122,139,140],[73,86,107,108,122,139,140],[73,82,86,122,139,140,157,165,172],[73,107,122,139,140,172],[73,80,81,122,139,140,172],[73,86,122,139,140],[73,80,81,82,83,84,85,86,87,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,122,139,140],[73,86,101,122,139,140],[73,86,93,94,122,139,140],[73,84,86,94,95,122,139,140],[73,85,122,139,140],[73,78,81,86,122,139,140],[73,86,90,94,95,122,139,140],[73,90,122,139,140],[73,84,86,89,122,139,140,165],[73,78,83,86,93,122,139,140],[73,122,139,140,154],[73,81,86,107,122,139,140,170,172],[59,66,73,122,127,134,139,140],[58,73,122,139,140],[59,60,61,62,63,73,122,134,139,140,143],[73,122,134,139,140,143,144],[59,60,64,73,122,139,140],[58,59,62,64,73,122,139,140,166],[61,62,73,122,134,139,140,144]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7efd58e650c8f1471b4327cd8369ea147a3e4fd5d1e6271fb0a691a4d0c41b98","signature":"52645b43170df347e59ccd2d6120020642d4b329e472a2cd7ab77707328cf051","impliedFormat":99},{"version":"c58a2a87046e206bcbd57d946de30bd61a973456ba50711ebddc486ed8ac6c57","signature":"83741aedae654b45ef4bd8b77929b33490944f9ea501e9a0e91c00b65e0b127b","impliedFormat":99},{"version":"8ccfe016c24be29976ed30ba556a593fedad367723159e9d4c38d98f8b5f9bc7","signature":"80fd762b8d840dca3c6c1123394faa3db36a553fd1de1ab0515814e26acd9c71","impliedFormat":99},{"version":"88c727d07873912e470c286a49f45a5cfb1351d4be4f8272745ffba72e809509","signature":"5ade39dc52cd82f452940a44b5128bd1a6e39fb3d3aa123a4dbbcf53a2dfcfd9","impliedFormat":99},{"version":"ad999352afd126ccaa80f34272e3ec0b79b61e86b93d62ef69a31c61db3e68df","signature":"ccca076cc18e7a15e11d094277bae19200e6a761c56be3192a19d94afc983d53","impliedFormat":99},{"version":"c6d5963f61f3cbdae1e9dd42012cf26859e3b5a62412aee929f85500dbf9b620","signature":"ddc386978107fff37feb46e6ea8b387e7d561558df9334eced1d57967896f3f5","impliedFormat":99},{"version":"996972a6a85eb8c57793cc434f9c3f48ab7566f697dd3595e8a3f0b6346382e3","signature":"27cc15b7b2de6c10490e7a4743e652fcc4edc6b24cbf2891fbd30dba236928f2","impliedFormat":99},{"version":"35114cd9166562877c4d0db879bbce173a53d6cac1a7f1816b025a1330279e2b","signature":"a1005f950cdc3d327524491a31d13a210d0b8e9465e5d47a6d66daef3e316182","impliedFormat":99},{"version":"919b3225931164d97ecfc319c934dca71cf48980d2f47c6af3ace86a186a1638","impliedFormat":99},{"version":"440728a6de45e5caee615e6264e31aad14e362608593a7ca02e6fab16d906684","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"913be43dad2a40e500104700aa26cfb5c51a976114bedf19624de43fdae7474f","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"208a6a0bfb227bdf8fb964799d0a206c75cf03ccd72e63bf5495c9331354c6d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"45479f65af737a3e5c26d8772bd8ab1aa8bebbd09c1a808c2b3faddb9b84afbb","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1}],"root":[[58,67]],"options":{"declaration":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":false,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[67,1],[119,2],[120,2],[121,3],[73,4],[122,5],[123,6],[124,7],[68,8],[71,9],[69,8],[70,8],[125,10],[126,11],[127,12],[128,13],[129,14],[130,15],[131,15],[132,16],[133,17],[134,18],[135,19],[74,8],[72,8],[136,20],[137,21],[138,22],[172,23],[139,24],[140,8],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,32],[149,33],[150,33],[151,34],[152,8],[153,35],[154,36],[156,37],[155,38],[157,39],[158,40],[159,41],[160,42],[161,43],[162,44],[163,45],[164,46],[165,47],[166,48],[167,49],[168,50],[169,51],[75,8],[76,8],[77,8],[115,52],[116,8],[117,8],[118,39],[170,53],[171,54],[56,8],[57,8],[11,8],[10,8],[2,8],[12,8],[13,8],[14,8],[15,8],[16,8],[17,8],[18,8],[19,8],[3,8],[20,8],[21,8],[4,8],[22,8],[26,8],[23,8],[24,8],[25,8],[27,8],[28,8],[29,8],[5,8],[30,8],[31,8],[32,8],[33,8],[6,8],[37,8],[34,8],[35,8],[36,8],[38,8],[7,8],[39,8],[44,8],[45,8],[40,8],[41,8],[42,8],[43,8],[8,8],[49,8],[46,8],[47,8],[48,8],[50,8],[9,8],[51,8],[52,8],[53,8],[55,8],[54,8],[1,8],[93,55],[103,56],[92,55],[113,57],[84,58],[83,59],[112,60],[106,61],[111,62],[86,63],[100,64],[85,65],[109,66],[81,67],[80,60],[110,68],[82,69],[87,70],[88,8],[91,70],[78,8],[114,71],[104,72],[95,73],[96,74],[98,75],[94,76],[97,77],[107,60],[89,78],[90,79],[99,80],[79,81],[102,72],[101,70],[105,8],[108,82],[60,83],[59,84],[64,85],[62,86],[61,87],[65,88],[66,8],[63,89],[58,8]],"version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/version.ts","../src/client.ts","../src/apply.ts","../src/doctor.ts","../src/config.ts","../src/scan.ts","../src/commands.ts","../src/index.ts","../src/js-yaml.d.ts","../bin/referalli.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/web-globals/streams.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[65,73,122,123,139,140],[73,119,120,122,139,140],[73,121,122,139,140],[122,139,140],[73,122,127,139,140,157],[73,122,123,128,133,139,140,142,154,165],[73,122,123,124,133,139,140,142],[73,122,139,140],[68,69,70,73,122,139,140],[73,122,125,139,140,166],[73,122,126,127,134,139,140,143],[73,122,127,139,140,154,162],[73,122,128,130,133,139,140,142],[73,121,122,129,139,140],[73,122,130,131,139,140],[73,122,132,133,139,140],[73,121,122,133,139,140],[73,122,133,134,135,139,140,154,165],[73,122,133,134,135,139,140,149,154,157],[73,114,122,130,133,136,139,140,142,154,165],[73,122,133,134,136,137,139,140,142,154,162,165],[73,122,136,138,139,140,154,162,165],[71,72,73,74,75,76,77,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,133,139,140],[73,122,139,140,141,165],[73,122,130,133,139,140,142,154],[73,122,139,140,143],[73,122,139,140,144],[73,121,122,139,140,145],[73,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],[73,122,139,140,147],[73,122,139,140,148],[73,122,133,139,140,149,150],[73,122,139,140,149,151,166,168],[73,122,134,139,140],[73,122,133,139,140,154,155,157],[73,122,139,140,156,157],[73,122,139,140,154,155],[73,122,139,140,157],[73,122,139,140,158],[73,119,122,139,140,154,159,165],[73,122,133,139,140,160,161],[73,122,139,140,160,161],[73,122,127,139,140,142,154,162],[73,122,139,140,163],[73,122,139,140,142,164],[73,122,136,139,140,148,165],[73,122,127,139,140,166],[73,122,139,140,154,167],[73,122,139,140,141,168],[73,122,139,140,169],[73,114,122,139,140],[73,114,122,133,135,139,140,145,154,157,165,167,168,170],[73,122,139,140,154,171],[73,86,90,122,139,140,165],[73,86,122,139,140,154,165],[73,81,122,139,140],[73,83,86,122,139,140,162,165],[73,122,139,140,142,162],[73,122,139,140,172],[73,81,122,139,140,172],[73,83,86,122,139,140,142,165],[73,78,79,82,85,122,133,139,140,154,165],[73,86,93,122,139,140],[73,78,84,122,139,140],[73,86,107,108,122,139,140],[73,82,86,122,139,140,157,165,172],[73,107,122,139,140,172],[73,80,81,122,139,140,172],[73,86,122,139,140],[73,80,81,82,83,84,85,86,87,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,122,139,140],[73,86,101,122,139,140],[73,86,93,94,122,139,140],[73,84,86,94,95,122,139,140],[73,85,122,139,140],[73,78,81,86,122,139,140],[73,86,90,94,95,122,139,140],[73,90,122,139,140],[73,84,86,89,122,139,140,165],[73,78,83,86,93,122,139,140],[73,122,139,140,154],[73,81,86,107,122,139,140,170,172],[59,66,73,122,127,134,139,140],[58,73,122,139,140],[59,60,61,62,63,73,122,134,139,140,143],[73,122,134,139,140,143,144],[59,60,64,73,122,139,140],[58,59,62,64,73,122,139,140,166],[61,62,73,122,134,139,140,144]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"afed7d602607a878bfb4a696061af0f9224a2c8a79435c0a1254be8756267a75","signature":"8b59e4a8793a1f40c4e8cc60d018bd58825796e593da758310e0d421d068d063","impliedFormat":99},{"version":"c58a2a87046e206bcbd57d946de30bd61a973456ba50711ebddc486ed8ac6c57","signature":"83741aedae654b45ef4bd8b77929b33490944f9ea501e9a0e91c00b65e0b127b","impliedFormat":99},{"version":"59518228bf9f40db91684dec50c056608748a17f91113639abcd2b6678ac6c3a","signature":"c65361c768ac89febc344a3a095a241acf4b5ed370ce51cb9b589cc93b95e163","impliedFormat":99},{"version":"09c449f414990670a22fbe0012f204c7005fadaaa7124956713e57044060aba9","signature":"5ade39dc52cd82f452940a44b5128bd1a6e39fb3d3aa123a4dbbcf53a2dfcfd9","impliedFormat":99},{"version":"ad999352afd126ccaa80f34272e3ec0b79b61e86b93d62ef69a31c61db3e68df","signature":"ccca076cc18e7a15e11d094277bae19200e6a761c56be3192a19d94afc983d53","impliedFormat":99},{"version":"66dcc654137647ba3d89b4e5c2a70d592fc0a7178f4b2aaaabbe2bfcf608be24","signature":"ddc386978107fff37feb46e6ea8b387e7d561558df9334eced1d57967896f3f5","impliedFormat":99},{"version":"2289c5544495f177855125ff890d83798284a77deae2d7d45f62c389d30fb39b","signature":"8a264e3644d3a91c70aae87dc7f13c96c02f5810002d47093fc75699ddc93069","impliedFormat":99},{"version":"cd29f1ae039ca49395e530635709c5882876f94686a3292b325adb8b61eff73f","signature":"d4c22b4e1d3601dee8903ffc5c147621c38309161f0d85ea455773b2ff7bb41d","impliedFormat":99},{"version":"919b3225931164d97ecfc319c934dca71cf48980d2f47c6af3ace86a186a1638","impliedFormat":99},{"version":"440728a6de45e5caee615e6264e31aad14e362608593a7ca02e6fab16d906684","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"913be43dad2a40e500104700aa26cfb5c51a976114bedf19624de43fdae7474f","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"208a6a0bfb227bdf8fb964799d0a206c75cf03ccd72e63bf5495c9331354c6d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"45479f65af737a3e5c26d8772bd8ab1aa8bebbd09c1a808c2b3faddb9b84afbb","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1}],"root":[[58,67]],"options":{"declaration":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":false,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[67,1],[119,2],[120,2],[121,3],[73,4],[122,5],[123,6],[124,7],[68,8],[71,9],[69,8],[70,8],[125,10],[126,11],[127,12],[128,13],[129,14],[130,15],[131,15],[132,16],[133,17],[134,18],[135,19],[74,8],[72,8],[136,20],[137,21],[138,22],[172,23],[139,24],[140,8],[141,25],[142,26],[143,27],[144,28],[145,29],[146,30],[147,31],[148,32],[149,33],[150,33],[151,34],[152,8],[153,35],[154,36],[156,37],[155,38],[157,39],[158,40],[159,41],[160,42],[161,43],[162,44],[163,45],[164,46],[165,47],[166,48],[167,49],[168,50],[169,51],[75,8],[76,8],[77,8],[115,52],[116,8],[117,8],[118,39],[170,53],[171,54],[56,8],[57,8],[11,8],[10,8],[2,8],[12,8],[13,8],[14,8],[15,8],[16,8],[17,8],[18,8],[19,8],[3,8],[20,8],[21,8],[4,8],[22,8],[26,8],[23,8],[24,8],[25,8],[27,8],[28,8],[29,8],[5,8],[30,8],[31,8],[32,8],[33,8],[6,8],[37,8],[34,8],[35,8],[36,8],[38,8],[7,8],[39,8],[44,8],[45,8],[40,8],[41,8],[42,8],[43,8],[8,8],[49,8],[46,8],[47,8],[48,8],[50,8],[9,8],[51,8],[52,8],[53,8],[55,8],[54,8],[1,8],[93,55],[103,56],[92,55],[113,57],[84,58],[83,59],[112,60],[106,61],[111,62],[86,63],[100,64],[85,65],[109,66],[81,67],[80,60],[110,68],[82,69],[87,70],[88,8],[91,70],[78,8],[114,71],[104,72],[95,73],[96,74],[98,75],[94,76],[97,77],[107,60],[89,78],[90,79],[99,80],[79,81],[102,72],[101,70],[105,8],[108,82],[60,83],[59,84],[64,85],[62,86],[61,87],[65,88],[66,8],[63,89],[58,8]],"version":"5.9.3"}
|
package/package.json
CHANGED