@robbeverhelst/do 1.71.0 → 1.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/do.js +11 -22
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -5015,13 +5015,6 @@ var challengeParticipants = pgTable("challenge_participants", {
|
|
|
5015
5015
|
index("challenge_participants_tenant_idx").on(t.tenantId),
|
|
5016
5016
|
index("challenge_participants_user_idx").on(t.tenantId, t.userId)
|
|
5017
5017
|
]);
|
|
5018
|
-
var leaderboardOptins = pgTable("leaderboard_optins", {
|
|
5019
|
-
id: text("id").primaryKey(),
|
|
5020
|
-
tenantId: text("tenant_id").notNull().references(() => tenants.id, { onDelete: "cascade" }),
|
|
5021
|
-
userId: text("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
|
|
5022
|
-
optedIn: boolean("opted_in").notNull().default(false),
|
|
5023
|
-
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
5024
|
-
}, (t) => [unique("leaderboard_optins_tenant_user_uniq").on(t.tenantId, t.userId)]);
|
|
5025
5018
|
// ../../packages/schema/src/db/gamification.ts
|
|
5026
5019
|
var gamificationProfiles = pgTable("gamification_profiles", {
|
|
5027
5020
|
id: text("id").primaryKey(),
|
|
@@ -21761,21 +21754,17 @@ var challengeLeaderboardEntrySchema = exports_external.object({
|
|
|
21761
21754
|
rank: exports_external.number().int().positive(),
|
|
21762
21755
|
completed: exports_external.boolean()
|
|
21763
21756
|
});
|
|
21764
|
-
var
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21771
|
-
email: exports_external.string(),
|
|
21772
|
-
score: exports_external.number().int().nonnegative(),
|
|
21773
|
-
rank: exports_external.number().int().positive()
|
|
21757
|
+
var selfComparisonMetricSchema = exports_external.object({
|
|
21758
|
+
metric: exports_external.string(),
|
|
21759
|
+
thisWeek: exports_external.number().int().nonnegative(),
|
|
21760
|
+
fourWeekAverage: exports_external.number().nonnegative(),
|
|
21761
|
+
deltaPct: exports_external.number().nullable(),
|
|
21762
|
+
personalBest: exports_external.number().int().nonnegative(),
|
|
21763
|
+
isPersonalBest: exports_external.boolean()
|
|
21774
21764
|
});
|
|
21775
|
-
var
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
entries: exports_external.array(leaderboardEntrySchema)
|
|
21765
|
+
var selfComparisonSchema = exports_external.object({
|
|
21766
|
+
weekStart: exports_external.coerce.date(),
|
|
21767
|
+
metrics: exports_external.array(selfComparisonMetricSchema)
|
|
21779
21768
|
});
|
|
21780
21769
|
// ../../packages/schema/src/contracts/gamification.ts
|
|
21781
21770
|
var gamificationProfileSchema = createSelectSchema(gamificationProfiles, {
|
|
@@ -24367,7 +24356,7 @@ function parseCapture2(input, now) {
|
|
|
24367
24356
|
|
|
24368
24357
|
// src/meta.ts
|
|
24369
24358
|
var CLI_NAME = "do";
|
|
24370
|
-
var VERSION = "1.
|
|
24359
|
+
var VERSION = "1.73.0";
|
|
24371
24360
|
var API_PREFIX = "/api/v1";
|
|
24372
24361
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
24373
24362
|
|