@goauthentik/api 2022.3.3-1647981529 → 2022.3.3-1648316973
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.
- package/dist/apis/StagesApi.d.ts +4 -3
- package/dist/apis/StagesApi.js +10 -1
- package/dist/esm/apis/StagesApi.d.ts +4 -3
- package/dist/esm/apis/StagesApi.js +10 -1
- package/dist/esm/models/Invitation.d.ts +6 -0
- package/dist/esm/models/Invitation.js +2 -0
- package/dist/esm/models/InvitationRequest.d.ts +6 -0
- package/dist/esm/models/InvitationRequest.js +2 -0
- package/dist/esm/models/PatchedInvitationRequest.d.ts +6 -0
- package/dist/esm/models/PatchedInvitationRequest.js +2 -0
- package/dist/models/Invitation.d.ts +6 -0
- package/dist/models/Invitation.js +2 -0
- package/dist/models/InvitationRequest.d.ts +6 -0
- package/dist/models/InvitationRequest.js +2 -0
- package/dist/models/PatchedInvitationRequest.d.ts +6 -0
- package/dist/models/PatchedInvitationRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/StagesApi.ts +16 -3
- package/src/models/Invitation.ts +8 -0
- package/src/models/InvitationRequest.ts +8 -0
- package/src/models/PatchedInvitationRequest.ts +8 -0
package/dist/apis/StagesApi.d.ts
CHANGED
|
@@ -410,7 +410,7 @@ export interface StagesIdentificationUsedByListRequest {
|
|
|
410
410
|
stageUuid: string;
|
|
411
411
|
}
|
|
412
412
|
export interface StagesInvitationInvitationsCreateRequest {
|
|
413
|
-
invitationRequest
|
|
413
|
+
invitationRequest: InvitationRequest;
|
|
414
414
|
}
|
|
415
415
|
export interface StagesInvitationInvitationsDestroyRequest {
|
|
416
416
|
inviteUuid: string;
|
|
@@ -418,6 +418,7 @@ export interface StagesInvitationInvitationsDestroyRequest {
|
|
|
418
418
|
export interface StagesInvitationInvitationsListRequest {
|
|
419
419
|
createdByUsername?: string;
|
|
420
420
|
expires?: Date;
|
|
421
|
+
name?: string;
|
|
421
422
|
ordering?: string;
|
|
422
423
|
page?: number;
|
|
423
424
|
pageSize?: number;
|
|
@@ -432,7 +433,7 @@ export interface StagesInvitationInvitationsRetrieveRequest {
|
|
|
432
433
|
}
|
|
433
434
|
export interface StagesInvitationInvitationsUpdateRequest {
|
|
434
435
|
inviteUuid: string;
|
|
435
|
-
invitationRequest
|
|
436
|
+
invitationRequest: InvitationRequest;
|
|
436
437
|
}
|
|
437
438
|
export interface StagesInvitationInvitationsUsedByListRequest {
|
|
438
439
|
inviteUuid: string;
|
|
@@ -1426,7 +1427,7 @@ export declare class StagesApi extends runtime.BaseAPI {
|
|
|
1426
1427
|
/**
|
|
1427
1428
|
* Invitation Viewset
|
|
1428
1429
|
*/
|
|
1429
|
-
stagesInvitationInvitationsCreate(requestParameters
|
|
1430
|
+
stagesInvitationInvitationsCreate(requestParameters: StagesInvitationInvitationsCreateRequest, initOverrides?: RequestInit): Promise<Invitation>;
|
|
1430
1431
|
/**
|
|
1431
1432
|
* Invitation Viewset
|
|
1432
1433
|
*/
|
package/dist/apis/StagesApi.js
CHANGED
|
@@ -3315,6 +3315,9 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
3315
3315
|
*/
|
|
3316
3316
|
stagesInvitationInvitationsCreateRaw(requestParameters, initOverrides) {
|
|
3317
3317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3318
|
+
if (requestParameters.invitationRequest === null || requestParameters.invitationRequest === undefined) {
|
|
3319
|
+
throw new runtime.RequiredError('invitationRequest', 'Required parameter requestParameters.invitationRequest was null or undefined when calling stagesInvitationInvitationsCreate.');
|
|
3320
|
+
}
|
|
3318
3321
|
const queryParameters = {};
|
|
3319
3322
|
const headerParameters = {};
|
|
3320
3323
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -3334,7 +3337,7 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
3334
3337
|
/**
|
|
3335
3338
|
* Invitation Viewset
|
|
3336
3339
|
*/
|
|
3337
|
-
stagesInvitationInvitationsCreate(requestParameters
|
|
3340
|
+
stagesInvitationInvitationsCreate(requestParameters, initOverrides) {
|
|
3338
3341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3339
3342
|
const response = yield this.stagesInvitationInvitationsCreateRaw(requestParameters, initOverrides);
|
|
3340
3343
|
return yield response.value();
|
|
@@ -3382,6 +3385,9 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
3382
3385
|
if (requestParameters.expires !== undefined) {
|
|
3383
3386
|
queryParameters['expires'] = requestParameters.expires.toISOString();
|
|
3384
3387
|
}
|
|
3388
|
+
if (requestParameters.name !== undefined) {
|
|
3389
|
+
queryParameters['name'] = requestParameters.name;
|
|
3390
|
+
}
|
|
3385
3391
|
if (requestParameters.ordering !== undefined) {
|
|
3386
3392
|
queryParameters['ordering'] = requestParameters.ordering;
|
|
3387
3393
|
}
|
|
@@ -3488,6 +3494,9 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
3488
3494
|
if (requestParameters.inviteUuid === null || requestParameters.inviteUuid === undefined) {
|
|
3489
3495
|
throw new runtime.RequiredError('inviteUuid', 'Required parameter requestParameters.inviteUuid was null or undefined when calling stagesInvitationInvitationsUpdate.');
|
|
3490
3496
|
}
|
|
3497
|
+
if (requestParameters.invitationRequest === null || requestParameters.invitationRequest === undefined) {
|
|
3498
|
+
throw new runtime.RequiredError('invitationRequest', 'Required parameter requestParameters.invitationRequest was null or undefined when calling stagesInvitationInvitationsUpdate.');
|
|
3499
|
+
}
|
|
3491
3500
|
const queryParameters = {};
|
|
3492
3501
|
const headerParameters = {};
|
|
3493
3502
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -410,7 +410,7 @@ export interface StagesIdentificationUsedByListRequest {
|
|
|
410
410
|
stageUuid: string;
|
|
411
411
|
}
|
|
412
412
|
export interface StagesInvitationInvitationsCreateRequest {
|
|
413
|
-
invitationRequest
|
|
413
|
+
invitationRequest: InvitationRequest;
|
|
414
414
|
}
|
|
415
415
|
export interface StagesInvitationInvitationsDestroyRequest {
|
|
416
416
|
inviteUuid: string;
|
|
@@ -418,6 +418,7 @@ export interface StagesInvitationInvitationsDestroyRequest {
|
|
|
418
418
|
export interface StagesInvitationInvitationsListRequest {
|
|
419
419
|
createdByUsername?: string;
|
|
420
420
|
expires?: Date;
|
|
421
|
+
name?: string;
|
|
421
422
|
ordering?: string;
|
|
422
423
|
page?: number;
|
|
423
424
|
pageSize?: number;
|
|
@@ -432,7 +433,7 @@ export interface StagesInvitationInvitationsRetrieveRequest {
|
|
|
432
433
|
}
|
|
433
434
|
export interface StagesInvitationInvitationsUpdateRequest {
|
|
434
435
|
inviteUuid: string;
|
|
435
|
-
invitationRequest
|
|
436
|
+
invitationRequest: InvitationRequest;
|
|
436
437
|
}
|
|
437
438
|
export interface StagesInvitationInvitationsUsedByListRequest {
|
|
438
439
|
inviteUuid: string;
|
|
@@ -1426,7 +1427,7 @@ export declare class StagesApi extends runtime.BaseAPI {
|
|
|
1426
1427
|
/**
|
|
1427
1428
|
* Invitation Viewset
|
|
1428
1429
|
*/
|
|
1429
|
-
stagesInvitationInvitationsCreate(requestParameters
|
|
1430
|
+
stagesInvitationInvitationsCreate(requestParameters: StagesInvitationInvitationsCreateRequest, initOverrides?: RequestInit): Promise<Invitation>;
|
|
1430
1431
|
/**
|
|
1431
1432
|
* Invitation Viewset
|
|
1432
1433
|
*/
|
|
@@ -3312,6 +3312,9 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
3312
3312
|
*/
|
|
3313
3313
|
stagesInvitationInvitationsCreateRaw(requestParameters, initOverrides) {
|
|
3314
3314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3315
|
+
if (requestParameters.invitationRequest === null || requestParameters.invitationRequest === undefined) {
|
|
3316
|
+
throw new runtime.RequiredError('invitationRequest', 'Required parameter requestParameters.invitationRequest was null or undefined when calling stagesInvitationInvitationsCreate.');
|
|
3317
|
+
}
|
|
3315
3318
|
const queryParameters = {};
|
|
3316
3319
|
const headerParameters = {};
|
|
3317
3320
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -3331,7 +3334,7 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
3331
3334
|
/**
|
|
3332
3335
|
* Invitation Viewset
|
|
3333
3336
|
*/
|
|
3334
|
-
stagesInvitationInvitationsCreate(requestParameters
|
|
3337
|
+
stagesInvitationInvitationsCreate(requestParameters, initOverrides) {
|
|
3335
3338
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3336
3339
|
const response = yield this.stagesInvitationInvitationsCreateRaw(requestParameters, initOverrides);
|
|
3337
3340
|
return yield response.value();
|
|
@@ -3379,6 +3382,9 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
3379
3382
|
if (requestParameters.expires !== undefined) {
|
|
3380
3383
|
queryParameters['expires'] = requestParameters.expires.toISOString();
|
|
3381
3384
|
}
|
|
3385
|
+
if (requestParameters.name !== undefined) {
|
|
3386
|
+
queryParameters['name'] = requestParameters.name;
|
|
3387
|
+
}
|
|
3382
3388
|
if (requestParameters.ordering !== undefined) {
|
|
3383
3389
|
queryParameters['ordering'] = requestParameters.ordering;
|
|
3384
3390
|
}
|
|
@@ -3485,6 +3491,9 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
3485
3491
|
if (requestParameters.inviteUuid === null || requestParameters.inviteUuid === undefined) {
|
|
3486
3492
|
throw new runtime.RequiredError('inviteUuid', 'Required parameter requestParameters.inviteUuid was null or undefined when calling stagesInvitationInvitationsUpdate.');
|
|
3487
3493
|
}
|
|
3494
|
+
if (requestParameters.invitationRequest === null || requestParameters.invitationRequest === undefined) {
|
|
3495
|
+
throw new runtime.RequiredError('invitationRequest', 'Required parameter requestParameters.invitationRequest was null or undefined when calling stagesInvitationInvitationsUpdate.');
|
|
3496
|
+
}
|
|
3488
3497
|
const queryParameters = {};
|
|
3489
3498
|
const headerParameters = {};
|
|
3490
3499
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -22,6 +22,7 @@ export function InvitationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
24
|
'pk': json['pk'],
|
|
25
|
+
'name': json['name'],
|
|
25
26
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
26
27
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
27
28
|
'createdBy': GroupMemberFromJSON(json['created_by']),
|
|
@@ -36,6 +37,7 @@ export function InvitationToJSON(value) {
|
|
|
36
37
|
return null;
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
40
|
+
'name': value.name,
|
|
39
41
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
40
42
|
'fixed_data': value.fixedData,
|
|
41
43
|
'single_use': value.singleUse,
|
|
@@ -20,6 +20,7 @@ export function InvitationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
return json;
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
|
+
'name': json['name'],
|
|
23
24
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
24
25
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
25
26
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
|
@@ -33,6 +34,7 @@ export function InvitationRequestToJSON(value) {
|
|
|
33
34
|
return null;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
37
|
+
'name': value.name,
|
|
36
38
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
37
39
|
'fixed_data': value.fixedData,
|
|
38
40
|
'single_use': value.singleUse,
|
|
@@ -20,6 +20,7 @@ export function PatchedInvitationRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
20
20
|
return json;
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
23
24
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
24
25
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
25
26
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
|
@@ -33,6 +34,7 @@ export function PatchedInvitationRequestToJSON(value) {
|
|
|
33
34
|
return null;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
37
|
+
'name': value.name,
|
|
36
38
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
37
39
|
'fixed_data': value.fixedData,
|
|
38
40
|
'single_use': value.singleUse,
|
|
@@ -26,6 +26,7 @@ function InvitationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'pk': json['pk'],
|
|
29
|
+
'name': json['name'],
|
|
29
30
|
'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
30
31
|
'fixedData': !runtime_1.exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
31
32
|
'createdBy': GroupMember_1.GroupMemberFromJSON(json['created_by']),
|
|
@@ -41,6 +42,7 @@ function InvitationToJSON(value) {
|
|
|
41
42
|
return null;
|
|
42
43
|
}
|
|
43
44
|
return {
|
|
45
|
+
'name': value.name,
|
|
44
46
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
45
47
|
'fixed_data': value.fixedData,
|
|
46
48
|
'single_use': value.singleUse,
|
|
@@ -24,6 +24,7 @@ function InvitationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'name': json['name'],
|
|
27
28
|
'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
28
29
|
'fixedData': !runtime_1.exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
29
30
|
'singleUse': !runtime_1.exists(json, 'single_use') ? undefined : json['single_use'],
|
|
@@ -38,6 +39,7 @@ function InvitationRequestToJSON(value) {
|
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
42
|
+
'name': value.name,
|
|
41
43
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
42
44
|
'fixed_data': value.fixedData,
|
|
43
45
|
'single_use': value.singleUse,
|
|
@@ -24,6 +24,7 @@ function PatchedInvitationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'name': !runtime_1.exists(json, 'name') ? undefined : json['name'],
|
|
27
28
|
'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
28
29
|
'fixedData': !runtime_1.exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
29
30
|
'singleUse': !runtime_1.exists(json, 'single_use') ? undefined : json['single_use'],
|
|
@@ -38,6 +39,7 @@ function PatchedInvitationRequestToJSON(value) {
|
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
42
|
+
'name': value.name,
|
|
41
43
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
42
44
|
'fixed_data': value.fixedData,
|
|
43
45
|
'single_use': value.singleUse,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@goauthentik/api", "version": "2022.3.3-
|
|
1
|
+
{"name": "@goauthentik/api", "version": "2022.3.3-1648316973", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "module": "./dist/esm/index.js", "sideEffects": false, "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only"}
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -773,7 +773,7 @@ export interface StagesIdentificationUsedByListRequest {
|
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
export interface StagesInvitationInvitationsCreateRequest {
|
|
776
|
-
invitationRequest
|
|
776
|
+
invitationRequest: InvitationRequest;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
export interface StagesInvitationInvitationsDestroyRequest {
|
|
@@ -783,6 +783,7 @@ export interface StagesInvitationInvitationsDestroyRequest {
|
|
|
783
783
|
export interface StagesInvitationInvitationsListRequest {
|
|
784
784
|
createdByUsername?: string;
|
|
785
785
|
expires?: Date;
|
|
786
|
+
name?: string;
|
|
786
787
|
ordering?: string;
|
|
787
788
|
page?: number;
|
|
788
789
|
pageSize?: number;
|
|
@@ -800,7 +801,7 @@ export interface StagesInvitationInvitationsRetrieveRequest {
|
|
|
800
801
|
|
|
801
802
|
export interface StagesInvitationInvitationsUpdateRequest {
|
|
802
803
|
inviteUuid: string;
|
|
803
|
-
invitationRequest
|
|
804
|
+
invitationRequest: InvitationRequest;
|
|
804
805
|
}
|
|
805
806
|
|
|
806
807
|
export interface StagesInvitationInvitationsUsedByListRequest {
|
|
@@ -4816,6 +4817,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
4816
4817
|
* Invitation Viewset
|
|
4817
4818
|
*/
|
|
4818
4819
|
async stagesInvitationInvitationsCreateRaw(requestParameters: StagesInvitationInvitationsCreateRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Invitation>> {
|
|
4820
|
+
if (requestParameters.invitationRequest === null || requestParameters.invitationRequest === undefined) {
|
|
4821
|
+
throw new runtime.RequiredError('invitationRequest','Required parameter requestParameters.invitationRequest was null or undefined when calling stagesInvitationInvitationsCreate.');
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4819
4824
|
const queryParameters: any = {};
|
|
4820
4825
|
|
|
4821
4826
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -4840,7 +4845,7 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
4840
4845
|
/**
|
|
4841
4846
|
* Invitation Viewset
|
|
4842
4847
|
*/
|
|
4843
|
-
async stagesInvitationInvitationsCreate(requestParameters: StagesInvitationInvitationsCreateRequest
|
|
4848
|
+
async stagesInvitationInvitationsCreate(requestParameters: StagesInvitationInvitationsCreateRequest, initOverrides?: RequestInit): Promise<Invitation> {
|
|
4844
4849
|
const response = await this.stagesInvitationInvitationsCreateRaw(requestParameters, initOverrides);
|
|
4845
4850
|
return await response.value();
|
|
4846
4851
|
}
|
|
@@ -4892,6 +4897,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
4892
4897
|
queryParameters['expires'] = (requestParameters.expires as any).toISOString();
|
|
4893
4898
|
}
|
|
4894
4899
|
|
|
4900
|
+
if (requestParameters.name !== undefined) {
|
|
4901
|
+
queryParameters['name'] = requestParameters.name;
|
|
4902
|
+
}
|
|
4903
|
+
|
|
4895
4904
|
if (requestParameters.ordering !== undefined) {
|
|
4896
4905
|
queryParameters['ordering'] = requestParameters.ordering;
|
|
4897
4906
|
}
|
|
@@ -5011,6 +5020,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
5011
5020
|
throw new runtime.RequiredError('inviteUuid','Required parameter requestParameters.inviteUuid was null or undefined when calling stagesInvitationInvitationsUpdate.');
|
|
5012
5021
|
}
|
|
5013
5022
|
|
|
5023
|
+
if (requestParameters.invitationRequest === null || requestParameters.invitationRequest === undefined) {
|
|
5024
|
+
throw new runtime.RequiredError('invitationRequest','Required parameter requestParameters.invitationRequest was null or undefined when calling stagesInvitationInvitationsUpdate.');
|
|
5025
|
+
}
|
|
5026
|
+
|
|
5014
5027
|
const queryParameters: any = {};
|
|
5015
5028
|
|
|
5016
5029
|
const headerParameters: runtime.HTTPHeaders = {};
|
package/src/models/Invitation.ts
CHANGED
|
@@ -32,6 +32,12 @@ export interface Invitation {
|
|
|
32
32
|
* @memberof Invitation
|
|
33
33
|
*/
|
|
34
34
|
readonly pk: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Invitation
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
37
43
|
* @type {Date}
|
|
@@ -69,6 +75,7 @@ export function InvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
69
75
|
return {
|
|
70
76
|
|
|
71
77
|
'pk': json['pk'],
|
|
78
|
+
'name': json['name'],
|
|
72
79
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
73
80
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
74
81
|
'createdBy': GroupMemberFromJSON(json['created_by']),
|
|
@@ -85,6 +92,7 @@ export function InvitationToJSON(value?: Invitation | null): any {
|
|
|
85
92
|
}
|
|
86
93
|
return {
|
|
87
94
|
|
|
95
|
+
'name': value.name,
|
|
88
96
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
89
97
|
'fixed_data': value.fixedData,
|
|
90
98
|
'single_use': value.singleUse,
|
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface InvitationRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface InvitationRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InvitationRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {Date}
|
|
@@ -49,6 +55,7 @@ export function InvitationRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
49
55
|
}
|
|
50
56
|
return {
|
|
51
57
|
|
|
58
|
+
'name': json['name'],
|
|
52
59
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
53
60
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
54
61
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
|
@@ -64,6 +71,7 @@ export function InvitationRequestToJSON(value?: InvitationRequest | null): any {
|
|
|
64
71
|
}
|
|
65
72
|
return {
|
|
66
73
|
|
|
74
|
+
'name': value.name,
|
|
67
75
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
68
76
|
'fixed_data': value.fixedData,
|
|
69
77
|
'single_use': value.singleUse,
|
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PatchedInvitationRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface PatchedInvitationRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PatchedInvitationRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {Date}
|
|
@@ -49,6 +55,7 @@ export function PatchedInvitationRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
49
55
|
}
|
|
50
56
|
return {
|
|
51
57
|
|
|
58
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
52
59
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
53
60
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
54
61
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
|
@@ -64,6 +71,7 @@ export function PatchedInvitationRequestToJSON(value?: PatchedInvitationRequest
|
|
|
64
71
|
}
|
|
65
72
|
return {
|
|
66
73
|
|
|
74
|
+
'name': value.name,
|
|
67
75
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
68
76
|
'fixed_data': value.fixedData,
|
|
69
77
|
'single_use': value.singleUse,
|