@breign/client 1.0.204 → 1.0.206

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, MoveTicketsRequestUio, MoveTicketsResultUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
13
+ import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ArtifactLibraryItemUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, MoveTicketsRequestUio, MoveTicketsResultUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
14
14
  export interface AcceptTicketProposalRequest {
15
15
  proposalId: string;
16
16
  acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
@@ -73,6 +73,28 @@ export interface GiveTicketGoAheadRequest {
73
73
  assigneeType: MemberTypeUio;
74
74
  assigneeId: string;
75
75
  }
76
+ export interface ListAgentArtifactsRequest {
77
+ organizationId: string;
78
+ agentId: string;
79
+ search?: string;
80
+ mimeType?: string;
81
+ page?: number;
82
+ limit?: number;
83
+ }
84
+ export interface ListOrganizationArtifactsRequest {
85
+ organizationId: string;
86
+ search?: string;
87
+ mimeType?: string;
88
+ page?: number;
89
+ limit?: number;
90
+ }
91
+ export interface ListProjectArtifactsRequest {
92
+ projectId: string;
93
+ search?: string;
94
+ mimeType?: string;
95
+ page?: number;
96
+ limit?: number;
97
+ }
76
98
  export interface ListProjectTicketsRequest {
77
99
  projectId: string;
78
100
  status?: Array<TicketStatusUio>;
@@ -294,6 +316,36 @@ export declare class TicketsApi extends runtime.BaseAPI {
294
316
  * Give the go-ahead to an assignee
295
317
  */
296
318
  giveTicketGoAhead(ticketId: string, assigneeType: MemberTypeUio, assigneeId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
319
+ /**
320
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
321
+ * List the artifacts added by an agent
322
+ */
323
+ listAgentArtifactsRaw(requestParameters: ListAgentArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
324
+ /**
325
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
326
+ * List the artifacts added by an agent
327
+ */
328
+ listAgentArtifacts(organizationId: string, agentId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
329
+ /**
330
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
331
+ * List the artifacts of an organization
332
+ */
333
+ listOrganizationArtifactsRaw(requestParameters: ListOrganizationArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
334
+ /**
335
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
336
+ * List the artifacts of an organization
337
+ */
338
+ listOrganizationArtifacts(organizationId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
339
+ /**
340
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
341
+ * List the artifacts of a workspace
342
+ */
343
+ listProjectArtifactsRaw(requestParameters: ListProjectArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
344
+ /**
345
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
346
+ * List the artifacts of a workspace
347
+ */
348
+ listProjectArtifacts(projectId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
297
349
  /**
298
350
  * Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
299
351
  * List the tickets of a project
@@ -568,6 +568,132 @@ class TicketsApi extends runtime.BaseAPI {
568
568
  const response = await this.giveTicketGoAheadRaw({ ticketId: ticketId, assigneeType: assigneeType, assigneeId: assigneeId }, initOverrides);
569
569
  return await response.value();
570
570
  }
571
+ /**
572
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
573
+ * List the artifacts added by an agent
574
+ */
575
+ async listAgentArtifactsRaw(requestParameters, initOverrides) {
576
+ if (requestParameters['organizationId'] == null) {
577
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listAgentArtifacts().');
578
+ }
579
+ if (requestParameters['agentId'] == null) {
580
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling listAgentArtifacts().');
581
+ }
582
+ const queryParameters = {};
583
+ if (requestParameters['search'] != null) {
584
+ queryParameters['search'] = requestParameters['search'];
585
+ }
586
+ if (requestParameters['mimeType'] != null) {
587
+ queryParameters['mimeType'] = requestParameters['mimeType'];
588
+ }
589
+ if (requestParameters['page'] != null) {
590
+ queryParameters['page'] = requestParameters['page'];
591
+ }
592
+ if (requestParameters['limit'] != null) {
593
+ queryParameters['limit'] = requestParameters['limit'];
594
+ }
595
+ const headerParameters = {};
596
+ if (this.configuration && this.configuration.apiKey) {
597
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
598
+ }
599
+ const response = await this.request({
600
+ path: `/organizations/{organizationId}/agents/{agentId}/artifacts`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
601
+ method: 'GET',
602
+ headers: headerParameters,
603
+ query: queryParameters,
604
+ }, initOverrides);
605
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
606
+ }
607
+ /**
608
+ * Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
609
+ * List the artifacts added by an agent
610
+ */
611
+ async listAgentArtifacts(organizationId, agentId, search, mimeType, page, limit, initOverrides) {
612
+ const response = await this.listAgentArtifactsRaw({ organizationId: organizationId, agentId: agentId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
613
+ return await response.value();
614
+ }
615
+ /**
616
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
617
+ * List the artifacts of an organization
618
+ */
619
+ async listOrganizationArtifactsRaw(requestParameters, initOverrides) {
620
+ if (requestParameters['organizationId'] == null) {
621
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationArtifacts().');
622
+ }
623
+ const queryParameters = {};
624
+ if (requestParameters['search'] != null) {
625
+ queryParameters['search'] = requestParameters['search'];
626
+ }
627
+ if (requestParameters['mimeType'] != null) {
628
+ queryParameters['mimeType'] = requestParameters['mimeType'];
629
+ }
630
+ if (requestParameters['page'] != null) {
631
+ queryParameters['page'] = requestParameters['page'];
632
+ }
633
+ if (requestParameters['limit'] != null) {
634
+ queryParameters['limit'] = requestParameters['limit'];
635
+ }
636
+ const headerParameters = {};
637
+ if (this.configuration && this.configuration.apiKey) {
638
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
639
+ }
640
+ const response = await this.request({
641
+ path: `/organizations/{organizationId}/artifacts`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
642
+ method: 'GET',
643
+ headers: headerParameters,
644
+ query: queryParameters,
645
+ }, initOverrides);
646
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
647
+ }
648
+ /**
649
+ * Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
650
+ * List the artifacts of an organization
651
+ */
652
+ async listOrganizationArtifacts(organizationId, search, mimeType, page, limit, initOverrides) {
653
+ const response = await this.listOrganizationArtifactsRaw({ organizationId: organizationId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
654
+ return await response.value();
655
+ }
656
+ /**
657
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
658
+ * List the artifacts of a workspace
659
+ */
660
+ async listProjectArtifactsRaw(requestParameters, initOverrides) {
661
+ if (requestParameters['projectId'] == null) {
662
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectArtifacts().');
663
+ }
664
+ const queryParameters = {};
665
+ if (requestParameters['search'] != null) {
666
+ queryParameters['search'] = requestParameters['search'];
667
+ }
668
+ if (requestParameters['mimeType'] != null) {
669
+ queryParameters['mimeType'] = requestParameters['mimeType'];
670
+ }
671
+ if (requestParameters['page'] != null) {
672
+ queryParameters['page'] = requestParameters['page'];
673
+ }
674
+ if (requestParameters['limit'] != null) {
675
+ queryParameters['limit'] = requestParameters['limit'];
676
+ }
677
+ const headerParameters = {};
678
+ if (this.configuration && this.configuration.apiKey) {
679
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
680
+ }
681
+ const response = await this.request({
682
+ path: `/projects/{projectId}/artifacts`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
683
+ method: 'GET',
684
+ headers: headerParameters,
685
+ query: queryParameters,
686
+ }, initOverrides);
687
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
688
+ }
689
+ /**
690
+ * Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
691
+ * List the artifacts of a workspace
692
+ */
693
+ async listProjectArtifacts(projectId, search, mimeType, page, limit, initOverrides) {
694
+ const response = await this.listProjectArtifactsRaw({ projectId: projectId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
695
+ return await response.value();
696
+ }
571
697
  /**
572
698
  * Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
573
699
  * List the tickets of a project
@@ -0,0 +1,56 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 ArtifactLibraryItemAllOfProjectUio
16
+ */
17
+ export interface ArtifactLibraryItemAllOfProjectUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ArtifactLibraryItemAllOfProjectUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ArtifactLibraryItemAllOfProjectUio
28
+ */
29
+ key: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ArtifactLibraryItemAllOfProjectUio
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ArtifactLibraryItemAllOfProjectUio
40
+ */
41
+ color: string | null;
42
+ /**
43
+ * L'espace personnel de l'appelant
44
+ * @type {boolean}
45
+ * @memberof ArtifactLibraryItemAllOfProjectUio
46
+ */
47
+ personal: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the ArtifactLibraryItemAllOfProjectUio interface.
51
+ */
52
+ export declare function instanceOfArtifactLibraryItemAllOfProjectUio(value: object): value is ArtifactLibraryItemAllOfProjectUio;
53
+ export declare function ArtifactLibraryItemAllOfProjectUioFromJSON(json: any): ArtifactLibraryItemAllOfProjectUio;
54
+ export declare function ArtifactLibraryItemAllOfProjectUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLibraryItemAllOfProjectUio;
55
+ export declare function ArtifactLibraryItemAllOfProjectUioToJSON(json: any): ArtifactLibraryItemAllOfProjectUio;
56
+ export declare function ArtifactLibraryItemAllOfProjectUioToJSONTyped(value?: ArtifactLibraryItemAllOfProjectUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfArtifactLibraryItemAllOfProjectUio = instanceOfArtifactLibraryItemAllOfProjectUio;
17
+ exports.ArtifactLibraryItemAllOfProjectUioFromJSON = ArtifactLibraryItemAllOfProjectUioFromJSON;
18
+ exports.ArtifactLibraryItemAllOfProjectUioFromJSONTyped = ArtifactLibraryItemAllOfProjectUioFromJSONTyped;
19
+ exports.ArtifactLibraryItemAllOfProjectUioToJSON = ArtifactLibraryItemAllOfProjectUioToJSON;
20
+ exports.ArtifactLibraryItemAllOfProjectUioToJSONTyped = ArtifactLibraryItemAllOfProjectUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ArtifactLibraryItemAllOfProjectUio interface.
23
+ */
24
+ function instanceOfArtifactLibraryItemAllOfProjectUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('key' in value) || value['key'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('color' in value) || value['color'] === undefined)
32
+ return false;
33
+ if (!('personal' in value) || value['personal'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ArtifactLibraryItemAllOfProjectUioFromJSON(json) {
38
+ return ArtifactLibraryItemAllOfProjectUioFromJSONTyped(json, false);
39
+ }
40
+ function ArtifactLibraryItemAllOfProjectUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'key': json['key'],
47
+ 'name': json['name'],
48
+ 'color': json['color'],
49
+ 'personal': json['personal'],
50
+ };
51
+ }
52
+ function ArtifactLibraryItemAllOfProjectUioToJSON(json) {
53
+ return ArtifactLibraryItemAllOfProjectUioToJSONTyped(json, false);
54
+ }
55
+ function ArtifactLibraryItemAllOfProjectUioToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'key': value['key'],
62
+ 'name': value['name'],
63
+ 'color': value['color'],
64
+ 'personal': value['personal'],
65
+ };
66
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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
+ import type { TicketStatusUio } from './TicketStatusUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ArtifactLibraryItemAllOfTicketUio
17
+ */
18
+ export interface ArtifactLibraryItemAllOfTicketUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ArtifactLibraryItemAllOfTicketUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ArtifactLibraryItemAllOfTicketUio
29
+ */
30
+ key: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ArtifactLibraryItemAllOfTicketUio
35
+ */
36
+ title: string;
37
+ /**
38
+ *
39
+ * @type {TicketStatusUio}
40
+ * @memberof ArtifactLibraryItemAllOfTicketUio
41
+ */
42
+ status: TicketStatusUio;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ArtifactLibraryItemAllOfTicketUio interface.
46
+ */
47
+ export declare function instanceOfArtifactLibraryItemAllOfTicketUio(value: object): value is ArtifactLibraryItemAllOfTicketUio;
48
+ export declare function ArtifactLibraryItemAllOfTicketUioFromJSON(json: any): ArtifactLibraryItemAllOfTicketUio;
49
+ export declare function ArtifactLibraryItemAllOfTicketUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLibraryItemAllOfTicketUio;
50
+ export declare function ArtifactLibraryItemAllOfTicketUioToJSON(json: any): ArtifactLibraryItemAllOfTicketUio;
51
+ export declare function ArtifactLibraryItemAllOfTicketUioToJSONTyped(value?: ArtifactLibraryItemAllOfTicketUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfArtifactLibraryItemAllOfTicketUio = instanceOfArtifactLibraryItemAllOfTicketUio;
17
+ exports.ArtifactLibraryItemAllOfTicketUioFromJSON = ArtifactLibraryItemAllOfTicketUioFromJSON;
18
+ exports.ArtifactLibraryItemAllOfTicketUioFromJSONTyped = ArtifactLibraryItemAllOfTicketUioFromJSONTyped;
19
+ exports.ArtifactLibraryItemAllOfTicketUioToJSON = ArtifactLibraryItemAllOfTicketUioToJSON;
20
+ exports.ArtifactLibraryItemAllOfTicketUioToJSONTyped = ArtifactLibraryItemAllOfTicketUioToJSONTyped;
21
+ const TicketStatusUio_1 = require("./TicketStatusUio");
22
+ /**
23
+ * Check if a given object implements the ArtifactLibraryItemAllOfTicketUio interface.
24
+ */
25
+ function instanceOfArtifactLibraryItemAllOfTicketUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('key' in value) || value['key'] === undefined)
29
+ return false;
30
+ if (!('title' in value) || value['title'] === undefined)
31
+ return false;
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ArtifactLibraryItemAllOfTicketUioFromJSON(json) {
37
+ return ArtifactLibraryItemAllOfTicketUioFromJSONTyped(json, false);
38
+ }
39
+ function ArtifactLibraryItemAllOfTicketUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'key': json['key'],
46
+ 'title': json['title'],
47
+ 'status': (0, TicketStatusUio_1.TicketStatusUioFromJSON)(json['status']),
48
+ };
49
+ }
50
+ function ArtifactLibraryItemAllOfTicketUioToJSON(json) {
51
+ return ArtifactLibraryItemAllOfTicketUioToJSONTyped(json, false);
52
+ }
53
+ function ArtifactLibraryItemAllOfTicketUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'key': value['key'],
60
+ 'title': value['title'],
61
+ 'status': (0, TicketStatusUio_1.TicketStatusUioToJSON)(value['status']),
62
+ };
63
+ }
@@ -0,0 +1,103 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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
+ import type { ActorRefUio } from './ActorRefUio';
13
+ import type { ArtifactLibraryItemAllOfProjectUio } from './ArtifactLibraryItemAllOfProjectUio';
14
+ import type { TicketArtifactSourceUio } from './TicketArtifactSourceUio';
15
+ import type { TicketArtifactStatusUio } from './TicketArtifactStatusUio';
16
+ import type { ArtifactLibraryItemAllOfTicketUio } from './ArtifactLibraryItemAllOfTicketUio';
17
+ /**
18
+ * Un artefact de la bibliothèque, avec de quoi afficher son ticket et son espace de travail.
19
+ * @export
20
+ * @interface ArtifactLibraryItemUio
21
+ */
22
+ export interface ArtifactLibraryItemUio {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof ArtifactLibraryItemUio
27
+ */
28
+ id: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ArtifactLibraryItemUio
33
+ */
34
+ ticketId: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ArtifactLibraryItemUio
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ArtifactLibraryItemUio
45
+ */
46
+ mimeType: string;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof ArtifactLibraryItemUio
51
+ */
52
+ size: number | null;
53
+ /**
54
+ *
55
+ * @type {TicketArtifactSourceUio}
56
+ * @memberof ArtifactLibraryItemUio
57
+ */
58
+ source: TicketArtifactSourceUio;
59
+ /**
60
+ *
61
+ * @type {TicketArtifactStatusUio}
62
+ * @memberof ArtifactLibraryItemUio
63
+ */
64
+ status: TicketArtifactStatusUio;
65
+ /**
66
+ *
67
+ * @type {ActorRefUio}
68
+ * @memberof ArtifactLibraryItemUio
69
+ */
70
+ addedBy: ActorRefUio;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof ArtifactLibraryItemUio
75
+ */
76
+ createdAt: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof ArtifactLibraryItemUio
81
+ */
82
+ projectId: string;
83
+ /**
84
+ *
85
+ * @type {ArtifactLibraryItemAllOfTicketUio}
86
+ * @memberof ArtifactLibraryItemUio
87
+ */
88
+ ticket: ArtifactLibraryItemAllOfTicketUio;
89
+ /**
90
+ *
91
+ * @type {ArtifactLibraryItemAllOfProjectUio}
92
+ * @memberof ArtifactLibraryItemUio
93
+ */
94
+ project: ArtifactLibraryItemAllOfProjectUio;
95
+ }
96
+ /**
97
+ * Check if a given object implements the ArtifactLibraryItemUio interface.
98
+ */
99
+ export declare function instanceOfArtifactLibraryItemUio(value: object): value is ArtifactLibraryItemUio;
100
+ export declare function ArtifactLibraryItemUioFromJSON(json: any): ArtifactLibraryItemUio;
101
+ export declare function ArtifactLibraryItemUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLibraryItemUio;
102
+ export declare function ArtifactLibraryItemUioToJSON(json: any): ArtifactLibraryItemUio;
103
+ export declare function ArtifactLibraryItemUioToJSONTyped(value?: ArtifactLibraryItemUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfArtifactLibraryItemUio = instanceOfArtifactLibraryItemUio;
17
+ exports.ArtifactLibraryItemUioFromJSON = ArtifactLibraryItemUioFromJSON;
18
+ exports.ArtifactLibraryItemUioFromJSONTyped = ArtifactLibraryItemUioFromJSONTyped;
19
+ exports.ArtifactLibraryItemUioToJSON = ArtifactLibraryItemUioToJSON;
20
+ exports.ArtifactLibraryItemUioToJSONTyped = ArtifactLibraryItemUioToJSONTyped;
21
+ const ActorRefUio_1 = require("./ActorRefUio");
22
+ const ArtifactLibraryItemAllOfProjectUio_1 = require("./ArtifactLibraryItemAllOfProjectUio");
23
+ const TicketArtifactSourceUio_1 = require("./TicketArtifactSourceUio");
24
+ const TicketArtifactStatusUio_1 = require("./TicketArtifactStatusUio");
25
+ const ArtifactLibraryItemAllOfTicketUio_1 = require("./ArtifactLibraryItemAllOfTicketUio");
26
+ /**
27
+ * Check if a given object implements the ArtifactLibraryItemUio interface.
28
+ */
29
+ function instanceOfArtifactLibraryItemUio(value) {
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('ticketId' in value) || value['ticketId'] === undefined)
33
+ return false;
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
36
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
37
+ return false;
38
+ if (!('size' in value) || value['size'] === undefined)
39
+ return false;
40
+ if (!('source' in value) || value['source'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ if (!('addedBy' in value) || value['addedBy'] === undefined)
45
+ return false;
46
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
47
+ return false;
48
+ if (!('projectId' in value) || value['projectId'] === undefined)
49
+ return false;
50
+ if (!('ticket' in value) || value['ticket'] === undefined)
51
+ return false;
52
+ if (!('project' in value) || value['project'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function ArtifactLibraryItemUioFromJSON(json) {
57
+ return ArtifactLibraryItemUioFromJSONTyped(json, false);
58
+ }
59
+ function ArtifactLibraryItemUioFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'id': json['id'],
65
+ 'ticketId': json['ticketId'],
66
+ 'name': json['name'],
67
+ 'mimeType': json['mimeType'],
68
+ 'size': json['size'],
69
+ 'source': (0, TicketArtifactSourceUio_1.TicketArtifactSourceUioFromJSON)(json['source']),
70
+ 'status': (0, TicketArtifactStatusUio_1.TicketArtifactStatusUioFromJSON)(json['status']),
71
+ 'addedBy': (0, ActorRefUio_1.ActorRefUioFromJSON)(json['addedBy']),
72
+ 'createdAt': json['createdAt'],
73
+ 'projectId': json['projectId'],
74
+ 'ticket': (0, ArtifactLibraryItemAllOfTicketUio_1.ArtifactLibraryItemAllOfTicketUioFromJSON)(json['ticket']),
75
+ 'project': (0, ArtifactLibraryItemAllOfProjectUio_1.ArtifactLibraryItemAllOfProjectUioFromJSON)(json['project']),
76
+ };
77
+ }
78
+ function ArtifactLibraryItemUioToJSON(json) {
79
+ return ArtifactLibraryItemUioToJSONTyped(json, false);
80
+ }
81
+ function ArtifactLibraryItemUioToJSONTyped(value, ignoreDiscriminator = false) {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+ return {
86
+ 'id': value['id'],
87
+ 'ticketId': value['ticketId'],
88
+ 'name': value['name'],
89
+ 'mimeType': value['mimeType'],
90
+ 'size': value['size'],
91
+ 'source': (0, TicketArtifactSourceUio_1.TicketArtifactSourceUioToJSON)(value['source']),
92
+ 'status': (0, TicketArtifactStatusUio_1.TicketArtifactStatusUioToJSON)(value['status']),
93
+ 'addedBy': (0, ActorRefUio_1.ActorRefUioToJSON)(value['addedBy']),
94
+ 'createdAt': value['createdAt'],
95
+ 'projectId': value['projectId'],
96
+ 'ticket': (0, ArtifactLibraryItemAllOfTicketUio_1.ArtifactLibraryItemAllOfTicketUioToJSON)(value['ticket']),
97
+ 'project': (0, ArtifactLibraryItemAllOfProjectUio_1.ArtifactLibraryItemAllOfProjectUioToJSON)(value['project']),
98
+ };
99
+ }