@breign/client 1.0.164 → 1.0.166

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 (137) hide show
  1. package/dist/apis/InboxApi.d.ts +61 -0
  2. package/dist/apis/InboxApi.js +156 -0
  3. package/dist/apis/KnowledgeApi.d.ts +43 -1
  4. package/dist/apis/KnowledgeApi.js +104 -0
  5. package/dist/apis/ProjectsApi.d.ts +113 -0
  6. package/dist/apis/ProjectsApi.js +278 -0
  7. package/dist/apis/TicketsApi.d.ts +288 -0
  8. package/dist/apis/TicketsApi.js +690 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/models/AcceptTicketProposalRequestUio.d.ts +72 -0
  12. package/dist/models/AcceptTicketProposalRequestUio.js +64 -0
  13. package/dist/models/ActorRefUio.d.ts +39 -0
  14. package/dist/models/ActorRefUio.js +55 -0
  15. package/dist/models/ActorTypeUio.d.ts +26 -0
  16. package/dist/models/ActorTypeUio.js +52 -0
  17. package/dist/models/AddKnowledgeSiteExclusionRequestUio.d.ts +32 -0
  18. package/dist/models/AddKnowledgeSiteExclusionRequestUio.js +50 -0
  19. package/dist/models/AddKnowledgeSiteExclusionResponseUio.d.ts +44 -0
  20. package/dist/models/AddKnowledgeSiteExclusionResponseUio.js +58 -0
  21. package/dist/models/AgentTicketActivityUio.d.ts +69 -0
  22. package/dist/models/AgentTicketActivityUio.js +75 -0
  23. package/dist/models/AgentTicketCreationUio.d.ts +25 -0
  24. package/dist/models/AgentTicketCreationUio.js +51 -0
  25. package/dist/models/ChatMessageUio.d.ts +7 -0
  26. package/dist/models/ChatMessageUio.js +3 -0
  27. package/dist/models/ConversationTicketProposalUio.d.ts +71 -0
  28. package/dist/models/ConversationTicketProposalUio.js +77 -0
  29. package/dist/models/CreateProjectRequestUio.d.ts +70 -0
  30. package/dist/models/CreateProjectRequestUio.js +66 -0
  31. package/dist/models/CreateTicketArtifactRequestUio.d.ts +44 -0
  32. package/dist/models/CreateTicketArtifactRequestUio.js +56 -0
  33. package/dist/models/CreateTicketArtifactResponseUio.d.ts +40 -0
  34. package/dist/models/CreateTicketArtifactResponseUio.js +56 -0
  35. package/dist/models/CreateTicketEventRequestUio.d.ts +38 -0
  36. package/dist/models/CreateTicketEventRequestUio.js +52 -0
  37. package/dist/models/CreateTicketRequestUio.d.ts +85 -0
  38. package/dist/models/CreateTicketRequestUio.js +71 -0
  39. package/dist/models/FileCreationResponseUio.d.ts +7 -0
  40. package/dist/models/FileCreationResponseUio.js +2 -0
  41. package/dist/models/FileUio.d.ts +7 -0
  42. package/dist/models/FileUio.js +2 -0
  43. package/dist/models/FileWithDownloadUrlUio.d.ts +7 -0
  44. package/dist/models/FileWithDownloadUrlUio.js +2 -0
  45. package/dist/models/InboxCountUio.d.ts +38 -0
  46. package/dist/models/InboxCountUio.js +54 -0
  47. package/dist/models/InboxItemKindUio.d.ts +28 -0
  48. package/dist/models/InboxItemKindUio.js +54 -0
  49. package/dist/models/InboxItemProjectUio.d.ts +44 -0
  50. package/dist/models/InboxItemProjectUio.js +58 -0
  51. package/dist/models/InboxItemStatusUio.d.ts +25 -0
  52. package/dist/models/InboxItemStatusUio.js +51 -0
  53. package/dist/models/InboxItemTicketUio.d.ts +44 -0
  54. package/dist/models/InboxItemTicketUio.js +58 -0
  55. package/dist/models/InboxItemUio.d.ts +107 -0
  56. package/dist/models/InboxItemUio.js +99 -0
  57. package/dist/models/InboxTabUio.d.ts +26 -0
  58. package/dist/models/InboxTabUio.js +52 -0
  59. package/dist/models/KnowledgeFileUio.d.ts +7 -0
  60. package/dist/models/KnowledgeFileUio.js +2 -0
  61. package/dist/models/KnowledgeSiteExclusionsUio.d.ts +32 -0
  62. package/dist/models/KnowledgeSiteExclusionsUio.js +50 -0
  63. package/dist/models/KnowledgeSitePagesRemovalUio.d.ts +38 -0
  64. package/dist/models/KnowledgeSitePagesRemovalUio.js +54 -0
  65. package/dist/models/MemberRefUio.d.ts +39 -0
  66. package/dist/models/MemberRefUio.js +55 -0
  67. package/dist/models/MemberTypeUio.d.ts +25 -0
  68. package/dist/models/MemberTypeUio.js +51 -0
  69. package/dist/models/ProjectActivityUio.d.ts +51 -0
  70. package/dist/models/ProjectActivityUio.js +63 -0
  71. package/dist/models/ProjectAttentionUio.d.ts +50 -0
  72. package/dist/models/ProjectAttentionUio.js +62 -0
  73. package/dist/models/ProjectCountsUio.d.ts +68 -0
  74. package/dist/models/ProjectCountsUio.js +74 -0
  75. package/dist/models/ProjectMemberRoleUio.d.ts +25 -0
  76. package/dist/models/ProjectMemberRoleUio.js +51 -0
  77. package/dist/models/ProjectMemberUio.d.ts +53 -0
  78. package/dist/models/ProjectMemberUio.js +63 -0
  79. package/dist/models/ProjectOverviewUio.d.ts +68 -0
  80. package/dist/models/ProjectOverviewUio.js +76 -0
  81. package/dist/models/ProjectSettingsUio.d.ts +40 -0
  82. package/dist/models/ProjectSettingsUio.js +56 -0
  83. package/dist/models/ProjectSummaryUio.d.ts +128 -0
  84. package/dist/models/ProjectSummaryUio.js +116 -0
  85. package/dist/models/ProjectUio.d.ts +100 -0
  86. package/dist/models/ProjectUio.js +96 -0
  87. package/dist/models/SetProjectMembersRequestUio.d.ts +33 -0
  88. package/dist/models/SetProjectMembersRequestUio.js +51 -0
  89. package/dist/models/SetTicketAssigneesRequestUio.d.ts +40 -0
  90. package/dist/models/SetTicketAssigneesRequestUio.js +54 -0
  91. package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +1 -0
  92. package/dist/models/TicketArtifactDownloadUrlUio.d.ts +32 -0
  93. package/dist/models/TicketArtifactDownloadUrlUio.js +50 -0
  94. package/dist/models/TicketArtifactSourceUio.d.ts +25 -0
  95. package/dist/models/TicketArtifactSourceUio.js +51 -0
  96. package/dist/models/TicketArtifactStatusUio.d.ts +25 -0
  97. package/dist/models/TicketArtifactStatusUio.js +51 -0
  98. package/dist/models/TicketArtifactUio.d.ts +83 -0
  99. package/dist/models/TicketArtifactUio.js +85 -0
  100. package/dist/models/TicketAssigneeInputUio.d.ts +39 -0
  101. package/dist/models/TicketAssigneeInputUio.js +55 -0
  102. package/dist/models/TicketAssigneeStateUio.d.ts +29 -0
  103. package/dist/models/TicketAssigneeStateUio.js +55 -0
  104. package/dist/models/TicketAssigneeUio.d.ts +58 -0
  105. package/dist/models/TicketAssigneeUio.js +68 -0
  106. package/dist/models/TicketBoardColumnUio.d.ts +46 -0
  107. package/dist/models/TicketBoardColumnUio.js +60 -0
  108. package/dist/models/TicketBoardUio.d.ts +33 -0
  109. package/dist/models/TicketBoardUio.js +51 -0
  110. package/dist/models/TicketEventKindUio.d.ts +27 -0
  111. package/dist/models/TicketEventKindUio.js +53 -0
  112. package/dist/models/TicketEventUio.d.ts +78 -0
  113. package/dist/models/TicketEventUio.js +80 -0
  114. package/dist/models/TicketPriorityUio.d.ts +26 -0
  115. package/dist/models/TicketPriorityUio.js +52 -0
  116. package/dist/models/TicketProposalPayloadUio.d.ts +72 -0
  117. package/dist/models/TicketProposalPayloadUio.js +78 -0
  118. package/dist/models/TicketProposalStatusUio.d.ts +27 -0
  119. package/dist/models/TicketProposalStatusUio.js +53 -0
  120. package/dist/models/TicketReviewDecisionUio.d.ts +25 -0
  121. package/dist/models/TicketReviewDecisionUio.js +51 -0
  122. package/dist/models/TicketReviewRequestUio.d.ts +39 -0
  123. package/dist/models/TicketReviewRequestUio.js +53 -0
  124. package/dist/models/TicketStartModeUio.d.ts +25 -0
  125. package/dist/models/TicketStartModeUio.js +51 -0
  126. package/dist/models/TicketStatusUio.d.ts +28 -0
  127. package/dist/models/TicketStatusUio.js +54 -0
  128. package/dist/models/TicketUio.d.ts +163 -0
  129. package/dist/models/TicketUio.js +139 -0
  130. package/dist/models/UpdateProjectRequestUio.d.ts +63 -0
  131. package/dist/models/UpdateProjectRequestUio.js +59 -0
  132. package/dist/models/UpdateTicketRequestUio.d.ts +77 -0
  133. package/dist/models/UpdateTicketRequestUio.js +65 -0
  134. package/dist/models/index.d.ts +56 -0
  135. package/dist/models/index.js +56 -0
  136. package/dist/openapi.json +4942 -2075
  137. package/package.json +1 -1
@@ -0,0 +1,53 @@
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.instanceOfTicketReviewRequestUio = instanceOfTicketReviewRequestUio;
17
+ exports.TicketReviewRequestUioFromJSON = TicketReviewRequestUioFromJSON;
18
+ exports.TicketReviewRequestUioFromJSONTyped = TicketReviewRequestUioFromJSONTyped;
19
+ exports.TicketReviewRequestUioToJSON = TicketReviewRequestUioToJSON;
20
+ exports.TicketReviewRequestUioToJSONTyped = TicketReviewRequestUioToJSONTyped;
21
+ const TicketReviewDecisionUio_1 = require("./TicketReviewDecisionUio");
22
+ /**
23
+ * Check if a given object implements the TicketReviewRequestUio interface.
24
+ */
25
+ function instanceOfTicketReviewRequestUio(value) {
26
+ if (!('decision' in value) || value['decision'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function TicketReviewRequestUioFromJSON(json) {
31
+ return TicketReviewRequestUioFromJSONTyped(json, false);
32
+ }
33
+ function TicketReviewRequestUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'decision': (0, TicketReviewDecisionUio_1.TicketReviewDecisionUioFromJSON)(json['decision']),
39
+ 'comment': json['comment'] == null ? undefined : json['comment'],
40
+ };
41
+ }
42
+ function TicketReviewRequestUioToJSON(json) {
43
+ return TicketReviewRequestUioToJSONTyped(json, false);
44
+ }
45
+ function TicketReviewRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'decision': (0, TicketReviewDecisionUio_1.TicketReviewDecisionUioToJSON)(value['decision']),
51
+ 'comment': value['comment'],
52
+ };
53
+ }
@@ -0,0 +1,25 @@
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
+ * now = les agents assignés commencent dès l'assignation ; hold = ils attendent le feu vert d'un humain.
14
+ * @export
15
+ */
16
+ export declare const TicketStartModeUio: {
17
+ readonly Now: "now";
18
+ readonly Hold: "hold";
19
+ };
20
+ export type TicketStartModeUio = typeof TicketStartModeUio[keyof typeof TicketStartModeUio];
21
+ export declare function instanceOfTicketStartModeUio(value: any): boolean;
22
+ export declare function TicketStartModeUioFromJSON(json: any): TicketStartModeUio;
23
+ export declare function TicketStartModeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketStartModeUio;
24
+ export declare function TicketStartModeUioToJSON(value?: TicketStartModeUio | null): any;
25
+ export declare function TicketStartModeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): TicketStartModeUio;
@@ -0,0 +1,51 @@
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.TicketStartModeUio = void 0;
17
+ exports.instanceOfTicketStartModeUio = instanceOfTicketStartModeUio;
18
+ exports.TicketStartModeUioFromJSON = TicketStartModeUioFromJSON;
19
+ exports.TicketStartModeUioFromJSONTyped = TicketStartModeUioFromJSONTyped;
20
+ exports.TicketStartModeUioToJSON = TicketStartModeUioToJSON;
21
+ exports.TicketStartModeUioToJSONTyped = TicketStartModeUioToJSONTyped;
22
+ /**
23
+ * now = les agents assignés commencent dès l'assignation ; hold = ils attendent le feu vert d'un humain.
24
+ * @export
25
+ */
26
+ exports.TicketStartModeUio = {
27
+ Now: 'now',
28
+ Hold: 'hold'
29
+ };
30
+ function instanceOfTicketStartModeUio(value) {
31
+ for (const key in exports.TicketStartModeUio) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.TicketStartModeUio, key)) {
33
+ if (exports.TicketStartModeUio[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function TicketStartModeUioFromJSON(json) {
41
+ return TicketStartModeUioFromJSONTyped(json, false);
42
+ }
43
+ function TicketStartModeUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function TicketStartModeUioToJSON(value) {
47
+ return value;
48
+ }
49
+ function TicketStartModeUioToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,28 @@
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
+ * Colonne du ticket sur le board.
14
+ * @export
15
+ */
16
+ export declare const TicketStatusUio: {
17
+ readonly Backlog: "backlog";
18
+ readonly Todo: "todo";
19
+ readonly Doing: "doing";
20
+ readonly Review: "review";
21
+ readonly Done: "done";
22
+ };
23
+ export type TicketStatusUio = typeof TicketStatusUio[keyof typeof TicketStatusUio];
24
+ export declare function instanceOfTicketStatusUio(value: any): boolean;
25
+ export declare function TicketStatusUioFromJSON(json: any): TicketStatusUio;
26
+ export declare function TicketStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketStatusUio;
27
+ export declare function TicketStatusUioToJSON(value?: TicketStatusUio | null): any;
28
+ export declare function TicketStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): TicketStatusUio;
@@ -0,0 +1,54 @@
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.TicketStatusUio = void 0;
17
+ exports.instanceOfTicketStatusUio = instanceOfTicketStatusUio;
18
+ exports.TicketStatusUioFromJSON = TicketStatusUioFromJSON;
19
+ exports.TicketStatusUioFromJSONTyped = TicketStatusUioFromJSONTyped;
20
+ exports.TicketStatusUioToJSON = TicketStatusUioToJSON;
21
+ exports.TicketStatusUioToJSONTyped = TicketStatusUioToJSONTyped;
22
+ /**
23
+ * Colonne du ticket sur le board.
24
+ * @export
25
+ */
26
+ exports.TicketStatusUio = {
27
+ Backlog: 'backlog',
28
+ Todo: 'todo',
29
+ Doing: 'doing',
30
+ Review: 'review',
31
+ Done: 'done'
32
+ };
33
+ function instanceOfTicketStatusUio(value) {
34
+ for (const key in exports.TicketStatusUio) {
35
+ if (Object.prototype.hasOwnProperty.call(exports.TicketStatusUio, key)) {
36
+ if (exports.TicketStatusUio[key] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ function TicketStatusUioFromJSON(json) {
44
+ return TicketStatusUioFromJSONTyped(json, false);
45
+ }
46
+ function TicketStatusUioFromJSONTyped(json, ignoreDiscriminator) {
47
+ return json;
48
+ }
49
+ function TicketStatusUioToJSON(value) {
50
+ return value;
51
+ }
52
+ function TicketStatusUioToJSONTyped(value, ignoreDiscriminator) {
53
+ return value;
54
+ }
@@ -0,0 +1,163 @@
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 { TicketPriorityUio } from './TicketPriorityUio';
14
+ import type { MemberRefUio } from './MemberRefUio';
15
+ import type { TicketAssigneeUio } from './TicketAssigneeUio';
16
+ import type { TicketStatusUio } from './TicketStatusUio';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface TicketUio
21
+ */
22
+ export interface TicketUio {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof TicketUio
27
+ */
28
+ id: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof TicketUio
33
+ */
34
+ organizationId: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TicketUio
39
+ */
40
+ projectId: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof TicketUio
45
+ */
46
+ number: number;
47
+ /**
48
+ * Clé du projet suivie du numéro (BRN-142)
49
+ * @type {string}
50
+ * @memberof TicketUio
51
+ */
52
+ key: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof TicketUio
57
+ */
58
+ title: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof TicketUio
63
+ */
64
+ description: string | null;
65
+ /**
66
+ *
67
+ * @type {TicketStatusUio}
68
+ * @memberof TicketUio
69
+ */
70
+ status: TicketStatusUio;
71
+ /**
72
+ *
73
+ * @type {TicketPriorityUio}
74
+ * @memberof TicketUio
75
+ */
76
+ priority: TicketPriorityUio;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof TicketUio
81
+ */
82
+ labels: Array<string>;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof TicketUio
87
+ */
88
+ dueDate: string | null;
89
+ /**
90
+ * Relecteur optionnel ; avec lui, le ticket passe par review avant done
91
+ * @type {MemberRefUio}
92
+ * @memberof TicketUio
93
+ */
94
+ reviewer: MemberRefUio | null;
95
+ /**
96
+ *
97
+ * @type {ActorRefUio}
98
+ * @memberof TicketUio
99
+ */
100
+ createdBy: ActorRefUio;
101
+ /**
102
+ * Conversation dont le ticket est issu (proposition d'agent)
103
+ * @type {string}
104
+ * @memberof TicketUio
105
+ */
106
+ sourceConversationId: string | null;
107
+ /**
108
+ * Ordre dans la colonne, croissant
109
+ * @type {number}
110
+ * @memberof TicketUio
111
+ */
112
+ position: number;
113
+ /**
114
+ *
115
+ * @type {Array<TicketAssigneeUio>}
116
+ * @memberof TicketUio
117
+ */
118
+ assignees: Array<TicketAssigneeUio>;
119
+ /**
120
+ *
121
+ * @type {number}
122
+ * @memberof TicketUio
123
+ */
124
+ commentCount: number;
125
+ /**
126
+ *
127
+ * @type {number}
128
+ * @memberof TicketUio
129
+ */
130
+ artifactCount: number;
131
+ /**
132
+ * Questions, relectures et feux verts en attente sur ce ticket, tous humains confondus
133
+ * @type {number}
134
+ * @memberof TicketUio
135
+ */
136
+ pendingHumanActions: number;
137
+ /**
138
+ *
139
+ * @type {string}
140
+ * @memberof TicketUio
141
+ */
142
+ doneAt: string | null;
143
+ /**
144
+ *
145
+ * @type {string}
146
+ * @memberof TicketUio
147
+ */
148
+ createdAt: string;
149
+ /**
150
+ *
151
+ * @type {string}
152
+ * @memberof TicketUio
153
+ */
154
+ updatedAt: string;
155
+ }
156
+ /**
157
+ * Check if a given object implements the TicketUio interface.
158
+ */
159
+ export declare function instanceOfTicketUio(value: object): value is TicketUio;
160
+ export declare function TicketUioFromJSON(json: any): TicketUio;
161
+ export declare function TicketUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketUio;
162
+ export declare function TicketUioToJSON(json: any): TicketUio;
163
+ export declare function TicketUioToJSONTyped(value?: TicketUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,139 @@
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.instanceOfTicketUio = instanceOfTicketUio;
17
+ exports.TicketUioFromJSON = TicketUioFromJSON;
18
+ exports.TicketUioFromJSONTyped = TicketUioFromJSONTyped;
19
+ exports.TicketUioToJSON = TicketUioToJSON;
20
+ exports.TicketUioToJSONTyped = TicketUioToJSONTyped;
21
+ const ActorRefUio_1 = require("./ActorRefUio");
22
+ const TicketPriorityUio_1 = require("./TicketPriorityUio");
23
+ const MemberRefUio_1 = require("./MemberRefUio");
24
+ const TicketAssigneeUio_1 = require("./TicketAssigneeUio");
25
+ const TicketStatusUio_1 = require("./TicketStatusUio");
26
+ /**
27
+ * Check if a given object implements the TicketUio interface.
28
+ */
29
+ function instanceOfTicketUio(value) {
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
33
+ return false;
34
+ if (!('projectId' in value) || value['projectId'] === undefined)
35
+ return false;
36
+ if (!('number' in value) || value['number'] === undefined)
37
+ return false;
38
+ if (!('key' in value) || value['key'] === undefined)
39
+ return false;
40
+ if (!('title' in value) || value['title'] === undefined)
41
+ return false;
42
+ if (!('description' in value) || value['description'] === undefined)
43
+ return false;
44
+ if (!('status' in value) || value['status'] === undefined)
45
+ return false;
46
+ if (!('priority' in value) || value['priority'] === undefined)
47
+ return false;
48
+ if (!('labels' in value) || value['labels'] === undefined)
49
+ return false;
50
+ if (!('dueDate' in value) || value['dueDate'] === undefined)
51
+ return false;
52
+ if (!('reviewer' in value) || value['reviewer'] === undefined)
53
+ return false;
54
+ if (!('createdBy' in value) || value['createdBy'] === undefined)
55
+ return false;
56
+ if (!('sourceConversationId' in value) || value['sourceConversationId'] === undefined)
57
+ return false;
58
+ if (!('position' in value) || value['position'] === undefined)
59
+ return false;
60
+ if (!('assignees' in value) || value['assignees'] === undefined)
61
+ return false;
62
+ if (!('commentCount' in value) || value['commentCount'] === undefined)
63
+ return false;
64
+ if (!('artifactCount' in value) || value['artifactCount'] === undefined)
65
+ return false;
66
+ if (!('pendingHumanActions' in value) || value['pendingHumanActions'] === undefined)
67
+ return false;
68
+ if (!('doneAt' in value) || value['doneAt'] === undefined)
69
+ return false;
70
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
71
+ return false;
72
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
73
+ return false;
74
+ return true;
75
+ }
76
+ function TicketUioFromJSON(json) {
77
+ return TicketUioFromJSONTyped(json, false);
78
+ }
79
+ function TicketUioFromJSONTyped(json, ignoreDiscriminator) {
80
+ if (json == null) {
81
+ return json;
82
+ }
83
+ return {
84
+ 'id': json['id'],
85
+ 'organizationId': json['organizationId'],
86
+ 'projectId': json['projectId'],
87
+ 'number': json['number'],
88
+ 'key': json['key'],
89
+ 'title': json['title'],
90
+ 'description': json['description'],
91
+ 'status': (0, TicketStatusUio_1.TicketStatusUioFromJSON)(json['status']),
92
+ 'priority': (0, TicketPriorityUio_1.TicketPriorityUioFromJSON)(json['priority']),
93
+ 'labels': json['labels'],
94
+ 'dueDate': json['dueDate'],
95
+ 'reviewer': (0, MemberRefUio_1.MemberRefUioFromJSON)(json['reviewer']),
96
+ 'createdBy': (0, ActorRefUio_1.ActorRefUioFromJSON)(json['createdBy']),
97
+ 'sourceConversationId': json['sourceConversationId'],
98
+ 'position': json['position'],
99
+ 'assignees': (json['assignees'].map(TicketAssigneeUio_1.TicketAssigneeUioFromJSON)),
100
+ 'commentCount': json['commentCount'],
101
+ 'artifactCount': json['artifactCount'],
102
+ 'pendingHumanActions': json['pendingHumanActions'],
103
+ 'doneAt': json['doneAt'],
104
+ 'createdAt': json['createdAt'],
105
+ 'updatedAt': json['updatedAt'],
106
+ };
107
+ }
108
+ function TicketUioToJSON(json) {
109
+ return TicketUioToJSONTyped(json, false);
110
+ }
111
+ function TicketUioToJSONTyped(value, ignoreDiscriminator = false) {
112
+ if (value == null) {
113
+ return value;
114
+ }
115
+ return {
116
+ 'id': value['id'],
117
+ 'organizationId': value['organizationId'],
118
+ 'projectId': value['projectId'],
119
+ 'number': value['number'],
120
+ 'key': value['key'],
121
+ 'title': value['title'],
122
+ 'description': value['description'],
123
+ 'status': (0, TicketStatusUio_1.TicketStatusUioToJSON)(value['status']),
124
+ 'priority': (0, TicketPriorityUio_1.TicketPriorityUioToJSON)(value['priority']),
125
+ 'labels': value['labels'],
126
+ 'dueDate': value['dueDate'],
127
+ 'reviewer': (0, MemberRefUio_1.MemberRefUioToJSON)(value['reviewer']),
128
+ 'createdBy': (0, ActorRefUio_1.ActorRefUioToJSON)(value['createdBy']),
129
+ 'sourceConversationId': value['sourceConversationId'],
130
+ 'position': value['position'],
131
+ 'assignees': (value['assignees'].map(TicketAssigneeUio_1.TicketAssigneeUioToJSON)),
132
+ 'commentCount': value['commentCount'],
133
+ 'artifactCount': value['artifactCount'],
134
+ 'pendingHumanActions': value['pendingHumanActions'],
135
+ 'doneAt': value['doneAt'],
136
+ 'createdAt': value['createdAt'],
137
+ 'updatedAt': value['updatedAt'],
138
+ };
139
+ }
@@ -0,0 +1,63 @@
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 { ProjectSettingsUio } from './ProjectSettingsUio';
13
+ /**
14
+ * Mise à jour partielle — une propriété absente reste inchangée. La clé ne change pas.
15
+ * @export
16
+ * @interface UpdateProjectRequestUio
17
+ */
18
+ export interface UpdateProjectRequestUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UpdateProjectRequestUio
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof UpdateProjectRequestUio
29
+ */
30
+ description?: string | null;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof UpdateProjectRequestUio
35
+ */
36
+ color?: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof UpdateProjectRequestUio
41
+ */
42
+ dueDate?: string | null;
43
+ /**
44
+ *
45
+ * @type {ProjectSettingsUio}
46
+ * @memberof UpdateProjectRequestUio
47
+ */
48
+ settings?: ProjectSettingsUio;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof UpdateProjectRequestUio
53
+ */
54
+ archived?: boolean;
55
+ }
56
+ /**
57
+ * Check if a given object implements the UpdateProjectRequestUio interface.
58
+ */
59
+ export declare function instanceOfUpdateProjectRequestUio(value: object): value is UpdateProjectRequestUio;
60
+ export declare function UpdateProjectRequestUioFromJSON(json: any): UpdateProjectRequestUio;
61
+ export declare function UpdateProjectRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProjectRequestUio;
62
+ export declare function UpdateProjectRequestUioToJSON(json: any): UpdateProjectRequestUio;
63
+ export declare function UpdateProjectRequestUioToJSONTyped(value?: UpdateProjectRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfUpdateProjectRequestUio = instanceOfUpdateProjectRequestUio;
17
+ exports.UpdateProjectRequestUioFromJSON = UpdateProjectRequestUioFromJSON;
18
+ exports.UpdateProjectRequestUioFromJSONTyped = UpdateProjectRequestUioFromJSONTyped;
19
+ exports.UpdateProjectRequestUioToJSON = UpdateProjectRequestUioToJSON;
20
+ exports.UpdateProjectRequestUioToJSONTyped = UpdateProjectRequestUioToJSONTyped;
21
+ const ProjectSettingsUio_1 = require("./ProjectSettingsUio");
22
+ /**
23
+ * Check if a given object implements the UpdateProjectRequestUio interface.
24
+ */
25
+ function instanceOfUpdateProjectRequestUio(value) {
26
+ return true;
27
+ }
28
+ function UpdateProjectRequestUioFromJSON(json) {
29
+ return UpdateProjectRequestUioFromJSONTyped(json, false);
30
+ }
31
+ function UpdateProjectRequestUioFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'description': json['description'] == null ? undefined : json['description'],
38
+ 'color': json['color'] == null ? undefined : json['color'],
39
+ 'dueDate': json['dueDate'] == null ? undefined : json['dueDate'],
40
+ 'settings': json['settings'] == null ? undefined : (0, ProjectSettingsUio_1.ProjectSettingsUioFromJSON)(json['settings']),
41
+ 'archived': json['archived'] == null ? undefined : json['archived'],
42
+ };
43
+ }
44
+ function UpdateProjectRequestUioToJSON(json) {
45
+ return UpdateProjectRequestUioToJSONTyped(json, false);
46
+ }
47
+ function UpdateProjectRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'description': value['description'],
54
+ 'color': value['color'],
55
+ 'dueDate': value['dueDate'],
56
+ 'settings': (0, ProjectSettingsUio_1.ProjectSettingsUioToJSON)(value['settings']),
57
+ 'archived': value['archived'],
58
+ };
59
+ }