Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/waves/outcome/WaveManualOutcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import { FC, useState, useEffect } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { ApiWaveOutcome } from "@/generated/models/ApiWaveOutcome";
import { formatNumberWithCommas } from "@/helpers/Helpers";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faAward } from "@fortawesome/free-solid-svg-icons";
import { ApiWaveOutcomeOld } from "@/generated/models/ApiWaveOutcomeOld";

interface WaveManualOutcomeProps {
readonly outcome: ApiWaveOutcome;
readonly outcome: ApiWaveOutcomeOld;
}

const DEFAULT_AMOUNTS_TO_SHOW = 3;
Expand Down
4 changes: 2 additions & 2 deletions components/waves/outcome/WaveNICOutcome.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"use client";

import { FC, useEffect, useState } from "react";
import { ApiWaveOutcome } from "@/generated/models/ApiWaveOutcome";
import { ApiWaveOutcomeOld } from "@/generated/models/ApiWaveOutcomeOld";
import { formatNumberWithCommas } from "@/helpers/Helpers";
import { motion, AnimatePresence } from "framer-motion";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faAddressCard } from "@fortawesome/free-regular-svg-icons";

interface WaveNICOutcomeProps {
readonly outcome: ApiWaveOutcome;
readonly outcome: ApiWaveOutcomeOld;
}

const DEFAULT_AMOUNTS_TO_SHOW = 3;
Expand Down
4 changes: 2 additions & 2 deletions components/waves/outcome/WaveOutcome.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FC, type JSX } from "react";
import { ApiWaveOutcome } from "@/generated/models/ApiWaveOutcome";
import { ApiWaveOutcomeOld } from "@/generated/models/ApiWaveOutcomeOld";
import { WaveRepOutcome } from "./WaveRepOutcome";
import { WaveNICOutcome } from "./WaveNICOutcome";
import { WaveManualOutcome } from "./WaveManualOutcome";
Expand All @@ -12,7 +12,7 @@ enum OutcomeType {
}

interface WaveOutcomeProps {
readonly outcome: ApiWaveOutcome;
readonly outcome: ApiWaveOutcomeOld;
}

export const WaveOutcome: FC<WaveOutcomeProps> = ({
Expand Down
4 changes: 2 additions & 2 deletions components/waves/outcome/WaveRepOutcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import { FC, useEffect, useState } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { ApiWaveOutcome } from "@/generated/models/ApiWaveOutcome";
import { ApiWaveOutcomeOld } from "@/generated/models/ApiWaveOutcomeOld";
import { formatNumberWithCommas } from "@/helpers/Helpers";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faStar } from "@fortawesome/free-regular-svg-icons";

interface WaveRepOutcomeProps {
readonly outcome: ApiWaveOutcome;
readonly outcome: ApiWaveOutcomeOld;
}

const DEFAULT_AMOUNTS_TO_SHOW = 3;
Expand Down
6 changes: 3 additions & 3 deletions generated/models/ApiCreateNewWave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { ApiCreateNewWaveVisibilityConfig } from '../models/ApiCreateNewWaveVisi
import { ApiCreateNewWaveVotingConfig } from '../models/ApiCreateNewWaveVotingConfig';
import { ApiCreateWaveConfig } from '../models/ApiCreateWaveConfig';
import { ApiCreateWaveDropRequest } from '../models/ApiCreateWaveDropRequest';
import { ApiWaveOutcome } from '../models/ApiWaveOutcome';
import { ApiCreateWaveOutcome } from '../models/ApiCreateWaveOutcome';
import { HttpFile } from '../http/http';

export class ApiCreateNewWave {
Expand All @@ -34,7 +34,7 @@ export class ApiCreateNewWave {
'participation': ApiCreateNewWaveParticipationConfig;
'chat': ApiCreateNewWaveChatConfig;
'wave': ApiCreateWaveConfig;
'outcomes': Array<ApiWaveOutcome>;
'outcomes': Array<ApiCreateWaveOutcome>;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -92,7 +92,7 @@ export class ApiCreateNewWave {
{
"name": "outcomes",
"baseName": "outcomes",
"type": "Array<ApiWaveOutcome>",
"type": "Array<ApiCreateWaveOutcome>",
"format": ""
} ];

Expand Down
84 changes: 84 additions & 0 deletions generated/models/ApiCreateWaveOutcome.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/**
* 6529.io API
* This is the API interface description. Brief terminology overview and an authentication example can be found at <a href=\"https://6529.io/about/api\">https://6529.io/about/api</a>.
*
* OpenAPI spec version: 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 { ApiCreateWaveOutcomeDistributionItem } from '../models/ApiCreateWaveOutcomeDistributionItem';
import { ApiWaveOutcomeCredit } from '../models/ApiWaveOutcomeCredit';
import { ApiWaveOutcomeSubType } from '../models/ApiWaveOutcomeSubType';
import { ApiWaveOutcomeType } from '../models/ApiWaveOutcomeType';
import { HttpFile } from '../http/http';

export class ApiCreateWaveOutcome {
'type': ApiWaveOutcomeType;
'subtype'?: ApiWaveOutcomeSubType;
'description': string;
'credit'?: ApiWaveOutcomeCredit;
'rep_category'?: string;
'amount'?: number;
'distribution'?: Array<ApiCreateWaveOutcomeDistributionItem>;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "type",
"baseName": "type",
"type": "ApiWaveOutcomeType",
"format": ""
},
{
"name": "subtype",
"baseName": "subtype",
"type": "ApiWaveOutcomeSubType",
"format": ""
},
{
"name": "description",
"baseName": "description",
"type": "string",
"format": ""
},
{
"name": "credit",
"baseName": "credit",
"type": "ApiWaveOutcomeCredit",
"format": ""
},
{
"name": "rep_category",
"baseName": "rep_category",
"type": "string",
"format": ""
},
{
"name": "amount",
"baseName": "amount",
"type": "number",
"format": "int64"
},
{
"name": "distribution",
"baseName": "distribution",
"type": "Array<ApiCreateWaveOutcomeDistributionItem>",
"format": ""
} ];

static getAttributeTypeMap() {
return ApiCreateWaveOutcome.attributeTypeMap;
}

public constructor() {
}
}


43 changes: 43 additions & 0 deletions generated/models/ApiCreateWaveOutcomeDistributionItem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* 6529.io API
* This is the API interface description. Brief terminology overview and an authentication example can be found at <a href=\"https://6529.io/about/api\">https://6529.io/about/api</a>.
*
* OpenAPI spec version: 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 { HttpFile } from '../http/http';

export class ApiCreateWaveOutcomeDistributionItem {
'amount'?: number | null;
'description'?: string | null;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "amount",
"baseName": "amount",
"type": "number",
"format": "int64"
},
{
"name": "description",
"baseName": "description",
"type": "string",
"format": ""
} ];

static getAttributeTypeMap() {
return ApiCreateWaveOutcomeDistributionItem.attributeTypeMap;
}

public constructor() {
}
}
8 changes: 0 additions & 8 deletions generated/models/ApiUpdateWaveRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { ApiCreateNewWaveParticipationConfig } from '../models/ApiCreateNewWaveP
import { ApiCreateNewWaveVisibilityConfig } from '../models/ApiCreateNewWaveVisibilityConfig';
import { ApiCreateNewWaveVotingConfig } from '../models/ApiCreateNewWaveVotingConfig';
import { ApiCreateWaveConfig } from '../models/ApiCreateWaveConfig';
import { ApiWaveOutcome } from '../models/ApiWaveOutcome';
import { HttpFile } from '../http/http';

export class ApiUpdateWaveRequest {
Expand All @@ -32,7 +31,6 @@ export class ApiUpdateWaveRequest {
'participation': ApiCreateNewWaveParticipationConfig;
'chat': ApiCreateNewWaveChatConfig;
'wave': ApiCreateWaveConfig;
'outcomes': Array<ApiWaveOutcome>;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -80,12 +78,6 @@ export class ApiUpdateWaveRequest {
"baseName": "wave",
"type": "ApiCreateWaveConfig",
"format": ""
},
{
"name": "outcomes",
"baseName": "outcomes",
"type": "Array<ApiWaveOutcome>",
"format": ""
} ];

static getAttributeTypeMap() {
Expand Down
6 changes: 3 additions & 3 deletions generated/models/ApiWave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ApiWaveConfig } from '../models/ApiWaveConfig';
import { ApiWaveContributorOverview } from '../models/ApiWaveContributorOverview';
import { ApiWaveDecisionPause } from '../models/ApiWaveDecisionPause';
import { ApiWaveMetrics } from '../models/ApiWaveMetrics';
import { ApiWaveOutcome } from '../models/ApiWaveOutcome';
import { ApiWaveOutcomeOld } from '../models/ApiWaveOutcomeOld';
import { ApiWaveParticipationConfig } from '../models/ApiWaveParticipationConfig';
import { ApiWaveSubscriptionTargetAction } from '../models/ApiWaveSubscriptionTargetAction';
import { ApiWaveVisibilityConfig } from '../models/ApiWaveVisibilityConfig';
Expand Down Expand Up @@ -49,7 +49,7 @@ export class ApiWave {
'participation': ApiWaveParticipationConfig;
'chat': ApiWaveChatConfig;
'wave': ApiWaveConfig;
'outcomes': Array<ApiWaveOutcome>;
'outcomes': Array<ApiWaveOutcomeOld>;
'contributors_overview': Array<ApiWaveContributorOverview>;
'subscribed_actions': Array<ApiWaveSubscriptionTargetAction>;
'metrics': ApiWaveMetrics;
Expand Down Expand Up @@ -136,7 +136,7 @@ export class ApiWave {
{
"name": "outcomes",
"baseName": "outcomes",
"type": "Array<ApiWaveOutcome>",
"type": "Array<ApiWaveOutcomeOld>",
"format": ""
},
{
Expand Down
11 changes: 5 additions & 6 deletions generated/models/ApiWaveOutcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

import { ApiWaveOutcomeCredit } from '../models/ApiWaveOutcomeCredit';
import { ApiWaveOutcomeDistributionItem } from '../models/ApiWaveOutcomeDistributionItem';
import { ApiWaveOutcomeSubType } from '../models/ApiWaveOutcomeSubType';
import { ApiWaveOutcomeType } from '../models/ApiWaveOutcomeType';
import { HttpFile } from '../http/http';
Expand All @@ -23,7 +22,7 @@ export class ApiWaveOutcome {
'credit'?: ApiWaveOutcomeCredit;
'rep_category'?: string;
'amount'?: number;
'distribution'?: Array<ApiWaveOutcomeDistributionItem>;
'index': number;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -67,10 +66,10 @@ export class ApiWaveOutcome {
"format": "int64"
},
{
"name": "distribution",
"baseName": "distribution",
"type": "Array<ApiWaveOutcomeDistributionItem>",
"format": ""
"name": "index",
"baseName": "index",
"type": "number",
"format": "int64"
} ];

static getAttributeTypeMap() {
Expand Down
7 changes: 7 additions & 0 deletions generated/models/ApiWaveOutcomeDistributionItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { HttpFile } from '../http/http';

export class ApiWaveOutcomeDistributionItem {
'index': number;
'amount'?: number | null;
'description'?: string | null;

Expand All @@ -21,6 +22,12 @@ export class ApiWaveOutcomeDistributionItem {
static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "index",
"baseName": "index",
"type": "number",
"format": "int64"
},
{
"name": "amount",
"baseName": "amount",
Expand Down
58 changes: 58 additions & 0 deletions generated/models/ApiWaveOutcomeDistributionItemsPage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* 6529.io API
* This is the API interface description. Brief terminology overview and an authentication example can be found at <a href=\"https://6529.io/about/api\">https://6529.io/about/api</a>.
*
* OpenAPI spec version: 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 { ApiWaveOutcomeDistributionItem } from '../models/ApiWaveOutcomeDistributionItem';
import { HttpFile } from '../http/http';

export class ApiWaveOutcomeDistributionItemsPage {
'data': Array<ApiWaveOutcomeDistributionItem>;
'count': number;
'page': number;
'next': boolean;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "data",
"baseName": "data",
"type": "Array<ApiWaveOutcomeDistributionItem>",
"format": ""
},
{
"name": "count",
"baseName": "count",
"type": "number",
"format": "int64"
},
{
"name": "page",
"baseName": "page",
"type": "number",
"format": "int64"
},
{
"name": "next",
"baseName": "next",
"type": "boolean",
"format": ""
} ];

static getAttributeTypeMap() {
return ApiWaveOutcomeDistributionItemsPage.attributeTypeMap;
}

public constructor() {
}
}
Loading