@legendsoflearning/lol-sdk-core 0.0.2

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.
Files changed (74) hide show
  1. package/README.md +172 -0
  2. package/dist/auth/index.d.mts +1 -0
  3. package/dist/auth/index.d.ts +1 -0
  4. package/dist/auth/index.js +12 -0
  5. package/dist/auth/index.js.map +1 -0
  6. package/dist/auth/index.mjs +3 -0
  7. package/dist/auth/index.mjs.map +1 -0
  8. package/dist/cache/index.d.mts +26 -0
  9. package/dist/cache/index.d.ts +26 -0
  10. package/dist/cache/index.js +63 -0
  11. package/dist/cache/index.js.map +1 -0
  12. package/dist/cache/index.mjs +60 -0
  13. package/dist/cache/index.mjs.map +1 -0
  14. package/dist/chunk-Q4UXELOU.mjs +284 -0
  15. package/dist/chunk-Q4UXELOU.mjs.map +1 -0
  16. package/dist/chunk-WWN77BBN.js +286 -0
  17. package/dist/chunk-WWN77BBN.js.map +1 -0
  18. package/dist/generated/admins/index.d.mts +2738 -0
  19. package/dist/generated/admins/index.d.ts +2738 -0
  20. package/dist/generated/admins/index.js +126 -0
  21. package/dist/generated/admins/index.js.map +1 -0
  22. package/dist/generated/admins/index.mjs +108 -0
  23. package/dist/generated/admins/index.mjs.map +1 -0
  24. package/dist/generated/agents/index.d.mts +1744 -0
  25. package/dist/generated/agents/index.d.ts +1744 -0
  26. package/dist/generated/agents/index.js +220 -0
  27. package/dist/generated/agents/index.js.map +1 -0
  28. package/dist/generated/agents/index.mjs +168 -0
  29. package/dist/generated/agents/index.mjs.map +1 -0
  30. package/dist/generated/developers/index.d.mts +748 -0
  31. package/dist/generated/developers/index.d.ts +748 -0
  32. package/dist/generated/developers/index.js +72 -0
  33. package/dist/generated/developers/index.js.map +1 -0
  34. package/dist/generated/developers/index.mjs +54 -0
  35. package/dist/generated/developers/index.mjs.map +1 -0
  36. package/dist/generated/parents/index.d.mts +2446 -0
  37. package/dist/generated/parents/index.d.ts +2446 -0
  38. package/dist/generated/parents/index.js +272 -0
  39. package/dist/generated/parents/index.js.map +1 -0
  40. package/dist/generated/parents/index.mjs +206 -0
  41. package/dist/generated/parents/index.mjs.map +1 -0
  42. package/dist/generated/play/index.d.mts +1740 -0
  43. package/dist/generated/play/index.d.ts +1740 -0
  44. package/dist/generated/play/index.js +173 -0
  45. package/dist/generated/play/index.js.map +1 -0
  46. package/dist/generated/play/index.mjs +139 -0
  47. package/dist/generated/play/index.mjs.map +1 -0
  48. package/dist/generated/public/index.d.mts +1126 -0
  49. package/dist/generated/public/index.d.ts +1126 -0
  50. package/dist/generated/public/index.js +58 -0
  51. package/dist/generated/public/index.js.map +1 -0
  52. package/dist/generated/public/index.mjs +46 -0
  53. package/dist/generated/public/index.mjs.map +1 -0
  54. package/dist/generated/teachers/index.d.mts +6205 -0
  55. package/dist/generated/teachers/index.d.ts +6205 -0
  56. package/dist/generated/teachers/index.js +353 -0
  57. package/dist/generated/teachers/index.js.map +1 -0
  58. package/dist/generated/teachers/index.mjs +282 -0
  59. package/dist/generated/teachers/index.mjs.map +1 -0
  60. package/dist/generated/translation-hub/index.d.mts +2018 -0
  61. package/dist/generated/translation-hub/index.d.ts +2018 -0
  62. package/dist/generated/translation-hub/index.js +186 -0
  63. package/dist/generated/translation-hub/index.js.map +1 -0
  64. package/dist/generated/translation-hub/index.mjs +135 -0
  65. package/dist/generated/translation-hub/index.mjs.map +1 -0
  66. package/dist/index-CYIBtoSV.d.mts +173 -0
  67. package/dist/index-CYIBtoSV.d.ts +173 -0
  68. package/dist/index.d.mts +154 -0
  69. package/dist/index.d.ts +154 -0
  70. package/dist/index.js +364 -0
  71. package/dist/index.js.map +1 -0
  72. package/dist/index.mjs +348 -0
  73. package/dist/index.mjs.map +1 -0
  74. package/package.json +121 -0
@@ -0,0 +1,126 @@
1
+ 'use strict';
2
+
3
+ // src/generated/admins/fragment-masking.ts
4
+ function useFragment(_documentNode, fragmentType) {
5
+ return fragmentType;
6
+ }
7
+ function makeFragmentData(data, _fragment) {
8
+ return data;
9
+ }
10
+ function isFragmentReady(queryNode, fragmentNode, data) {
11
+ const deferredFields = queryNode.__meta__?.deferredFields;
12
+ if (!deferredFields) return true;
13
+ const fragDef = fragmentNode.definitions[0];
14
+ const fragName = fragDef?.name?.value;
15
+ const fields = fragName && deferredFields[fragName] || [];
16
+ return fields.length > 0 && fields.every((field) => data && field in data);
17
+ }
18
+
19
+ // src/generated/admins/graphql.ts
20
+ var AssignmentOwnershipType = /* @__PURE__ */ ((AssignmentOwnershipType2) => {
21
+ AssignmentOwnershipType2["All"] = "ALL";
22
+ AssignmentOwnershipType2["District"] = "DISTRICT";
23
+ AssignmentOwnershipType2["Teacher"] = "TEACHER";
24
+ return AssignmentOwnershipType2;
25
+ })(AssignmentOwnershipType || {});
26
+ var AssignmentSetSortType = /* @__PURE__ */ ((AssignmentSetSortType2) => {
27
+ AssignmentSetSortType2["CreatedAt"] = "CREATED_AT";
28
+ AssignmentSetSortType2["Grade"] = "GRADE";
29
+ AssignmentSetSortType2["Name"] = "NAME";
30
+ AssignmentSetSortType2["StartDate"] = "START_DATE";
31
+ AssignmentSetSortType2["Status"] = "STATUS";
32
+ AssignmentSetSortType2["Subject"] = "SUBJECT";
33
+ AssignmentSetSortType2["UpdatedAt"] = "UPDATED_AT";
34
+ return AssignmentSetSortType2;
35
+ })(AssignmentSetSortType || {});
36
+ var FluencyFocusType = /* @__PURE__ */ ((FluencyFocusType2) => {
37
+ FluencyFocusType2["Add5"] = "ADD5";
38
+ FluencyFocusType2["Add9"] = "ADD9";
39
+ FluencyFocusType2["Add10"] = "ADD10";
40
+ FluencyFocusType2["Mul9"] = "MUL9";
41
+ FluencyFocusType2["Mul10"] = "MUL10";
42
+ FluencyFocusType2["Mul12"] = "MUL12";
43
+ return FluencyFocusType2;
44
+ })(FluencyFocusType || {});
45
+ var FluencyReportOrganizationType = /* @__PURE__ */ ((FluencyReportOrganizationType2) => {
46
+ FluencyReportOrganizationType2["All"] = "ALL";
47
+ FluencyReportOrganizationType2["District"] = "DISTRICT";
48
+ FluencyReportOrganizationType2["School"] = "SCHOOL";
49
+ return FluencyReportOrganizationType2;
50
+ })(FluencyReportOrganizationType || {});
51
+ var PlaytimeLimitScope = /* @__PURE__ */ ((PlaytimeLimitScope2) => {
52
+ PlaytimeLimitScope2["District"] = "DISTRICT";
53
+ PlaytimeLimitScope2["School"] = "SCHOOL";
54
+ PlaytimeLimitScope2["Teacher"] = "TEACHER";
55
+ return PlaytimeLimitScope2;
56
+ })(PlaytimeLimitScope || {});
57
+ var PlaytimeType = /* @__PURE__ */ ((PlaytimeType2) => {
58
+ PlaytimeType2["Assessment"] = "ASSESSMENT";
59
+ PlaytimeType2["AwakeningAcademy"] = "AWAKENING_ACADEMY";
60
+ PlaytimeType2["AwakeningOverworld"] = "AWAKENING_OVERWORLD";
61
+ PlaytimeType2["AwakeningQuizzler"] = "AWAKENING_QUIZZLER";
62
+ PlaytimeType2["AwakeningV3Overworld"] = "AWAKENING_V3_OVERWORLD";
63
+ PlaytimeType2["Battle"] = "BATTLE";
64
+ PlaytimeType2["BeastieBattle"] = "BEASTIE_BATTLE";
65
+ PlaytimeType2["BeastieChallenge"] = "BEASTIE_CHALLENGE";
66
+ PlaytimeType2["ClassicPlaylistOverworld"] = "CLASSIC_PLAYLIST_OVERWORLD";
67
+ PlaytimeType2["ClassroomAwakening"] = "CLASSROOM_AWAKENING";
68
+ PlaytimeType2["FluencyAssess"] = "FLUENCY_ASSESS";
69
+ PlaytimeType2["FluencyEstablish"] = "FLUENCY_ESTABLISH";
70
+ PlaytimeType2["FluencyPractice"] = "FLUENCY_PRACTICE";
71
+ PlaytimeType2["FluencyTyping"] = "FLUENCY_TYPING";
72
+ PlaytimeType2["MiniGame"] = "MINI_GAME";
73
+ PlaytimeType2["StructuredFreeplay"] = "STRUCTURED_FREEPLAY";
74
+ PlaytimeType2["StudentHomePlay"] = "STUDENT_HOME_PLAY";
75
+ PlaytimeType2["TargetedLearningOverworld"] = "TARGETED_LEARNING_OVERWORLD";
76
+ PlaytimeType2["Video"] = "VIDEO";
77
+ return PlaytimeType2;
78
+ })(PlaytimeType || {});
79
+ var SortDirectionType = /* @__PURE__ */ ((SortDirectionType2) => {
80
+ SortDirectionType2["Asc"] = "ASC";
81
+ SortDirectionType2["Desc"] = "DESC";
82
+ return SortDirectionType2;
83
+ })(SortDirectionType || {});
84
+ var UserFilterRole = /* @__PURE__ */ ((UserFilterRole2) => {
85
+ UserFilterRole2["Admin"] = "ADMIN";
86
+ UserFilterRole2["Student"] = "STUDENT";
87
+ UserFilterRole2["Teacher"] = "TEACHER";
88
+ return UserFilterRole2;
89
+ })(UserFilterRole || {});
90
+ var GetDistrictsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetDistricts" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } }, "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Filter" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "alias": { "kind": "Name", "value": "districts" }, "name": { "kind": "Name", "value": "districts2" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "filters" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalPages" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalEntries" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageNumber" } }, { "kind": "Field", "name": { "kind": "Name", "value": "entries" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "district" } }, { "kind": "Field", "name": { "kind": "Name", "value": "districtSchoolsCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "districtTeachersCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ncesDistrictId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" } }, { "kind": "Field", "name": { "kind": "Name", "value": "abbrev" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "subscriptions" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "endAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "product" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }] } }] } }] } }] } }] };
91
+ var GetStatesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetStates" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } }, "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Filter" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "alias": { "kind": "Name", "value": "states" }, "name": { "kind": "Name", "value": "states2" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "filters" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalPages" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalEntries" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageNumber" } }, { "kind": "Field", "name": { "kind": "Name", "value": "entries" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" } }] } }] } }] } }] };
92
+ var GetSchoolsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetSchools" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } }, "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Filter" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "alias": { "kind": "Name", "value": "schools" }, "name": { "kind": "Name", "value": "schools2" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "filters" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "page" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalPages" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalEntries" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageNumber" } }, { "kind": "Field", "name": { "kind": "Name", "value": "entries" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "school" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ncesSchoolId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "districtRegion" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }] } }] } }] } }] };
93
+ var GetUsersDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetUsers" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } }, "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Filter" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "alias": { "kind": "Name", "value": "users" }, "name": { "kind": "Name", "value": "users2" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "page" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "page" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "filters" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "pageNumber" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pageSize" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalEntries" } }, { "kind": "Field", "name": { "kind": "Name", "value": "totalPages" } }, { "kind": "Field", "name": { "kind": "Name", "value": "entries" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "firstName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "lastName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "googleUniqueId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "googleEmail" } }] } }] } }] } }] };
94
+ var GetDistrictRegionsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetDistrictRegions" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } }, "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Filter" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "districtRegions" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "filters" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filters" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "entries" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "district" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "district" } }] } }] } }] } }] } }] };
95
+
96
+ // src/generated/admins/gql.ts
97
+ var documents = {
98
+ "\n query GetDistricts($filters: [Filter]) {\n districts: districts2(filters: $filters) {\n totalPages\n totalEntries\n pageNumber\n entries {\n id\n district\n districtSchoolsCount\n districtTeachersCount\n ncesDistrictId\n state {\n id\n state\n abbrev\n }\n subscriptions {\n id\n endAt\n product {\n id\n name\n }\n }\n }\n }\n }\n": GetDistrictsDocument,
99
+ "\n query GetStates($filters: [Filter]) {\n states: states2(filters: $filters) {\n totalPages\n totalEntries\n pageNumber\n entries {\n id\n state\n }\n }\n }\n": GetStatesDocument,
100
+ "\n query GetSchools($filters: [Filter], $page: Int) {\n schools: schools2(filters: $filters, page: $page) {\n totalPages\n totalEntries\n pageNumber\n entries {\n id\n school\n ncesSchoolId\n districtRegion {\n id\n name\n }\n }\n }\n }\n": GetSchoolsDocument,
101
+ "\n query GetUsers($filters: [Filter], $page: Int) {\n users: users2(page: $page, filters: $filters) {\n pageNumber\n pageSize\n totalEntries\n totalPages\n entries {\n id\n firstName\n lastName\n email\n googleUniqueId\n googleEmail\n }\n }\n }\n": GetUsersDocument,
102
+ "\n query GetDistrictRegions($filters: [Filter]) {\n districtRegions(filters: $filters) {\n entries {\n id\n name\n district {\n id\n district\n }\n }\n }\n }\n": GetDistrictRegionsDocument
103
+ };
104
+ function graphql(source) {
105
+ return documents[source] ?? {};
106
+ }
107
+
108
+ exports.AssignmentOwnershipType = AssignmentOwnershipType;
109
+ exports.AssignmentSetSortType = AssignmentSetSortType;
110
+ exports.FluencyFocusType = FluencyFocusType;
111
+ exports.FluencyReportOrganizationType = FluencyReportOrganizationType;
112
+ exports.GetDistrictRegionsDocument = GetDistrictRegionsDocument;
113
+ exports.GetDistrictsDocument = GetDistrictsDocument;
114
+ exports.GetSchoolsDocument = GetSchoolsDocument;
115
+ exports.GetStatesDocument = GetStatesDocument;
116
+ exports.GetUsersDocument = GetUsersDocument;
117
+ exports.PlaytimeLimitScope = PlaytimeLimitScope;
118
+ exports.PlaytimeType = PlaytimeType;
119
+ exports.SortDirectionType = SortDirectionType;
120
+ exports.UserFilterRole = UserFilterRole;
121
+ exports.graphql = graphql;
122
+ exports.isFragmentReady = isFragmentReady;
123
+ exports.makeFragmentData = makeFragmentData;
124
+ exports.useFragment = useFragment;
125
+ //# sourceMappingURL=index.js.map
126
+ //# sourceMappingURL=index.js.map