Skip to content

Commit

Permalink
Publish more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaranjo89 committed Sep 12, 2024
1 parent ce839b7 commit 4680c82
Show file tree
Hide file tree
Showing 28 changed files with 1,424 additions and 764 deletions.
11 changes: 9 additions & 2 deletions sdk/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ src/models/BaseResult.ts
src/models/Coin.ts
src/models/CoinResult.ts
src/models/CreateGroupsPayload.ts
src/models/CreateInstagramPayload.ts
src/models/CreateLetterPayload.ts
src/models/CreateLinkPayload.ts
src/models/CreateLotteryPayload.ts
src/models/CreateRafflePayload.ts
src/models/CreateRandomNumberPayload.ts
src/models/CreateSecretSantaPayload.ts
src/models/CreateSecretSantaPayloadParticipantsInner.ts
src/models/CreateShiftsPayload.ts
src/models/CreateTiktokPayload.ts
src/models/CreateTournamentPayload.ts
src/models/DrawMetadata.ts
src/models/DrawReTossPayload.ts
Expand All @@ -41,6 +45,7 @@ src/models/Groups.ts
src/models/GroupsFields.ts
src/models/GroupsResult.ts
src/models/Instagram.ts
src/models/InstagramFields.ts
src/models/InstagramResult.ts
src/models/InstagramResultAllOfComment.ts
src/models/InstagramResultAllOfValue.ts
Expand Down Expand Up @@ -68,11 +73,12 @@ src/models/RandomNumber.ts
src/models/RandomNumberFields.ts
src/models/RandomNumberResult.ts
src/models/RedeemPromoCode.ts
src/models/SecretSanta.ts
src/models/SecretSantaAdminResponse.ts
src/models/SecretSantaAdminResponseParticipantsInner.ts
src/models/SecretSantaCreateResponse.ts
src/models/SecretSantaParticipantsInner.ts
src/models/SecretSantaErrorResponse.ts
src/models/SecretSantaErrorResponseBody.ts
src/models/SecretSantaErrorResponseBodyGeneralInner.ts
src/models/SecretSantaResendEmail.ts
src/models/SecretSantaResendEmailResponse.ts
src/models/SecretSantaResult.ts
Expand All @@ -85,6 +91,7 @@ src/models/ShiftsResultAllOfValue.ts
src/models/Spinner.ts
src/models/SpinnerResult.ts
src/models/Tiktok.ts
src/models/TiktokFields.ts
src/models/TiktokResult.ts
src/models/TiktokResultAllOfComment.ts
src/models/TiktokResultAllOfValue.ts
Expand Down
6 changes: 3 additions & 3 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions sdk/src/apis/InstagramApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@

import * as runtime from '../runtime';
import type {
CreateInstagramPayload,
DrawReTossPayload,
DrawTossPayload,
Instagram,
InstagramResult,
} from '../models/index';
import {
CreateInstagramPayloadFromJSON,
CreateInstagramPayloadToJSON,
DrawReTossPayloadFromJSON,
DrawReTossPayloadToJSON,
DrawTossPayloadFromJSON,
Expand All @@ -32,7 +35,7 @@ import {
} from '../models/index';

export interface InstagramCreateRequest {
instagram: Instagram;
createInstagramPayload: CreateInstagramPayload;
}

export interface InstagramReadRequest {
Expand All @@ -58,7 +61,7 @@ export interface InstagramTossRequest {
export interface InstagramApiInterface {
/**
*
* @param {Instagram} instagram
* @param {CreateInstagramPayload} createInstagramPayload
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof InstagramApiInterface
Expand Down Expand Up @@ -120,10 +123,10 @@ export class InstagramApi extends runtime.BaseAPI implements InstagramApiInterfa
/**
*/
async instagramCreateRaw(requestParameters: InstagramCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Instagram>> {
if (requestParameters['instagram'] == null) {
if (requestParameters['createInstagramPayload'] == null) {
throw new runtime.RequiredError(
'instagram',
'Required parameter "instagram" was null or undefined when calling instagramCreate().'
'createInstagramPayload',
'Required parameter "createInstagramPayload" was null or undefined when calling instagramCreate().'
);
}

Expand All @@ -138,7 +141,7 @@ export class InstagramApi extends runtime.BaseAPI implements InstagramApiInterfa
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: InstagramToJSON(requestParameters['instagram']),
body: CreateInstagramPayloadToJSON(requestParameters['createInstagramPayload']),
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => InstagramFromJSON(jsonValue));
Expand Down
21 changes: 12 additions & 9 deletions sdk/src/apis/SecretSantaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,23 @@

import * as runtime from '../runtime';
import type {
SecretSanta,
CreateSecretSantaPayload,
SecretSantaAdminResponse,
SecretSantaCreateResponse,
SecretSantaErrorResponse,
SecretSantaResendEmail,
SecretSantaResendEmailResponse,
SecretSantaResult,
} from '../models/index';
import {
SecretSantaFromJSON,
SecretSantaToJSON,
CreateSecretSantaPayloadFromJSON,
CreateSecretSantaPayloadToJSON,
SecretSantaAdminResponseFromJSON,
SecretSantaAdminResponseToJSON,
SecretSantaCreateResponseFromJSON,
SecretSantaCreateResponseToJSON,
SecretSantaErrorResponseFromJSON,
SecretSantaErrorResponseToJSON,
SecretSantaResendEmailFromJSON,
SecretSantaResendEmailToJSON,
SecretSantaResendEmailResponseFromJSON,
Expand All @@ -38,7 +41,7 @@ import {
} from '../models/index';

export interface SecretSantaCreateRequest {
secretSanta: SecretSanta;
createSecretSantaPayload: CreateSecretSantaPayload;
}

export interface SecretSantaResultAdminGetRequest {
Expand All @@ -64,7 +67,7 @@ export interface SecretSantaResultGetRequest {
export interface SecretSantaApiInterface {
/**
*
* @param {SecretSanta} secretSanta
* @param {CreateSecretSantaPayload} createSecretSantaPayload
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SecretSantaApiInterface
Expand Down Expand Up @@ -126,10 +129,10 @@ export class SecretSantaApi extends runtime.BaseAPI implements SecretSantaApiInt
/**
*/
async secretSantaCreateRaw(requestParameters: SecretSantaCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecretSantaCreateResponse>> {
if (requestParameters['secretSanta'] == null) {
if (requestParameters['createSecretSantaPayload'] == null) {
throw new runtime.RequiredError(
'secretSanta',
'Required parameter "secretSanta" was null or undefined when calling secretSantaCreate().'
'createSecretSantaPayload',
'Required parameter "createSecretSantaPayload" was null or undefined when calling secretSantaCreate().'
);
}

Expand All @@ -144,7 +147,7 @@ export class SecretSantaApi extends runtime.BaseAPI implements SecretSantaApiInt
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: SecretSantaToJSON(requestParameters['secretSanta']),
body: CreateSecretSantaPayloadToJSON(requestParameters['createSecretSantaPayload']),
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => SecretSantaCreateResponseFromJSON(jsonValue));
Expand Down
15 changes: 9 additions & 6 deletions sdk/src/apis/TiktokApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@

import * as runtime from '../runtime';
import type {
CreateTiktokPayload,
DrawReTossPayload,
DrawTossPayload,
Tiktok,
TiktokResult,
} from '../models/index';
import {
CreateTiktokPayloadFromJSON,
CreateTiktokPayloadToJSON,
DrawReTossPayloadFromJSON,
DrawReTossPayloadToJSON,
DrawTossPayloadFromJSON,
Expand All @@ -32,7 +35,7 @@ import {
} from '../models/index';

export interface TiktokCreateRequest {
tiktok: Tiktok;
createTiktokPayload: CreateTiktokPayload;
}

export interface TiktokReadRequest {
Expand All @@ -58,7 +61,7 @@ export interface TiktokTossRequest {
export interface TiktokApiInterface {
/**
*
* @param {Tiktok} tiktok
* @param {CreateTiktokPayload} createTiktokPayload
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TiktokApiInterface
Expand Down Expand Up @@ -120,10 +123,10 @@ export class TiktokApi extends runtime.BaseAPI implements TiktokApiInterface {
/**
*/
async tiktokCreateRaw(requestParameters: TiktokCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Tiktok>> {
if (requestParameters['tiktok'] == null) {
if (requestParameters['createTiktokPayload'] == null) {
throw new runtime.RequiredError(
'tiktok',
'Required parameter "tiktok" was null or undefined when calling tiktokCreate().'
'createTiktokPayload',
'Required parameter "createTiktokPayload" was null or undefined when calling tiktokCreate().'
);
}

Expand All @@ -138,7 +141,7 @@ export class TiktokApi extends runtime.BaseAPI implements TiktokApiInterface {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: TiktokToJSON(requestParameters['tiktok']),
body: CreateTiktokPayloadToJSON(requestParameters['createTiktokPayload']),
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => TiktokFromJSON(jsonValue));
Expand Down
107 changes: 107 additions & 0 deletions sdk/src/models/CreateInstagramPayload.ts
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'],
};
}

Loading

0 comments on commit 4680c82

Please sign in to comment.