keplar-api 0.0.10 → 0.0.12

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 (70) hide show
  1. package/.openapi-generator/FILES +19 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +189 -3
  4. package/dist/apis/DefaultApi.js +1073 -142
  5. package/dist/models/AttributeStatsSchemaInnerValuesInner.d.ts +6 -0
  6. package/dist/models/AttributeStatsSchemaInnerValuesInner.js +4 -0
  7. package/dist/models/CreateEmailShareRequest.d.ts +38 -0
  8. package/dist/models/CreateEmailShareRequest.js +53 -0
  9. package/dist/models/CreateProjectShareRequest.d.ts +38 -0
  10. package/dist/models/CreateProjectShareRequest.js +51 -0
  11. package/dist/models/CreateProjectShareResponse.d.ts +45 -0
  12. package/dist/models/CreateProjectShareResponse.js +60 -0
  13. package/dist/models/DeleteEmailShare200Response.d.ts +32 -0
  14. package/dist/models/DeleteEmailShare200Response.js +51 -0
  15. package/dist/models/EmailShare.d.ts +75 -0
  16. package/dist/models/EmailShare.js +77 -0
  17. package/dist/models/GetProjectShares200Response.d.ts +39 -0
  18. package/dist/models/GetProjectShares200Response.js +56 -0
  19. package/dist/models/GetSharedInviteResponses200Response.d.ts +51 -0
  20. package/dist/models/{ApiInvitesIdResponsesGet200Response.js → GetSharedInviteResponses200Response.js} +13 -13
  21. package/dist/models/GetSharedInviteResponsesStatusesParameterInner.d.ts +26 -0
  22. package/dist/models/GetSharedInviteResponsesStatusesParameterInner.js +39 -0
  23. package/dist/models/InviteResponseShareConfig.d.ts +39 -0
  24. package/dist/models/InviteResponseShareConfig.js +58 -0
  25. package/dist/models/ProjectShareConfig.d.ts +39 -0
  26. package/dist/models/ProjectShareConfig.js +58 -0
  27. package/dist/models/RequestShareAccess200Response.d.ts +38 -0
  28. package/dist/models/RequestShareAccess200Response.js +55 -0
  29. package/dist/models/RequestShareAccessRequest.d.ts +32 -0
  30. package/dist/models/RequestShareAccessRequest.js +51 -0
  31. package/dist/models/ShareEntity.d.ts +102 -0
  32. package/dist/models/ShareEntity.js +92 -0
  33. package/dist/models/ShareEntityConfig.d.ts +27 -0
  34. package/dist/models/ShareEntityConfig.js +54 -0
  35. package/dist/models/ShareEntityCreatedByKind.d.ts +26 -0
  36. package/dist/models/ShareEntityCreatedByKind.js +52 -0
  37. package/dist/models/ShareEntityKind.d.ts +25 -0
  38. package/dist/models/ShareEntityKind.js +51 -0
  39. package/dist/models/UpdateShareEntityRequest.d.ts +38 -0
  40. package/dist/models/UpdateShareEntityRequest.js +52 -0
  41. package/dist/models/VerifyEmailAccessForShare200Response.d.ts +38 -0
  42. package/dist/models/VerifyEmailAccessForShare200Response.js +55 -0
  43. package/dist/models/VerifyEmailAccessForShareRequest.d.ts +32 -0
  44. package/dist/models/VerifyEmailAccessForShareRequest.js +51 -0
  45. package/dist/models/index.d.ts +19 -1
  46. package/dist/models/index.js +19 -1
  47. package/package.json +1 -1
  48. package/src/apis/DefaultApi.ts +1080 -146
  49. package/src/models/AttributeStatsSchemaInnerValuesInner.ts +9 -0
  50. package/src/models/CreateEmailShareRequest.ts +74 -0
  51. package/src/models/CreateProjectShareRequest.ts +73 -0
  52. package/src/models/CreateProjectShareResponse.ts +92 -0
  53. package/src/models/DeleteEmailShare200Response.ts +66 -0
  54. package/src/models/EmailShare.ts +135 -0
  55. package/src/models/GetProjectShares200Response.ts +83 -0
  56. package/src/models/{ApiInvitesIdResponsesGet200Response.ts → GetSharedInviteResponses200Response.ts} +14 -14
  57. package/src/models/GetSharedInviteResponsesStatusesParameterInner.ts +46 -0
  58. package/src/models/InviteResponseShareConfig.ts +76 -0
  59. package/src/models/ProjectShareConfig.ts +76 -0
  60. package/src/models/RequestShareAccess200Response.ts +75 -0
  61. package/src/models/RequestShareAccessRequest.ts +66 -0
  62. package/src/models/ShareEntity.ts +192 -0
  63. package/src/models/ShareEntityConfig.ts +72 -0
  64. package/src/models/ShareEntityCreatedByKind.ts +54 -0
  65. package/src/models/ShareEntityKind.ts +53 -0
  66. package/src/models/UpdateShareEntityRequest.ts +73 -0
  67. package/src/models/VerifyEmailAccessForShare200Response.ts +75 -0
  68. package/src/models/VerifyEmailAccessForShareRequest.ts +66 -0
  69. package/src/models/index.ts +19 -1
  70. package/dist/models/ApiInvitesIdResponsesGet200Response.d.ts +0 -51
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface InviteResponseShareConfig
20
+ */
21
+ export interface InviteResponseShareConfig {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InviteResponseShareConfig
26
+ */
27
+ kind: InviteResponseShareConfigKindEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const InviteResponseShareConfigKindEnum = {
35
+ InviteResponse: 'invite_response'
36
+ } as const;
37
+ export type InviteResponseShareConfigKindEnum = typeof InviteResponseShareConfigKindEnum[keyof typeof InviteResponseShareConfigKindEnum];
38
+
39
+
40
+ /**
41
+ * Check if a given object implements the InviteResponseShareConfig interface.
42
+ */
43
+ export function instanceOfInviteResponseShareConfig(value: object): value is InviteResponseShareConfig {
44
+ if (!('kind' in value) || value['kind'] === undefined) return false;
45
+ return true;
46
+ }
47
+
48
+ export function InviteResponseShareConfigFromJSON(json: any): InviteResponseShareConfig {
49
+ return InviteResponseShareConfigFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function InviteResponseShareConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteResponseShareConfig {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'kind': json['kind'],
59
+ };
60
+ }
61
+
62
+ export function InviteResponseShareConfigToJSON(json: any): InviteResponseShareConfig {
63
+ return InviteResponseShareConfigToJSONTyped(json, false);
64
+ }
65
+
66
+ export function InviteResponseShareConfigToJSONTyped(value?: InviteResponseShareConfig | null, ignoreDiscriminator: boolean = false): any {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+
71
+ return {
72
+
73
+ 'kind': value['kind'],
74
+ };
75
+ }
76
+
@@ -0,0 +1,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProjectShareConfig
20
+ */
21
+ export interface ProjectShareConfig {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ProjectShareConfig
26
+ */
27
+ kind: ProjectShareConfigKindEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const ProjectShareConfigKindEnum = {
35
+ Project: 'project'
36
+ } as const;
37
+ export type ProjectShareConfigKindEnum = typeof ProjectShareConfigKindEnum[keyof typeof ProjectShareConfigKindEnum];
38
+
39
+
40
+ /**
41
+ * Check if a given object implements the ProjectShareConfig interface.
42
+ */
43
+ export function instanceOfProjectShareConfig(value: object): value is ProjectShareConfig {
44
+ if (!('kind' in value) || value['kind'] === undefined) return false;
45
+ return true;
46
+ }
47
+
48
+ export function ProjectShareConfigFromJSON(json: any): ProjectShareConfig {
49
+ return ProjectShareConfigFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function ProjectShareConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectShareConfig {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'kind': json['kind'],
59
+ };
60
+ }
61
+
62
+ export function ProjectShareConfigToJSON(json: any): ProjectShareConfig {
63
+ return ProjectShareConfigToJSONTyped(json, false);
64
+ }
65
+
66
+ export function ProjectShareConfigToJSONTyped(value?: ProjectShareConfig | null, ignoreDiscriminator: boolean = false): any {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+
71
+ return {
72
+
73
+ 'kind': value['kind'],
74
+ };
75
+ }
76
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RequestShareAccess200Response
20
+ */
21
+ export interface RequestShareAccess200Response {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof RequestShareAccess200Response
26
+ */
27
+ success: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RequestShareAccess200Response
32
+ */
33
+ message: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RequestShareAccess200Response interface.
38
+ */
39
+ export function instanceOfRequestShareAccess200Response(value: object): value is RequestShareAccess200Response {
40
+ if (!('success' in value) || value['success'] === undefined) return false;
41
+ if (!('message' in value) || value['message'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function RequestShareAccess200ResponseFromJSON(json: any): RequestShareAccess200Response {
46
+ return RequestShareAccess200ResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function RequestShareAccess200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestShareAccess200Response {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'success': json['success'],
56
+ 'message': json['message'],
57
+ };
58
+ }
59
+
60
+ export function RequestShareAccess200ResponseToJSON(json: any): RequestShareAccess200Response {
61
+ return RequestShareAccess200ResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function RequestShareAccess200ResponseToJSONTyped(value?: RequestShareAccess200Response | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'success': value['success'],
72
+ 'message': value['message'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RequestShareAccessRequest
20
+ */
21
+ export interface RequestShareAccessRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RequestShareAccessRequest
26
+ */
27
+ email: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the RequestShareAccessRequest interface.
32
+ */
33
+ export function instanceOfRequestShareAccessRequest(value: object): value is RequestShareAccessRequest {
34
+ if (!('email' in value) || value['email'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function RequestShareAccessRequestFromJSON(json: any): RequestShareAccessRequest {
39
+ return RequestShareAccessRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function RequestShareAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestShareAccessRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'email': json['email'],
49
+ };
50
+ }
51
+
52
+ export function RequestShareAccessRequestToJSON(json: any): RequestShareAccessRequest {
53
+ return RequestShareAccessRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function RequestShareAccessRequestToJSONTyped(value?: RequestShareAccessRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'email': value['email'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,192 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+ import { mapValues } from '../runtime';
16
+ import type { ShareEntityKind } from './ShareEntityKind';
17
+ import {
18
+ ShareEntityKindFromJSON,
19
+ ShareEntityKindFromJSONTyped,
20
+ ShareEntityKindToJSON,
21
+ ShareEntityKindToJSONTyped,
22
+ } from './ShareEntityKind';
23
+ import type { ShareEntityCreatedByKind } from './ShareEntityCreatedByKind';
24
+ import {
25
+ ShareEntityCreatedByKindFromJSON,
26
+ ShareEntityCreatedByKindFromJSONTyped,
27
+ ShareEntityCreatedByKindToJSON,
28
+ ShareEntityCreatedByKindToJSONTyped,
29
+ } from './ShareEntityCreatedByKind';
30
+ import type { EmailShare } from './EmailShare';
31
+ import {
32
+ EmailShareFromJSON,
33
+ EmailShareFromJSONTyped,
34
+ EmailShareToJSON,
35
+ EmailShareToJSONTyped,
36
+ } from './EmailShare';
37
+ import type { ShareEntityConfig } from './ShareEntityConfig';
38
+ import {
39
+ ShareEntityConfigFromJSON,
40
+ ShareEntityConfigFromJSONTyped,
41
+ ShareEntityConfigToJSON,
42
+ ShareEntityConfigToJSONTyped,
43
+ } from './ShareEntityConfig';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface ShareEntity
49
+ */
50
+ export interface ShareEntity {
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof ShareEntity
55
+ */
56
+ id: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof ShareEntity
61
+ */
62
+ token: string;
63
+ /**
64
+ *
65
+ * @type {ShareEntityKind}
66
+ * @memberof ShareEntity
67
+ */
68
+ entityKind: ShareEntityKind;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof ShareEntity
73
+ */
74
+ entityId: string;
75
+ /**
76
+ *
77
+ * @type {Date}
78
+ * @memberof ShareEntity
79
+ */
80
+ createdAt: Date;
81
+ /**
82
+ *
83
+ * @type {Date}
84
+ * @memberof ShareEntity
85
+ */
86
+ expiresAt?: Date | null;
87
+ /**
88
+ *
89
+ * @type {number}
90
+ * @memberof ShareEntity
91
+ */
92
+ accessCount: number;
93
+ /**
94
+ *
95
+ * @type {boolean}
96
+ * @memberof ShareEntity
97
+ */
98
+ isActive: boolean;
99
+ /**
100
+ *
101
+ * @type {ShareEntityCreatedByKind}
102
+ * @memberof ShareEntity
103
+ */
104
+ createdByKind?: ShareEntityCreatedByKind | null;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof ShareEntity
109
+ */
110
+ createdById?: string | null;
111
+ /**
112
+ *
113
+ * @type {ShareEntityConfig}
114
+ * @memberof ShareEntity
115
+ */
116
+ config: ShareEntityConfig;
117
+ /**
118
+ *
119
+ * @type {Array<EmailShare>}
120
+ * @memberof ShareEntity
121
+ */
122
+ emailShares?: Array<EmailShare>;
123
+ }
124
+
125
+
126
+
127
+ /**
128
+ * Check if a given object implements the ShareEntity interface.
129
+ */
130
+ export function instanceOfShareEntity(value: object): value is ShareEntity {
131
+ if (!('id' in value) || value['id'] === undefined) return false;
132
+ if (!('token' in value) || value['token'] === undefined) return false;
133
+ if (!('entityKind' in value) || value['entityKind'] === undefined) return false;
134
+ if (!('entityId' in value) || value['entityId'] === undefined) return false;
135
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
136
+ if (!('accessCount' in value) || value['accessCount'] === undefined) return false;
137
+ if (!('isActive' in value) || value['isActive'] === undefined) return false;
138
+ if (!('config' in value) || value['config'] === undefined) return false;
139
+ return true;
140
+ }
141
+
142
+ export function ShareEntityFromJSON(json: any): ShareEntity {
143
+ return ShareEntityFromJSONTyped(json, false);
144
+ }
145
+
146
+ export function ShareEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareEntity {
147
+ if (json == null) {
148
+ return json;
149
+ }
150
+ return {
151
+
152
+ 'id': json['id'],
153
+ 'token': json['token'],
154
+ 'entityKind': ShareEntityKindFromJSON(json['entityKind']),
155
+ 'entityId': json['entityId'],
156
+ 'createdAt': (new Date(json['createdAt'])),
157
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
158
+ 'accessCount': json['accessCount'],
159
+ 'isActive': json['isActive'],
160
+ 'createdByKind': json['createdByKind'] == null ? undefined : ShareEntityCreatedByKindFromJSON(json['createdByKind']),
161
+ 'createdById': json['createdById'] == null ? undefined : json['createdById'],
162
+ 'config': ShareEntityConfigFromJSON(json['config']),
163
+ 'emailShares': json['emailShares'] == null ? undefined : ((json['emailShares'] as Array<any>).map(EmailShareFromJSON)),
164
+ };
165
+ }
166
+
167
+ export function ShareEntityToJSON(json: any): ShareEntity {
168
+ return ShareEntityToJSONTyped(json, false);
169
+ }
170
+
171
+ export function ShareEntityToJSONTyped(value?: ShareEntity | null, ignoreDiscriminator: boolean = false): any {
172
+ if (value == null) {
173
+ return value;
174
+ }
175
+
176
+ return {
177
+
178
+ 'id': value['id'],
179
+ 'token': value['token'],
180
+ 'entityKind': ShareEntityKindToJSON(value['entityKind']),
181
+ 'entityId': value['entityId'],
182
+ 'createdAt': ((value['createdAt']).toISOString()),
183
+ 'expiresAt': value['expiresAt'] === null ? null : ((value['expiresAt'] as any)?.toISOString()),
184
+ 'accessCount': value['accessCount'],
185
+ 'isActive': value['isActive'],
186
+ 'createdByKind': ShareEntityCreatedByKindToJSON(value['createdByKind']),
187
+ 'createdById': value['createdById'],
188
+ 'config': ShareEntityConfigToJSON(value['config']),
189
+ 'emailShares': value['emailShares'] == null ? undefined : ((value['emailShares'] as Array<any>).map(EmailShareToJSON)),
190
+ };
191
+ }
192
+
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+ import type { InviteResponseShareConfig } from './InviteResponseShareConfig';
16
+ import {
17
+ instanceOfInviteResponseShareConfig,
18
+ InviteResponseShareConfigFromJSON,
19
+ InviteResponseShareConfigFromJSONTyped,
20
+ InviteResponseShareConfigToJSON,
21
+ } from './InviteResponseShareConfig';
22
+ import type { ProjectShareConfig } from './ProjectShareConfig';
23
+ import {
24
+ instanceOfProjectShareConfig,
25
+ ProjectShareConfigFromJSON,
26
+ ProjectShareConfigFromJSONTyped,
27
+ ProjectShareConfigToJSON,
28
+ } from './ProjectShareConfig';
29
+
30
+ /**
31
+ * @type ShareEntityConfig
32
+ *
33
+ * @export
34
+ */
35
+ export type ShareEntityConfig = { kind: 'invite_response' } & InviteResponseShareConfig | { kind: 'project' } & ProjectShareConfig;
36
+
37
+ export function ShareEntityConfigFromJSON(json: any): ShareEntityConfig {
38
+ return ShareEntityConfigFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ShareEntityConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareEntityConfig {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ switch (json['kind']) {
46
+ case 'invite_response':
47
+ return Object.assign({}, InviteResponseShareConfigFromJSONTyped(json, true), { kind: 'invite_response' } as const);
48
+ case 'project':
49
+ return Object.assign({}, ProjectShareConfigFromJSONTyped(json, true), { kind: 'project' } as const);
50
+ default:
51
+ return json;
52
+ }
53
+ }
54
+
55
+ export function ShareEntityConfigToJSON(json: any): any {
56
+ return ShareEntityConfigToJSONTyped(json, false);
57
+ }
58
+
59
+ export function ShareEntityConfigToJSONTyped(value?: ShareEntityConfig | null, ignoreDiscriminator: boolean = false): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ switch (value['kind']) {
64
+ case 'invite_response':
65
+ return Object.assign({}, InviteResponseShareConfigToJSON(value), { kind: 'invite_response' } as const);
66
+ case 'project':
67
+ return Object.assign({}, ProjectShareConfigToJSON(value), { kind: 'project' } as const);
68
+ default:
69
+ return value;
70
+ }
71
+ }
72
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const ShareEntityCreatedByKind = {
21
+ Participant: 'participant',
22
+ User: 'user',
23
+ System: 'system'
24
+ } as const;
25
+ export type ShareEntityCreatedByKind = typeof ShareEntityCreatedByKind[keyof typeof ShareEntityCreatedByKind];
26
+
27
+
28
+ export function instanceOfShareEntityCreatedByKind(value: any): boolean {
29
+ for (const key in ShareEntityCreatedByKind) {
30
+ if (Object.prototype.hasOwnProperty.call(ShareEntityCreatedByKind, key)) {
31
+ if (ShareEntityCreatedByKind[key as keyof typeof ShareEntityCreatedByKind] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function ShareEntityCreatedByKindFromJSON(json: any): ShareEntityCreatedByKind {
40
+ return ShareEntityCreatedByKindFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function ShareEntityCreatedByKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareEntityCreatedByKind {
44
+ return json as ShareEntityCreatedByKind;
45
+ }
46
+
47
+ export function ShareEntityCreatedByKindToJSON(value?: ShareEntityCreatedByKind | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function ShareEntityCreatedByKindToJSONTyped(value: any, ignoreDiscriminator: boolean): ShareEntityCreatedByKind {
52
+ return value as ShareEntityCreatedByKind;
53
+ }
54
+
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const ShareEntityKind = {
21
+ Project: 'project',
22
+ InviteResponse: 'invite_response'
23
+ } as const;
24
+ export type ShareEntityKind = typeof ShareEntityKind[keyof typeof ShareEntityKind];
25
+
26
+
27
+ export function instanceOfShareEntityKind(value: any): boolean {
28
+ for (const key in ShareEntityKind) {
29
+ if (Object.prototype.hasOwnProperty.call(ShareEntityKind, key)) {
30
+ if (ShareEntityKind[key as keyof typeof ShareEntityKind] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ShareEntityKindFromJSON(json: any): ShareEntityKind {
39
+ return ShareEntityKindFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ShareEntityKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareEntityKind {
43
+ return json as ShareEntityKind;
44
+ }
45
+
46
+ export function ShareEntityKindToJSON(value?: ShareEntityKind | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ShareEntityKindToJSONTyped(value: any, ignoreDiscriminator: boolean): ShareEntityKind {
51
+ return value as ShareEntityKind;
52
+ }
53
+