@laboratoria/sdk-js 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/laboratoria-sdk-esm.js +1 -1
- package/dist/laboratoria-sdk-umd.js +1 -1
- package/lib/core.js +6 -1
- package/package.json +4 -4
- package/schemas/core.json +64 -4
package/lib/core.js
CHANGED
@@ -179,8 +179,8 @@ const extended = {
|
|
179
179
|
'householdIncome',
|
180
180
|
'educationLevel',
|
181
181
|
'educationSubject',
|
182
|
+
'university',
|
182
183
|
'isStudying',
|
183
|
-
'isDegreeFromListedInstitutions',
|
184
184
|
'workStatus',
|
185
185
|
'isLookingForWork',
|
186
186
|
'monthsLookingForWork',
|
@@ -189,6 +189,7 @@ const extended = {
|
|
189
189
|
'workFormal',
|
190
190
|
'workIncome',
|
191
191
|
'isReady',
|
192
|
+
'bypassFilters',
|
192
193
|
// 'isReturningApplicant',
|
193
194
|
// 'legacyAdmissionCohortSlug',
|
194
195
|
],
|
@@ -208,6 +209,10 @@ const extended = {
|
|
208
209
|
'label',
|
209
210
|
],
|
210
211
|
},
|
212
|
+
University: {
|
213
|
+
plural: 'universities',
|
214
|
+
searchProps: ['name'],
|
215
|
+
},
|
211
216
|
};
|
212
217
|
|
213
218
|
export const createAPI = (url, state) => ({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@laboratoria/sdk-js",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.3.0",
|
4
4
|
"description": "Laboratoria JavaScript (browser) SDK",
|
5
5
|
"license": "MIT",
|
6
6
|
"scripts": {
|
@@ -16,9 +16,9 @@
|
|
16
16
|
"devDependencies": {
|
17
17
|
"@babel/core": "^7.20.12",
|
18
18
|
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
|
19
|
-
"babel-jest": "^29.4.
|
20
|
-
"jest": "^29.4.
|
21
|
-
"jest-environment-jsdom": "^29.4.
|
19
|
+
"babel-jest": "^29.4.1",
|
20
|
+
"jest": "^29.4.1",
|
21
|
+
"jest-environment-jsdom": "^29.4.1",
|
22
22
|
"webpack": "^5.75.0",
|
23
23
|
"webpack-cli": "^5.0.1"
|
24
24
|
},
|
package/schemas/core.json
CHANGED
@@ -645,6 +645,45 @@
|
|
645
645
|
}
|
646
646
|
}
|
647
647
|
},
|
648
|
+
"University": {
|
649
|
+
"type": "object",
|
650
|
+
"properties": {
|
651
|
+
"id": {
|
652
|
+
"type": "integer"
|
653
|
+
},
|
654
|
+
"createdAt": {
|
655
|
+
"type": "string",
|
656
|
+
"format": "date-time"
|
657
|
+
},
|
658
|
+
"updatedAt": {
|
659
|
+
"type": "string",
|
660
|
+
"format": "date-time"
|
661
|
+
},
|
662
|
+
"countryCode": {
|
663
|
+
"type": "string"
|
664
|
+
},
|
665
|
+
"lang": {
|
666
|
+
"type": "string",
|
667
|
+
"enum": [
|
668
|
+
"en",
|
669
|
+
"es",
|
670
|
+
"pt"
|
671
|
+
]
|
672
|
+
},
|
673
|
+
"name": {
|
674
|
+
"type": "string"
|
675
|
+
},
|
676
|
+
"filter": {
|
677
|
+
"type": "boolean"
|
678
|
+
},
|
679
|
+
"applications": {
|
680
|
+
"type": "array",
|
681
|
+
"items": {
|
682
|
+
"$ref": "#/definitions/Application"
|
683
|
+
}
|
684
|
+
}
|
685
|
+
}
|
686
|
+
},
|
648
687
|
"Application": {
|
649
688
|
"type": "object",
|
650
689
|
"properties": {
|
@@ -718,9 +757,6 @@
|
|
718
757
|
"isStudying": {
|
719
758
|
"type": "boolean"
|
720
759
|
},
|
721
|
-
"isDegreeFromListedInstitutions": {
|
722
|
-
"type": "boolean"
|
723
|
-
},
|
724
760
|
"workStatus": {
|
725
761
|
"type": "string",
|
726
762
|
"enum": [
|
@@ -781,6 +817,16 @@
|
|
781
817
|
"null"
|
782
818
|
]
|
783
819
|
},
|
820
|
+
"failedFilters": {
|
821
|
+
"type": "array",
|
822
|
+
"items": {
|
823
|
+
"type": "string"
|
824
|
+
}
|
825
|
+
},
|
826
|
+
"bypassFilters": {
|
827
|
+
"type": "boolean",
|
828
|
+
"default": false
|
829
|
+
},
|
784
830
|
"isReady": {
|
785
831
|
"type": "boolean",
|
786
832
|
"default": false
|
@@ -812,6 +858,16 @@
|
|
812
858
|
"educationLevel": {
|
813
859
|
"$ref": "#/definitions/EducationLevel"
|
814
860
|
},
|
861
|
+
"university": {
|
862
|
+
"anyOf": [
|
863
|
+
{
|
864
|
+
"$ref": "#/definitions/University"
|
865
|
+
},
|
866
|
+
{
|
867
|
+
"type": "null"
|
868
|
+
}
|
869
|
+
]
|
870
|
+
},
|
815
871
|
"challengeAssignments": {
|
816
872
|
"type": "array",
|
817
873
|
"items": {
|
@@ -911,7 +967,8 @@
|
|
911
967
|
"type": {
|
912
968
|
"type": "string",
|
913
969
|
"enum": [
|
914
|
-
"challenge"
|
970
|
+
"challenge",
|
971
|
+
"application_filter"
|
915
972
|
]
|
916
973
|
},
|
917
974
|
"data": {
|
@@ -1208,6 +1265,9 @@
|
|
1208
1265
|
"educationLevel": {
|
1209
1266
|
"$ref": "#/definitions/EducationLevel"
|
1210
1267
|
},
|
1268
|
+
"university": {
|
1269
|
+
"$ref": "#/definitions/University"
|
1270
|
+
},
|
1211
1271
|
"application": {
|
1212
1272
|
"$ref": "#/definitions/Application"
|
1213
1273
|
},
|