@laboratoria/sdk-js 3.0.0 → 3.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laboratoria/sdk-js",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Laboratoria JavaScript (browser) SDK",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -14,8 +14,8 @@
14
14
  "firebase": "^9.15.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@babel/core": "^7.20.5",
18
- "@babel/plugin-transform-modules-commonjs": "^7.19.6",
17
+ "@babel/core": "^7.20.12",
18
+ "@babel/plugin-transform-modules-commonjs": "^7.20.11",
19
19
  "babel-jest": "^29.3.1",
20
20
  "jest": "^29.3.1",
21
21
  "jest-environment-jsdom": "^29.3.1",
package/schemas/core.json CHANGED
@@ -807,6 +807,86 @@
807
807
  },
808
808
  "educationLevel": {
809
809
  "$ref": "#/definitions/EducationLevel"
810
+ },
811
+ "challengeAssignments": {
812
+ "type": "array",
813
+ "items": {
814
+ "$ref": "#/definitions/ApplicationChallengeAssignment"
815
+ }
816
+ }
817
+ }
818
+ },
819
+ "ApplicationChallenge": {
820
+ "type": "object",
821
+ "properties": {
822
+ "id": {
823
+ "type": "integer"
824
+ },
825
+ "createdAt": {
826
+ "type": "string",
827
+ "format": "date-time"
828
+ },
829
+ "updatedAt": {
830
+ "type": "string",
831
+ "format": "date-time"
832
+ },
833
+ "createdBy": {
834
+ "type": [
835
+ "string",
836
+ "null"
837
+ ]
838
+ },
839
+ "slug": {
840
+ "type": "string"
841
+ },
842
+ "version": {
843
+ "type": "string"
844
+ },
845
+ "trackId": {
846
+ "type": "integer"
847
+ },
848
+ "langs": {
849
+ "type": "array",
850
+ "enum": [
851
+ "en",
852
+ "es",
853
+ "pt"
854
+ ]
855
+ },
856
+ "json": {
857
+ "type": "string"
858
+ },
859
+ "archived": {
860
+ "type": "boolean",
861
+ "default": false
862
+ },
863
+ "assignments": {
864
+ "type": "array",
865
+ "items": {
866
+ "$ref": "#/definitions/ApplicationChallengeAssignment"
867
+ }
868
+ }
869
+ }
870
+ },
871
+ "ApplicationChallengeAssignment": {
872
+ "type": "object",
873
+ "properties": {
874
+ "id": {
875
+ "type": "integer"
876
+ },
877
+ "createdAt": {
878
+ "type": "string",
879
+ "format": "date-time"
880
+ },
881
+ "updatedAt": {
882
+ "type": "string",
883
+ "format": "date-time"
884
+ },
885
+ "application": {
886
+ "$ref": "#/definitions/Application"
887
+ },
888
+ "challenge": {
889
+ "$ref": "#/definitions/ApplicationChallenge"
810
890
  }
811
891
  }
812
892
  },
@@ -827,10 +907,9 @@
827
907
  "type": {
828
908
  "type": "string",
829
909
  "enum": [
830
- "typeform",
831
910
  "quiz_start",
832
911
  "quiz_end",
833
- "code_js"
912
+ "challenge"
834
913
  ]
835
914
  },
836
915
  "data": {
@@ -1130,6 +1209,12 @@
1130
1209
  "application": {
1131
1210
  "$ref": "#/definitions/Application"
1132
1211
  },
1212
+ "applicationChallenge": {
1213
+ "$ref": "#/definitions/ApplicationChallenge"
1214
+ },
1215
+ "applicationChallengeAssignment": {
1216
+ "$ref": "#/definitions/ApplicationChallengeAssignment"
1217
+ },
1133
1218
  "activityLogEntry": {
1134
1219
  "$ref": "#/definitions/ActivityLogEntry"
1135
1220
  },