@altnovatrail/contracts 0.18.6 → 0.18.7
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.
|
@@ -514,7 +514,8 @@ export enum Cause {
|
|
|
514
514
|
* The consent is not confirmed: a child's profile asked for by a consent of a parent that still
|
|
515
515
|
* waits, or a learning request of a profile without consent — one that waits for the learner's
|
|
516
516
|
* own consent or for a parent's form —, but for the requests on the consent itself, which section
|
|
517
|
-
* 15 of contracts/README.md names
|
|
517
|
+
* 15 of contracts/README.md names; or the adult's correction of a module's level at such a
|
|
518
|
+
* profile. Code `failed_precondition`.
|
|
518
519
|
*
|
|
519
520
|
* @generated from enum value: CAUSE_NO_CONSENT = 28;
|
|
520
521
|
*/
|
|
@@ -619,7 +620,8 @@ export enum Cause {
|
|
|
619
620
|
* The age of the profile is to be given again before its next work: the country of a learner who
|
|
620
621
|
* gave their own consent now asks for an older age of digital consent than the one the category
|
|
621
622
|
* was given by (R134), but for the requests on the consent itself, which section 15 of
|
|
622
|
-
* contracts/README.md names
|
|
623
|
+
* contracts/README.md names; the adult's correction of a module's level at such a profile gets it
|
|
624
|
+
* too. An adult gives it by `RestateAge`. Code `failed_precondition`.
|
|
623
625
|
*
|
|
624
626
|
* @generated from enum value: CAUSE_AGE_NEEDED = 40;
|
|
625
627
|
*/
|
|
@@ -670,6 +672,17 @@ export enum Cause {
|
|
|
670
672
|
* @generated from enum value: CAUSE_KEY_CHECKS_EXHAUSTED = 45;
|
|
671
673
|
*/
|
|
672
674
|
KEY_CHECKS_EXHAUSTED = 45,
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* The adult's correction of a module's level names a band that is neither the band of the level
|
|
678
|
+
* nor one next to it, by the bands of the manifest of the module's current version: the level
|
|
679
|
+
* has moved since `app` read it, or the module has no such band. `app` reads `GetSkillMap`
|
|
680
|
+
* again and offers the bands next to the level it gives (R157). Code `failed_precondition`,
|
|
681
|
+
* with no data.
|
|
682
|
+
*
|
|
683
|
+
* @generated from enum value: CAUSE_BAND_NOT_NEXT = 46;
|
|
684
|
+
*/
|
|
685
|
+
BAND_NOT_NEXT = 46,
|
|
673
686
|
}
|
|
674
687
|
|
|
675
688
|
/**
|
|
@@ -16,7 +16,7 @@ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
|
16
16
|
* Describes the file novatrail/api/v1/cause.proto.
|
|
17
17
|
*/
|
|
18
18
|
export const file_novatrail_api_v1_cause = /*@__PURE__*/
|
|
19
|
-
fileDesc("
|
|
19
|
+
fileDesc("Chxub3ZhdHJhaWwvYXBpL3YxL2NhdXNlLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxIrIDCgdSZWZ1c2FsEiYKBWNhdXNlGAEgASgOMhcubm92YXRyYWlsLmFwaS52MS5DYXVzZRI1CgxjbG9zZV9yZWFzb24YAiABKA4yHS5ub3ZhdHJhaWwuYXBpLnYxLkNsb3NlUmVhc29uSAASNQoPbmV4dF9mYW1pbHlfZGF5GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAEhcKDXdyb25nX2Fuc3dlcnMYBCABKAVIABIyCgxsb2NrZWRfdW50aWwYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAASHgoUbWF4X2F1dGhfYWdlX3NlY29uZHMYBiABKAVIABIrCgdydW5fZW5kGAcgASgLMhgubm92YXRyYWlsLmFwaS52MS5SdW5FbmRIABI5Cg5lbmRlZF9zZWdtZW50cxgIIAEoCzIfLm5vdmF0cmFpbC5hcGkudjEuRW5kZWRTZWdtZW50c0gAEjQKDm5leHRfa2V5X2NoZWNrGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAQgYKBGRhdGEinAEKB091dGNvbWUSJgoFY2F1c2UYASABKA4yFy5ub3ZhdHJhaWwuYXBpLnYxLkNhdXNlEjMKD25leHRfZmFtaWx5X2RheRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1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SU9OEAkqpgEKDFJ1bkVuZFJlYXNvbhIeChpSVU5fRU5EX1JFQVNPTl9VTlNQRUNJRklFRBAAEhkKFVJVTl9FTkRfUkVBU09OX1BBU1NFRBABEhwKGFJVTl9FTkRfUkVBU09OX1VOQ0hFQ0tFRBACEh8KG1JVTl9FTkRfUkVBU09OX05PVF9TVUlUQUJMRRADEhwKGFJVTl9FTkRfUkVBU09OX0FCQU5ET05FRBAEQsMBChRjb20ubm92YXRyYWlsLmFwaS52MUIKQ2F1c2VQcm90b1ABWj1naXRodWIuY29tL2FsdG5vdmF0cmFpbC9zcGVjL2NvbnRyYWN0cy9ub3ZhdHJhaWwvYXBpL3YxO2FwaXYxogIDTkFYqgIQTm92YXRyYWlsLkFwaS5WMcoCEE5vdmF0cmFpbFxBcGlcVjHiAhxOb3ZhdHJhaWxcQXBpXFYxXEdQQk1ldGFkYXRh6gISTm92YXRyYWlsOjpBcGk6OlYxYgZwcm90bzM", [file_google_protobuf_timestamp]);
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Describes the message novatrail.api.v1.Refusal.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
// The skill map and the adult's progress in the contract between `app` and `api`: the state of a
|
|
6
|
-
// learner's skills in a module, as the learner model reads it,
|
|
7
|
-
//
|
|
8
|
-
// section 15.
|
|
6
|
+
// learner's skills in a module, as the learner model reads it, the attempts of a profile with the
|
|
7
|
+
// traps that repeat in them, and the adult's correction of a module's level (R157). What each
|
|
8
|
+
// message means is the rule of contracts/README.md, section 15.
|
|
9
9
|
|
|
10
10
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -81,6 +81,26 @@ export declare type GetSkillMapResponse = Message<"novatrail.api.v1.GetSkillMapR
|
|
|
81
81
|
* @generated from field: repeated novatrail.api.v1.AnchorSkillState anchor_skills = 3;
|
|
82
82
|
*/
|
|
83
83
|
anchorSkills: AnchorSkillState[];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the band of the module's level, as `learner-model` reads it on the scale of the
|
|
87
|
+
* module's bands (concepts 11): the highest band while the level stands above it, and empty
|
|
88
|
+
* while it stands below the lowest band, where a learner whose grade is in the lowest band starts
|
|
89
|
+
* (R157). A band keeps its place and its ID in every version of the module (section 27 of the
|
|
90
|
+
* module format), so the manifest of the current version names it: by it and the order of the
|
|
91
|
+
* bands of that manifest `app` names the bands next to it, which `SetModuleLevel` takes.
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: string level_band = 4;
|
|
94
|
+
*/
|
|
95
|
+
levelBand: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* When an adult last set the module's level by `SetModuleLevel`: absent when no adult has. The
|
|
99
|
+
* learner sees it, whoever gave the consent (R157).
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: google.protobuf.Timestamp level_set_at = 5;
|
|
102
|
+
*/
|
|
103
|
+
levelSetAt?: Timestamp | undefined;
|
|
84
104
|
};
|
|
85
105
|
|
|
86
106
|
/**
|
|
@@ -285,6 +305,15 @@ export declare type GetProgressResponse = Message<"novatrail.api.v1.GetProgressR
|
|
|
285
305
|
* @generated from field: string next_page_token = 3;
|
|
286
306
|
*/
|
|
287
307
|
nextPageToken: string;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* The adult's last correction of the level of each module of the profile that has one, connected
|
|
311
|
+
* or not since, while the evidence log keeps it, in the order of the modules' IDs' UTF-16 code
|
|
312
|
+
* units: on the first page alone, and empty on the others.
|
|
313
|
+
*
|
|
314
|
+
* @generated from field: repeated novatrail.api.v1.LevelSetting level_settings = 4;
|
|
315
|
+
*/
|
|
316
|
+
levelSettings: LevelSetting[];
|
|
288
317
|
};
|
|
289
318
|
|
|
290
319
|
/**
|
|
@@ -293,6 +322,108 @@ export declare type GetProgressResponse = Message<"novatrail.api.v1.GetProgressR
|
|
|
293
322
|
*/
|
|
294
323
|
export declare const GetProgressResponseSchema: GenMessage<GetProgressResponse>;
|
|
295
324
|
|
|
325
|
+
/**
|
|
326
|
+
* The adult's last correction of a module's level (R157).
|
|
327
|
+
*
|
|
328
|
+
* @generated from message novatrail.api.v1.LevelSetting
|
|
329
|
+
*/
|
|
330
|
+
export declare type LevelSetting = Message<"novatrail.api.v1.LevelSetting"> & {
|
|
331
|
+
/**
|
|
332
|
+
* The module's ID.
|
|
333
|
+
*
|
|
334
|
+
* @generated from field: string module_id = 1;
|
|
335
|
+
*/
|
|
336
|
+
moduleId: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The ID of the band the adult set the level in. The level may have moved since, by the
|
|
340
|
+
* evidence: the skill map gives where it stands.
|
|
341
|
+
*
|
|
342
|
+
* @generated from field: string band = 2;
|
|
343
|
+
*/
|
|
344
|
+
band: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* When the adult set it.
|
|
348
|
+
*
|
|
349
|
+
* @generated from field: google.protobuf.Timestamp set_at = 3;
|
|
350
|
+
*/
|
|
351
|
+
setAt?: Timestamp | undefined;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Describes the message novatrail.api.v1.LevelSetting.
|
|
356
|
+
* Use `create(LevelSettingSchema)` to create a new message.
|
|
357
|
+
*/
|
|
358
|
+
export declare const LevelSettingSchema: GenMessage<LevelSetting>;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* The adult's correction of a module's level.
|
|
362
|
+
*
|
|
363
|
+
* @generated from message novatrail.api.v1.SetModuleLevelRequest
|
|
364
|
+
*/
|
|
365
|
+
export declare type SetModuleLevelRequest = Message<"novatrail.api.v1.SetModuleLevelRequest"> & {
|
|
366
|
+
/**
|
|
367
|
+
* The profile.
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: string profile_id = 1;
|
|
370
|
+
*/
|
|
371
|
+
profileId: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The ID of a module connected to the profile.
|
|
375
|
+
*
|
|
376
|
+
* @generated from field: string module_id = 2;
|
|
377
|
+
*/
|
|
378
|
+
moduleId: string;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* The ID of the band to set the level in: the band next to the band of the level, the one before
|
|
382
|
+
* it, easier, or the one after it, harder, in the order of the bands of the manifest of the
|
|
383
|
+
* module's current version, and the lowest band while the level stands below it; or the band of
|
|
384
|
+
* the level itself, which changes nothing. No band comes before the lowest, so at the lowest band
|
|
385
|
+
* there is no "Easier" to name, and none after the highest. Needed: empty, the request is
|
|
386
|
+
* refused `invalid_argument`.
|
|
387
|
+
*
|
|
388
|
+
* @generated from field: string band = 3;
|
|
389
|
+
*/
|
|
390
|
+
band: string;
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Describes the message novatrail.api.v1.SetModuleLevelRequest.
|
|
395
|
+
* Use `create(SetModuleLevelRequestSchema)` to create a new message.
|
|
396
|
+
*/
|
|
397
|
+
export declare const SetModuleLevelRequestSchema: GenMessage<SetModuleLevelRequest>;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The module's level after the correction.
|
|
401
|
+
*
|
|
402
|
+
* @generated from message novatrail.api.v1.SetModuleLevelResponse
|
|
403
|
+
*/
|
|
404
|
+
export declare type SetModuleLevelResponse = Message<"novatrail.api.v1.SetModuleLevelResponse"> & {
|
|
405
|
+
/**
|
|
406
|
+
* The ID of the band of the module's level: the band named.
|
|
407
|
+
*
|
|
408
|
+
* @generated from field: string level_band = 1;
|
|
409
|
+
*/
|
|
410
|
+
levelBand: string;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* When an adult last set the module's level: by this request, or by the one before it when this
|
|
414
|
+
* one named the band of the level already. Absent when no adult has.
|
|
415
|
+
*
|
|
416
|
+
* @generated from field: google.protobuf.Timestamp level_set_at = 2;
|
|
417
|
+
*/
|
|
418
|
+
levelSetAt?: Timestamp | undefined;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Describes the message novatrail.api.v1.SetModuleLevelResponse.
|
|
423
|
+
* Use `create(SetModuleLevelResponseSchema)` to create a new message.
|
|
424
|
+
*/
|
|
425
|
+
export declare const SetModuleLevelResponseSchema: GenMessage<SetModuleLevelResponse>;
|
|
426
|
+
|
|
296
427
|
/**
|
|
297
428
|
* An attempt in the progress of a profile. How it came out follows from its close reason and its
|
|
298
429
|
* wrong answers: correct with none is correct at the first submission.
|
|
@@ -624,14 +755,15 @@ export declare const CriterionMarkSchema: GenEnum<CriterionMark>;
|
|
|
624
755
|
|
|
625
756
|
/**
|
|
626
757
|
* What the learner model and the history of a profile show: the skill map, on the learner's screen
|
|
627
|
-
* and in the section for adults, and the progress, which the adult views
|
|
628
|
-
*
|
|
629
|
-
*
|
|
630
|
-
*
|
|
631
|
-
* confirmed `CAUSE_NO_CONSENT` and one of a profile
|
|
632
|
-
* `CAUSE_AGE_NEEDED`, a request without the right it needs the code
|
|
633
|
-
* with no `Refusal`, and a request whose form the contract refuses the code
|
|
634
|
-
* with no `Refusal`.
|
|
758
|
+
* and in the section for adults, and the progress, which the adult views; and the adult's
|
|
759
|
+
* correction of a module's level. Every method carries the token of the sign-in service and may
|
|
760
|
+
* get the refusals of every request with a token, which the comment of `AccountService` names with
|
|
761
|
+
* what `app` does on each; a profile that is not the account's gets `CAUSE_NO_PROFILE`, a learning
|
|
762
|
+
* request of a profile whose consent is not confirmed `CAUSE_NO_CONSENT` and one of a profile
|
|
763
|
+
* whose age is to be given again `CAUSE_AGE_NEEDED`, a request without the right it needs the code
|
|
764
|
+
* `permission_denied` with no `Refusal`, and a request whose form the contract refuses the code
|
|
765
|
+
* `invalid_argument` with no `Refusal`. Each repeats by the state of the profile, with no
|
|
766
|
+
* idempotency key.
|
|
635
767
|
*
|
|
636
768
|
* @generated from service novatrail.api.v1.ProgressService
|
|
637
769
|
*/
|
|
@@ -654,7 +786,8 @@ export declare const ProgressService: GenService<{
|
|
|
654
786
|
/**
|
|
655
787
|
* The progress of a profile, which an adult views with the right `can_view`: its attempts, newest
|
|
656
788
|
* first, a page at a time, and the traps that repeat in its closed attempts, with their
|
|
657
|
-
* descriptions and advice (section 16 of the module format)
|
|
789
|
+
* descriptions and advice (section 16 of the module format), and the adult's last correction of
|
|
790
|
+
* the level of each module that has one.
|
|
658
791
|
*
|
|
659
792
|
* @generated from rpc novatrail.api.v1.ProgressService.GetProgress
|
|
660
793
|
*/
|
|
@@ -663,5 +796,24 @@ export declare const ProgressService: GenService<{
|
|
|
663
796
|
input: typeof GetProgressRequestSchema;
|
|
664
797
|
output: typeof GetProgressResponseSchema;
|
|
665
798
|
},
|
|
799
|
+
/**
|
|
800
|
+
* The adult's correction of the level of a connected module (R157): "Easier" or "Harder" in the
|
|
801
|
+
* section for adults, which sets the module's level in the band named, next to the band of the
|
|
802
|
+
* level, by an action of an adult with the right `can_manage`, at every profile of the account:
|
|
803
|
+
* the owner's, a child's and that of a learner who gave their own consent. `api` appends it to
|
|
804
|
+
* the evidence log, a fact for `learner-model`, and every learner sees on the skill map that an
|
|
805
|
+
* adult set the level, and when. A request that names the band of the level already appends
|
|
806
|
+
* nothing and answers as the level is: so a repeat after an answer lost sets the band the adult
|
|
807
|
+
* chose, and changes nothing once the level stands in it. Refusals: `CAUSE_NOT_FOUND`, a module
|
|
808
|
+
* not connected; `CAUSE_NO_CURRENT_VERSION`; `CAUSE_NO_CONSENT` and `CAUSE_AGE_NEEDED`, as at a
|
|
809
|
+
* learning request; and `CAUSE_BAND_NOT_NEXT`.
|
|
810
|
+
*
|
|
811
|
+
* @generated from rpc novatrail.api.v1.ProgressService.SetModuleLevel
|
|
812
|
+
*/
|
|
813
|
+
setModuleLevel: {
|
|
814
|
+
methodKind: "unary";
|
|
815
|
+
input: typeof SetModuleLevelRequestSchema;
|
|
816
|
+
output: typeof SetModuleLevelResponseSchema;
|
|
817
|
+
},
|
|
666
818
|
}>;
|
|
667
819
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
// The skill map and the adult's progress in the contract between `app` and `api`: the state of a
|
|
6
|
-
// learner's skills in a module, as the learner model reads it,
|
|
7
|
-
//
|
|
8
|
-
// section 15.
|
|
6
|
+
// learner's skills in a module, as the learner model reads it, the attempts of a profile with the
|
|
7
|
+
// traps that repeat in them, and the adult's correction of a module's level (R157). What each
|
|
8
|
+
// message means is the rule of contracts/README.md, section 15.
|
|
9
9
|
|
|
10
10
|
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
11
11
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
@@ -16,7 +16,7 @@ import { file_novatrail_api_v1_cause } from "./cause_pb.js";
|
|
|
16
16
|
* Describes the file novatrail/api/v1/progress.proto.
|
|
17
17
|
*/
|
|
18
18
|
export const file_novatrail_api_v1_progress = /*@__PURE__*/
|
|
19
|
-
fileDesc("
|
|
19
|
+
fileDesc("Ch9ub3ZhdHJhaWwvYXBpL3YxL3Byb2dyZXNzLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxImUKEkdldFNraWxsTWFwUmVxdWVzdBISCgpwcm9maWxlX2lkGAEgASgJEhEKCW1vZHVsZV9pZBgCIAEoCRIoCgZhY3Rpb24YAyABKA4yGC5ub3ZhdHJhaWwuYXBpLnYxLkFjdGlvbiLcAQoTR2V0U2tpbGxNYXBSZXNwb25zZRIWCg5wYWNrYWdlX2RpZ2VzdBgBIAEoCRIsCgZza2lsbHMYAiADKAsyHC5ub3ZhdHJhaWwuYXBpLnYxLlNraWxsU3RhdGUSOQoNYW5jaG9yX3NraWxscxgDIAMoCzIiLm5vdmF0cmFpbC5hcGkudjEuQW5jaG9yU2tpbGxTdGF0ZRISCgpsZXZlbF9iYW5kGAQgASgJEjAKDGxldmVsX3NldF9hdBgFIAEoCzIaLmdvb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AMyrgIKD1Byb2dyZXNzU2VydmljZRJaCgtHZXRTa2lsbE1hcBIkLm5vdmF0cmFpbC5hcGkudjEuR2V0U2tpbGxNYXBSZXF1ZXN0GiUubm92YXRyYWlsLmFwaS52MS5HZXRTa2lsbE1hcFJlc3BvbnNlEloKC0dldFByb2dyZXNzEiQubm92YXRyYWlsLmFwaS52MS5HZXRQcm9ncmVzc1JlcXVlc3QaJS5ub3ZhdHJhaWwuYXBpLnYxLkdldFByb2dyZXNzUmVzcG9uc2USYwoOU2V0TW9kdWxlTGV2ZWwSJy5ub3ZhdHJhaWwuYXBpLnYxLlNldE1vZHVsZUxldmVsUmVxdWVzdBooLm5vdmF0cmFpbC5hcGkudjEuU2V0TW9kdWxlTGV2ZWxSZXNwb25zZULGAQoUY29tLm5vdmF0cmFpbC5hcGkudjFCDVByb2dyZXNzUHJvdG9QAVo9Z2l0aHViLmNvbS9hbHRub3ZhdHJhaWwvc3BlYy9jb250cmFjdHMvbm92YXRyYWlsL2FwaS92MTthcGl2MaICA05BWKoCEE5vdmF0cmFpbC5BcGkuVjHKAhBOb3ZhdHJhaWxcQXBpXFYx4gIcTm92YXRyYWlsXEFwaVxWMVxHUEJNZXRhZGF0YeoCEk5vdmF0cmFpbDo6QXBpOjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_novatrail_api_v1_attempt, file_novatrail_api_v1_cause]);
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Describes the message novatrail.api.v1.GetSkillMapRequest.
|
|
@@ -60,26 +60,47 @@ export const GetProgressRequestSchema = /*@__PURE__*/
|
|
|
60
60
|
export const GetProgressResponseSchema = /*@__PURE__*/
|
|
61
61
|
messageDesc(file_novatrail_api_v1_progress, 5);
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message novatrail.api.v1.LevelSetting.
|
|
65
|
+
* Use `create(LevelSettingSchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
export const LevelSettingSchema = /*@__PURE__*/
|
|
68
|
+
messageDesc(file_novatrail_api_v1_progress, 6);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Describes the message novatrail.api.v1.SetModuleLevelRequest.
|
|
72
|
+
* Use `create(SetModuleLevelRequestSchema)` to create a new message.
|
|
73
|
+
*/
|
|
74
|
+
export const SetModuleLevelRequestSchema = /*@__PURE__*/
|
|
75
|
+
messageDesc(file_novatrail_api_v1_progress, 7);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message novatrail.api.v1.SetModuleLevelResponse.
|
|
79
|
+
* Use `create(SetModuleLevelResponseSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export const SetModuleLevelResponseSchema = /*@__PURE__*/
|
|
82
|
+
messageDesc(file_novatrail_api_v1_progress, 8);
|
|
83
|
+
|
|
63
84
|
/**
|
|
64
85
|
* Describes the message novatrail.api.v1.AttemptRecord.
|
|
65
86
|
* Use `create(AttemptRecordSchema)` to create a new message.
|
|
66
87
|
*/
|
|
67
88
|
export const AttemptRecordSchema = /*@__PURE__*/
|
|
68
|
-
messageDesc(file_novatrail_api_v1_progress,
|
|
89
|
+
messageDesc(file_novatrail_api_v1_progress, 9);
|
|
69
90
|
|
|
70
91
|
/**
|
|
71
92
|
* Describes the message novatrail.api.v1.EssayRecord.
|
|
72
93
|
* Use `create(EssayRecordSchema)` to create a new message.
|
|
73
94
|
*/
|
|
74
95
|
export const EssayRecordSchema = /*@__PURE__*/
|
|
75
|
-
messageDesc(file_novatrail_api_v1_progress,
|
|
96
|
+
messageDesc(file_novatrail_api_v1_progress, 10);
|
|
76
97
|
|
|
77
98
|
/**
|
|
78
99
|
* Describes the message novatrail.api.v1.RepeatingTrap.
|
|
79
100
|
* Use `create(RepeatingTrapSchema)` to create a new message.
|
|
80
101
|
*/
|
|
81
102
|
export const RepeatingTrapSchema = /*@__PURE__*/
|
|
82
|
-
messageDesc(file_novatrail_api_v1_progress,
|
|
103
|
+
messageDesc(file_novatrail_api_v1_progress, 11);
|
|
83
104
|
|
|
84
105
|
/**
|
|
85
106
|
* Describes the enum novatrail.api.v1.AnchorSkillHolding.
|
|
@@ -128,14 +149,15 @@ export const CriterionMark = /*@__PURE__*/
|
|
|
128
149
|
|
|
129
150
|
/**
|
|
130
151
|
* What the learner model and the history of a profile show: the skill map, on the learner's screen
|
|
131
|
-
* and in the section for adults, and the progress, which the adult views
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* confirmed `CAUSE_NO_CONSENT` and one of a profile
|
|
136
|
-
* `CAUSE_AGE_NEEDED`, a request without the right it needs the code
|
|
137
|
-
* with no `Refusal`, and a request whose form the contract refuses the code
|
|
138
|
-
* with no `Refusal`.
|
|
152
|
+
* and in the section for adults, and the progress, which the adult views; and the adult's
|
|
153
|
+
* correction of a module's level. Every method carries the token of the sign-in service and may
|
|
154
|
+
* get the refusals of every request with a token, which the comment of `AccountService` names with
|
|
155
|
+
* what `app` does on each; a profile that is not the account's gets `CAUSE_NO_PROFILE`, a learning
|
|
156
|
+
* request of a profile whose consent is not confirmed `CAUSE_NO_CONSENT` and one of a profile
|
|
157
|
+
* whose age is to be given again `CAUSE_AGE_NEEDED`, a request without the right it needs the code
|
|
158
|
+
* `permission_denied` with no `Refusal`, and a request whose form the contract refuses the code
|
|
159
|
+
* `invalid_argument` with no `Refusal`. Each repeats by the state of the profile, with no
|
|
160
|
+
* idempotency key.
|
|
139
161
|
*
|
|
140
162
|
* @generated from service novatrail.api.v1.ProgressService
|
|
141
163
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/contracts",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.7",
|
|
4
4
|
"description": "The code of NovaTrail's API contracts for TypeScript, which protoc-gen-es generates from their protobuf files: the messages and enums of each contract, with their descriptors, for @bufbuild/protobuf and Connect.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|