@playcademy/sdk 0.19.1-beta.7 → 0.19.1-beta.9
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 +1 -1
- package/dist/internal.d.ts +13 -1
- package/dist/internal.js +19 -3
- package/dist/server/edge.js +1 -1
- package/dist/server.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3760,7 +3760,7 @@ async function request({
|
|
|
3760
3760
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
3761
3761
|
}
|
|
3762
3762
|
// src/version.ts
|
|
3763
|
-
var SDK_VERSION = "0.19.1-beta.
|
|
3763
|
+
var SDK_VERSION = "0.19.1-beta.9";
|
|
3764
3764
|
|
|
3765
3765
|
// src/clients/base.ts
|
|
3766
3766
|
class PlaycademyBaseClient {
|
package/dist/internal.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { TimebackGrade, TimebackSubject, ELevel, HeartbeatRequest, EndActivityRe
|
|
|
4
4
|
export { AssessmentAttemptSnapshot, AssessmentAwardRecord, AssessmentFinalizeResult, AssessmentFlow, AssessmentItemGrading, AssessmentItemOutcome, AssessmentItemSubmission, AssessmentMasteryAward, AssessmentPreparationResult, AssessmentResponseUpdate, AssessmentResponseValue, AssessmentResponses, AssessmentReviewStandard, AssessmentSaveResult, AssessmentScore, AssessmentStandardRef, AssessmentSubmitResult, AssessmentTranscript, ConventionalAssessmentAttemptSnapshot, ConventionalAssessmentSubmitResult, DiagnosticAssessmentItemReceipt, DiagnosticAssessmentSubmitResult, DiagnosticRoutingSnapshot, DiagnosticRoutingTrackSnapshot, ELevel, FinalizeAssessmentInput, MasteryAssessmentSubmitResult, PlatformRoutedDiagnosticAttemptSnapshot, PlatformRoutedDiagnosticSelectionContext, PlayableAssessment, PlayableAssessmentAttemptSnapshot, PlayableAssessmentChoice, PlayableAssessmentGraphic, PlayableAssessmentHotspot, PlayableAssessmentInteraction, PlayableAssessmentItem, PlayableChoiceInteraction, PlayableContentNode, PlayableGapMatchChoice, PlayableGapMatchInteraction, PlayableInlineChoiceInteraction, PlayableMatchChoice, PlayableMatchInteraction, PlayableOrderInteraction, RecordAssessmentProgressInput, ResumeAssessmentInput, SaveAssessmentInput, SettledAssessmentAttemptSnapshot, StandardsReviewSelectionContext, StartAssessmentInput, StartAssessmentOptions, StartDiagnosticAssessmentInput, SubmitAssessmentInput, SubmitAssessmentItemInput, SubmitAssessmentItemResult, SubmitDiagnosticAssessmentItemInput, SubmitDiagnosticAssessmentItemResult } from '@playcademy/types/timeback';
|
|
5
5
|
import * as _playcademy_types from '@playcademy/types';
|
|
6
6
|
import { GameManifest, LocalDayContext } from '@playcademy/types';
|
|
7
|
-
export { AuthenticatedUser, DeveloperStatusEnumType, DeveloperStatusResponse, DeveloperStatusValue, GameCourseMetrics, GameLeaderboardEntry, GameManifest, GameMetricComparisonKind, GameMetricComparisonMetric, GameMetricComparisonRow, GameMetricComparisonRowStatus, GameMetricsProxyResponse, GameMetricsResponse, GameMetricsUnsupportedReason, GamePlatform, GameRunMetrics, GameRunMetricsComparison, GameRunMetricsComparisonStatus, GameRunMetricsComparisonSummary, GameTimebackIntegration, GameType, GameUser, LeaderboardEntry, LeaderboardOptions, LeaderboardTimeframe, LocalDayContext, LocalDaySource, ManifestV1, ManifestV2, ManifestVersions, PopulateStudentResponse, UserEnrollment, UserInfo, UserOrganization, UserRank, UserRankResponse, UserRoleEnumType, UserScore, UserTimebackData } from '@playcademy/types';
|
|
7
|
+
export { AuthenticatedUser, DeploySource, DeveloperStatusEnumType, DeveloperStatusResponse, DeveloperStatusValue, GameCourseMetrics, GameLeaderboardEntry, GameManifest, GameMetricComparisonKind, GameMetricComparisonMetric, GameMetricComparisonRow, GameMetricComparisonRowStatus, GameMetricsProxyResponse, GameMetricsResponse, GameMetricsUnsupportedReason, GamePlatform, GameReleaseResponse, GameRunMetrics, GameRunMetricsComparison, GameRunMetricsComparisonStatus, GameRunMetricsComparisonSummary, GameTimebackIntegration, GameType, GameUser, LeaderboardEntry, LeaderboardOptions, LeaderboardTimeframe, LocalDayContext, LocalDaySource, ManifestV1, ManifestV2, ManifestVersions, PopulateStudentResponse, Release, ReleasesResponse, UserEnrollment, UserInfo, UserOrganization, UserRank, UserRankResponse, UserRoleEnumType, UserScore, UserTimebackData } from '@playcademy/types';
|
|
8
8
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
9
9
|
import { DomainValidationRecords } from '@playcademy/types/game';
|
|
10
10
|
import { z } from 'zod';
|
|
@@ -3806,6 +3806,7 @@ declare class PlaycademyInternalClient extends PlaycademyBaseClient {
|
|
|
3806
3806
|
buildHash?: string;
|
|
3807
3807
|
integrationsHash?: string;
|
|
3808
3808
|
pruneSecrets?: string[];
|
|
3809
|
+
source?: _playcademy_types.DeploySource;
|
|
3809
3810
|
}) => Promise<Game>;
|
|
3810
3811
|
seed: (slug: string, code: string, environment?: 'local' | 'staging' | 'production', secrets?: Record<string, string>) => Promise<_playcademy_types.SeedResponse>;
|
|
3811
3812
|
upsert: (slug: string, metadata: UpsertGameMetadataInput) => Promise<Game>;
|
|
@@ -3924,6 +3925,17 @@ declare class PlaycademyInternalClient extends PlaycademyBaseClient {
|
|
|
3924
3925
|
fetch: (options?: _playcademy_types.LeaderboardOptions) => Promise<_playcademy_types.GameLeaderboardEntry[]>;
|
|
3925
3926
|
getUserRank: (gameId: string, userId: string) => Promise<_playcademy_types.UserRank | null>;
|
|
3926
3927
|
};
|
|
3928
|
+
/**
|
|
3929
|
+
* Open deploy provenance: which commit is running for each game.
|
|
3930
|
+
* - `list()` - Current release of every game
|
|
3931
|
+
* - `get(slug, { history })` - One game's release and recent deploys
|
|
3932
|
+
*/
|
|
3933
|
+
releases: {
|
|
3934
|
+
list: () => Promise<_playcademy_types.ReleasesResponse>;
|
|
3935
|
+
get: (slug: string, options?: {
|
|
3936
|
+
history?: number;
|
|
3937
|
+
}) => Promise<_playcademy_types.GameReleaseResponse>;
|
|
3938
|
+
};
|
|
3927
3939
|
/**
|
|
3928
3940
|
* Score submission and user score queries.
|
|
3929
3941
|
* - `submit(gameId, score, metadata?)` - Record a game score
|
package/dist/internal.js
CHANGED
|
@@ -3663,6 +3663,9 @@ class DeployPipeline {
|
|
|
3663
3663
|
if (args.pruneSecrets?.length) {
|
|
3664
3664
|
requestBody.pruneSecrets = args.pruneSecrets;
|
|
3665
3665
|
}
|
|
3666
|
+
if (args.source) {
|
|
3667
|
+
requestBody.source = args.source;
|
|
3668
|
+
}
|
|
3666
3669
|
if (!args.worker) {
|
|
3667
3670
|
return { game: game2, requestBody };
|
|
3668
3671
|
}
|
|
@@ -3860,7 +3863,8 @@ function createDevNamespace(client) {
|
|
|
3860
3863
|
baseline,
|
|
3861
3864
|
buildHash,
|
|
3862
3865
|
integrationsHash,
|
|
3863
|
-
pruneSecrets
|
|
3866
|
+
pruneSecrets,
|
|
3867
|
+
source
|
|
3864
3868
|
} = options;
|
|
3865
3869
|
hooks?.onEvent?.({ type: "init" });
|
|
3866
3870
|
let game2;
|
|
@@ -3886,7 +3890,8 @@ function createDevNamespace(client) {
|
|
|
3886
3890
|
baseline,
|
|
3887
3891
|
buildHash,
|
|
3888
3892
|
integrationsHash,
|
|
3889
|
-
pruneSecrets
|
|
3893
|
+
pruneSecrets,
|
|
3894
|
+
source
|
|
3890
3895
|
});
|
|
3891
3896
|
}
|
|
3892
3897
|
if (game2) {
|
|
@@ -4146,6 +4151,16 @@ function createLeaderboardFetchNamespace(client) {
|
|
|
4146
4151
|
fetch: async (options) => fetchPublicLeaderboardEntries(client, options)
|
|
4147
4152
|
};
|
|
4148
4153
|
}
|
|
4154
|
+
// src/namespaces/platform/releases.ts
|
|
4155
|
+
function createReleasesNamespace(client) {
|
|
4156
|
+
return {
|
|
4157
|
+
list: () => client["request"]("/releases", "GET"),
|
|
4158
|
+
get: (slug, options) => {
|
|
4159
|
+
const params = options?.history === undefined ? "" : `?history=${options.history}`;
|
|
4160
|
+
return client["request"](`/releases/${slug}${params}`, "GET");
|
|
4161
|
+
}
|
|
4162
|
+
};
|
|
4163
|
+
}
|
|
4149
4164
|
// src/namespaces/platform/scores.ts
|
|
4150
4165
|
function createScoresNamespace2(client) {
|
|
4151
4166
|
return {
|
|
@@ -4655,7 +4670,7 @@ async function request({
|
|
|
4655
4670
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
4656
4671
|
}
|
|
4657
4672
|
// src/version.ts
|
|
4658
|
-
var SDK_VERSION = "0.19.1-beta.
|
|
4673
|
+
var SDK_VERSION = "0.19.1-beta.9";
|
|
4659
4674
|
|
|
4660
4675
|
// src/clients/base.ts
|
|
4661
4676
|
class PlaycademyBaseClient {
|
|
@@ -4843,6 +4858,7 @@ class PlaycademyInternalClient extends PlaycademyBaseClient {
|
|
|
4843
4858
|
dev = createDevNamespace(this);
|
|
4844
4859
|
games = createGamesNamespace(this);
|
|
4845
4860
|
leaderboard = createLeaderboardNamespace(this);
|
|
4861
|
+
releases = createReleasesNamespace(this);
|
|
4846
4862
|
scores = createScoresNamespace2(this);
|
|
4847
4863
|
timeback = createTimebackNamespace2(this);
|
|
4848
4864
|
static init = init;
|
package/dist/server/edge.js
CHANGED
package/dist/server.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _playcademy_types from '@playcademy/types';
|
|
2
2
|
import { GameManifest, LocalDayContext } from '@playcademy/types';
|
|
3
|
-
export { AuthenticatedUser, DeveloperStatusEnumType, DeveloperStatusResponse, DeveloperStatusValue, GameCourseMetrics, GameLeaderboardEntry, GameManifest, GameMetricComparisonKind, GameMetricComparisonMetric, GameMetricComparisonRow, GameMetricComparisonRowStatus, GameMetricsProxyResponse, GameMetricsResponse, GameMetricsUnsupportedReason, GamePlatform, GameRunMetrics, GameRunMetricsComparison, GameRunMetricsComparisonStatus, GameRunMetricsComparisonSummary, GameTimebackIntegration, GameType, GameUser, LeaderboardEntry, LeaderboardOptions, LeaderboardTimeframe, LocalDayContext, LocalDaySource, ManifestV1, ManifestV2, ManifestVersions, PopulateStudentResponse, UserEnrollment, UserInfo, UserOrganization, UserRank, UserRankResponse, UserRoleEnumType, UserScore, UserTimebackData } from '@playcademy/types';
|
|
3
|
+
export { AuthenticatedUser, DeploySource, DeveloperStatusEnumType, DeveloperStatusResponse, DeveloperStatusValue, GameCourseMetrics, GameLeaderboardEntry, GameManifest, GameMetricComparisonKind, GameMetricComparisonMetric, GameMetricComparisonRow, GameMetricComparisonRowStatus, GameMetricsProxyResponse, GameMetricsResponse, GameMetricsUnsupportedReason, GamePlatform, GameReleaseResponse, GameRunMetrics, GameRunMetricsComparison, GameRunMetricsComparisonStatus, GameRunMetricsComparisonSummary, GameTimebackIntegration, GameType, GameUser, LeaderboardEntry, LeaderboardOptions, LeaderboardTimeframe, LocalDayContext, LocalDaySource, ManifestV1, ManifestV2, ManifestVersions, PopulateStudentResponse, Release, ReleasesResponse, UserEnrollment, UserInfo, UserOrganization, UserRank, UserRankResponse, UserRoleEnumType, UserScore, UserTimebackData } from '@playcademy/types';
|
|
4
4
|
import { TimebackCourseConfig, CourseConfig, OrganizationConfig, ComponentConfig, ResourceConfig, ComponentResourceConfig, TimebackGrade, TimebackSubject, ELevel, EndActivityRequest, HeartbeatRequest, EndActivityScoreData, EndActivityResponse } from '@playcademy/types/timeback';
|
|
5
5
|
export { AssessmentAttemptSnapshot, AssessmentAwardRecord, AssessmentFinalizeResult, AssessmentFlow, AssessmentItemGrading, AssessmentItemOutcome, AssessmentItemSubmission, AssessmentMasteryAward, AssessmentPreparationResult, AssessmentResponseUpdate, AssessmentResponseValue, AssessmentResponses, AssessmentReviewStandard, AssessmentSaveResult, AssessmentScore, AssessmentStandardRef, AssessmentSubmitResult, AssessmentTranscript, ConventionalAssessmentAttemptSnapshot, ConventionalAssessmentSubmitResult, DiagnosticAssessmentItemReceipt, DiagnosticAssessmentSubmitResult, DiagnosticRoutingSnapshot, DiagnosticRoutingTrackSnapshot, ELevel, FinalizeAssessmentInput, MasteryAssessmentSubmitResult, PlatformRoutedDiagnosticAttemptSnapshot, PlatformRoutedDiagnosticSelectionContext, PlayableAssessment, PlayableAssessmentAttemptSnapshot, PlayableAssessmentChoice, PlayableAssessmentGraphic, PlayableAssessmentHotspot, PlayableAssessmentInteraction, PlayableAssessmentItem, PlayableChoiceInteraction, PlayableContentNode, PlayableGapMatchChoice, PlayableGapMatchInteraction, PlayableInlineChoiceInteraction, PlayableMatchChoice, PlayableMatchInteraction, PlayableOrderInteraction, RecordAssessmentProgressInput, ResumeAssessmentInput, SaveAssessmentInput, SettledAssessmentAttemptSnapshot, StandardsReviewSelectionContext, StartAssessmentInput, StartAssessmentOptions, StartDiagnosticAssessmentInput, SubmitAssessmentInput, SubmitAssessmentItemInput, SubmitAssessmentItemResult, SubmitDiagnosticAssessmentItemInput, SubmitDiagnosticAssessmentItemResult } from '@playcademy/types/timeback';
|
|
6
6
|
import { TimebackUserRole, UserEnrollment, UserOrganization, UserInfo } from '@playcademy/types/user';
|