@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
@@ -26,6 +26,52 @@ import { MessageFromJSON, MessageCountResponseFromJSON, PaginatedMessagesFromJSO
26
26
  *
27
27
  */
28
28
  export class MessagesApi extends runtime.BaseAPI {
29
+ /**
30
+ * Deletes all messages in a chat at or after the given timestamp.
31
+ * Delete messages from timestamp
32
+ */
33
+ deleteMessagesRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['xUserId'] == null) {
36
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling deleteMessages().');
37
+ }
38
+ if (requestParameters['chatId'] == null) {
39
+ throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling deleteMessages().');
40
+ }
41
+ if (requestParameters['since'] == null) {
42
+ throw new runtime.RequiredError('since', 'Required parameter "since" was null or undefined when calling deleteMessages().');
43
+ }
44
+ const queryParameters = {};
45
+ if (requestParameters['since'] != null) {
46
+ queryParameters['since'] = requestParameters['since'].toISOString();
47
+ }
48
+ const headerParameters = {};
49
+ if (requestParameters['xUserId'] != null) {
50
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
51
+ }
52
+ if (this.configuration && this.configuration.apiKey) {
53
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
54
+ }
55
+ let urlPath = `/api/v1/chats/{chatId}/messages`;
56
+ urlPath = urlPath.replace(`{${"chatId"}}`, encodeURIComponent(String(requestParameters['chatId'])));
57
+ const response = yield this.request({
58
+ path: urlPath,
59
+ method: 'DELETE',
60
+ headers: headerParameters,
61
+ query: queryParameters,
62
+ }, initOverrides);
63
+ return new runtime.VoidApiResponse(response);
64
+ });
65
+ }
66
+ /**
67
+ * Deletes all messages in a chat at or after the given timestamp.
68
+ * Delete messages from timestamp
69
+ */
70
+ deleteMessages(requestParameters, initOverrides) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ yield this.deleteMessagesRaw(requestParameters, initOverrides);
73
+ });
74
+ }
29
75
  /**
30
76
  * Returns a single message belonging to the specified chat.
31
77
  * Get a chat message
@@ -1,7 +1,9 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './ChatsApi';
3
3
  export * from './HealthApi';
4
+ export * from './LearningDaysApi';
4
5
  export * from './LearningMomentsApi';
6
+ export * from './LearningStreakApi';
5
7
  export * from './MessagesApi';
6
8
  export * from './ServiceTokensApi';
7
9
  export * from './TagsApi';
@@ -3,7 +3,9 @@
3
3
  export * from './AccountsApi';
4
4
  export * from './ChatsApi';
5
5
  export * from './HealthApi';
6
+ export * from './LearningDaysApi';
6
7
  export * from './LearningMomentsApi';
8
+ export * from './LearningStreakApi';
7
9
  export * from './MessagesApi';
8
10
  export * from './ServiceTokensApi';
9
11
  export * from './TagsApi';
@@ -15,13 +15,39 @@
15
15
  * @interface CreateChatRequest
16
16
  */
17
17
  export interface CreateChatRequest {
18
+ /**
19
+ * Optional caller-supplied UUID for the chat. If omitted, one is generated.
20
+ * @type {string}
21
+ * @memberof CreateChatRequest
22
+ */
23
+ id?: string;
18
24
  /**
19
25
  * Optional title for the chat. Defaults to 'New Chat' if omitted.
20
26
  * @type {string}
21
27
  * @memberof CreateChatRequest
22
28
  */
23
29
  title?: string;
30
+ /**
31
+ * Optional chat type. Defaults to a general chat if omitted.
32
+ * @type {string}
33
+ * @memberof CreateChatRequest
34
+ */
35
+ chatType?: string;
36
+ /**
37
+ * Visibility of the chat. Defaults to 'private' if omitted.
38
+ * @type {string}
39
+ * @memberof CreateChatRequest
40
+ */
41
+ visibility?: CreateChatRequestVisibilityEnum;
24
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const CreateChatRequestVisibilityEnum: {
47
+ readonly Public: "public";
48
+ readonly Private: "private";
49
+ };
50
+ export type CreateChatRequestVisibilityEnum = typeof CreateChatRequestVisibilityEnum[keyof typeof CreateChatRequestVisibilityEnum];
25
51
  /**
26
52
  * Check if a given object implements the CreateChatRequest interface.
27
53
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CreateChatRequestVisibilityEnum = {
18
+ Public: 'public',
19
+ Private: 'private'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the CreateChatRequest interface.
16
23
  */
@@ -25,7 +32,10 @@ export function CreateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
25
32
  return json;
26
33
  }
27
34
  return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
28
36
  'title': json['title'] == null ? undefined : json['title'],
37
+ 'chatType': json['chatType'] == null ? undefined : json['chatType'],
38
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
29
39
  };
30
40
  }
31
41
  export function CreateChatRequestToJSON(json) {
@@ -36,6 +46,9 @@ export function CreateChatRequestToJSONTyped(value, ignoreDiscriminator = false)
36
46
  return value;
37
47
  }
38
48
  return {
49
+ 'id': value['id'],
39
50
  'title': value['title'],
51
+ 'chatType': value['chatType'],
52
+ 'visibility': value['visibility'],
40
53
  };
41
54
  }
@@ -0,0 +1,38 @@
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 LearningDaysResponse
16
+ */
17
+ export interface LearningDaysResponse {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof LearningDaysResponse
22
+ */
23
+ latestMomentDate: Date | null;
24
+ /**
25
+ *
26
+ * @type {Array<Date>}
27
+ * @memberof LearningDaysResponse
28
+ */
29
+ days: Array<Date>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LearningDaysResponse interface.
33
+ */
34
+ export declare function instanceOfLearningDaysResponse(value: object): value is LearningDaysResponse;
35
+ export declare function LearningDaysResponseFromJSON(json: any): LearningDaysResponse;
36
+ export declare function LearningDaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearningDaysResponse;
37
+ export declare function LearningDaysResponseToJSON(json: any): LearningDaysResponse;
38
+ export declare function LearningDaysResponseToJSONTyped(value?: LearningDaysResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the LearningDaysResponse interface.
16
+ */
17
+ export function instanceOfLearningDaysResponse(value) {
18
+ if (!('latestMomentDate' in value) || value['latestMomentDate'] === undefined)
19
+ return false;
20
+ if (!('days' in value) || value['days'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function LearningDaysResponseFromJSON(json) {
25
+ return LearningDaysResponseFromJSONTyped(json, false);
26
+ }
27
+ export function LearningDaysResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'latestMomentDate': (json['latestMomentDate'] == null ? null : new Date(json['latestMomentDate'])),
33
+ 'days': json['days'],
34
+ };
35
+ }
36
+ export function LearningDaysResponseToJSON(json) {
37
+ return LearningDaysResponseToJSONTyped(json, false);
38
+ }
39
+ export function LearningDaysResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'latestMomentDate': value['latestMomentDate'] == null ? value['latestMomentDate'] : value['latestMomentDate'].toISOString().substring(0, 10),
45
+ 'days': value['days'],
46
+ };
47
+ }
@@ -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,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the LearningStreakResponse interface.
16
+ */
17
+ export function instanceOfLearningStreakResponse(value) {
18
+ if (!('currentDays' in value) || value['currentDays'] === undefined)
19
+ return false;
20
+ if (!('longestDays' in value) || value['longestDays'] === undefined)
21
+ return false;
22
+ if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
23
+ return false;
24
+ if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function LearningStreakResponseFromJSON(json) {
33
+ return LearningStreakResponseFromJSONTyped(json, false);
34
+ }
35
+ export function LearningStreakResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'currentDays': json['currentDays'],
41
+ 'longestDays': json['longestDays'],
42
+ 'lastMomentDate': json['lastMomentDate'] == null ? undefined : (new Date(json['lastMomentDate'])),
43
+ 'totalMissedDays': json['totalMissedDays'],
44
+ 'missedDaysInCycle': json['missedDaysInCycle'],
45
+ 'lastEvaluatedAt': json['lastEvaluatedAt'] == null ? undefined : (new Date(json['lastEvaluatedAt'])),
46
+ 'createdAt': (new Date(json['createdAt'])),
47
+ 'updatedAt': (new Date(json['updatedAt'])),
48
+ };
49
+ }
50
+ export function LearningStreakResponseToJSON(json) {
51
+ return LearningStreakResponseToJSONTyped(json, false);
52
+ }
53
+ export function LearningStreakResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'currentDays': value['currentDays'],
59
+ 'longestDays': value['longestDays'],
60
+ 'lastMomentDate': value['lastMomentDate'] == null ? value['lastMomentDate'] : value['lastMomentDate'].toISOString().substring(0, 10),
61
+ 'totalMissedDays': value['totalMissedDays'],
62
+ 'missedDaysInCycle': value['missedDaysInCycle'],
63
+ 'lastEvaluatedAt': value['lastEvaluatedAt'] == null ? value['lastEvaluatedAt'] : value['lastEvaluatedAt'].toISOString(),
64
+ 'createdAt': value['createdAt'].toISOString(),
65
+ 'updatedAt': value['updatedAt'].toISOString(),
66
+ };
67
+ }
@@ -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
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const UpdateChatRequestVisibilityEnum = {
18
+ Public: 'public',
19
+ Private: 'private'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the UpdateChatRequest interface.
16
23
  */
@@ -26,6 +33,8 @@ export function UpdateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
26
33
  }
27
34
  return {
28
35
  'title': json['title'] == null ? undefined : json['title'],
36
+ 'chatType': json['chatType'] == null ? undefined : json['chatType'],
37
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
29
38
  };
30
39
  }
31
40
  export function UpdateChatRequestToJSON(json) {
@@ -37,5 +46,7 @@ export function UpdateChatRequestToJSONTyped(value, ignoreDiscriminator = false)
37
46
  }
38
47
  return {
39
48
  'title': value['title'],
49
+ 'chatType': value['chatType'],
50
+ 'visibility': value['visibility'],
40
51
  };
41
52
  }
@@ -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';
@@ -8,7 +8,9 @@ export * from './CreateChatRequest';
8
8
  export * from './CreateTokenRequest';
9
9
  export * from './CreateTokenResponse';
10
10
  export * from './HealthCheck';
11
+ export * from './LearningDaysResponse';
11
12
  export * from './LearningMoment';
13
+ export * from './LearningStreakResponse';
12
14
  export * from './Message';
13
15
  export * from './MessageCountResponse';
14
16
  export * from './MessagePartsInner';
@@ -15,13 +15,39 @@
15
15
  * @interface CreateChatRequest
16
16
  */
17
17
  export interface CreateChatRequest {
18
+ /**
19
+ * Optional caller-supplied UUID for the chat. If omitted, one is generated.
20
+ * @type {string}
21
+ * @memberof CreateChatRequest
22
+ */
23
+ id?: string;
18
24
  /**
19
25
  * Optional title for the chat. Defaults to 'New Chat' if omitted.
20
26
  * @type {string}
21
27
  * @memberof CreateChatRequest
22
28
  */
23
29
  title?: string;
30
+ /**
31
+ * Optional chat type. Defaults to a general chat if omitted.
32
+ * @type {string}
33
+ * @memberof CreateChatRequest
34
+ */
35
+ chatType?: string;
36
+ /**
37
+ * Visibility of the chat. Defaults to 'private' if omitted.
38
+ * @type {string}
39
+ * @memberof CreateChatRequest
40
+ */
41
+ visibility?: CreateChatRequestVisibilityEnum;
24
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const CreateChatRequestVisibilityEnum: {
47
+ readonly Public: "public";
48
+ readonly Private: "private";
49
+ };
50
+ export type CreateChatRequestVisibilityEnum = typeof CreateChatRequestVisibilityEnum[keyof typeof CreateChatRequestVisibilityEnum];
25
51
  /**
26
52
  * Check if a given object implements the CreateChatRequest interface.
27
53
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateChatRequestVisibilityEnum = void 0;
16
17
  exports.instanceOfCreateChatRequest = instanceOfCreateChatRequest;
17
18
  exports.CreateChatRequestFromJSON = CreateChatRequestFromJSON;
18
19
  exports.CreateChatRequestFromJSONTyped = CreateChatRequestFromJSONTyped;
19
20
  exports.CreateChatRequestToJSON = CreateChatRequestToJSON;
20
21
  exports.CreateChatRequestToJSONTyped = CreateChatRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateChatRequestVisibilityEnum = {
26
+ Public: 'public',
27
+ Private: 'private'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the CreateChatRequest interface.
23
31
  */
@@ -32,7 +40,10 @@ function CreateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
32
40
  return json;
33
41
  }
34
42
  return {
43
+ 'id': json['id'] == null ? undefined : json['id'],
35
44
  'title': json['title'] == null ? undefined : json['title'],
45
+ 'chatType': json['chatType'] == null ? undefined : json['chatType'],
46
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
36
47
  };
37
48
  }
38
49
  function CreateChatRequestToJSON(json) {
@@ -43,6 +54,9 @@ function CreateChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
54
  return value;
44
55
  }
45
56
  return {
57
+ 'id': value['id'],
46
58
  'title': value['title'],
59
+ 'chatType': value['chatType'],
60
+ 'visibility': value['visibility'],
47
61
  };
48
62
  }
@@ -0,0 +1,38 @@
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 LearningDaysResponse
16
+ */
17
+ export interface LearningDaysResponse {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof LearningDaysResponse
22
+ */
23
+ latestMomentDate: Date | null;
24
+ /**
25
+ *
26
+ * @type {Array<Date>}
27
+ * @memberof LearningDaysResponse
28
+ */
29
+ days: Array<Date>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LearningDaysResponse interface.
33
+ */
34
+ export declare function instanceOfLearningDaysResponse(value: object): value is LearningDaysResponse;
35
+ export declare function LearningDaysResponseFromJSON(json: any): LearningDaysResponse;
36
+ export declare function LearningDaysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearningDaysResponse;
37
+ export declare function LearningDaysResponseToJSON(json: any): LearningDaysResponse;
38
+ export declare function LearningDaysResponseToJSONTyped(value?: LearningDaysResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfLearningDaysResponse = instanceOfLearningDaysResponse;
17
+ exports.LearningDaysResponseFromJSON = LearningDaysResponseFromJSON;
18
+ exports.LearningDaysResponseFromJSONTyped = LearningDaysResponseFromJSONTyped;
19
+ exports.LearningDaysResponseToJSON = LearningDaysResponseToJSON;
20
+ exports.LearningDaysResponseToJSONTyped = LearningDaysResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LearningDaysResponse interface.
23
+ */
24
+ function instanceOfLearningDaysResponse(value) {
25
+ if (!('latestMomentDate' in value) || value['latestMomentDate'] === undefined)
26
+ return false;
27
+ if (!('days' in value) || value['days'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LearningDaysResponseFromJSON(json) {
32
+ return LearningDaysResponseFromJSONTyped(json, false);
33
+ }
34
+ function LearningDaysResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'latestMomentDate': (json['latestMomentDate'] == null ? null : new Date(json['latestMomentDate'])),
40
+ 'days': json['days'],
41
+ };
42
+ }
43
+ function LearningDaysResponseToJSON(json) {
44
+ return LearningDaysResponseToJSONTyped(json, false);
45
+ }
46
+ function LearningDaysResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'latestMomentDate': value['latestMomentDate'] == null ? value['latestMomentDate'] : value['latestMomentDate'].toISOString().substring(0, 10),
52
+ 'days': value['days'],
53
+ };
54
+ }