@instructure/athena-api-client 1.0.2 → 1.0.4

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 (42) hide show
  1. package/README.md +5 -0
  2. package/dist/apis/ChatsApi.d.ts +2 -0
  3. package/dist/apis/ChatsApi.js +6 -0
  4. package/dist/apis/LearningDaysApi.d.ts +33 -0
  5. package/dist/apis/LearningDaysApi.js +82 -0
  6. package/dist/apis/LearningStreakApi.d.ts +31 -0
  7. package/dist/apis/LearningStreakApi.js +70 -0
  8. package/dist/apis/MessagesApi.d.ts +15 -0
  9. package/dist/apis/MessagesApi.js +46 -0
  10. package/dist/apis/index.d.ts +2 -0
  11. package/dist/apis/index.js +2 -0
  12. package/dist/esm/apis/ChatsApi.d.ts +2 -0
  13. package/dist/esm/apis/ChatsApi.js +6 -0
  14. package/dist/esm/apis/LearningDaysApi.d.ts +33 -0
  15. package/dist/esm/apis/LearningDaysApi.js +78 -0
  16. package/dist/esm/apis/LearningStreakApi.d.ts +31 -0
  17. package/dist/esm/apis/LearningStreakApi.js +66 -0
  18. package/dist/esm/apis/MessagesApi.d.ts +15 -0
  19. package/dist/esm/apis/MessagesApi.js +46 -0
  20. package/dist/esm/apis/index.d.ts +2 -0
  21. package/dist/esm/apis/index.js +2 -0
  22. package/dist/esm/models/CreateChatRequest.d.ts +26 -0
  23. package/dist/esm/models/CreateChatRequest.js +13 -0
  24. package/dist/esm/models/LearningDaysResponse.d.ts +38 -0
  25. package/dist/esm/models/LearningDaysResponse.js +47 -0
  26. package/dist/esm/models/LearningStreakResponse.d.ts +74 -0
  27. package/dist/esm/models/LearningStreakResponse.js +67 -0
  28. package/dist/esm/models/UpdateChatRequest.d.ts +20 -0
  29. package/dist/esm/models/UpdateChatRequest.js +11 -0
  30. package/dist/esm/models/index.d.ts +2 -0
  31. package/dist/esm/models/index.js +2 -0
  32. package/dist/models/CreateChatRequest.d.ts +26 -0
  33. package/dist/models/CreateChatRequest.js +14 -0
  34. package/dist/models/LearningDaysResponse.d.ts +38 -0
  35. package/dist/models/LearningDaysResponse.js +54 -0
  36. package/dist/models/LearningStreakResponse.d.ts +74 -0
  37. package/dist/models/LearningStreakResponse.js +74 -0
  38. package/dist/models/UpdateChatRequest.d.ts +20 -0
  39. package/dist/models/UpdateChatRequest.js +12 -0
  40. package/dist/models/index.d.ts +2 -0
  41. package/dist/models/index.js +2 -0
  42. package/package.json +1 -1
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LearningStreakResponse
16
+ */
17
+ export interface LearningStreakResponse {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LearningStreakResponse
22
+ */
23
+ currentDays: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LearningStreakResponse
28
+ */
29
+ longestDays: number;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof LearningStreakResponse
34
+ */
35
+ lastMomentDate?: Date | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof LearningStreakResponse
40
+ */
41
+ totalMissedDays: number;
42
+ /**
43
+ *
44
+ * @type {Array<number>}
45
+ * @memberof LearningStreakResponse
46
+ */
47
+ missedDaysInCycle: Array<number>;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof LearningStreakResponse
52
+ */
53
+ lastEvaluatedAt?: Date | null;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof LearningStreakResponse
58
+ */
59
+ createdAt: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof LearningStreakResponse
64
+ */
65
+ updatedAt: Date;
66
+ }
67
+ /**
68
+ * Check if a given object implements the LearningStreakResponse interface.
69
+ */
70
+ export declare function instanceOfLearningStreakResponse(value: object): value is LearningStreakResponse;
71
+ export declare function LearningStreakResponseFromJSON(json: any): LearningStreakResponse;
72
+ export declare function LearningStreakResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearningStreakResponse;
73
+ export declare function LearningStreakResponseToJSON(json: any): LearningStreakResponse;
74
+ export declare function LearningStreakResponseToJSONTyped(value?: LearningStreakResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfLearningStreakResponse = instanceOfLearningStreakResponse;
17
+ exports.LearningStreakResponseFromJSON = LearningStreakResponseFromJSON;
18
+ exports.LearningStreakResponseFromJSONTyped = LearningStreakResponseFromJSONTyped;
19
+ exports.LearningStreakResponseToJSON = LearningStreakResponseToJSON;
20
+ exports.LearningStreakResponseToJSONTyped = LearningStreakResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LearningStreakResponse interface.
23
+ */
24
+ function instanceOfLearningStreakResponse(value) {
25
+ if (!('currentDays' in value) || value['currentDays'] === undefined)
26
+ return false;
27
+ if (!('longestDays' in value) || value['longestDays'] === undefined)
28
+ return false;
29
+ if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
30
+ return false;
31
+ if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function LearningStreakResponseFromJSON(json) {
40
+ return LearningStreakResponseFromJSONTyped(json, false);
41
+ }
42
+ function LearningStreakResponseFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'currentDays': json['currentDays'],
48
+ 'longestDays': json['longestDays'],
49
+ 'lastMomentDate': json['lastMomentDate'] == null ? undefined : (new Date(json['lastMomentDate'])),
50
+ 'totalMissedDays': json['totalMissedDays'],
51
+ 'missedDaysInCycle': json['missedDaysInCycle'],
52
+ 'lastEvaluatedAt': json['lastEvaluatedAt'] == null ? undefined : (new Date(json['lastEvaluatedAt'])),
53
+ 'createdAt': (new Date(json['createdAt'])),
54
+ 'updatedAt': (new Date(json['updatedAt'])),
55
+ };
56
+ }
57
+ function LearningStreakResponseToJSON(json) {
58
+ return LearningStreakResponseToJSONTyped(json, false);
59
+ }
60
+ function LearningStreakResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'currentDays': value['currentDays'],
66
+ 'longestDays': value['longestDays'],
67
+ 'lastMomentDate': value['lastMomentDate'] == null ? value['lastMomentDate'] : value['lastMomentDate'].toISOString().substring(0, 10),
68
+ 'totalMissedDays': value['totalMissedDays'],
69
+ 'missedDaysInCycle': value['missedDaysInCycle'],
70
+ 'lastEvaluatedAt': value['lastEvaluatedAt'] == null ? value['lastEvaluatedAt'] : value['lastEvaluatedAt'].toISOString(),
71
+ 'createdAt': value['createdAt'].toISOString(),
72
+ 'updatedAt': value['updatedAt'].toISOString(),
73
+ };
74
+ }
@@ -21,7 +21,27 @@ export interface UpdateChatRequest {
21
21
  * @memberof UpdateChatRequest
22
22
  */
23
23
  title?: string;
24
+ /**
25
+ * Chat type.
26
+ * @type {string}
27
+ * @memberof UpdateChatRequest
28
+ */
29
+ chatType?: string;
30
+ /**
31
+ * Visibility of the chat.
32
+ * @type {string}
33
+ * @memberof UpdateChatRequest
34
+ */
35
+ visibility?: UpdateChatRequestVisibilityEnum;
24
36
  }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const UpdateChatRequestVisibilityEnum: {
41
+ readonly Public: "public";
42
+ readonly Private: "private";
43
+ };
44
+ export type UpdateChatRequestVisibilityEnum = typeof UpdateChatRequestVisibilityEnum[keyof typeof UpdateChatRequestVisibilityEnum];
25
45
  /**
26
46
  * Check if a given object implements the UpdateChatRequest interface.
27
47
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateChatRequestVisibilityEnum = void 0;
16
17
  exports.instanceOfUpdateChatRequest = instanceOfUpdateChatRequest;
17
18
  exports.UpdateChatRequestFromJSON = UpdateChatRequestFromJSON;
18
19
  exports.UpdateChatRequestFromJSONTyped = UpdateChatRequestFromJSONTyped;
19
20
  exports.UpdateChatRequestToJSON = UpdateChatRequestToJSON;
20
21
  exports.UpdateChatRequestToJSONTyped = UpdateChatRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.UpdateChatRequestVisibilityEnum = {
26
+ Public: 'public',
27
+ Private: 'private'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the UpdateChatRequest interface.
23
31
  */
@@ -33,6 +41,8 @@ function UpdateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
33
41
  }
34
42
  return {
35
43
  'title': json['title'] == null ? undefined : json['title'],
44
+ 'chatType': json['chatType'] == null ? undefined : json['chatType'],
45
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
36
46
  };
37
47
  }
38
48
  function UpdateChatRequestToJSON(json) {
@@ -44,5 +54,7 @@ function UpdateChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
54
  }
45
55
  return {
46
56
  'title': value['title'],
57
+ 'chatType': value['chatType'],
58
+ 'visibility': value['visibility'],
47
59
  };
48
60
  }
@@ -6,7 +6,9 @@ export * from './CreateChatRequest';
6
6
  export * from './CreateTokenRequest';
7
7
  export * from './CreateTokenResponse';
8
8
  export * from './HealthCheck';
9
+ export * from './LearningDaysResponse';
9
10
  export * from './LearningMoment';
11
+ export * from './LearningStreakResponse';
10
12
  export * from './Message';
11
13
  export * from './MessageCountResponse';
12
14
  export * from './MessagePartsInner';
@@ -24,7 +24,9 @@ __exportStar(require("./CreateChatRequest"), exports);
24
24
  __exportStar(require("./CreateTokenRequest"), exports);
25
25
  __exportStar(require("./CreateTokenResponse"), exports);
26
26
  __exportStar(require("./HealthCheck"), exports);
27
+ __exportStar(require("./LearningDaysResponse"), exports);
27
28
  __exportStar(require("./LearningMoment"), exports);
29
+ __exportStar(require("./LearningStreakResponse"), exports);
28
30
  __exportStar(require("./Message"), exports);
29
31
  __exportStar(require("./MessageCountResponse"), exports);
30
32
  __exportStar(require("./MessagePartsInner"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {