-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce839b7
commit 4680c82
Showing
28 changed files
with
1,424 additions
and
764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* EAS API | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from '../runtime'; | ||
import type { BaseFieldsCreate } from './BaseFieldsCreate'; | ||
import { | ||
BaseFieldsCreateFromJSON, | ||
BaseFieldsCreateFromJSONTyped, | ||
BaseFieldsCreateToJSON, | ||
} from './BaseFieldsCreate'; | ||
import type { DrawMetadata } from './DrawMetadata'; | ||
import { | ||
DrawMetadataFromJSON, | ||
DrawMetadataFromJSONTyped, | ||
DrawMetadataToJSON, | ||
} from './DrawMetadata'; | ||
import type { PrizeField } from './PrizeField'; | ||
import { | ||
PrizeFieldFromJSON, | ||
PrizeFieldFromJSONTyped, | ||
PrizeFieldToJSON, | ||
} from './PrizeField'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface CreateInstagramPayload | ||
*/ | ||
export interface CreateInstagramPayload extends BaseFieldsCreate { | ||
/** | ||
* | ||
* @type {Array<PrizeField>} | ||
* @memberof CreateInstagramPayload | ||
*/ | ||
prizes: Array<PrizeField>; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof CreateInstagramPayload | ||
*/ | ||
useLikes: boolean; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof CreateInstagramPayload | ||
*/ | ||
minMentions: number; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof CreateInstagramPayload | ||
*/ | ||
postUrl: string; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the CreateInstagramPayload interface. | ||
*/ | ||
export function instanceOfCreateInstagramPayload(value: object): value is CreateInstagramPayload { | ||
if (!('prizes' in value) || value['prizes'] === undefined) return false; | ||
if (!('useLikes' in value) || value['useLikes'] === undefined) return false; | ||
if (!('minMentions' in value) || value['minMentions'] === undefined) return false; | ||
if (!('postUrl' in value) || value['postUrl'] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function CreateInstagramPayloadFromJSON(json: any): CreateInstagramPayload { | ||
return CreateInstagramPayloadFromJSONTyped(json, false); | ||
} | ||
|
||
export function CreateInstagramPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInstagramPayload { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
...BaseFieldsCreateFromJSONTyped(json, ignoreDiscriminator), | ||
'prizes': ((json['prizes'] as Array<any>).map(PrizeFieldFromJSON)), | ||
'useLikes': json['use_likes'], | ||
'minMentions': json['min_mentions'], | ||
'postUrl': json['post_url'], | ||
}; | ||
} | ||
|
||
export function CreateInstagramPayloadToJSON(value?: CreateInstagramPayload | null): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
...BaseFieldsCreateToJSON(value), | ||
'prizes': ((value['prizes'] as Array<any>).map(PrizeFieldToJSON)), | ||
'use_likes': value['useLikes'], | ||
'min_mentions': value['minMentions'], | ||
'post_url': value['postUrl'], | ||
}; | ||
} | ||
|
Oops, something went wrong.