@laboratoria/sdk-js 3.0.0-alpha.0 → 3.0.0-alpha.1

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/lib/core.js CHANGED
@@ -167,25 +167,26 @@ const extended = {
167
167
  Application: {
168
168
  inputProps: [
169
169
  'user',
170
- 'dateOfBirth',
171
170
  'cohort',
171
+ 'dateOfBirth',
172
172
  'country',
173
- 'city',
173
+ 'locality',
174
174
  'nationality',
175
+ 'isAllowedToWork',
175
176
  'householdSize',
176
177
  'children',
178
+ 'householdIncome',
177
179
  'educationLevel',
178
180
  'educationSubject',
179
181
  'isStudying',
180
182
  'isDegreeFromListedInstitutions',
181
- 'hasWorked',
183
+ 'workStatus',
184
+ 'isLookingForWork',
185
+ 'monthsLookingForWork',
182
186
  'workRole',
183
187
  'freelance',
184
188
  'workFormal',
185
- 'hadBenefits',
186
189
  'workIncome',
187
- 'householdIncome',
188
- 'isAllowedToWork',
189
190
  // 'isReturningApplicant',
190
191
  // 'legacyAdmissionCohortSlug',
191
192
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laboratoria/sdk-js",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.1",
4
4
  "description": "Laboratoria JavaScript (browser) SDK",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -33,4 +33,4 @@
33
33
  }
34
34
  }
35
35
  }
36
- }
36
+ }
package/schemas/core.json CHANGED
@@ -669,12 +669,19 @@
669
669
  "type": "string",
670
670
  "format": "date-time"
671
671
  },
672
- "city": {
673
- "type": "string"
674
- },
675
672
  "isAllowedToWork": {
676
673
  "type": "boolean"
677
674
  },
675
+ "locality": {
676
+ "type": [
677
+ "number",
678
+ "string",
679
+ "boolean",
680
+ "object",
681
+ "array",
682
+ "null"
683
+ ]
684
+ },
678
685
  "householdSize": {
679
686
  "type": "integer"
680
687
  },
@@ -685,7 +692,28 @@
685
692
  "type": "integer"
686
693
  },
687
694
  "educationSubject": {
688
- "type": "string"
695
+ "type": [
696
+ "string",
697
+ "null"
698
+ ],
699
+ "enum": [
700
+ "design_and_media",
701
+ "software_engineering",
702
+ "engineering",
703
+ "management_and_business",
704
+ "languages",
705
+ "science",
706
+ "health",
707
+ "social_sciences",
708
+ "arts",
709
+ "comms_and_advertising",
710
+ "education",
711
+ "cooking",
712
+ "tourism",
713
+ "economics_and_accounting",
714
+ "law",
715
+ "other"
716
+ ]
689
717
  },
690
718
  "isStudying": {
691
719
  "type": "boolean"
@@ -693,28 +721,55 @@
693
721
  "isDegreeFromListedInstitutions": {
694
722
  "type": "boolean"
695
723
  },
696
- "hasWorked": {
697
- "type": "boolean"
724
+ "workStatus": {
725
+ "type": "string",
726
+ "enum": [
727
+ "never",
728
+ "not_now",
729
+ "yes"
730
+ ]
698
731
  },
699
- "workRole": {
732
+ "isLookingForWork": {
700
733
  "type": [
701
- "string",
734
+ "boolean",
702
735
  "null"
703
736
  ]
704
737
  },
705
- "freelance": {
738
+ "monthsLookingForWork": {
706
739
  "type": [
707
- "boolean",
740
+ "integer",
708
741
  "null"
709
742
  ]
710
743
  },
711
- "workFormal": {
744
+ "workRole": {
745
+ "type": [
746
+ "string",
747
+ "null"
748
+ ],
749
+ "enum": [
750
+ "waitress",
751
+ "promoter",
752
+ "manager",
753
+ "cashier",
754
+ "intern",
755
+ "operative",
756
+ "call_center",
757
+ "receptionist",
758
+ "sales_agent",
759
+ "assistant",
760
+ "professional",
761
+ "technical",
762
+ "consultant",
763
+ "other"
764
+ ]
765
+ },
766
+ "freelance": {
712
767
  "type": [
713
768
  "boolean",
714
769
  "null"
715
770
  ]
716
771
  },
717
- "hadBenefits": {
772
+ "workFormal": {
718
773
  "type": [
719
774
  "boolean",
720
775
  "null"