@postonus/cli 0.1.71 → 0.1.72
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/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8529,7 +8529,10 @@ var PartnerPayoutSchema = object({
|
|
|
8529
8529
|
externalReference: string2(),
|
|
8530
8530
|
paidAt: Timestamp
|
|
8531
8531
|
});
|
|
8532
|
-
var MyPartnerSchema = PartnerSchema.extend({
|
|
8532
|
+
var MyPartnerSchema = PartnerSchema.extend({
|
|
8533
|
+
payouts: array(PartnerPayoutSchema),
|
|
8534
|
+
availableCents: number2().int()
|
|
8535
|
+
}).nullable();
|
|
8533
8536
|
var ApplyPartnerInputSchema = object({
|
|
8534
8537
|
code: PartnerCode.optional(),
|
|
8535
8538
|
audienceUrl: url().max(500),
|
|
@@ -8553,6 +8556,14 @@ var PartnerStatsSchema = object({
|
|
|
8553
8556
|
referredMrrCents: number2().int(),
|
|
8554
8557
|
earnings: PartnerEarningsSchema
|
|
8555
8558
|
});
|
|
8559
|
+
var PartnerProgressSchema = object({
|
|
8560
|
+
milestones: object({
|
|
8561
|
+
firstClick: boolean2(),
|
|
8562
|
+
firstSignup: boolean2(),
|
|
8563
|
+
firstPayingReferral: boolean2()
|
|
8564
|
+
}),
|
|
8565
|
+
projectedCents: number2().int()
|
|
8566
|
+
});
|
|
8556
8567
|
var PARTNER_REFERRAL_STATUS_VALUES = ["trial", "paying", "churned"];
|
|
8557
8568
|
var PartnerReferralItemSchema = object({
|
|
8558
8569
|
id: string2(),
|
|
@@ -8606,6 +8617,11 @@ var partnerContract = {
|
|
|
8606
8617
|
}).input(ApplyPartnerInputSchema).output(PartnerSchema),
|
|
8607
8618
|
get: internal7.route({ method: "GET", path: "/internal/partner", summary: "Get the caller\u2019s partner account and payouts" }).errors(authedErrors).output(MyPartnerSchema),
|
|
8608
8619
|
stats: internal7.route({ method: "GET", path: "/internal/partner/stats", summary: "Partner funnel and earnings" }).errors(partnerErrors).input(PartnerStatsInputSchema).output(PartnerStatsSchema),
|
|
8620
|
+
progress: internal7.route({
|
|
8621
|
+
method: "GET",
|
|
8622
|
+
path: "/internal/partner/progress",
|
|
8623
|
+
summary: "Partner milestones and projected commission for the next 12 months"
|
|
8624
|
+
}).errors(partnerErrors).output(PartnerProgressSchema),
|
|
8609
8625
|
referrals: internal7.route({ method: "GET", path: "/internal/partner/referrals", summary: "List the caller\u2019s referred accounts" }).errors(partnerErrors).output(array(PartnerReferralItemSchema)),
|
|
8610
8626
|
updatePayout: internal7.route({ method: "PATCH", path: "/internal/partner/payout", summary: "Set the payout method and address" }).errors(partnerErrors).input(UpdatePartnerPayoutInputSchema).output(PartnerSchema),
|
|
8611
8627
|
list: internal7.route({
|
|
@@ -13039,7 +13055,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
13039
13055
|
}
|
|
13040
13056
|
|
|
13041
13057
|
// src/version.ts
|
|
13042
|
-
var CLI_VERSION = "0.1.
|
|
13058
|
+
var CLI_VERSION = "0.1.72";
|
|
13043
13059
|
|
|
13044
13060
|
// src/client.ts
|
|
13045
13061
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|