@altnovatrail/contracts 0.8.1 → 0.8.3
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/novatrail/api/v1/account_pb.d.ts +1563 -0
- package/novatrail/api/v1/account_pb.js +406 -0
- package/novatrail/api/v1/attempt_pb.d.ts +75 -2
- package/novatrail/api/v1/attempt_pb.js +16 -4
- package/novatrail/api/v1/cause_pb.d.ts +376 -11
- package/novatrail/api/v1/cause_pb.js +55 -3
- package/novatrail/api/v1/learning_pb.d.ts +754 -0
- package/novatrail/api/v1/learning_pb.js +171 -0
- package/novatrail/api/v1/module_pb.d.ts +320 -0
- package/novatrail/api/v1/module_pb.js +102 -0
- package/novatrail/api/v1/package_pb.d.ts +401 -0
- package/novatrail/api/v1/package_pb.js +133 -0
- package/novatrail/api/v1/progress_pb.d.ts +623 -0
- package/novatrail/api/v1/progress_pb.js +143 -0
- package/package.json +21 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file novatrail/api/v1/progress.proto (package novatrail.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
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, and the attempts of a profile with
|
|
7
|
+
// the traps that repeat in them. What each message means is the rule of contracts/README.md,
|
|
8
|
+
// section 15.
|
|
9
|
+
|
|
10
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
11
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
12
|
+
import { file_novatrail_api_v1_attempt } from "./attempt_pb.js";
|
|
13
|
+
import { file_novatrail_api_v1_cause } from "./cause_pb.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the file novatrail/api/v1/prog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pLnYxLkdldFNraWxsTWFwUmVzcG9uc2USWgoLR2V0UHJvZ3Jlc3MSJC5ub3ZhdHJhaWwuYXBpLnYxLkdldFByb2dyZXNzUmVxdWVzdBolLm5vdmF0cmFpbC5hcGkudjEuR2V0UHJvZ3Jlc3NSZXNwb25zZULGAQoUY29tLm5vdmF0cmFpbC5hcGkudjFCDVByb2dyZXNzUHJvdG9QAVo9Z2l0aHViLmNvbS9hbHRub3ZhdHJhaWwvc3BlYy9jb250cmFjdHMvbm92YXRyYWlsL2FwaS92MTthcGl2MaICA05BWKoCEE5vdmF0cmFpbC5BcGkuVjHKAhBOb3ZhdHJhaWxcQXBpXFYx4gIcTm92YXRyYWlsXEFwaVxWMVxHUEJNZXRhZGF0YeoCEk5vdmF0cmFpbDo6QXBpOjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_novatrail_api_v1_attempt, file_novatrail_api_v1_cause]);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message novatrail.api.v1.GetSkillMapRequest.
|
|
23
|
+
* Use `create(GetSkillMapRequestSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const GetSkillMapRequestSchema = /*@__PURE__*/
|
|
26
|
+
messageDesc(file_novatrail_api_v1_progress, 0);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message novatrail.api.v1.GetSkillMapResponse.
|
|
30
|
+
* Use `create(GetSkillMapResponseSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
export const GetSkillMapResponseSchema = /*@__PURE__*/
|
|
33
|
+
messageDesc(file_novatrail_api_v1_progress, 1);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message novatrail.api.v1.SkillState.
|
|
37
|
+
* Use `create(SkillStateSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const SkillStateSchema = /*@__PURE__*/
|
|
40
|
+
messageDesc(file_novatrail_api_v1_progress, 2);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message novatrail.api.v1.AnchorSkillState.
|
|
44
|
+
* Use `create(AnchorSkillStateSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const AnchorSkillStateSchema = /*@__PURE__*/
|
|
47
|
+
messageDesc(file_novatrail_api_v1_progress, 3);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message novatrail.api.v1.GetProgressRequest.
|
|
51
|
+
* Use `create(GetProgressRequestSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export const GetProgressRequestSchema = /*@__PURE__*/
|
|
54
|
+
messageDesc(file_novatrail_api_v1_progress, 4);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message novatrail.api.v1.GetProgressResponse.
|
|
58
|
+
* Use `create(GetProgressResponseSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const GetProgressResponseSchema = /*@__PURE__*/
|
|
61
|
+
messageDesc(file_novatrail_api_v1_progress, 5);
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message novatrail.api.v1.AttemptRecord.
|
|
65
|
+
* Use `create(AttemptRecordSchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
export const AttemptRecordSchema = /*@__PURE__*/
|
|
68
|
+
messageDesc(file_novatrail_api_v1_progress, 6);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Describes the message novatrail.api.v1.EssayRecord.
|
|
72
|
+
* Use `create(EssayRecordSchema)` to create a new message.
|
|
73
|
+
*/
|
|
74
|
+
export const EssayRecordSchema = /*@__PURE__*/
|
|
75
|
+
messageDesc(file_novatrail_api_v1_progress, 7);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message novatrail.api.v1.RepeatingTrap.
|
|
79
|
+
* Use `create(RepeatingTrapSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export const RepeatingTrapSchema = /*@__PURE__*/
|
|
82
|
+
messageDesc(file_novatrail_api_v1_progress, 8);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Describes the enum novatrail.api.v1.AnchorSkillHolding.
|
|
86
|
+
*/
|
|
87
|
+
export const AnchorSkillHoldingSchema = /*@__PURE__*/
|
|
88
|
+
enumDesc(file_novatrail_api_v1_progress, 0);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Whether a learner holds an anchor skill. A value its build does not know `app` reads as
|
|
92
|
+
* `ANCHOR_SKILL_HOLDING_UNKNOWN`.
|
|
93
|
+
*
|
|
94
|
+
* @generated from enum novatrail.api.v1.AnchorSkillHolding
|
|
95
|
+
*/
|
|
96
|
+
export const AnchorSkillHolding = /*@__PURE__*/
|
|
97
|
+
tsEnum(AnchorSkillHoldingSchema);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Describes the enum novatrail.api.v1.AnchorSkillReason.
|
|
101
|
+
*/
|
|
102
|
+
export const AnchorSkillReasonSchema = /*@__PURE__*/
|
|
103
|
+
enumDesc(file_novatrail_api_v1_progress, 1);
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Why a learner does not hold an anchor skill, or why it is unknown. A reason its build does not
|
|
107
|
+
* know `app` shows no reason for.
|
|
108
|
+
*
|
|
109
|
+
* @generated from enum novatrail.api.v1.AnchorSkillReason
|
|
110
|
+
*/
|
|
111
|
+
export const AnchorSkillReason = /*@__PURE__*/
|
|
112
|
+
tsEnum(AnchorSkillReasonSchema);
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Describes the enum novatrail.api.v1.CriterionMark.
|
|
116
|
+
*/
|
|
117
|
+
export const CriterionMarkSchema = /*@__PURE__*/
|
|
118
|
+
enumDesc(file_novatrail_api_v1_progress, 2);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The mark of a criterion in a feedback (R87). A mark its build does not know `app` reads as
|
|
122
|
+
* `CRITERION_MARK_NOT_ASSESSED`.
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum novatrail.api.v1.CriterionMark
|
|
125
|
+
*/
|
|
126
|
+
export const CriterionMark = /*@__PURE__*/
|
|
127
|
+
tsEnum(CriterionMarkSchema);
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* 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. Every method carries the
|
|
132
|
+
* token of the sign-in service and may get the refusals of every request with a token, which the
|
|
133
|
+
* comment of `AccountService` names with what `app` does on each; a profile that is not the
|
|
134
|
+
* account's gets `CAUSE_NO_PROFILE`, a learning request of a profile whose consent is not
|
|
135
|
+
* confirmed `CAUSE_NO_CONSENT`, a request without the right it needs the code `permission_denied`
|
|
136
|
+
* with no `Refusal`, and a request whose form the contract refuses the code `invalid_argument`
|
|
137
|
+
* with no `Refusal`. Both repeat by the state of the profile, with no idempotency key.
|
|
138
|
+
*
|
|
139
|
+
* @generated from service novatrail.api.v1.ProgressService
|
|
140
|
+
*/
|
|
141
|
+
export const ProgressService = /*@__PURE__*/
|
|
142
|
+
serviceDesc(file_novatrail_api_v1_progress, 0);
|
|
143
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/contracts",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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": {
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
|
+
"./novatrail/api/v1/account_pb.js": {
|
|
13
|
+
"types": "./novatrail/api/v1/account_pb.d.ts",
|
|
14
|
+
"default": "./novatrail/api/v1/account_pb.js"
|
|
15
|
+
},
|
|
12
16
|
"./novatrail/api/v1/attempt_pb.js": {
|
|
13
17
|
"types": "./novatrail/api/v1/attempt_pb.d.ts",
|
|
14
18
|
"default": "./novatrail/api/v1/attempt_pb.js"
|
|
@@ -17,6 +21,22 @@
|
|
|
17
21
|
"types": "./novatrail/api/v1/cause_pb.d.ts",
|
|
18
22
|
"default": "./novatrail/api/v1/cause_pb.js"
|
|
19
23
|
},
|
|
24
|
+
"./novatrail/api/v1/learning_pb.js": {
|
|
25
|
+
"types": "./novatrail/api/v1/learning_pb.d.ts",
|
|
26
|
+
"default": "./novatrail/api/v1/learning_pb.js"
|
|
27
|
+
},
|
|
28
|
+
"./novatrail/api/v1/module_pb.js": {
|
|
29
|
+
"types": "./novatrail/api/v1/module_pb.d.ts",
|
|
30
|
+
"default": "./novatrail/api/v1/module_pb.js"
|
|
31
|
+
},
|
|
32
|
+
"./novatrail/api/v1/package_pb.js": {
|
|
33
|
+
"types": "./novatrail/api/v1/package_pb.d.ts",
|
|
34
|
+
"default": "./novatrail/api/v1/package_pb.js"
|
|
35
|
+
},
|
|
36
|
+
"./novatrail/api/v1/progress_pb.js": {
|
|
37
|
+
"types": "./novatrail/api/v1/progress_pb.d.ts",
|
|
38
|
+
"default": "./novatrail/api/v1/progress_pb.js"
|
|
39
|
+
},
|
|
20
40
|
"./novatrail/eval/v1/report_pb.js": {
|
|
21
41
|
"types": "./novatrail/eval/v1/report_pb.d.ts",
|
|
22
42
|
"default": "./novatrail/eval/v1/report_pb.js"
|