From 4afbeb17589ce38dd6d40bb620f53ee400438bdb Mon Sep 17 00:00:00 2001 From: Alexandre Sanchez Date: Wed, 18 Jan 2023 00:47:52 +0100 Subject: [PATCH] feat: add basic counter setup --- .env.example | 4 +- fly.toml | 4 +- nest-cli.json | 15 +- package-lock.json | 69 ++++- package.json | 2 + src/app.module.ts | 3 +- src/counter/counter.controller.spec.ts | 20 ++ src/counter/counter.controller.ts | 24 ++ src/counter/counter.module.ts | 9 + src/counter/counter.service.spec.ts | 18 ++ src/counter/counter.service.ts | 27 ++ .../interfaces/counter-message.interface.ts | 29 ++ src/helloasso/api-interface/HelloAssoApi.ts | 84 +++--- src/helloasso/api-interface/core/ApiError.ts | 28 +- .../api-interface/core/ApiRequestOptions.ts | 24 +- src/helloasso/api-interface/core/ApiResult.ts | 12 +- .../api-interface/core/AxiosHttpRequest.ts | 15 +- .../api-interface/core/BaseHttpRequest.ts | 9 +- .../api-interface/core/CancelablePromise.ts | 109 ++++--- src/helloasso/api-interface/core/OpenAPI.ts | 36 +-- src/helloasso/api-interface/core/request.ts | 281 +++++++++--------- src/helloasso/api-interface/index.ts | 186 ++++++------ ...V5_Models_Account_OrganismCategoryModel.ts | 9 +- ...dels_Accounts_ApiClients_ApiClientModel.ts | 13 +- ...lients_PublicPutPartnerApiClientRequest.ts | 5 +- ...piNotifications_ApiUrlNotificationModel.ts | 5 +- ...otifications_PostApiUrlNotificationBody.ts | 5 +- ..._V5_Models_Carts_CheckoutIntentResponse.ts | 13 +- ...oAsso_Api_V5_Models_Carts_CheckoutPayer.ts | 21 +- ...loAsso_Api_V5_Models_Carts_CheckoutTerm.ts | 7 +- ...so_Api_V5_Models_Carts_InitCheckoutBody.ts | 29 +- ...pi_V5_Models_Carts_InitCheckoutResponse.ts | 7 +- ...oAsso_Api_V5_Models_Common_ContactModel.ts | 7 +- ...Asso_Api_V5_Models_Common_DocumentModel.ts | 7 +- ...elloAsso_Api_V5_Models_Common_MetaModel.ts | 7 +- ...so_Api_V5_Models_Common_PaginationModel.ts | 13 +- ...lloAsso_Api_V5_Models_Common_PlaceModel.ts | 17 +- ...dels_Directory_PartnerOrganizationModel.ts | 26 +- ...odels_Directory_SynchronizableFormModel.ts | 26 +- ...rectory_SynchronizableOrganizationModel.ts | 26 +- ...Asso_Api_V5_Models_Forms_FormLightModel.ts | 11 +- ...HelloAsso_Api_V5_Models_Statistics_Item.ts | 11 +- ...elloAsso_Api_V5_Models_Statistics_Order.ts | 11 +- ...loAsso_Api_V5_Models_Statistics_Payment.ts | 11 +- ...ectory_DirectoryOrganizationPublicModel.ts | 45 ++- ...pi_V5_Models_Directory_ListFormsRequest.ts | 63 ++-- ...dels_Directory_ListOrganizationsRequest.ts | 27 +- ...dels_Directory_PartnerOrganizationModel.ts | 9 +- ...odels_Directory_SynchronizableFormModel.ts | 11 +- ...rectory_SynchronizableOrganizationModel.ts | 11 +- ...HelloAsso_Api_V5_Models_Enums_FieldType.ts | 18 +- ...HelloAsso_Api_V5_Models_Enums_FormState.ts | 8 +- .../HelloAsso_Api_V5_Models_Enums_FormType.ts | 14 +- ...HelloAsso_Api_V5_Models_Enums_ItemState.ts | 8 +- ..._V5_Models_Enums_MembershipValidityType.ts | 6 +- ...so_Api_V5_Models_Enums_OrganizationType.ts | 36 +-- ...Api_V5_Models_Enums_PaymentCashOutState.ts | 20 +- ...pi_V5_Models_Enums_PaymentFrequencyType.ts | 6 +- ...loAsso_Api_V5_Models_Enums_PaymentMeans.ts | 8 +- ...5_Models_Enums_PaymentOffLineMeansModel.ts | 6 +- ...loAsso_Api_V5_Models_Enums_PaymentState.ts | 16 +- ...lloAsso_Api_V5_Models_Enums_PaymentType.ts | 6 +- ...oAsso_Api_V5_Models_Enums_PriceCategory.ts | 6 +- ...so_Api_V5_Models_Enums_RecordActionType.ts | 4 +- .../HelloAsso_Api_V5_Models_Enums_TierType.ts | 20 +- ...Asso_Api_V5_Models_Forms_FormBasicModel.ts | 13 +- ...Asso_Api_V5_Models_Forms_FormLightModel.ts | 49 ++- ...sso_Api_V5_Models_Forms_FormPublicModel.ts | 73 +++-- ...pi_V5_Models_Forms_FormQuickCreateModel.ts | 9 +- ..._V5_Models_Forms_FormQuickCreateRequest.ts | 79 +++-- ...HelloAsso_Api_V5_Models_Forms_TermModel.ts | 7 +- ...Asso_Api_V5_Models_Forms_TierLightModel.ts | 7 +- ...sso_Api_V5_Models_Forms_TierPublicModel.ts | 43 ++- ...els_Organization_OrganizationBasicModel.ts | 7 +- ...els_Organization_OrganizationLightModel.ts | 21 +- ...5_Models_Organization_OrganizationModel.ts | 41 ++- ...so_Api_V5_Models_PartnerStatisticsModel.ts | 13 +- ...i_V5_Models_Partners_PartnerPublicModel.ts | 23 +- ...HelloAsso_Api_V5_Models_Statistics_Item.ts | 63 ++-- ...pi_V5_Models_Statistics_ItemCustomField.ts | 11 +- ...sso_Api_V5_Models_Statistics_ItemDetail.ts | 63 ++-- ...o_Api_V5_Models_Statistics_ItemDiscount.ts | 7 +- ...sso_Api_V5_Models_Statistics_ItemOption.ts | 17 +- ...so_Api_V5_Models_Statistics_ItemPayment.ts | 39 ++- ...elloAsso_Api_V5_Models_Statistics_Order.ts | 39 ++- ...i_V5_Models_Statistics_OrderAmountModel.ts | 9 +- ...so_Api_V5_Models_Statistics_OrderDetail.ts | 39 ++- ...Asso_Api_V5_Models_Statistics_OrderItem.ts | 55 ++-- ...sso_Api_V5_Models_Statistics_OrderLight.ts | 23 +- ...o_Api_V5_Models_Statistics_OrderPayment.ts | 47 ++- ...elloAsso_Api_V5_Models_Statistics_Payer.ts | 21 +- ...loAsso_Api_V5_Models_Statistics_Payment.ts | 55 ++-- ..._Api_V5_Models_Statistics_PaymentDetail.ts | 55 ++-- ...so_Api_V5_Models_Statistics_PaymentItem.ts | 23 +- ...Asso_Api_V5_Models_Statistics_ShareItem.ts | 11 +- ...o_Api_V5_Models_Statistics_SharePayment.ts | 7 +- ...HelloAsso_Api_V5_Models_Statistics_User.ts | 7 +- ...oAsso_Api_V5_Models_Tags_PublicTagModel.ts | 7 +- .../HelloAsso_Models_Enums_GlobalRole.ts | 6 +- .../HelloAsso_Models_Shared_GeoLocation.ts | 7 +- .../CheckoutIntentsManagementService.ts | 46 ++- .../services/DirectoryService.ts | 50 ++-- .../api-interface/services/FormsService.ts | 112 ++++--- .../services/OrdersItemsService.ts | 218 +++++++------- .../OrganizationVisualisationService.ts | 26 +- .../services/PartnerManagementService.ts | 76 +++-- .../services/PaymentsManagementService.ts | 132 ++++---- .../api-interface/services/UsersService.ts | 22 +- .../services/ValuesDefinitionsService.ts | 38 ++- .../dto/helloasso-notification.dto.ts | 9 + src/helloasso/helloasso.controller.ts | 2 + src/setup-nest.ts | 32 +- 112 files changed, 1783 insertions(+), 1619 deletions(-) create mode 100644 src/counter/counter.controller.spec.ts create mode 100644 src/counter/counter.controller.ts create mode 100644 src/counter/counter.module.ts create mode 100644 src/counter/counter.service.spec.ts create mode 100644 src/counter/counter.service.ts create mode 100644 src/counter/interfaces/counter-message.interface.ts diff --git a/.env.example b/.env.example index 5190bf1..99582e9 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,6 @@ NODE_ENV=development API_DOMAIN=localhost PORT=3000 -CORS_ORIGINS=http://localhost,http://localhost:3000 +CORS_ORIGINS=http://localhost,http://localhost:3000,https://piquetde.stream + +REDIS_URL=redis://localhost:6379 diff --git a/fly.toml b/fly.toml index 8e674c7..fc60fb5 100644 --- a/fly.toml +++ b/fly.toml @@ -23,8 +23,8 @@ processes = [] protocol = "tcp" script_checks = [] [services.concurrency] - hard_limit = 25 - soft_limit = 20 + hard_limit = 100 + soft_limit = 90 type = "connections" [[services.ports]] diff --git a/nest-cli.json b/nest-cli.json index f9aa683..92265e1 100644 --- a/nest-cli.json +++ b/nest-cli.json @@ -1,8 +1,11 @@ { - "$schema": "https://json.schemastore.org/nest-cli", - "collection": "@nestjs/schematics", - "sourceRoot": "src", - "compilerOptions": { - "deleteOutDir": true - } + "$schema": "https://json.schemastore.org/nest-cli", + "collection": "@nestjs/schematics", + "sourceRoot": "src", + "compilerOptions": { + "plugins": [ + "@nestjs/swagger" + ], + "deleteOutDir": true + } } diff --git a/package-lock.json b/package-lock.json index 2299272..120e167 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,10 +13,12 @@ "@nestjs/config": "^2.2.0", "@nestjs/core": "^9.2.1", "@nestjs/platform-express": "^9.2.1", + "@nestjs/swagger": "^6.1.4", "axios": "^1.2.2", "class-transformer": "^0.5.1", "class-validator": "^0.14.0", "dayjs": "^1.11.7", + "helmet": "^6.0.1", "reflect-metadata": "^0.1.13", "rxjs": "^7.8.0" }, @@ -2002,6 +2004,56 @@ "typescript": "^4.3.5" } }, + "node_modules/@nestjs/swagger": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/@nestjs/swagger/-/swagger-6.1.4.tgz", + "integrity": "sha512-kE8VjR+NaoKqxg8XqM/YYfALScPh4AcoR8Wywga8/OxHsTHY+MKxqvTpWp7IhCUWSA6xT8nQUpcC9Rt7C+r7Hw==", + "dependencies": { + "@nestjs/mapped-types": "1.2.0", + "js-yaml": "4.1.0", + "lodash": "4.17.21", + "path-to-regexp": "3.2.0", + "swagger-ui-dist": "4.15.5" + }, + "peerDependencies": { + "@fastify/static": "^6.0.0", + "@nestjs/common": "^9.0.0", + "@nestjs/core": "^9.0.0", + "class-transformer": "*", + "class-validator": "*", + "reflect-metadata": "^0.1.12" + }, + "peerDependenciesMeta": { + "@fastify/static": { + "optional": true + }, + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/@nestjs/swagger/node_modules/@nestjs/mapped-types": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@nestjs/mapped-types/-/mapped-types-1.2.0.tgz", + "integrity": "sha512-NTFwPZkQWsArQH8QSyFWGZvJ08gR+R4TofglqZoihn/vU+ktHEJjMqsIsADwb7XD97DhiD+TVv5ac+jG33BHrg==", + "peerDependencies": { + "@nestjs/common": "^7.0.8 || ^8.0.0 || ^9.0.0", + "class-transformer": "^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0", + "class-validator": "^0.11.1 || ^0.12.0 || ^0.13.0", + "reflect-metadata": "^0.1.12" + }, + "peerDependenciesMeta": { + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, "node_modules/@nestjs/testing": { "version": "9.2.1", "resolved": "https://registry.npmjs.org/@nestjs/testing/-/testing-9.2.1.tgz", @@ -3325,8 +3377,7 @@ "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/argv-formatter": { "version": "1.0.0", @@ -6194,6 +6245,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/helmet": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-6.0.1.tgz", + "integrity": "sha512-8wo+VdQhTMVBMCITYZaGTbE4lvlthelPYSvoyNvk4RECTmrVjMerp9RfUOQXZWLvCcAn1pKj7ZRxK4lI9Alrcw==", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/hexoid": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", @@ -7690,7 +7749,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, "dependencies": { "argparse": "^2.0.1" }, @@ -13516,6 +13574,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/swagger-ui-dist": { + "version": "4.15.5", + "resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-4.15.5.tgz", + "integrity": "sha512-V3eIa28lwB6gg7/wfNvAbjwJYmDXy1Jo1POjyTzlB6wPcHiGlRxq39TSjYGVjQrUSAzpv+a7nzp7mDxgNy57xA==" + }, "node_modules/symbol-observable": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", diff --git a/package.json b/package.json index 7b1dc2f..a62cc19 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,12 @@ "@nestjs/config": "^2.2.0", "@nestjs/core": "^9.2.1", "@nestjs/platform-express": "^9.2.1", + "@nestjs/swagger": "^6.1.4", "axios": "^1.2.2", "class-transformer": "^0.5.1", "class-validator": "^0.14.0", "dayjs": "^1.11.7", + "helmet": "^6.0.1", "reflect-metadata": "^0.1.13", "rxjs": "^7.8.0" }, diff --git a/src/app.module.ts b/src/app.module.ts index 13c2908..2a772cd 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -3,9 +3,10 @@ import { AppController } from "./app.controller" import { AppService } from "./app.service" import { ExtendedConfigModule } from "./config/config.module" import { HelloAssoModule } from "./helloasso/helloasso.module" +import { CounterModule } from "./counter/counter.module" @Module({ - imports: [ExtendedConfigModule, HelloAssoModule], + imports: [ExtendedConfigModule, HelloAssoModule, CounterModule], controllers: [AppController], providers: [AppService] }) diff --git a/src/counter/counter.controller.spec.ts b/src/counter/counter.controller.spec.ts new file mode 100644 index 0000000..06cab8e --- /dev/null +++ b/src/counter/counter.controller.spec.ts @@ -0,0 +1,20 @@ +import { Test, TestingModule } from "@nestjs/testing" +import { CounterController } from "./counter.controller" +import { CounterService } from "./counter.service" + +describe("CounterController", () => { + let controller: CounterController + + beforeEach(async () => { + const module: TestingModule = await Test.createTestingModule({ + providers: [CounterService], + controllers: [CounterController] + }).compile() + + controller = module.get(CounterController) + }) + + it("should be defined", () => { + expect(controller).toBeDefined() + }) +}) diff --git a/src/counter/counter.controller.ts b/src/counter/counter.controller.ts new file mode 100644 index 0000000..8822be2 --- /dev/null +++ b/src/counter/counter.controller.ts @@ -0,0 +1,24 @@ +import { Controller, Get, Sse } from "@nestjs/common" +import { ApiTags } from "@nestjs/swagger" +import { from, map, Observable } from "rxjs" +import { CounterService } from "./counter.service" +import { CounterMessage, CounterMessagePayload } from "./interfaces/counter-message.interface" + +@ApiTags("Counter") +@Controller("counter") +export class CounterController { + constructor(private readonly counterService: CounterService) {} + + @Sse("sse") + counterSse(): Observable { + return from(this.counterService.counterSubject).pipe(map((data) => data)) + } + + @Get("state") + getState(): CounterMessagePayload { + return { + amount: 0, + updatedAt: Date.now() + } + } +} diff --git a/src/counter/counter.module.ts b/src/counter/counter.module.ts new file mode 100644 index 0000000..34e0c3e --- /dev/null +++ b/src/counter/counter.module.ts @@ -0,0 +1,9 @@ +import { Module } from "@nestjs/common" +import { CounterController } from "./counter.controller" +import { CounterService } from "./counter.service" + +@Module({ + controllers: [CounterController], + providers: [CounterService] +}) +export class CounterModule {} diff --git a/src/counter/counter.service.spec.ts b/src/counter/counter.service.spec.ts new file mode 100644 index 0000000..dc4682e --- /dev/null +++ b/src/counter/counter.service.spec.ts @@ -0,0 +1,18 @@ +import { Test, TestingModule } from "@nestjs/testing" +import { CounterService } from "./counter.service" + +describe("CounterService", () => { + let service: CounterService + + beforeEach(async () => { + const module: TestingModule = await Test.createTestingModule({ + providers: [CounterService] + }).compile() + + service = module.get(CounterService) + }) + + it("should be defined", () => { + expect(service).toBeDefined() + }) +}) diff --git a/src/counter/counter.service.ts b/src/counter/counter.service.ts new file mode 100644 index 0000000..fcb0386 --- /dev/null +++ b/src/counter/counter.service.ts @@ -0,0 +1,27 @@ +import { Injectable } from "@nestjs/common" +import { Subject } from "rxjs" +import { CounterMessage, CounterMessagePayload } from "./interfaces/counter-message.interface" + +@Injectable() +export class CounterService { + public counterSubject: Subject + + constructor() { + this.counterSubject = new Subject() + } + + public updateCounter(amount: number): void { + const payload: CounterMessagePayload = { + amount, + updatedAt: Date.now() + } + this.counterSubject.next({ data: payload, type: "counter-update" }) + } + + public newDonation(amount: number): void { + const payload: CounterMessagePayload = { + amount + } + this.counterSubject.next({ data: payload, type: "new-donation" }) + } +} diff --git a/src/counter/interfaces/counter-message.interface.ts b/src/counter/interfaces/counter-message.interface.ts new file mode 100644 index 0000000..a3ace14 --- /dev/null +++ b/src/counter/interfaces/counter-message.interface.ts @@ -0,0 +1,29 @@ +export interface NewDonationEvent { + data: NewDonationPayload + id?: string + type: "new-donation" + retry?: number +} + +export interface NewDonationPayload { + // Amount of the donation in euros + amount: number +} + +export interface CounterUpdateEvent { + data: CounterUpdatePayload + id?: string + type: "counter-update" + retry?: number +} + +export interface CounterUpdatePayload { + // Total amount of donations in euros + amount: number + // Timestamp in milliseconds + updatedAt: number +} + +export type CounterMessage = NewDonationEvent | CounterUpdateEvent + +export type CounterMessagePayload = NewDonationPayload | CounterUpdatePayload diff --git a/src/helloasso/api-interface/HelloAssoApi.ts b/src/helloasso/api-interface/HelloAssoApi.ts index 0aa5746..815c522 100644 --- a/src/helloasso/api-interface/HelloAssoApi.ts +++ b/src/helloasso/api-interface/HelloAssoApi.ts @@ -1,58 +1,56 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { BaseHttpRequest } from './core/BaseHttpRequest'; -import type { OpenAPIConfig } from './core/OpenAPI'; -import { AxiosHttpRequest } from './core/AxiosHttpRequest'; - -import { CheckoutIntentsManagementService } from './services/CheckoutIntentsManagementService'; -import { DirectoryService } from './services/DirectoryService'; -import { FormsService } from './services/FormsService'; -import { OrdersItemsService } from './services/OrdersItemsService'; -import { OrganizationVisualisationService } from './services/OrganizationVisualisationService'; -import { PartnerManagementService } from './services/PartnerManagementService'; -import { PaymentsManagementService } from './services/PaymentsManagementService'; -import { UsersService } from './services/UsersService'; -import { ValuesDefinitionsService } from './services/ValuesDefinitionsService'; - -type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest; +import type { BaseHttpRequest } from "./core/BaseHttpRequest" +import type { OpenAPIConfig } from "./core/OpenAPI" +import { AxiosHttpRequest } from "./core/AxiosHttpRequest" + +import { CheckoutIntentsManagementService } from "./services/CheckoutIntentsManagementService" +import { DirectoryService } from "./services/DirectoryService" +import { FormsService } from "./services/FormsService" +import { OrdersItemsService } from "./services/OrdersItemsService" +import { OrganizationVisualisationService } from "./services/OrganizationVisualisationService" +import { PartnerManagementService } from "./services/PartnerManagementService" +import { PaymentsManagementService } from "./services/PaymentsManagementService" +import { UsersService } from "./services/UsersService" +import { ValuesDefinitionsService } from "./services/ValuesDefinitionsService" + +type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest export class HelloAssoApi { - - public readonly checkoutIntentsManagement: CheckoutIntentsManagementService; - public readonly directory: DirectoryService; - public readonly forms: FormsService; - public readonly ordersItems: OrdersItemsService; - public readonly organizationVisualisation: OrganizationVisualisationService; - public readonly partnerManagement: PartnerManagementService; - public readonly paymentsManagement: PaymentsManagementService; - public readonly users: UsersService; - public readonly valuesDefinitions: ValuesDefinitionsService; - - public readonly request: BaseHttpRequest; + public readonly checkoutIntentsManagement: CheckoutIntentsManagementService + public readonly directory: DirectoryService + public readonly forms: FormsService + public readonly ordersItems: OrdersItemsService + public readonly organizationVisualisation: OrganizationVisualisationService + public readonly partnerManagement: PartnerManagementService + public readonly paymentsManagement: PaymentsManagementService + public readonly users: UsersService + public readonly valuesDefinitions: ValuesDefinitionsService + + public readonly request: BaseHttpRequest constructor(config?: Partial, HttpRequest: HttpRequestConstructor = AxiosHttpRequest) { this.request = new HttpRequest({ - BASE: config?.BASE ?? 'https://api.helloasso.com/v5', - VERSION: config?.VERSION ?? '5', + BASE: config?.BASE ?? "https://api.helloasso.com/v5", + VERSION: config?.VERSION ?? "5", WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false, - CREDENTIALS: config?.CREDENTIALS ?? 'include', + CREDENTIALS: config?.CREDENTIALS ?? "include", TOKEN: config?.TOKEN, USERNAME: config?.USERNAME, PASSWORD: config?.PASSWORD, HEADERS: config?.HEADERS, - ENCODE_PATH: config?.ENCODE_PATH, - }); - - this.checkoutIntentsManagement = new CheckoutIntentsManagementService(this.request); - this.directory = new DirectoryService(this.request); - this.forms = new FormsService(this.request); - this.ordersItems = new OrdersItemsService(this.request); - this.organizationVisualisation = new OrganizationVisualisationService(this.request); - this.partnerManagement = new PartnerManagementService(this.request); - this.paymentsManagement = new PaymentsManagementService(this.request); - this.users = new UsersService(this.request); - this.valuesDefinitions = new ValuesDefinitionsService(this.request); + ENCODE_PATH: config?.ENCODE_PATH + }) + + this.checkoutIntentsManagement = new CheckoutIntentsManagementService(this.request) + this.directory = new DirectoryService(this.request) + this.forms = new FormsService(this.request) + this.ordersItems = new OrdersItemsService(this.request) + this.organizationVisualisation = new OrganizationVisualisationService(this.request) + this.partnerManagement = new PartnerManagementService(this.request) + this.paymentsManagement = new PaymentsManagementService(this.request) + this.users = new UsersService(this.request) + this.valuesDefinitions = new ValuesDefinitionsService(this.request) } } - diff --git a/src/helloasso/api-interface/core/ApiError.ts b/src/helloasso/api-interface/core/ApiError.ts index 1dfee0a..5618cde 100644 --- a/src/helloasso/api-interface/core/ApiError.ts +++ b/src/helloasso/api-interface/core/ApiError.ts @@ -1,24 +1,24 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; -import type { ApiResult } from './ApiResult'; +import type { ApiRequestOptions } from "./ApiRequestOptions" +import type { ApiResult } from "./ApiResult" export class ApiError extends Error { - public readonly url: string; - public readonly status: number; - public readonly statusText: string; - public readonly body: any; - public readonly request: ApiRequestOptions; + public readonly url: string + public readonly status: number + public readonly statusText: string + public readonly body: any + public readonly request: ApiRequestOptions constructor(request: ApiRequestOptions, response: ApiResult, message: string) { - super(message); + super(message) - this.name = 'ApiError'; - this.url = response.url; - this.status = response.status; - this.statusText = response.statusText; - this.body = response.body; - this.request = request; + this.name = "ApiError" + this.url = response.url + this.status = response.status + this.statusText = response.statusText + this.body = response.body + this.request = request } } diff --git a/src/helloasso/api-interface/core/ApiRequestOptions.ts b/src/helloasso/api-interface/core/ApiRequestOptions.ts index e21c0ce..f4f324a 100644 --- a/src/helloasso/api-interface/core/ApiRequestOptions.ts +++ b/src/helloasso/api-interface/core/ApiRequestOptions.ts @@ -2,15 +2,15 @@ /* tslint:disable */ /* eslint-disable */ export type ApiRequestOptions = { - readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH'; - readonly url: string; - readonly path?: Record; - readonly cookies?: Record; - readonly headers?: Record; - readonly query?: Record; - readonly formData?: Record; - readonly body?: any; - readonly mediaType?: string; - readonly responseHeader?: string; - readonly errors?: Record; -}; + readonly method: "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" + readonly url: string + readonly path?: Record + readonly cookies?: Record + readonly headers?: Record + readonly query?: Record + readonly formData?: Record + readonly body?: any + readonly mediaType?: string + readonly responseHeader?: string + readonly errors?: Record +} diff --git a/src/helloasso/api-interface/core/ApiResult.ts b/src/helloasso/api-interface/core/ApiResult.ts index 0d0afb8..b2d1c55 100644 --- a/src/helloasso/api-interface/core/ApiResult.ts +++ b/src/helloasso/api-interface/core/ApiResult.ts @@ -2,9 +2,9 @@ /* tslint:disable */ /* eslint-disable */ export type ApiResult = { - readonly url: string; - readonly ok: boolean; - readonly status: number; - readonly statusText: string; - readonly body: any; -}; + readonly url: string + readonly ok: boolean + readonly status: number + readonly statusText: string + readonly body: any +} diff --git a/src/helloasso/api-interface/core/AxiosHttpRequest.ts b/src/helloasso/api-interface/core/AxiosHttpRequest.ts index e721295..bbbdc21 100644 --- a/src/helloasso/api-interface/core/AxiosHttpRequest.ts +++ b/src/helloasso/api-interface/core/AxiosHttpRequest.ts @@ -1,16 +1,15 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; -import { BaseHttpRequest } from './BaseHttpRequest'; -import type { CancelablePromise } from './CancelablePromise'; -import type { OpenAPIConfig } from './OpenAPI'; -import { request as __request } from './request'; +import type { ApiRequestOptions } from "./ApiRequestOptions" +import { BaseHttpRequest } from "./BaseHttpRequest" +import type { CancelablePromise } from "./CancelablePromise" +import type { OpenAPIConfig } from "./OpenAPI" +import { request as __request } from "./request" export class AxiosHttpRequest extends BaseHttpRequest { - constructor(config: OpenAPIConfig) { - super(config); + super(config) } /** @@ -20,6 +19,6 @@ export class AxiosHttpRequest extends BaseHttpRequest { * @throws ApiError */ public override request(options: ApiRequestOptions): CancelablePromise { - return __request(this.config, options); + return __request(this.config, options) } } diff --git a/src/helloasso/api-interface/core/BaseHttpRequest.ts b/src/helloasso/api-interface/core/BaseHttpRequest.ts index c62d588..769af98 100644 --- a/src/helloasso/api-interface/core/BaseHttpRequest.ts +++ b/src/helloasso/api-interface/core/BaseHttpRequest.ts @@ -1,13 +1,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; -import type { CancelablePromise } from './CancelablePromise'; -import type { OpenAPIConfig } from './OpenAPI'; +import type { ApiRequestOptions } from "./ApiRequestOptions" +import type { CancelablePromise } from "./CancelablePromise" +import type { OpenAPIConfig } from "./OpenAPI" export abstract class BaseHttpRequest { - constructor(public readonly config: OpenAPIConfig) {} - public abstract request(options: ApiRequestOptions): CancelablePromise; + public abstract request(options: ApiRequestOptions): CancelablePromise } diff --git a/src/helloasso/api-interface/core/CancelablePromise.ts b/src/helloasso/api-interface/core/CancelablePromise.ts index 6b528ec..56eac0d 100644 --- a/src/helloasso/api-interface/core/CancelablePromise.ts +++ b/src/helloasso/api-interface/core/CancelablePromise.ts @@ -2,35 +2,34 @@ /* tslint:disable */ /* eslint-disable */ export class CancelError extends Error { - constructor(message: string) { - super(message); - this.name = 'CancelError'; + super(message) + this.name = "CancelError" } public get isCancelled(): boolean { - return true; + return true } } export interface OnCancel { - readonly isResolved: boolean; - readonly isRejected: boolean; - readonly isCancelled: boolean; + readonly isResolved: boolean + readonly isRejected: boolean + readonly isCancelled: boolean - (cancelHandler: () => void): void; + (cancelHandler: () => void): void } export class CancelablePromise implements Promise { - readonly [Symbol.toStringTag]!: string; + readonly [Symbol.toStringTag]!: string - private _isResolved: boolean; - private _isRejected: boolean; - private _isCancelled: boolean; - private readonly _cancelHandlers: (() => void)[]; - private readonly _promise: Promise; - private _resolve?: (value: T | PromiseLike) => void; - private _reject?: (reason?: any) => void; + private _isResolved: boolean + private _isRejected: boolean + private _isCancelled: boolean + private readonly _cancelHandlers: (() => void)[] + private readonly _promise: Promise + private _resolve?: (value: T | PromiseLike) => void + private _reject?: (reason?: any) => void constructor( executor: ( @@ -39,90 +38,90 @@ export class CancelablePromise implements Promise { onCancel: OnCancel ) => void ) { - this._isResolved = false; - this._isRejected = false; - this._isCancelled = false; - this._cancelHandlers = []; + this._isResolved = false + this._isRejected = false + this._isCancelled = false + this._cancelHandlers = [] this._promise = new Promise((resolve, reject) => { - this._resolve = resolve; - this._reject = reject; + this._resolve = resolve + this._reject = reject const onResolve = (value: T | PromiseLike): void => { if (this._isResolved || this._isRejected || this._isCancelled) { - return; + return } - this._isResolved = true; - this._resolve?.(value); - }; + this._isResolved = true + this._resolve?.(value) + } const onReject = (reason?: any): void => { if (this._isResolved || this._isRejected || this._isCancelled) { - return; + return } - this._isRejected = true; - this._reject?.(reason); - }; + this._isRejected = true + this._reject?.(reason) + } const onCancel = (cancelHandler: () => void): void => { if (this._isResolved || this._isRejected || this._isCancelled) { - return; + return } - this._cancelHandlers.push(cancelHandler); - }; + this._cancelHandlers.push(cancelHandler) + } - Object.defineProperty(onCancel, 'isResolved', { - get: (): boolean => this._isResolved, - }); + Object.defineProperty(onCancel, "isResolved", { + get: (): boolean => this._isResolved + }) - Object.defineProperty(onCancel, 'isRejected', { - get: (): boolean => this._isRejected, - }); + Object.defineProperty(onCancel, "isRejected", { + get: (): boolean => this._isRejected + }) - Object.defineProperty(onCancel, 'isCancelled', { - get: (): boolean => this._isCancelled, - }); + Object.defineProperty(onCancel, "isCancelled", { + get: (): boolean => this._isCancelled + }) - return executor(onResolve, onReject, onCancel as OnCancel); - }); + return executor(onResolve, onReject, onCancel as OnCancel) + }) } public then( onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike) | null ): Promise { - return this._promise.then(onFulfilled, onRejected); + return this._promise.then(onFulfilled, onRejected) } public catch( onRejected?: ((reason: any) => TResult | PromiseLike) | null ): Promise { - return this._promise.catch(onRejected); + return this._promise.catch(onRejected) } public finally(onFinally?: (() => void) | null): Promise { - return this._promise.finally(onFinally); + return this._promise.finally(onFinally) } public cancel(): void { if (this._isResolved || this._isRejected || this._isCancelled) { - return; + return } - this._isCancelled = true; + this._isCancelled = true if (this._cancelHandlers.length) { try { for (const cancelHandler of this._cancelHandlers) { - cancelHandler(); + cancelHandler() } } catch (error) { - console.warn('Cancellation threw an error', error); - return; + console.warn("Cancellation threw an error", error) + return } } - this._cancelHandlers.length = 0; - this._reject?.(new CancelError('Request aborted')); + this._cancelHandlers.length = 0 + this._reject?.(new CancelError("Request aborted")) } public get isCancelled(): boolean { - return this._isCancelled; + return this._isCancelled } } diff --git a/src/helloasso/api-interface/core/OpenAPI.ts b/src/helloasso/api-interface/core/OpenAPI.ts index 444f119..2a1a9a0 100644 --- a/src/helloasso/api-interface/core/OpenAPI.ts +++ b/src/helloasso/api-interface/core/OpenAPI.ts @@ -1,31 +1,31 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiRequestOptions } from "./ApiRequestOptions" -type Resolver = (options: ApiRequestOptions) => Promise; -type Headers = Record; +type Resolver = (options: ApiRequestOptions) => Promise +type Headers = Record export type OpenAPIConfig = { - BASE: string; - VERSION: string; - WITH_CREDENTIALS: boolean; - CREDENTIALS: 'include' | 'omit' | 'same-origin'; - TOKEN?: string | Resolver; - USERNAME?: string | Resolver; - PASSWORD?: string | Resolver; - HEADERS?: Headers | Resolver; - ENCODE_PATH?: (path: string) => string; -}; + BASE: string + VERSION: string + WITH_CREDENTIALS: boolean + CREDENTIALS: "include" | "omit" | "same-origin" + TOKEN?: string | Resolver + USERNAME?: string | Resolver + PASSWORD?: string | Resolver + HEADERS?: Headers | Resolver + ENCODE_PATH?: (path: string) => string +} export const OpenAPI: OpenAPIConfig = { - BASE: 'https://api.helloasso.com/v5', - VERSION: '5', + BASE: "https://api.helloasso.com/v5", + VERSION: "5", WITH_CREDENTIALS: false, - CREDENTIALS: 'include', + CREDENTIALS: "include", TOKEN: undefined, USERNAME: undefined, PASSWORD: undefined, HEADERS: undefined, - ENCODE_PATH: undefined, -}; + ENCODE_PATH: undefined +} diff --git a/src/helloasso/api-interface/core/request.ts b/src/helloasso/api-interface/core/request.ts index 31cd1e9..12848aa 100644 --- a/src/helloasso/api-interface/core/request.ts +++ b/src/helloasso/api-interface/core/request.ts @@ -1,197 +1,204 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import axios from 'axios'; -import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios'; -import FormData from 'form-data'; +import axios from "axios" +import type { AxiosError, AxiosRequestConfig, AxiosResponse } from "axios" +import FormData from "form-data" -import { ApiError } from './ApiError'; -import type { ApiRequestOptions } from './ApiRequestOptions'; -import type { ApiResult } from './ApiResult'; -import { CancelablePromise } from './CancelablePromise'; -import type { OnCancel } from './CancelablePromise'; -import type { OpenAPIConfig } from './OpenAPI'; +import { ApiError } from "./ApiError" +import type { ApiRequestOptions } from "./ApiRequestOptions" +import type { ApiResult } from "./ApiResult" +import { CancelablePromise } from "./CancelablePromise" +import type { OnCancel } from "./CancelablePromise" +import type { OpenAPIConfig } from "./OpenAPI" const isDefined = (value: T | null | undefined): value is Exclude => { - return value !== undefined && value !== null; -}; + return value !== undefined && value !== null +} const isString = (value: any): value is string => { - return typeof value === 'string'; -}; + return typeof value === "string" +} const isStringWithValue = (value: any): value is string => { - return isString(value) && value !== ''; -}; + return isString(value) && value !== "" +} const isBlob = (value: any): value is Blob => { return ( - typeof value === 'object' && - typeof value.type === 'string' && - typeof value.stream === 'function' && - typeof value.arrayBuffer === 'function' && - typeof value.constructor === 'function' && - typeof value.constructor.name === 'string' && + typeof value === "object" && + typeof value.type === "string" && + typeof value.stream === "function" && + typeof value.arrayBuffer === "function" && + typeof value.constructor === "function" && + typeof value.constructor.name === "string" && /^(Blob|File)$/.test(value.constructor.name) && /^(Blob|File)$/.test(value[Symbol.toStringTag]) - ); -}; + ) +} const isFormData = (value: any): value is FormData => { - return value instanceof FormData; -}; + return value instanceof FormData +} const isSuccess = (status: number): boolean => { - return status >= 200 && status < 300; -}; + return status >= 200 && status < 300 +} const base64 = (str: string): string => { try { - return btoa(str); + return btoa(str) } catch (err) { // @ts-ignore - return Buffer.from(str).toString('base64'); + return Buffer.from(str).toString("base64") } -}; +} const getQueryString = (params: Record): string => { - const qs: string[] = []; + const qs: string[] = [] const append = (key: string, value: any) => { - qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); - }; + qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`) + } const process = (key: string, value: any) => { if (isDefined(value)) { if (Array.isArray(value)) { - value.forEach(v => { - process(key, v); - }); - } else if (typeof value === 'object') { + value.forEach((v) => { + process(key, v) + }) + } else if (typeof value === "object") { Object.entries(value).forEach(([k, v]) => { - process(`${key}[${k}]`, v); - }); + process(`${key}[${k}]`, v) + }) } else { - append(key, value); + append(key, value) } } - }; + } Object.entries(params).forEach(([key, value]) => { - process(key, value); - }); + process(key, value) + }) if (qs.length > 0) { - return `?${qs.join('&')}`; + return `?${qs.join("&")}` } - return ''; -}; + return "" +} const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => { - const encoder = config.ENCODE_PATH || encodeURI; + const encoder = config.ENCODE_PATH || encodeURI const path = options.url - .replace('{api-version}', config.VERSION) + .replace("{api-version}", config.VERSION) .replace(/{(.*?)}/g, (substring: string, group: string) => { if (options.path?.hasOwnProperty(group)) { - return encoder(String(options.path[group])); + return encoder(String(options.path[group])) } - return substring; - }); + return substring + }) - const url = `${config.BASE}${path}`; + const url = `${config.BASE}${path}` if (options.query) { - return `${url}${getQueryString(options.query)}`; + return `${url}${getQueryString(options.query)}` } - return url; -}; + return url +} const getFormData = (options: ApiRequestOptions): FormData | undefined => { if (options.formData) { - const formData = new FormData(); + const formData = new FormData() const process = (key: string, value: any) => { if (isString(value) || isBlob(value)) { - formData.append(key, value); + formData.append(key, value) } else { - formData.append(key, JSON.stringify(value)); + formData.append(key, JSON.stringify(value)) } - }; + } Object.entries(options.formData) .filter(([_, value]) => isDefined(value)) .forEach(([key, value]) => { if (Array.isArray(value)) { - value.forEach(v => process(key, v)); + value.forEach((v) => process(key, v)) } else { - process(key, value); + process(key, value) } - }); + }) - return formData; + return formData } - return undefined; -}; + return undefined +} -type Resolver = (options: ApiRequestOptions) => Promise; +type Resolver = (options: ApiRequestOptions) => Promise const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => { - if (typeof resolver === 'function') { - return (resolver as Resolver)(options); + if (typeof resolver === "function") { + return (resolver as Resolver)(options) } - return resolver; -}; + return resolver +} -const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise> => { - const token = await resolve(options, config.TOKEN); - const username = await resolve(options, config.USERNAME); - const password = await resolve(options, config.PASSWORD); - const additionalHeaders = await resolve(options, config.HEADERS); - const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {} +const getHeaders = async ( + config: OpenAPIConfig, + options: ApiRequestOptions, + formData?: FormData +): Promise> => { + const token = await resolve(options, config.TOKEN) + const username = await resolve(options, config.USERNAME) + const password = await resolve(options, config.PASSWORD) + const additionalHeaders = await resolve(options, config.HEADERS) + const formHeaders = (typeof formData?.getHeaders === "function" && formData?.getHeaders()) || {} const headers = Object.entries({ - Accept: 'application/json', + Accept: "application/json", ...additionalHeaders, ...options.headers, - ...formHeaders, + ...formHeaders }) - .filter(([_, value]) => isDefined(value)) - .reduce((headers, [key, value]) => ({ - ...headers, - [key]: String(value), - }), {} as Record); + .filter(([_, value]) => isDefined(value)) + .reduce( + (headers, [key, value]) => ({ + ...headers, + [key]: String(value) + }), + {} as Record + ) if (isStringWithValue(token)) { - headers['Authorization'] = `Bearer ${token}`; + headers["Authorization"] = `Bearer ${token}` } if (isStringWithValue(username) && isStringWithValue(password)) { - const credentials = base64(`${username}:${password}`); - headers['Authorization'] = `Basic ${credentials}`; + const credentials = base64(`${username}:${password}`) + headers["Authorization"] = `Basic ${credentials}` } if (options.body) { if (options.mediaType) { - headers['Content-Type'] = options.mediaType; + headers["Content-Type"] = options.mediaType } else if (isBlob(options.body)) { - headers['Content-Type'] = options.body.type || 'application/octet-stream'; + headers["Content-Type"] = options.body.type || "application/octet-stream" } else if (isString(options.body)) { - headers['Content-Type'] = 'text/plain'; + headers["Content-Type"] = "text/plain" } else if (!isFormData(options.body)) { - headers['Content-Type'] = 'application/json'; + headers["Content-Type"] = "application/json" } } - return headers; -}; + return headers +} const getRequestBody = (options: ApiRequestOptions): any => { if (options.body) { - return options.body; + return options.body } - return undefined; -}; + return undefined +} const sendRequest = async ( config: OpenAPIConfig, @@ -202,7 +209,7 @@ const sendRequest = async ( headers: Record, onCancel: OnCancel ): Promise> => { - const source = axios.CancelToken.source(); + const source = axios.CancelToken.source() const requestConfig: AxiosRequestConfig = { url, @@ -210,60 +217,60 @@ const sendRequest = async ( data: body ?? formData, method: options.method, withCredentials: config.WITH_CREDENTIALS, - cancelToken: source.token, - }; + cancelToken: source.token + } - onCancel(() => source.cancel('The user aborted a request.')); + onCancel(() => source.cancel("The user aborted a request.")) try { - return await axios.request(requestConfig); + return await axios.request(requestConfig) } catch (error) { - const axiosError = error as AxiosError; + const axiosError = error as AxiosError if (axiosError.response) { - return axiosError.response; + return axiosError.response } - throw error; + throw error } -}; +} const getResponseHeader = (response: AxiosResponse, responseHeader?: string): string | undefined => { if (responseHeader) { - const content = response.headers[responseHeader]; + const content = response.headers[responseHeader] if (isString(content)) { - return content; + return content } } - return undefined; -}; + return undefined +} const getResponseBody = (response: AxiosResponse): any => { if (response.status !== 204) { - return response.data; + return response.data } - return undefined; -}; + return undefined +} const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => { const errors: Record = { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 404: 'Not Found', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - 503: 'Service Unavailable', - ...options.errors, + 400: "Bad Request", + 401: "Unauthorized", + 403: "Forbidden", + 404: "Not Found", + 500: "Internal Server Error", + 502: "Bad Gateway", + 503: "Service Unavailable", + ...options.errors } - const error = errors[result.status]; + const error = errors[result.status] if (error) { - throw new ApiError(options, result, error); + throw new ApiError(options, result, error) } if (!result.ok) { - throw new ApiError(options, result, 'Generic Error'); + throw new ApiError(options, result, "Generic Error") } -}; +} /** * Request method @@ -275,30 +282,30 @@ const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => export const request = (config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise => { return new CancelablePromise(async (resolve, reject, onCancel) => { try { - const url = getUrl(config, options); - const formData = getFormData(options); - const body = getRequestBody(options); - const headers = await getHeaders(config, options, formData); + const url = getUrl(config, options) + const formData = getFormData(options) + const body = getRequestBody(options) + const headers = await getHeaders(config, options, formData) if (!onCancel.isCancelled) { - const response = await sendRequest(config, options, url, body, formData, headers, onCancel); - const responseBody = getResponseBody(response); - const responseHeader = getResponseHeader(response, options.responseHeader); + const response = await sendRequest(config, options, url, body, formData, headers, onCancel) + const responseBody = getResponseBody(response) + const responseHeader = getResponseHeader(response, options.responseHeader) const result: ApiResult = { url, ok: isSuccess(response.status), status: response.status, statusText: response.statusText, - body: responseHeader ?? responseBody, - }; + body: responseHeader ?? responseBody + } - catchErrorCodes(options, result); + catchErrorCodes(options, result) - resolve(result.body); + resolve(result.body) } } catch (error) { - reject(error); + reject(error) } - }); -}; + }) +} diff --git a/src/helloasso/api-interface/index.ts b/src/helloasso/api-interface/index.ts index 49152d9..95c9c82 100644 --- a/src/helloasso/api-interface/index.ts +++ b/src/helloasso/api-interface/index.ts @@ -1,99 +1,99 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -export { HelloAssoApi } from './HelloAssoApi'; +export { HelloAssoApi } from "./HelloAssoApi" -export { ApiError } from './core/ApiError'; -export { BaseHttpRequest } from './core/BaseHttpRequest'; -export { CancelablePromise, CancelError } from './core/CancelablePromise'; -export { OpenAPI } from './core/OpenAPI'; -export type { OpenAPIConfig } from './core/OpenAPI'; +export { ApiError } from "./core/ApiError" +export { BaseHttpRequest } from "./core/BaseHttpRequest" +export { CancelablePromise, CancelError } from "./core/CancelablePromise" +export { OpenAPI } from "./core/OpenAPI" +export type { OpenAPIConfig } from "./core/OpenAPI" -export type { HelloAsso_Api_V5_Models_Account_OrganismCategoryModel } from './models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel'; -export type { HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel } from './models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel'; -export type { HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest } from './models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest'; -export type { HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel } from './models/HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel'; -export type { HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody } from './models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody'; -export type { HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse } from './models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse'; -export type { HelloAsso_Api_V5_Models_Carts_CheckoutPayer } from './models/HelloAsso_Api_V5_Models_Carts_CheckoutPayer'; -export type { HelloAsso_Api_V5_Models_Carts_CheckoutTerm } from './models/HelloAsso_Api_V5_Models_Carts_CheckoutTerm'; -export type { HelloAsso_Api_V5_Models_Carts_InitCheckoutBody } from './models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody'; -export type { HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse } from './models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse'; -export type { HelloAsso_Api_V5_Models_Common_ContactModel } from './models/HelloAsso_Api_V5_Models_Common_ContactModel'; -export type { HelloAsso_Api_V5_Models_Common_DocumentModel } from './models/HelloAsso_Api_V5_Models_Common_DocumentModel'; -export type { HelloAsso_Api_V5_Models_Common_MetaModel } from './models/HelloAsso_Api_V5_Models_Common_MetaModel'; -export type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './models/HelloAsso_Api_V5_Models_Common_PaginationModel'; -export type { HelloAsso_Api_V5_Models_Common_PlaceModel } from './models/HelloAsso_Api_V5_Models_Common_PlaceModel'; -export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from './models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel'; -export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from './models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel'; -export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from './models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel'; -export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel } from './models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel'; -export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item } from './models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item'; -export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order } from './models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order'; -export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment } from './models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment'; -export type { HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel } from './models/HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel'; -export type { HelloAsso_Api_V5_Models_Directory_ListFormsRequest } from './models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest'; -export type { HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest } from './models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest'; -export type { HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from './models/HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel'; -export type { HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from './models/HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel'; -export type { HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from './models/HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel'; -export { HelloAsso_Api_V5_Models_Enums_FieldType } from './models/HelloAsso_Api_V5_Models_Enums_FieldType'; -export { HelloAsso_Api_V5_Models_Enums_FormState } from './models/HelloAsso_Api_V5_Models_Enums_FormState'; -export { HelloAsso_Api_V5_Models_Enums_FormType } from './models/HelloAsso_Api_V5_Models_Enums_FormType'; -export { HelloAsso_Api_V5_Models_Enums_ItemState } from './models/HelloAsso_Api_V5_Models_Enums_ItemState'; -export { HelloAsso_Api_V5_Models_Enums_MembershipValidityType } from './models/HelloAsso_Api_V5_Models_Enums_MembershipValidityType'; -export { HelloAsso_Api_V5_Models_Enums_OrganizationType } from './models/HelloAsso_Api_V5_Models_Enums_OrganizationType'; -export { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from './models/HelloAsso_Api_V5_Models_Enums_PaymentCashOutState'; -export { HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType } from './models/HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType'; -export { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from './models/HelloAsso_Api_V5_Models_Enums_PaymentMeans'; -export { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from './models/HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel'; -export { HelloAsso_Api_V5_Models_Enums_PaymentState } from './models/HelloAsso_Api_V5_Models_Enums_PaymentState'; -export { HelloAsso_Api_V5_Models_Enums_PaymentType } from './models/HelloAsso_Api_V5_Models_Enums_PaymentType'; -export { HelloAsso_Api_V5_Models_Enums_PriceCategory } from './models/HelloAsso_Api_V5_Models_Enums_PriceCategory'; -export { HelloAsso_Api_V5_Models_Enums_RecordActionType } from './models/HelloAsso_Api_V5_Models_Enums_RecordActionType'; -export { HelloAsso_Api_V5_Models_Enums_TierType } from './models/HelloAsso_Api_V5_Models_Enums_TierType'; -export type { HelloAsso_Api_V5_Models_Forms_FormBasicModel } from './models/HelloAsso_Api_V5_Models_Forms_FormBasicModel'; -export type { HelloAsso_Api_V5_Models_Forms_FormLightModel } from './models/HelloAsso_Api_V5_Models_Forms_FormLightModel'; -export type { HelloAsso_Api_V5_Models_Forms_FormPublicModel } from './models/HelloAsso_Api_V5_Models_Forms_FormPublicModel'; -export type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel } from './models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel'; -export type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest } from './models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest'; -export type { HelloAsso_Api_V5_Models_Forms_TermModel } from './models/HelloAsso_Api_V5_Models_Forms_TermModel'; -export type { HelloAsso_Api_V5_Models_Forms_TierLightModel } from './models/HelloAsso_Api_V5_Models_Forms_TierLightModel'; -export type { HelloAsso_Api_V5_Models_Forms_TierPublicModel } from './models/HelloAsso_Api_V5_Models_Forms_TierPublicModel'; -export type { HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel } from './models/HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel'; -export type { HelloAsso_Api_V5_Models_Organization_OrganizationLightModel } from './models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel'; -export type { HelloAsso_Api_V5_Models_Organization_OrganizationModel } from './models/HelloAsso_Api_V5_Models_Organization_OrganizationModel'; -export type { HelloAsso_Api_V5_Models_Partners_PartnerPublicModel } from './models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel'; -export type { HelloAsso_Api_V5_Models_PartnerStatisticsModel } from './models/HelloAsso_Api_V5_Models_PartnerStatisticsModel'; -export type { HelloAsso_Api_V5_Models_Statistics_Item } from './models/HelloAsso_Api_V5_Models_Statistics_Item'; -export type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from './models/HelloAsso_Api_V5_Models_Statistics_ItemCustomField'; -export type { HelloAsso_Api_V5_Models_Statistics_ItemDetail } from './models/HelloAsso_Api_V5_Models_Statistics_ItemDetail'; -export type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from './models/HelloAsso_Api_V5_Models_Statistics_ItemDiscount'; -export type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from './models/HelloAsso_Api_V5_Models_Statistics_ItemOption'; -export type { HelloAsso_Api_V5_Models_Statistics_ItemPayment } from './models/HelloAsso_Api_V5_Models_Statistics_ItemPayment'; -export type { HelloAsso_Api_V5_Models_Statistics_Order } from './models/HelloAsso_Api_V5_Models_Statistics_Order'; -export type { HelloAsso_Api_V5_Models_Statistics_OrderAmountModel } from './models/HelloAsso_Api_V5_Models_Statistics_OrderAmountModel'; -export type { HelloAsso_Api_V5_Models_Statistics_OrderDetail } from './models/HelloAsso_Api_V5_Models_Statistics_OrderDetail'; -export type { HelloAsso_Api_V5_Models_Statistics_OrderItem } from './models/HelloAsso_Api_V5_Models_Statistics_OrderItem'; -export type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from './models/HelloAsso_Api_V5_Models_Statistics_OrderLight'; -export type { HelloAsso_Api_V5_Models_Statistics_OrderPayment } from './models/HelloAsso_Api_V5_Models_Statistics_OrderPayment'; -export type { HelloAsso_Api_V5_Models_Statistics_Payer } from './models/HelloAsso_Api_V5_Models_Statistics_Payer'; -export type { HelloAsso_Api_V5_Models_Statistics_Payment } from './models/HelloAsso_Api_V5_Models_Statistics_Payment'; -export type { HelloAsso_Api_V5_Models_Statistics_PaymentDetail } from './models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail'; -export type { HelloAsso_Api_V5_Models_Statistics_PaymentItem } from './models/HelloAsso_Api_V5_Models_Statistics_PaymentItem'; -export type { HelloAsso_Api_V5_Models_Statistics_ShareItem } from './models/HelloAsso_Api_V5_Models_Statistics_ShareItem'; -export type { HelloAsso_Api_V5_Models_Statistics_SharePayment } from './models/HelloAsso_Api_V5_Models_Statistics_SharePayment'; -export type { HelloAsso_Api_V5_Models_Statistics_User } from './models/HelloAsso_Api_V5_Models_Statistics_User'; -export type { HelloAsso_Api_V5_Models_Tags_PublicTagModel } from './models/HelloAsso_Api_V5_Models_Tags_PublicTagModel'; -export { HelloAsso_Models_Enums_GlobalRole } from './models/HelloAsso_Models_Enums_GlobalRole'; -export type { HelloAsso_Models_Shared_GeoLocation } from './models/HelloAsso_Models_Shared_GeoLocation'; +export type { HelloAsso_Api_V5_Models_Account_OrganismCategoryModel } from "./models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel" +export type { HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel } from "./models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel" +export type { HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest } from "./models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest" +export type { HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel } from "./models/HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel" +export type { HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody } from "./models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody" +export type { HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse } from "./models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse" +export type { HelloAsso_Api_V5_Models_Carts_CheckoutPayer } from "./models/HelloAsso_Api_V5_Models_Carts_CheckoutPayer" +export type { HelloAsso_Api_V5_Models_Carts_CheckoutTerm } from "./models/HelloAsso_Api_V5_Models_Carts_CheckoutTerm" +export type { HelloAsso_Api_V5_Models_Carts_InitCheckoutBody } from "./models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody" +export type { HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse } from "./models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse" +export type { HelloAsso_Api_V5_Models_Common_ContactModel } from "./models/HelloAsso_Api_V5_Models_Common_ContactModel" +export type { HelloAsso_Api_V5_Models_Common_DocumentModel } from "./models/HelloAsso_Api_V5_Models_Common_DocumentModel" +export type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./models/HelloAsso_Api_V5_Models_Common_MetaModel" +export type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./models/HelloAsso_Api_V5_Models_Common_PaginationModel" +export type { HelloAsso_Api_V5_Models_Common_PlaceModel } from "./models/HelloAsso_Api_V5_Models_Common_PlaceModel" +export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from "./models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel" +export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from "./models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel" +export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from "./models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel" +export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel } from "./models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel" +export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item } from "./models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item" +export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order } from "./models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order" +export type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment } from "./models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment" +export type { HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel } from "./models/HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel" +export type { HelloAsso_Api_V5_Models_Directory_ListFormsRequest } from "./models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest" +export type { HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest } from "./models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest" +export type { HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from "./models/HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel" +export type { HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from "./models/HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel" +export type { HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from "./models/HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel" +export { HelloAsso_Api_V5_Models_Enums_FieldType } from "./models/HelloAsso_Api_V5_Models_Enums_FieldType" +export { HelloAsso_Api_V5_Models_Enums_FormState } from "./models/HelloAsso_Api_V5_Models_Enums_FormState" +export { HelloAsso_Api_V5_Models_Enums_FormType } from "./models/HelloAsso_Api_V5_Models_Enums_FormType" +export { HelloAsso_Api_V5_Models_Enums_ItemState } from "./models/HelloAsso_Api_V5_Models_Enums_ItemState" +export { HelloAsso_Api_V5_Models_Enums_MembershipValidityType } from "./models/HelloAsso_Api_V5_Models_Enums_MembershipValidityType" +export { HelloAsso_Api_V5_Models_Enums_OrganizationType } from "./models/HelloAsso_Api_V5_Models_Enums_OrganizationType" +export { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from "./models/HelloAsso_Api_V5_Models_Enums_PaymentCashOutState" +export { HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType } from "./models/HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType" +export { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from "./models/HelloAsso_Api_V5_Models_Enums_PaymentMeans" +export { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from "./models/HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel" +export { HelloAsso_Api_V5_Models_Enums_PaymentState } from "./models/HelloAsso_Api_V5_Models_Enums_PaymentState" +export { HelloAsso_Api_V5_Models_Enums_PaymentType } from "./models/HelloAsso_Api_V5_Models_Enums_PaymentType" +export { HelloAsso_Api_V5_Models_Enums_PriceCategory } from "./models/HelloAsso_Api_V5_Models_Enums_PriceCategory" +export { HelloAsso_Api_V5_Models_Enums_RecordActionType } from "./models/HelloAsso_Api_V5_Models_Enums_RecordActionType" +export { HelloAsso_Api_V5_Models_Enums_TierType } from "./models/HelloAsso_Api_V5_Models_Enums_TierType" +export type { HelloAsso_Api_V5_Models_Forms_FormBasicModel } from "./models/HelloAsso_Api_V5_Models_Forms_FormBasicModel" +export type { HelloAsso_Api_V5_Models_Forms_FormLightModel } from "./models/HelloAsso_Api_V5_Models_Forms_FormLightModel" +export type { HelloAsso_Api_V5_Models_Forms_FormPublicModel } from "./models/HelloAsso_Api_V5_Models_Forms_FormPublicModel" +export type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel } from "./models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel" +export type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest } from "./models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest" +export type { HelloAsso_Api_V5_Models_Forms_TermModel } from "./models/HelloAsso_Api_V5_Models_Forms_TermModel" +export type { HelloAsso_Api_V5_Models_Forms_TierLightModel } from "./models/HelloAsso_Api_V5_Models_Forms_TierLightModel" +export type { HelloAsso_Api_V5_Models_Forms_TierPublicModel } from "./models/HelloAsso_Api_V5_Models_Forms_TierPublicModel" +export type { HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel } from "./models/HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel" +export type { HelloAsso_Api_V5_Models_Organization_OrganizationLightModel } from "./models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel" +export type { HelloAsso_Api_V5_Models_Organization_OrganizationModel } from "./models/HelloAsso_Api_V5_Models_Organization_OrganizationModel" +export type { HelloAsso_Api_V5_Models_Partners_PartnerPublicModel } from "./models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel" +export type { HelloAsso_Api_V5_Models_PartnerStatisticsModel } from "./models/HelloAsso_Api_V5_Models_PartnerStatisticsModel" +export type { HelloAsso_Api_V5_Models_Statistics_Item } from "./models/HelloAsso_Api_V5_Models_Statistics_Item" +export type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from "./models/HelloAsso_Api_V5_Models_Statistics_ItemCustomField" +export type { HelloAsso_Api_V5_Models_Statistics_ItemDetail } from "./models/HelloAsso_Api_V5_Models_Statistics_ItemDetail" +export type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from "./models/HelloAsso_Api_V5_Models_Statistics_ItemDiscount" +export type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from "./models/HelloAsso_Api_V5_Models_Statistics_ItemOption" +export type { HelloAsso_Api_V5_Models_Statistics_ItemPayment } from "./models/HelloAsso_Api_V5_Models_Statistics_ItemPayment" +export type { HelloAsso_Api_V5_Models_Statistics_Order } from "./models/HelloAsso_Api_V5_Models_Statistics_Order" +export type { HelloAsso_Api_V5_Models_Statistics_OrderAmountModel } from "./models/HelloAsso_Api_V5_Models_Statistics_OrderAmountModel" +export type { HelloAsso_Api_V5_Models_Statistics_OrderDetail } from "./models/HelloAsso_Api_V5_Models_Statistics_OrderDetail" +export type { HelloAsso_Api_V5_Models_Statistics_OrderItem } from "./models/HelloAsso_Api_V5_Models_Statistics_OrderItem" +export type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from "./models/HelloAsso_Api_V5_Models_Statistics_OrderLight" +export type { HelloAsso_Api_V5_Models_Statistics_OrderPayment } from "./models/HelloAsso_Api_V5_Models_Statistics_OrderPayment" +export type { HelloAsso_Api_V5_Models_Statistics_Payer } from "./models/HelloAsso_Api_V5_Models_Statistics_Payer" +export type { HelloAsso_Api_V5_Models_Statistics_Payment } from "./models/HelloAsso_Api_V5_Models_Statistics_Payment" +export type { HelloAsso_Api_V5_Models_Statistics_PaymentDetail } from "./models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail" +export type { HelloAsso_Api_V5_Models_Statistics_PaymentItem } from "./models/HelloAsso_Api_V5_Models_Statistics_PaymentItem" +export type { HelloAsso_Api_V5_Models_Statistics_ShareItem } from "./models/HelloAsso_Api_V5_Models_Statistics_ShareItem" +export type { HelloAsso_Api_V5_Models_Statistics_SharePayment } from "./models/HelloAsso_Api_V5_Models_Statistics_SharePayment" +export type { HelloAsso_Api_V5_Models_Statistics_User } from "./models/HelloAsso_Api_V5_Models_Statistics_User" +export type { HelloAsso_Api_V5_Models_Tags_PublicTagModel } from "./models/HelloAsso_Api_V5_Models_Tags_PublicTagModel" +export { HelloAsso_Models_Enums_GlobalRole } from "./models/HelloAsso_Models_Enums_GlobalRole" +export type { HelloAsso_Models_Shared_GeoLocation } from "./models/HelloAsso_Models_Shared_GeoLocation" -export { CheckoutIntentsManagementService } from './services/CheckoutIntentsManagementService'; -export { DirectoryService } from './services/DirectoryService'; -export { FormsService } from './services/FormsService'; -export { OrdersItemsService } from './services/OrdersItemsService'; -export { OrganizationVisualisationService } from './services/OrganizationVisualisationService'; -export { PartnerManagementService } from './services/PartnerManagementService'; -export { PaymentsManagementService } from './services/PaymentsManagementService'; -export { UsersService } from './services/UsersService'; -export { ValuesDefinitionsService } from './services/ValuesDefinitionsService'; +export { CheckoutIntentsManagementService } from "./services/CheckoutIntentsManagementService" +export { DirectoryService } from "./services/DirectoryService" +export { FormsService } from "./services/FormsService" +export { OrdersItemsService } from "./services/OrdersItemsService" +export { OrganizationVisualisationService } from "./services/OrganizationVisualisationService" +export { PartnerManagementService } from "./services/PartnerManagementService" +export { PaymentsManagementService } from "./services/PaymentsManagementService" +export { UsersService } from "./services/UsersService" +export { ValuesDefinitionsService } from "./services/ValuesDefinitionsService" diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel.ts index a98bba9..8a8ab09 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel.ts @@ -3,8 +3,7 @@ /* eslint-disable */ export type HelloAsso_Api_V5_Models_Account_OrganismCategoryModel = { - readonly id?: number; - readonly label?: string; - readonly shortLabel?: string; -}; - + readonly id?: number + readonly label?: string + readonly shortLabel?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel.ts index d9c172d..f721146 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel.ts @@ -3,13 +3,12 @@ /* eslint-disable */ export type HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel = { - readonly id?: string; + readonly id?: string /** * Filled only when requested by the organization back office */ - readonly secret?: string; - readonly partnerName?: string; - readonly privileges?: Array; - readonly domain?: string; -}; - + readonly secret?: string + readonly partnerName?: string + readonly privileges?: Array + readonly domain?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest.ts index 1141951..f199e47 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest.ts @@ -6,6 +6,5 @@ export type HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClien /** * Partner domain : Url used to grant authorization redirection */ - domain?: string; -}; - + domain?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel.ts index 603ca94..e13c667 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel.ts @@ -9,6 +9,5 @@ export type HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel = { /** * The notification Url */ - url?: string; -}; - + url?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody.ts index 6010663..2177d58 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody.ts @@ -6,6 +6,5 @@ export type HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody /** * The Api notification Url */ - url: string; -}; - + url: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse.ts index 4ccbc29..8ab9d89 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse.ts @@ -2,25 +2,24 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Statistics_OrderDetail } from './HelloAsso_Api_V5_Models_Statistics_OrderDetail'; +import type { HelloAsso_Api_V5_Models_Statistics_OrderDetail } from "./HelloAsso_Api_V5_Models_Statistics_OrderDetail" export type HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse = { /** * Metadata (Json object) * Only if metadata were sent on the checkout form initialization */ - metadata?: any; + metadata?: any /** * Order linked to the checkout intent, if the payment was successfully made */ - order?: HelloAsso_Api_V5_Models_Statistics_OrderDetail; + order?: HelloAsso_Api_V5_Models_Statistics_OrderDetail /** * Id of the checkout intent */ - id?: number; + id?: number /** * Url where the contributor must be redirected to */ - redirectUrl?: string; -}; - + redirectUrl?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutPayer.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutPayer.ts index a6fe5f5..b948edb 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutPayer.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutPayer.ts @@ -6,38 +6,37 @@ export type HelloAsso_Api_V5_Models_Carts_CheckoutPayer = { /** * FirstName */ - firstName?: string; + firstName?: string /** * LastName */ - lastName?: string; + lastName?: string /** * Email */ - email?: string; + email?: string /** * Date of birth (Date only, no time part) */ - dateOfBirth?: string; + dateOfBirth?: string /** * Address */ - address?: string; + address?: string /** * City */ - city?: string; + city?: string /** * ZipCode */ - zipCode?: string; + zipCode?: string /** * 3 letter country code */ - country?: string; + country?: string /** * Used if the payer is a company */ - companyName?: string; -}; - + companyName?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutTerm.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutTerm.ts index 70721f2..170b7f8 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutTerm.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_CheckoutTerm.ts @@ -6,10 +6,9 @@ export type HelloAsso_Api_V5_Models_Carts_CheckoutTerm = { /** * Term amount, all taxes included, in cents */ - amount: number; + amount: number /** * Term date */ - date: string; -}; - + date: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody.ts index 2d4aeb0..03bf586 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody.ts @@ -2,57 +2,56 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Carts_CheckoutPayer } from './HelloAsso_Api_V5_Models_Carts_CheckoutPayer'; -import type { HelloAsso_Api_V5_Models_Carts_CheckoutTerm } from './HelloAsso_Api_V5_Models_Carts_CheckoutTerm'; +import type { HelloAsso_Api_V5_Models_Carts_CheckoutPayer } from "./HelloAsso_Api_V5_Models_Carts_CheckoutPayer" +import type { HelloAsso_Api_V5_Models_Carts_CheckoutTerm } from "./HelloAsso_Api_V5_Models_Carts_CheckoutTerm" export type HelloAsso_Api_V5_Models_Carts_InitCheckoutBody = { /** * Total amount, all taxes included, in cents (required) * Must be equal to the sum of the initial amount and subsequent terms */ - totalAmount: number; + totalAmount: number /** * The amount for the first term, all taxes included, in cents (required) */ - initialAmount: number; + initialAmount: number /** * Item name (required) * A text describing what the user paid for ('Renew license', '3 tickets', donation, etc). * Will be displayed in the near future in the user space and in the organization back office */ - itemName: string; + itemName: string /** * Url followed by the contributor if he wants to return to its previous site */ - backUrl: string; + backUrl: string /** * Url called in case of an error during the checkout process */ - errorUrl: string; + errorUrl: string /** * Url called after the payment */ - returnUrl: string; + returnUrl: string /** * The sale (or a part of) is a donation */ - containsDonation: boolean; + containsDonation: boolean /** * The list of future terms (if applicable) */ - terms?: Array; + terms?: Array /** * The payer (optional) */ - payer?: HelloAsso_Api_V5_Models_Carts_CheckoutPayer; + payer?: HelloAsso_Api_V5_Models_Carts_CheckoutPayer /** * Metadata (optional) * Json object (max length : 20000) */ - metadata?: any; + metadata?: any /** * Affilae tracking parameter (optional) */ - trackingParameter?: string; -}; - + trackingParameter?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse.ts index 6e62055..4b82c33 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse.ts @@ -6,10 +6,9 @@ export type HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse = { /** * Id of the checkout intent */ - id?: number; + id?: number /** * Url where the contributor must be redirected to */ - redirectUrl?: string; -}; - + redirectUrl?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ContactModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ContactModel.ts index 79c944d..923f3ee 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ContactModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ContactModel.ts @@ -9,10 +9,9 @@ export type HelloAsso_Api_V5_Models_Common_ContactModel = { /** * Contact email */ - email?: string; + email?: string /** * Contact phone number */ - phoneNumber?: string; -}; - + phoneNumber?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_DocumentModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_DocumentModel.ts index 9353ca1..45ddca4 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_DocumentModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_DocumentModel.ts @@ -9,10 +9,9 @@ export type HelloAsso_Api_V5_Models_Common_DocumentModel = { /** * The file name of document */ - readonly fileName?: string; + readonly fileName?: string /** * The public url of document */ - readonly publicUrl?: string; -}; - + readonly publicUrl?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_MetaModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_MetaModel.ts index 802d5cf..44933cd 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_MetaModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_MetaModel.ts @@ -9,10 +9,9 @@ export type HelloAsso_Api_V5_Models_Common_MetaModel = { /** * CreatedAt */ - createdAt?: string; + createdAt?: string /** * UpdateAt */ - updatedAt?: string; -}; - + updatedAt?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PaginationModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PaginationModel.ts index 3a7d849..3e3ce75 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PaginationModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PaginationModel.ts @@ -9,22 +9,21 @@ export type HelloAsso_Api_V5_Models_Common_PaginationModel = { /** * Page size */ - pageSize?: number; + pageSize?: number /** * Total number of results available */ - totalCount?: number; + totalCount?: number /** * Current page index */ - pageIndex?: number; + pageIndex?: number /** * Total number of pages of results with current page size */ - totalPages?: number; + totalPages?: number /** * Continuation Token to get next results */ - continuationToken?: string; -}; - + continuationToken?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PlaceModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PlaceModel.ts index dd97f87..6662465 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PlaceModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_PlaceModel.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Models_Shared_GeoLocation } from './HelloAsso_Models_Shared_GeoLocation'; +import type { HelloAsso_Models_Shared_GeoLocation } from "./HelloAsso_Models_Shared_GeoLocation" /** * PlaceModel class @@ -11,26 +11,25 @@ export type HelloAsso_Api_V5_Models_Common_PlaceModel = { /** * Address */ - address?: string; + address?: string /** * Name of the place */ - name?: string; + name?: string /** * City */ - city?: string; + city?: string /** * ZipCode */ - zipCode?: string; + zipCode?: string /** * 3 letter country code */ - country?: string; + country?: string /** * Geolocation (latitude and longitude), filled on directory routes */ - geoLocation?: HelloAsso_Models_Shared_GeoLocation; -}; - + geoLocation?: HelloAsso_Models_Shared_GeoLocation +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts index 4a7aef0..e4b26a8 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts @@ -2,20 +2,20 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './HelloAsso_Api_V5_Models_Common_PaginationModel'; -import type { HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from './HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel'; +import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./HelloAsso_Api_V5_Models_Common_PaginationModel" +import type { HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from "./HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel" /** * ResultsWithPaginationModel class */ -export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel = { - /** - * Data property - */ - data?: Array; - /** - * Pagination info - */ - pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel; -}; - +export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel = + { + /** + * Data property + */ + data?: Array + /** + * Pagination info + */ + pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel + } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts index 8200b58..98807dc 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts @@ -2,20 +2,20 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './HelloAsso_Api_V5_Models_Common_PaginationModel'; -import type { HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from './HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel'; +import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./HelloAsso_Api_V5_Models_Common_PaginationModel" +import type { HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from "./HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel" /** * ResultsWithPaginationModel class */ -export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel = { - /** - * Data property - */ - data?: Array; - /** - * Pagination info - */ - pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel; -}; - +export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel = + { + /** + * Data property + */ + data?: Array + /** + * Pagination info + */ + pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel + } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts index e923a58..a03ffb7 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts @@ -2,20 +2,20 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './HelloAsso_Api_V5_Models_Common_PaginationModel'; -import type { HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from './HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel'; +import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./HelloAsso_Api_V5_Models_Common_PaginationModel" +import type { HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from "./HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel" /** * ResultsWithPaginationModel class */ -export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel = { - /** - * Data property - */ - data?: Array; - /** - * Pagination info - */ - pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel; -}; - +export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel = + { + /** + * Data property + */ + data?: Array + /** + * Pagination info + */ + pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel + } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel.ts index 7d7d843..b67f674 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './HelloAsso_Api_V5_Models_Common_PaginationModel'; -import type { HelloAsso_Api_V5_Models_Forms_FormLightModel } from './HelloAsso_Api_V5_Models_Forms_FormLightModel'; +import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./HelloAsso_Api_V5_Models_Common_PaginationModel" +import type { HelloAsso_Api_V5_Models_Forms_FormLightModel } from "./HelloAsso_Api_V5_Models_Forms_FormLightModel" /** * ResultsWithPaginationModel class @@ -12,10 +12,9 @@ export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso /** * Data property */ - data?: Array; + data?: Array /** * Pagination info */ - pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel; -}; - + pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item.ts index a6177e9..b093558 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './HelloAsso_Api_V5_Models_Common_PaginationModel'; -import type { HelloAsso_Api_V5_Models_Statistics_Item } from './HelloAsso_Api_V5_Models_Statistics_Item'; +import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./HelloAsso_Api_V5_Models_Common_PaginationModel" +import type { HelloAsso_Api_V5_Models_Statistics_Item } from "./HelloAsso_Api_V5_Models_Statistics_Item" /** * ResultsWithPaginationModel class @@ -12,10 +12,9 @@ export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso /** * Data property */ - data?: Array; + data?: Array /** * Pagination info */ - pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel; -}; - + pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order.ts index be99d0b..092f9d0 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './HelloAsso_Api_V5_Models_Common_PaginationModel'; -import type { HelloAsso_Api_V5_Models_Statistics_Order } from './HelloAsso_Api_V5_Models_Statistics_Order'; +import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./HelloAsso_Api_V5_Models_Common_PaginationModel" +import type { HelloAsso_Api_V5_Models_Statistics_Order } from "./HelloAsso_Api_V5_Models_Statistics_Order" /** * ResultsWithPaginationModel class @@ -12,10 +12,9 @@ export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso /** * Data property */ - data?: Array; + data?: Array /** * Pagination info */ - pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel; -}; - + pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment.ts index 41719b4..e310eb0 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from './HelloAsso_Api_V5_Models_Common_PaginationModel'; -import type { HelloAsso_Api_V5_Models_Statistics_Payment } from './HelloAsso_Api_V5_Models_Statistics_Payment'; +import type { HelloAsso_Api_V5_Models_Common_PaginationModel } from "./HelloAsso_Api_V5_Models_Common_PaginationModel" +import type { HelloAsso_Api_V5_Models_Statistics_Payment } from "./HelloAsso_Api_V5_Models_Statistics_Payment" /** * ResultsWithPaginationModel class @@ -12,10 +12,9 @@ export type HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso /** * Data property */ - data?: Array; + data?: Array /** * Pagination info */ - pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel; -}; - + pagination?: HelloAsso_Api_V5_Models_Common_PaginationModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel.ts index 5d0a427..4bd642f 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel.ts @@ -2,9 +2,9 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_OrganizationType } from './HelloAsso_Api_V5_Models_Enums_OrganizationType'; -import type { HelloAsso_Models_Enums_GlobalRole } from './HelloAsso_Models_Enums_GlobalRole'; -import type { HelloAsso_Models_Shared_GeoLocation } from './HelloAsso_Models_Shared_GeoLocation'; +import type { HelloAsso_Api_V5_Models_Enums_OrganizationType } from "./HelloAsso_Api_V5_Models_Enums_OrganizationType" +import type { HelloAsso_Models_Enums_GlobalRole } from "./HelloAsso_Models_Enums_GlobalRole" +import type { HelloAsso_Models_Shared_GeoLocation } from "./HelloAsso_Models_Shared_GeoLocation" /** * DirectoryOrganizationPublicModel class @@ -13,75 +13,74 @@ export type HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel = /** * The public tags of the organization */ - tags?: Array; + tags?: Array /** * Partners linked to this organization */ - linkedPartners?: Array; + linkedPartners?: Array /** * The organization is authenticated. Property returned only when asked by an organization admin. */ - isAuthenticated?: boolean; + isAuthenticated?: boolean /** * The organization banner */ - banner?: string; + banner?: string /** * The organism can issue fiscal receipts (type ok and has not deactivated it) * Must configure it and be authenticated to become enabled */ - fiscalReceiptEligibility?: boolean; + fiscalReceiptEligibility?: boolean /** * The organism is eligible, has set up his options, and is authenticated. */ - fiscalReceiptIssuanceEnabled?: boolean; + fiscalReceiptIssuanceEnabled?: boolean /** * The organization type */ - type?: HelloAsso_Api_V5_Models_Enums_OrganizationType; + type?: HelloAsso_Api_V5_Models_Enums_OrganizationType /** * Organization category label */ - category?: string; + category?: string /** * Organization Address (for authorized applications or if authorized by the organization) */ - address?: string; + address?: string /** * Organization Geolocation (for authorized applications or if authorized by the organization) */ - geolocation?: HelloAsso_Models_Shared_GeoLocation; + geolocation?: HelloAsso_Models_Shared_GeoLocation /** * Logo of organization */ - logo?: string; + logo?: string /** * Name of organization */ - name?: string; + name?: string /** * Organization Role */ - role?: HelloAsso_Models_Enums_GlobalRole; + role?: HelloAsso_Models_Enums_GlobalRole /** * Organization city */ - city?: string; + city?: string /** * Organization zip code */ - zipCode?: string; + zipCode?: string /** * Organization description */ - description?: string; + description?: string /** * The organization url */ - url?: string; + url?: string /** * The organization slug */ - organizationSlug?: string; -}; - + organizationSlug?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest.ts index 0ffa562..c3a292f 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest.ts @@ -2,125 +2,124 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_FormType } from './HelloAsso_Api_V5_Models_Enums_FormType'; +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "./HelloAsso_Api_V5_Models_Enums_FormType" export type HelloAsso_Api_V5_Models_Directory_ListFormsRequest = { /** * Textual search for form name */ - formName?: string; + formName?: string /** * Textual search for form description */ - formDescription?: string; + formDescription?: string /** * The zip codes where the forms are located */ - formZipCodes?: Array; + formZipCodes?: Array /** * The cities where the forms are located */ - formCities?: Array; + formCities?: Array /** * The regions where the forms are located */ - formRegions?: Array; + formRegions?: Array /** * The departments where the forms are located */ - formDepartments?: Array; + formDepartments?: Array /** * The countries where the forms are located */ - formCountries?: Array; + formCountries?: Array /** * The form types : CrowdFunding, Membership, Event, Donation, PaymentForm ... */ - formTypes?: Array; + formTypes?: Array /** * The Activity Type of the form */ - formActivityType?: Array; + formActivityType?: Array /** * The minimum publication date of the forms, format "yyyy-MM-ddTHH:mm:ss.fffK" */ - formPublicationStartDateMin?: string; + formPublicationStartDateMin?: string /** * The maximum publication date of the forms, format "yyyy-MM-ddTHH:mm:ss.fffK" */ - formPublicationStartDateMax?: string; + formPublicationStartDateMax?: string /** * The minimum start date of the forms, format "yyyy-MM-ddTHH:mm:ss.fffK" */ - formStartDateMin?: string; + formStartDateMin?: string /** * The maximum start date of the forms, format "yyyy-MM-ddTHH:mm:ss.fffK" */ - formStartDateMax?: string; + formStartDateMax?: string /** * The maximum end date of the forms, format "yyyy-MM-ddTHH:mm:ss.fffK" */ - formEndDateMax?: string; + formEndDateMax?: string /** * The minimum end date of the forms, format "yyyy-MM-ddTHH:mm:ss.fffK" */ - formEndDateMin?: string; + formEndDateMin?: string /** * Allow only free forms if true */ - formIsFree?: boolean; + formIsFree?: boolean /** * Allow only forms with remaning entries if true */ - formHasRemainingEntries?: boolean; + formHasRemainingEntries?: boolean /** * Allow only forms with internal tags * this filter is for special operations only */ - formInternalTags?: Array; + formInternalTags?: Array /** * Allow only forms with public tags */ - formPublicTags?: Array; + formPublicTags?: Array /** * Textual search for organization name */ - organizationName?: string; + organizationName?: string /** * Textual search for organization description */ - organizationDescription?: string; + organizationDescription?: string /** * The categories of the forms */ - organizationCategories?: Array; + organizationCategories?: Array /** * The organization types */ - organizationTypes?: Array; + organizationTypes?: Array /** * The zip codes where the organizations are located */ - organizationZipCodes?: Array; + organizationZipCodes?: Array /** * The cities where the organizations are located */ - organizationCities?: Array; + organizationCities?: Array /** * The regions where the organizations are located */ - organizationRegions?: Array; + organizationRegions?: Array /** * The departments where the organizations are located */ - organizationDepartments?: Array; + organizationDepartments?: Array /** * Allow only organization with a fiscal receipt eligibility */ - organizationFiscalReceiptEligibility?: boolean; + organizationFiscalReceiptEligibility?: boolean /** * Organization linked partners */ - organizationLinkedPartners?: Array; -}; - + organizationLinkedPartners?: Array +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest.ts index 7074043..43127bb 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest.ts @@ -6,51 +6,50 @@ export type HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest = { /** * Textual search for organization name */ - name?: string; + name?: string /** * Textual search for organization description */ - description?: string; + description?: string /** * The categories of the organizations */ - categories?: Array; + categories?: Array /** * The organization types */ - types?: Array; + types?: Array /** * The zip codes where the organizations are located */ - zipCodes?: Array; + zipCodes?: Array /** * The cities where the organizations are located */ - cities?: Array; + cities?: Array /** * The regions where the organizations are located */ - regions?: Array; + regions?: Array /** * The departments where the organizations are located */ - departments?: Array; + departments?: Array /** * Allow only organization with a fiscal receipt eligibility */ - fiscalReceiptEligibility?: boolean; + fiscalReceiptEligibility?: boolean /** * Allow only Organization with internal tags * this filter is for special operations only */ - internalTags?: Array; + internalTags?: Array /** * Allow only Organization with public tags */ - tags?: Array; + tags?: Array /** * Allow only Organization with linked partners */ - linkedPartners?: Array; -}; - + linkedPartners?: Array +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts index c37384e..248e456 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel } from './HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel'; +import type { HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel } from "./HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel" /** * DirectoryOrganizationPublicModel class @@ -11,10 +11,9 @@ export type HelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel = { /** * Organization linked to partner */ - organization?: HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel; + organization?: HelloAsso_Api_V5_Models_Directory_DirectoryOrganizationPublicModel /** * True if exist a valid organization access token obtained by authorize flow */ - availableAccessToken?: boolean; -}; - + availableAccessToken?: boolean +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts index 013aa99..1e167a5 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_RecordActionType } from './HelloAsso_Api_V5_Models_Enums_RecordActionType'; -import type { HelloAsso_Api_V5_Models_Forms_FormBasicModel } from './HelloAsso_Api_V5_Models_Forms_FormBasicModel'; +import type { HelloAsso_Api_V5_Models_Enums_RecordActionType } from "./HelloAsso_Api_V5_Models_Enums_RecordActionType" +import type { HelloAsso_Api_V5_Models_Forms_FormBasicModel } from "./HelloAsso_Api_V5_Models_Forms_FormBasicModel" /** * SynchronizableFormModel class @@ -12,10 +12,9 @@ export type HelloAsso_Api_V5_Models_Directory_SynchronizableFormModel = { /** * Record Action Type : Delete or Insert */ - action?: HelloAsso_Api_V5_Models_Enums_RecordActionType; + action?: HelloAsso_Api_V5_Models_Enums_RecordActionType /** * Form to synchronise : is either a {HelloAsso.Api.V5.Models.Forms.FormBasicModel} if action is Delete, or a {HelloAsso.Api.V5.Models.Forms.FormPublicModel} */ - record?: HelloAsso_Api_V5_Models_Forms_FormBasicModel; -}; - + record?: HelloAsso_Api_V5_Models_Forms_FormBasicModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts index d43ca9c..4a90d5e 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_RecordActionType } from './HelloAsso_Api_V5_Models_Enums_RecordActionType'; -import type { HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel } from './HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel'; +import type { HelloAsso_Api_V5_Models_Enums_RecordActionType } from "./HelloAsso_Api_V5_Models_Enums_RecordActionType" +import type { HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel } from "./HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel" /** * SynchronizableOrganizationModel class @@ -12,10 +12,9 @@ export type HelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel = /** * Record Action Type : Delete or Insert */ - action?: HelloAsso_Api_V5_Models_Enums_RecordActionType; + action?: HelloAsso_Api_V5_Models_Enums_RecordActionType /** * Organization to synchronise : is either a {HelloAsso.Api.V5.Models.Organization.OrganizationBasicModel} if action is Delete, or a {HelloAsso.Api.V5.Models.Directory.DirectoryOrganizationPublicModel} */ - record?: HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel; -}; - + record?: HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FieldType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FieldType.ts index 27b445e..500a144 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FieldType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FieldType.ts @@ -14,13 +14,13 @@ * * `Number` - The field should be a number */ export enum HelloAsso_Api_V5_Models_Enums_FieldType { - DATE = 'Date', - TEXT_INPUT = 'TextInput', - FREE_TEXT = 'FreeText', - CHOICE_LIST = 'ChoiceList', - FILE = 'File', - YES_NO = 'YesNo', - PHONE = 'Phone', - ZIPCODE = 'Zipcode', - NUMBER = 'Number', + DATE = "Date", + TEXT_INPUT = "TextInput", + FREE_TEXT = "FreeText", + CHOICE_LIST = "ChoiceList", + FILE = "File", + YES_NO = "YesNo", + PHONE = "Phone", + ZIPCODE = "Zipcode", + NUMBER = "Number" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormState.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormState.ts index b33c0bb..9b41298 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormState.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormState.ts @@ -9,8 +9,8 @@ * * `Disabled` - The form is disabled and can be reenabled by changing state to public or private */ export enum HelloAsso_Api_V5_Models_Enums_FormState { - PUBLIC = 'Public', - PRIVATE = 'Private', - DRAFT = 'Draft', - DISABLED = 'Disabled', + PUBLIC = "Public", + PRIVATE = "Private", + DRAFT = "Draft", + DISABLED = "Disabled" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormType.ts index 27374cb..a34c146 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_FormType.ts @@ -3,11 +3,11 @@ /* eslint-disable */ export enum HelloAsso_Api_V5_Models_Enums_FormType { - CROWD_FUNDING = 'CrowdFunding', - MEMBERSHIP = 'Membership', - EVENT = 'Event', - DONATION = 'Donation', - PAYMENT_FORM = 'PaymentForm', - CHECKOUT = 'Checkout', - SHOP = 'Shop', + CROWD_FUNDING = "CrowdFunding", + MEMBERSHIP = "Membership", + EVENT = "Event", + DONATION = "Donation", + PAYMENT_FORM = "PaymentForm", + CHECKOUT = "Checkout", + SHOP = "Shop" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_ItemState.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_ItemState.ts index d5cb6ee..62e6705 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_ItemState.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_ItemState.ts @@ -9,8 +9,8 @@ * * `Canceled` - The item has been canceled, and is no longer valid */ export enum HelloAsso_Api_V5_Models_Enums_ItemState { - PROCESSED = 'Processed', - REGISTERED = 'Registered', - UNKNOWN = 'Unknown', - CANCELED = 'Canceled', + PROCESSED = "Processed", + REGISTERED = "Registered", + UNKNOWN = "Unknown", + CANCELED = "Canceled" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_MembershipValidityType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_MembershipValidityType.ts index 268dc5e..31229cb 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_MembershipValidityType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_MembershipValidityType.ts @@ -9,7 +9,7 @@ * * `Illimited` - Illimited : no end to validity */ export enum HelloAsso_Api_V5_Models_Enums_MembershipValidityType { - MOVING_YEAR = 'MovingYear', - CUSTOM = 'Custom', - ILLIMITED = 'Illimited', + MOVING_YEAR = "MovingYear", + CUSTOM = "Custom", + ILLIMITED = "Illimited" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_OrganizationType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_OrganizationType.ts index 3a4e4cc..179b3ae 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_OrganizationType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_OrganizationType.ts @@ -3,22 +3,22 @@ /* eslint-disable */ export enum HelloAsso_Api_V5_Models_Enums_OrganizationType { - ASSOCIATION1901RIG = 'Association1901Rig', - ASSOCIATION1901RUP = 'Association1901Rup', - ASSOCIATION1901 = 'Association1901', - FONDATION_RUP = 'FondationRup', - FOND_DOTATION = 'FondDotation', - FONDATION_SOUS_EGIDE = 'FondationSousEgide', - FONDATION_SCIENTIFIQUE = 'FondationScientifique', - FONDATION_PARTENARIALE = 'FondationPartenariale', - FONDATION_UNIVERSITAIRE = 'FondationUniversitaire', - FONDATION_HOSPITALIERE = 'FondationHospitaliere', - ASSOCIATION1905 = 'Association1905', - ASSOCIATION1905RUP = 'Association1905Rup', - ENTREPRISE = 'Entreprise', - COOPERATIVE = 'Cooperative', - ETABLISSEMENT = 'Etablissement', - ASSOCIATION1908 = 'Association1908', - ASSOCIATION1908RIG = 'Association1908Rig', - ASSOCIATION1908RUP = 'Association1908Rup', + ASSOCIATION1901RIG = "Association1901Rig", + ASSOCIATION1901RUP = "Association1901Rup", + ASSOCIATION1901 = "Association1901", + FONDATION_RUP = "FondationRup", + FOND_DOTATION = "FondDotation", + FONDATION_SOUS_EGIDE = "FondationSousEgide", + FONDATION_SCIENTIFIQUE = "FondationScientifique", + FONDATION_PARTENARIALE = "FondationPartenariale", + FONDATION_UNIVERSITAIRE = "FondationUniversitaire", + FONDATION_HOSPITALIERE = "FondationHospitaliere", + ASSOCIATION1905 = "Association1905", + ASSOCIATION1905RUP = "Association1905Rup", + ENTREPRISE = "Entreprise", + COOPERATIVE = "Cooperative", + ETABLISSEMENT = "Etablissement", + ASSOCIATION1908 = "Association1908", + ASSOCIATION1908RIG = "Association1908Rig", + ASSOCIATION1908RUP = "Association1908Rup" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentCashOutState.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentCashOutState.ts index 5a3e818..cb105d4 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentCashOutState.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentCashOutState.ts @@ -3,14 +3,14 @@ /* eslint-disable */ export enum HelloAsso_Api_V5_Models_Enums_PaymentCashOutState { - MONEY_IN = 'MoneyIn', - CANT_TRANSFER_RECEIVER_FULL = 'CantTransferReceiverFull', - TRANSFERED = 'Transfered', - REFUNDED = 'Refunded', - REFUNDING = 'Refunding', - WAITING_FOR_CASH_OUT_CONFIRMATION = 'WaitingForCashOutConfirmation', - CASHED_OUT = 'CashedOut', - UNKNOWN = 'Unknown', - CONTESTED = 'Contested', - TRANSFER_IN_PROGRESS = 'TransferInProgress', + MONEY_IN = "MoneyIn", + CANT_TRANSFER_RECEIVER_FULL = "CantTransferReceiverFull", + TRANSFERED = "Transfered", + REFUNDED = "Refunded", + REFUNDING = "Refunding", + WAITING_FOR_CASH_OUT_CONFIRMATION = "WaitingForCashOutConfirmation", + CASHED_OUT = "CashedOut", + UNKNOWN = "Unknown", + CONTESTED = "Contested", + TRANSFER_IN_PROGRESS = "TransferInProgress" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType.ts index 2bad3fd..1021c8d 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType.ts @@ -8,7 +8,7 @@ * * `Monthly` - A monthly payment until a date */ export enum HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType { - SINGLE = 'Single', - INSTALLMENT = 'Installment', - MONTHLY = 'Monthly', + SINGLE = "Single", + INSTALLMENT = "Installment", + MONTHLY = "Monthly" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentMeans.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentMeans.ts index 7963cb2..2b00a24 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentMeans.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentMeans.ts @@ -3,8 +3,8 @@ /* eslint-disable */ export enum HelloAsso_Api_V5_Models_Enums_PaymentMeans { - NONE = 'None', - CARD = 'Card', - SEPA = 'Sepa', - CHECK = 'Check', + NONE = "None", + CARD = "Card", + SEPA = "Sepa", + CHECK = "Check" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel.ts index 862c813..0135e57 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel.ts @@ -3,7 +3,7 @@ /* eslint-disable */ export enum HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel { - CASH = 'Cash', - CHECK = 'Check', - BANK_TRANSFER = 'BankTransfer', + CASH = "Cash", + CHECK = "Check", + BANK_TRANSFER = "BankTransfer" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentState.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentState.ts index 0958c6d..c0c7bae 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentState.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentState.ts @@ -14,12 +14,12 @@ * * `Contested` - Payment has been contested by the contributor */ export enum HelloAsso_Api_V5_Models_Enums_PaymentState { - PENDING = 'Pending', - AUTHORIZED = 'Authorized', - REFUSED = 'Refused', - UNKNOWN = 'Unknown', - REGISTERED = 'Registered', - REFUNDED = 'Refunded', - REFUNDING = 'Refunding', - CONTESTED = 'Contested', + PENDING = "Pending", + AUTHORIZED = "Authorized", + REFUSED = "Refused", + UNKNOWN = "Unknown", + REGISTERED = "Registered", + REFUNDED = "Refunded", + REFUNDING = "Refunding", + CONTESTED = "Contested" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentType.ts index 0ad8435..329ebf7 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PaymentType.ts @@ -8,7 +8,7 @@ * * `Debit` - Payment for balance adjustment */ export enum HelloAsso_Api_V5_Models_Enums_PaymentType { - OFFLINE = 'Offline', - CREDIT = 'Credit', - DEBIT = 'Debit', + OFFLINE = "Offline", + CREDIT = "Credit", + DEBIT = "Debit" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PriceCategory.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PriceCategory.ts index be12d4a..0960c98 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PriceCategory.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_PriceCategory.ts @@ -8,7 +8,7 @@ * * `Free` */ export enum HelloAsso_Api_V5_Models_Enums_PriceCategory { - FIXED = 'Fixed', - PWYW = 'Pwyw', - FREE = 'Free', + FIXED = "Fixed", + PWYW = "Pwyw", + FREE = "Free" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_RecordActionType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_RecordActionType.ts index 0215a8f..9ead9a6 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_RecordActionType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_RecordActionType.ts @@ -3,6 +3,6 @@ /* eslint-disable */ export enum HelloAsso_Api_V5_Models_Enums_RecordActionType { - INSERT = 'Insert', - DELETE = 'Delete', + INSERT = "Insert", + DELETE = "Delete" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_TierType.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_TierType.ts index 32da285..1b51eef 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_TierType.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Enums_TierType.ts @@ -3,14 +3,14 @@ /* eslint-disable */ export enum HelloAsso_Api_V5_Models_Enums_TierType { - DONATION = 'Donation', - PAYMENT = 'Payment', - REGISTRATION = 'Registration', - MEMBERSHIP = 'Membership', - MONTHLY_DONATION = 'MonthlyDonation', - MONTHLY_PAYMENT = 'MonthlyPayment', - OFFLINE_DONATION = 'OfflineDonation', - CONTRIBUTION = 'Contribution', - BONUS = 'Bonus', - PRODUCT = 'Product', + DONATION = "Donation", + PAYMENT = "Payment", + REGISTRATION = "Registration", + MEMBERSHIP = "Membership", + MONTHLY_DONATION = "MonthlyDonation", + MONTHLY_PAYMENT = "MonthlyPayment", + OFFLINE_DONATION = "OfflineDonation", + CONTRIBUTION = "Contribution", + BONUS = "Bonus", + PRODUCT = "Product" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormBasicModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormBasicModel.ts index 6bd1356..a222c65 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormBasicModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormBasicModel.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_FormType } from './HelloAsso_Api_V5_Models_Enums_FormType'; +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "./HelloAsso_Api_V5_Models_Enums_FormType" /** * A basic form model @@ -11,18 +11,17 @@ export type HelloAsso_Api_V5_Models_Forms_FormBasicModel = { /** * The form slug */ - formSlug?: string; + formSlug?: string /** * The form type */ - formType?: HelloAsso_Api_V5_Models_Enums_FormType; + formType?: HelloAsso_Api_V5_Models_Enums_FormType /** * The form url */ - url?: string; + url?: string /** * The organization slug */ - organizationSlug?: string; -}; - + organizationSlug?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormLightModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormLightModel.ts index 4a44ced..dc38537 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormLightModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormLightModel.ts @@ -2,10 +2,10 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_DocumentModel } from './HelloAsso_Api_V5_Models_Common_DocumentModel'; -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_FormState } from './HelloAsso_Api_V5_Models_Enums_FormState'; -import type { HelloAsso_Api_V5_Models_Enums_FormType } from './HelloAsso_Api_V5_Models_Enums_FormType'; +import type { HelloAsso_Api_V5_Models_Common_DocumentModel } from "./HelloAsso_Api_V5_Models_Common_DocumentModel" +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_FormState } from "./HelloAsso_Api_V5_Models_Enums_FormState" +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "./HelloAsso_Api_V5_Models_Enums_FormType" /** * FormLightModel class @@ -14,78 +14,77 @@ export type HelloAsso_Api_V5_Models_Forms_FormLightModel = { /** * Banner */ - banner?: HelloAsso_Api_V5_Models_Common_DocumentModel; + banner?: HelloAsso_Api_V5_Models_Common_DocumentModel /** * Currency */ - currency?: string; + currency?: string /** * Short description (one line) */ - description?: string; + description?: string /** * The datetime of the activity start */ - startDate?: string; + startDate?: string /** * The datetime of the activity end */ - endDate?: string; + endDate?: string /** * Logo */ - logo?: HelloAsso_Api_V5_Models_Common_DocumentModel; + logo?: HelloAsso_Api_V5_Models_Common_DocumentModel /** * Meta */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; + meta?: HelloAsso_Api_V5_Models_Common_MetaModel /** * State */ - state?: HelloAsso_Api_V5_Models_Enums_FormState; + state?: HelloAsso_Api_V5_Models_Enums_FormState /** * Title */ - title?: string; + title?: string /** * Private Title */ - privateTitle?: string; + privateTitle?: string /** * Url of the widget button */ - widgetButtonUrl?: string; + widgetButtonUrl?: string /** * Url of the form widget */ - widgetFullUrl?: string; + widgetFullUrl?: string /** * Url of the horizontal vignette widget */ - widgetVignetteHorizontalUrl?: string; + widgetVignetteHorizontalUrl?: string /** * Url of the vertical vignette widget */ - widgetVignetteVerticalUrl?: string; + widgetVignetteVerticalUrl?: string /** * Url of the counter widget */ - widgetCounterUrl?: string; + widgetCounterUrl?: string /** * The form slug */ - formSlug?: string; + formSlug?: string /** * The form type */ - formType?: HelloAsso_Api_V5_Models_Enums_FormType; + formType?: HelloAsso_Api_V5_Models_Enums_FormType /** * The form url */ - url?: string; + url?: string /** * The organization slug */ - organizationSlug?: string; -}; - + organizationSlug?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormPublicModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormPublicModel.ts index 6d08489..ac6aaa8 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormPublicModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormPublicModel.ts @@ -2,13 +2,13 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_DocumentModel } from './HelloAsso_Api_V5_Models_Common_DocumentModel'; -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Common_PlaceModel } from './HelloAsso_Api_V5_Models_Common_PlaceModel'; -import type { HelloAsso_Api_V5_Models_Enums_FormState } from './HelloAsso_Api_V5_Models_Enums_FormState'; -import type { HelloAsso_Api_V5_Models_Enums_FormType } from './HelloAsso_Api_V5_Models_Enums_FormType'; -import type { HelloAsso_Api_V5_Models_Enums_MembershipValidityType } from './HelloAsso_Api_V5_Models_Enums_MembershipValidityType'; -import type { HelloAsso_Api_V5_Models_Forms_TierPublicModel } from './HelloAsso_Api_V5_Models_Forms_TierPublicModel'; +import type { HelloAsso_Api_V5_Models_Common_DocumentModel } from "./HelloAsso_Api_V5_Models_Common_DocumentModel" +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Common_PlaceModel } from "./HelloAsso_Api_V5_Models_Common_PlaceModel" +import type { HelloAsso_Api_V5_Models_Enums_FormState } from "./HelloAsso_Api_V5_Models_Enums_FormState" +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "./HelloAsso_Api_V5_Models_Enums_FormType" +import type { HelloAsso_Api_V5_Models_Enums_MembershipValidityType } from "./HelloAsso_Api_V5_Models_Enums_MembershipValidityType" +import type { HelloAsso_Api_V5_Models_Forms_TierPublicModel } from "./HelloAsso_Api_V5_Models_Forms_TierPublicModel" /** * FormPublicModel class @@ -17,116 +17,115 @@ export type HelloAsso_Api_V5_Models_Forms_FormPublicModel = { /** * Organization Logo */ - organizationLogo?: string; + organizationLogo?: string /** * Organization Name */ - organizationName?: string; + organizationName?: string /** * Tiers */ - tiers?: Array; + tiers?: Array /** * Activity type of the event eg. "Atelier(s) / Stage(s)" matching one of the provided type values provided here or a custom value is allowed. */ - activityType?: string; + activityType?: string /** * Activity type identifier */ - activityTypeId?: number; + activityTypeId?: number /** * Place */ - place?: HelloAsso_Api_V5_Models_Common_PlaceModel; + place?: HelloAsso_Api_V5_Models_Common_PlaceModel /** * The datetime (Inclusive) at which the sales end. * If null the orders will be available until the end of the campaign. */ - saleEndDate?: string; + saleEndDate?: string /** * The datetime (Inclusive) at which the users can start placing orders. * If null the orders will be available as soon as the campaign is published. */ - saleStartDate?: string; + saleStartDate?: string /** * Validity Type : until when the membership is valid (if applicable) */ - validityType?: HelloAsso_Api_V5_Models_Enums_MembershipValidityType; + validityType?: HelloAsso_Api_V5_Models_Enums_MembershipValidityType /** * Banner */ - banner?: HelloAsso_Api_V5_Models_Common_DocumentModel; + banner?: HelloAsso_Api_V5_Models_Common_DocumentModel /** * Currency */ - currency?: string; + currency?: string /** * Short description (one line) */ - description?: string; + description?: string /** * The datetime of the activity start */ - startDate?: string; + startDate?: string /** * The datetime of the activity end */ - endDate?: string; + endDate?: string /** * Logo */ - logo?: HelloAsso_Api_V5_Models_Common_DocumentModel; + logo?: HelloAsso_Api_V5_Models_Common_DocumentModel /** * Meta */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; + meta?: HelloAsso_Api_V5_Models_Common_MetaModel /** * State */ - state?: HelloAsso_Api_V5_Models_Enums_FormState; + state?: HelloAsso_Api_V5_Models_Enums_FormState /** * Title */ - title?: string; + title?: string /** * Private Title */ - privateTitle?: string; + privateTitle?: string /** * Url of the widget button */ - widgetButtonUrl?: string; + widgetButtonUrl?: string /** * Url of the form widget */ - widgetFullUrl?: string; + widgetFullUrl?: string /** * Url of the horizontal vignette widget */ - widgetVignetteHorizontalUrl?: string; + widgetVignetteHorizontalUrl?: string /** * Url of the vertical vignette widget */ - widgetVignetteVerticalUrl?: string; + widgetVignetteVerticalUrl?: string /** * Url of the counter widget */ - widgetCounterUrl?: string; + widgetCounterUrl?: string /** * The form slug */ - formSlug?: string; + formSlug?: string /** * The form type */ - formType?: HelloAsso_Api_V5_Models_Enums_FormType; + formType?: HelloAsso_Api_V5_Models_Enums_FormType /** * The form url */ - url?: string; + url?: string /** * The organization slug */ - organizationSlug?: string; -}; - + organizationSlug?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel.ts index 045b82d..cca9def 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel.ts @@ -3,8 +3,7 @@ /* eslint-disable */ export type HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel = { - formSlug?: string; - organizationSlug?: string; - publicUrl?: string; -}; - + formSlug?: string + organizationSlug?: string + publicUrl?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest.ts index 672a8f5..21a605b 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest.ts @@ -2,146 +2,145 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_ContactModel } from './HelloAsso_Api_V5_Models_Common_ContactModel'; -import type { HelloAsso_Api_V5_Models_Common_PlaceModel } from './HelloAsso_Api_V5_Models_Common_PlaceModel'; -import type { HelloAsso_Api_V5_Models_Enums_MembershipValidityType } from './HelloAsso_Api_V5_Models_Enums_MembershipValidityType'; -import type { HelloAsso_Api_V5_Models_Forms_TierLightModel } from './HelloAsso_Api_V5_Models_Forms_TierLightModel'; +import type { HelloAsso_Api_V5_Models_Common_ContactModel } from "./HelloAsso_Api_V5_Models_Common_ContactModel" +import type { HelloAsso_Api_V5_Models_Common_PlaceModel } from "./HelloAsso_Api_V5_Models_Common_PlaceModel" +import type { HelloAsso_Api_V5_Models_Enums_MembershipValidityType } from "./HelloAsso_Api_V5_Models_Enums_MembershipValidityType" +import type { HelloAsso_Api_V5_Models_Forms_TierLightModel } from "./HelloAsso_Api_V5_Models_Forms_TierLightModel" export type HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest = { - tierList?: Array; + tierList?: Array /** * The banner of the form */ - banner?: string; + banner?: string /** * The description of form */ - description?: string; + description?: string /** * The datetime of the activity end */ - endDate?: string; + endDate?: string /** * The logo of the form */ - logo?: string; + logo?: string /** * Private Title : displayed only in the organization back office */ - privateTitle?: string; + privateTitle?: string /** * The datetime of the activity start */ - startDate?: string; + startDate?: string /** * The title of the form. It will be used to generate the url which that can't be changed. */ - title: string; + title: string /** * Activity type identifier, matching one of the provided type values provided here */ - activityTypeId?: number; + activityTypeId?: number /** * The place of the form */ - place?: HelloAsso_Api_V5_Models_Common_PlaceModel; + place?: HelloAsso_Api_V5_Models_Common_PlaceModel /** * The datetime (Inclusive) at which the sales end. * If null the orders will be available until the end of the campaign. */ - saleEndDate?: string; + saleEndDate?: string /** * The datetime (Inclusive) at which the users can start placing orders. * If null the orders will be available as soon as the campaign is published. */ - saleStartDate?: string; + saleStartDate?: string /** * Membership validity type. */ - validityType?: HelloAsso_Api_V5_Models_Enums_MembershipValidityType; + validityType?: HelloAsso_Api_V5_Models_Enums_MembershipValidityType /** * Whether the user will be allowed to make open donation with an order. The amount of the donation is open, but 3 presets can be set in OpenDonationPresetAmount */ - acceptOpenDonation?: boolean; + acceptOpenDonation?: boolean /** * allowComment */ - allowComment?: boolean; + allowComment?: boolean /** * amountVisible */ - amountVisible?: boolean; + amountVisible?: boolean /** * The color of the form */ - color?: string; + color?: string /** * Contact information */ - contact?: HelloAsso_Api_V5_Models_Common_ContactModel; + contact?: HelloAsso_Api_V5_Models_Common_ContactModel /** * Display contributor name for fundraiser */ - displayContributorName?: boolean; + displayContributorName?: boolean /** * Indicates that the members count must be displayed on the form. */ - displayParticipantsCount?: boolean; + displayParticipantsCount?: boolean /** * Indicates that the remaining entries must be displayed on the form. */ - displayRemainingEntries?: boolean; + displayRemainingEntries?: boolean /** * Indicates the financial goal (amount of money raised) for the whole form. Null means no goal. */ - financialGoal?: number; + financialGoal?: number /** * Entrust the issuance of membership cards to HelloAsso (automatically sent by email to participants) */ - generateMembershipCards?: boolean; + generateMembershipCards?: boolean /** * Entrust the issuance of tickets to HelloAsso (automatically sent by email to participants) */ - generateTickets?: boolean; + generateTickets?: boolean /** * Allows you to add the long description above the store catalog. */ - invertDescriptions?: boolean; + invertDescriptions?: boolean /** * Label conditions and terms file */ - labelConditionsAndTermsFile?: string; + labelConditionsAndTermsFile?: string /** * The long description of the form (rich Html) */ - longDescription?: string; + longDescription?: string /** * The preset amounts to be shown to the user. Maximum 3 amounts. */ - openDonationPresetAmounts?: Array; + openDonationPresetAmounts?: Array /** * Personalized message for participants */ - personalizedMessage?: string; + personalizedMessage?: string /** * The project beneficiaries of the form (rich Html) */ - projectBeneficiaries?: string; + projectBeneficiaries?: string /** * Details of the project expenses (rich Html) */ - projectExpensesDetails?: string; + projectExpensesDetails?: string /** * Description of the project owners (rich Html) */ - projectOwners?: string; + projectOwners?: string /** * 3 letter country code */ - projectTargetCountry?: string; + projectTargetCountry?: string /** * Indicates the maximum available entries for the whole form. Null means unlimited entries. */ - maxEntries?: number; -}; - + maxEntries?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TermModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TermModel.ts index e89a835..3c0778c 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TermModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TermModel.ts @@ -9,10 +9,9 @@ export type HelloAsso_Api_V5_Models_Forms_TermModel = { /** * Term Date */ - date?: string; + date?: string /** * Term Amount */ - amount?: number; -}; - + amount?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierLightModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierLightModel.ts index bb4ec18..8618cb3 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierLightModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierLightModel.ts @@ -3,7 +3,6 @@ /* eslint-disable */ export type HelloAsso_Api_V5_Models_Forms_TierLightModel = { - label?: string; - price?: number; -}; - + label?: string + price?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierPublicModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierPublicModel.ts index faa7fe4..6e12f2b 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierPublicModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Forms_TierPublicModel.ts @@ -2,11 +2,11 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_DocumentModel } from './HelloAsso_Api_V5_Models_Common_DocumentModel'; -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType } from './HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType'; -import type { HelloAsso_Api_V5_Models_Enums_TierType } from './HelloAsso_Api_V5_Models_Enums_TierType'; -import type { HelloAsso_Api_V5_Models_Forms_TermModel } from './HelloAsso_Api_V5_Models_Forms_TermModel'; +import type { HelloAsso_Api_V5_Models_Common_DocumentModel } from "./HelloAsso_Api_V5_Models_Common_DocumentModel" +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType } from "./HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType" +import type { HelloAsso_Api_V5_Models_Enums_TierType } from "./HelloAsso_Api_V5_Models_Enums_TierType" +import type { HelloAsso_Api_V5_Models_Forms_TermModel } from "./HelloAsso_Api_V5_Models_Forms_TermModel" /** * TierPublicModel class @@ -15,66 +15,65 @@ export type HelloAsso_Api_V5_Models_Forms_TierPublicModel = { /** * id */ - id?: number; + id?: number /** * label */ - label?: string; + label?: string /** * description */ - description?: string; + description?: string /** * tierType */ - tierType?: HelloAsso_Api_V5_Models_Enums_TierType; + tierType?: HelloAsso_Api_V5_Models_Enums_TierType /** * the Price in cents * if price equals 0 then it is free or there is a MinAmount */ - price?: number; + price?: number /** * Vat rate if applicable * Amount have to be 0.10 for 10% */ - vatRate?: number; + vatRate?: number /** * If set, it means the payment is free to choose, according to the specified minAmount in cents */ - minAmount?: number; + minAmount?: number /** * Type of payment frequency */ - paymentFrequency?: HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType; + paymentFrequency?: HelloAsso_Api_V5_Models_Enums_PaymentFrequencyType /** * Max quantity buyable in this cart */ - maxPerUser?: number; + maxPerUser?: number /** * meta */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; + meta?: HelloAsso_Api_V5_Models_Common_MetaModel /** * The datetime (Inclusive) at which the users can start buying this tier. * If null the tier will be available at the start of the event. */ - saleStartDate?: string; + saleStartDate?: string /** * The datetime (Inclusive) at which the tier is no longer available. * If null the tier will be available until the end of the event. */ - saleEndDate?: string; + saleEndDate?: string /** * Whether this is eligible to a deduction */ - isEligibleTaxReceipt?: boolean; + isEligibleTaxReceipt?: boolean /** * Terms of tier */ - terms?: Array; + terms?: Array /** * Picture, used only for Shop Form */ - picture?: HelloAsso_Api_V5_Models_Common_DocumentModel; -}; - + picture?: HelloAsso_Api_V5_Models_Common_DocumentModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel.ts index 6b7c85f..3dae211 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel.ts @@ -9,10 +9,9 @@ export type HelloAsso_Api_V5_Models_Organization_OrganizationBasicModel = { /** * The organization url */ - url?: string; + url?: string /** * The organization slug */ - organizationSlug?: string; -}; - + organizationSlug?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel.ts index b20e2e0..df52677 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel.ts @@ -2,7 +2,7 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Models_Enums_GlobalRole } from './HelloAsso_Models_Enums_GlobalRole'; +import type { HelloAsso_Models_Enums_GlobalRole } from "./HelloAsso_Models_Enums_GlobalRole" /** * OrganizationLightModel class @@ -11,34 +11,33 @@ export type HelloAsso_Api_V5_Models_Organization_OrganizationLightModel = { /** * Logo of organization */ - logo?: string; + logo?: string /** * Name of organization */ - name?: string; + name?: string /** * Organization Role */ - role?: HelloAsso_Models_Enums_GlobalRole; + role?: HelloAsso_Models_Enums_GlobalRole /** * Organization city */ - city?: string; + city?: string /** * Organization zip code */ - zipCode?: string; + zipCode?: string /** * Organization description */ - description?: string; + description?: string /** * The organization url */ - url?: string; + url?: string /** * The organization slug */ - organizationSlug?: string; -}; - + organizationSlug?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationModel.ts index 48572c7..574c69e 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Organization_OrganizationModel.ts @@ -2,9 +2,9 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_OrganizationType } from './HelloAsso_Api_V5_Models_Enums_OrganizationType'; -import type { HelloAsso_Models_Enums_GlobalRole } from './HelloAsso_Models_Enums_GlobalRole'; -import type { HelloAsso_Models_Shared_GeoLocation } from './HelloAsso_Models_Shared_GeoLocation'; +import type { HelloAsso_Api_V5_Models_Enums_OrganizationType } from "./HelloAsso_Api_V5_Models_Enums_OrganizationType" +import type { HelloAsso_Models_Enums_GlobalRole } from "./HelloAsso_Models_Enums_GlobalRole" +import type { HelloAsso_Models_Shared_GeoLocation } from "./HelloAsso_Models_Shared_GeoLocation" /** * OrganizationsModel class @@ -13,67 +13,66 @@ export type HelloAsso_Api_V5_Models_Organization_OrganizationModel = { /** * The organization is authenticated. Property returned only when asked by an organization admin. */ - isAuthenticated?: boolean; + isAuthenticated?: boolean /** * The organization banner */ - banner?: string; + banner?: string /** * The organism can issue fiscal receipts (type ok and has not deactivated it) * Must configure it and be authenticated to become enabled */ - fiscalReceiptEligibility?: boolean; + fiscalReceiptEligibility?: boolean /** * The organism is eligible, has set up his options, and is authenticated. */ - fiscalReceiptIssuanceEnabled?: boolean; + fiscalReceiptIssuanceEnabled?: boolean /** * The organization type */ - type?: HelloAsso_Api_V5_Models_Enums_OrganizationType; + type?: HelloAsso_Api_V5_Models_Enums_OrganizationType /** * Organization category label */ - category?: string; + category?: string /** * Organization Address (for authorized applications or if authorized by the organization) */ - address?: string; + address?: string /** * Organization Geolocation (for authorized applications or if authorized by the organization) */ - geolocation?: HelloAsso_Models_Shared_GeoLocation; + geolocation?: HelloAsso_Models_Shared_GeoLocation /** * Logo of organization */ - logo?: string; + logo?: string /** * Name of organization */ - name?: string; + name?: string /** * Organization Role */ - role?: HelloAsso_Models_Enums_GlobalRole; + role?: HelloAsso_Models_Enums_GlobalRole /** * Organization city */ - city?: string; + city?: string /** * Organization zip code */ - zipCode?: string; + zipCode?: string /** * Organization description */ - description?: string; + description?: string /** * The organization url */ - url?: string; + url?: string /** * The organization slug */ - organizationSlug?: string; -}; - + organizationSlug?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_PartnerStatisticsModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_PartnerStatisticsModel.ts index 83d12a3..534f6f4 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_PartnerStatisticsModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_PartnerStatisticsModel.ts @@ -6,22 +6,21 @@ export type HelloAsso_Api_V5_Models_PartnerStatisticsModel = { /** * Number of organizations linked to this partner */ - linkedOrganizationsCount?: number; + linkedOrganizationsCount?: number /** * Collected amount by linked organizations */ - linkedOrganizationsCollectedAmount?: number; + linkedOrganizationsCollectedAmount?: number /** * Collected amount by All partner checkouts */ - checkoutCollectedAmount?: number; + checkoutCollectedAmount?: number /** * Number of organizations using the checkout with this partner */ - organizationsUsingCheckout?: number; + organizationsUsingCheckout?: number /** * Number of organizations access token obtains by authorize flow */ - availableOrganizationsAccessTokenCount?: number; -}; - + availableOrganizationsAccessTokenCount?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel.ts index ac5cda8..104b72c 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel.ts @@ -2,38 +2,37 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel } from './HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel'; -import type { HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel } from './HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel'; -import type { HelloAsso_Api_V5_Models_PartnerStatisticsModel } from './HelloAsso_Api_V5_Models_PartnerStatisticsModel'; +import type { HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel } from "./HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel" +import type { HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel } from "./HelloAsso_Api_V5_Models_ApiNotifications_ApiUrlNotificationModel" +import type { HelloAsso_Api_V5_Models_PartnerStatisticsModel } from "./HelloAsso_Api_V5_Models_PartnerStatisticsModel" export type HelloAsso_Api_V5_Models_Partners_PartnerPublicModel = { /** * Name of the partner */ - name?: string; + name?: string /** * Description of the partner */ - description?: string; + description?: string /** * Website of the partner */ - url?: string; + url?: string /** * Logo of the partner */ - logo?: string; + logo?: string /** * ApiClient of the partner */ - client?: HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel; + client?: HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel /** * Url Notification of the partner */ - urlNotificationList?: Array; + urlNotificationList?: Array /** * Statistics of the partner */ - partnerStatistics?: HelloAsso_Api_V5_Models_PartnerStatisticsModel; -}; - + partnerStatistics?: HelloAsso_Api_V5_Models_PartnerStatisticsModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Item.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Item.ts index e4d1665..a81ee68 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Item.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Item.ts @@ -2,91 +2,90 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_ItemState } from './HelloAsso_Api_V5_Models_Enums_ItemState'; -import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from './HelloAsso_Api_V5_Models_Enums_PriceCategory'; -import type { HelloAsso_Api_V5_Models_Enums_TierType } from './HelloAsso_Api_V5_Models_Enums_TierType'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from './HelloAsso_Api_V5_Models_Statistics_ItemCustomField'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from './HelloAsso_Api_V5_Models_Statistics_ItemDiscount'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from './HelloAsso_Api_V5_Models_Statistics_ItemOption'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemPayment } from './HelloAsso_Api_V5_Models_Statistics_ItemPayment'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from './HelloAsso_Api_V5_Models_Statistics_OrderLight'; -import type { HelloAsso_Api_V5_Models_Statistics_Payer } from './HelloAsso_Api_V5_Models_Statistics_Payer'; -import type { HelloAsso_Api_V5_Models_Statistics_User } from './HelloAsso_Api_V5_Models_Statistics_User'; +import type { HelloAsso_Api_V5_Models_Enums_ItemState } from "./HelloAsso_Api_V5_Models_Enums_ItemState" +import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from "./HelloAsso_Api_V5_Models_Enums_PriceCategory" +import type { HelloAsso_Api_V5_Models_Enums_TierType } from "./HelloAsso_Api_V5_Models_Enums_TierType" +import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from "./HelloAsso_Api_V5_Models_Statistics_ItemCustomField" +import type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from "./HelloAsso_Api_V5_Models_Statistics_ItemDiscount" +import type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from "./HelloAsso_Api_V5_Models_Statistics_ItemOption" +import type { HelloAsso_Api_V5_Models_Statistics_ItemPayment } from "./HelloAsso_Api_V5_Models_Statistics_ItemPayment" +import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from "./HelloAsso_Api_V5_Models_Statistics_OrderLight" +import type { HelloAsso_Api_V5_Models_Statistics_Payer } from "./HelloAsso_Api_V5_Models_Statistics_Payer" +import type { HelloAsso_Api_V5_Models_Statistics_User } from "./HelloAsso_Api_V5_Models_Statistics_User" /** * An item of an order */ export type HelloAsso_Api_V5_Models_Statistics_Item = { - order?: HelloAsso_Api_V5_Models_Statistics_OrderLight; - payer?: HelloAsso_Api_V5_Models_Statistics_Payer; + order?: HelloAsso_Api_V5_Models_Statistics_OrderLight + payer?: HelloAsso_Api_V5_Models_Statistics_Payer /** * Payments linked to this item */ - payments?: Array; - name?: string; + payments?: Array + name?: string /** * User : participant/member/adherent specified on the item */ - user?: HelloAsso_Api_V5_Models_Statistics_User; + user?: HelloAsso_Api_V5_Models_Statistics_User /** * PriceCategory : Free, Fixed or Pay what you want */ - priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory; + priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory /** * Minimum amount that was specified on the tier (in cents) */ - minAmount?: number; + minAmount?: number /** * The discount code used on the item */ - discount?: HelloAsso_Api_V5_Models_Statistics_ItemDiscount; + discount?: HelloAsso_Api_V5_Models_Statistics_ItemDiscount /** * Custom fields related to this item */ - customFields?: Array; + customFields?: Array /** * Extra options taken with this item */ - options?: Array; + options?: Array /** * The Ticket Url */ - ticketUrl?: string; + ticketUrl?: string /** * The item QrCode (for ticket scanning only) */ - qrCode?: string; + qrCode?: string /** * The Membership Card Url */ - membershipCardUrl?: string; + membershipCardUrl?: string /** * The day of levy for monthly donation only */ - dayOfLevy?: number; + dayOfLevy?: number /** * Tier description */ - tierDescription?: string; + tierDescription?: string /** * ID of the Item */ - id?: number; + id?: number /** * Total item Price in cents (after discount without extra options) */ - amount?: number; + amount?: number /** * Type of the used tariff */ - type?: HelloAsso_Api_V5_Models_Enums_TierType; + type?: HelloAsso_Api_V5_Models_Enums_TierType /** * The raw amount (without reduction) */ - initialAmount?: number; + initialAmount?: number /** * State of this item */ - state?: HelloAsso_Api_V5_Models_Enums_ItemState; -}; - + state?: HelloAsso_Api_V5_Models_Enums_ItemState +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemCustomField.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemCustomField.ts index ffb1645..8c23db1 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemCustomField.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemCustomField.ts @@ -2,20 +2,19 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_FieldType } from './HelloAsso_Api_V5_Models_Enums_FieldType'; +import type { HelloAsso_Api_V5_Models_Enums_FieldType } from "./HelloAsso_Api_V5_Models_Enums_FieldType" /** * Custom field associated with the item or option */ export type HelloAsso_Api_V5_Models_Statistics_ItemCustomField = { - name?: string; + name?: string /** * The type of the field */ - type?: HelloAsso_Api_V5_Models_Enums_FieldType; + type?: HelloAsso_Api_V5_Models_Enums_FieldType /** * Participant or user answer */ - answer?: string; -}; - + answer?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDetail.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDetail.ts index 99bce15..7fb344a 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDetail.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDetail.ts @@ -2,88 +2,87 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_ItemState } from './HelloAsso_Api_V5_Models_Enums_ItemState'; -import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from './HelloAsso_Api_V5_Models_Enums_PriceCategory'; -import type { HelloAsso_Api_V5_Models_Enums_TierType } from './HelloAsso_Api_V5_Models_Enums_TierType'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from './HelloAsso_Api_V5_Models_Statistics_ItemCustomField'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from './HelloAsso_Api_V5_Models_Statistics_ItemDiscount'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from './HelloAsso_Api_V5_Models_Statistics_ItemOption'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemPayment } from './HelloAsso_Api_V5_Models_Statistics_ItemPayment'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from './HelloAsso_Api_V5_Models_Statistics_OrderLight'; -import type { HelloAsso_Api_V5_Models_Statistics_Payer } from './HelloAsso_Api_V5_Models_Statistics_Payer'; -import type { HelloAsso_Api_V5_Models_Statistics_User } from './HelloAsso_Api_V5_Models_Statistics_User'; +import type { HelloAsso_Api_V5_Models_Enums_ItemState } from "./HelloAsso_Api_V5_Models_Enums_ItemState" +import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from "./HelloAsso_Api_V5_Models_Enums_PriceCategory" +import type { HelloAsso_Api_V5_Models_Enums_TierType } from "./HelloAsso_Api_V5_Models_Enums_TierType" +import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from "./HelloAsso_Api_V5_Models_Statistics_ItemCustomField" +import type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from "./HelloAsso_Api_V5_Models_Statistics_ItemDiscount" +import type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from "./HelloAsso_Api_V5_Models_Statistics_ItemOption" +import type { HelloAsso_Api_V5_Models_Statistics_ItemPayment } from "./HelloAsso_Api_V5_Models_Statistics_ItemPayment" +import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from "./HelloAsso_Api_V5_Models_Statistics_OrderLight" +import type { HelloAsso_Api_V5_Models_Statistics_Payer } from "./HelloAsso_Api_V5_Models_Statistics_Payer" +import type { HelloAsso_Api_V5_Models_Statistics_User } from "./HelloAsso_Api_V5_Models_Statistics_User" export type HelloAsso_Api_V5_Models_Statistics_ItemDetail = { - order?: HelloAsso_Api_V5_Models_Statistics_OrderLight; - payer?: HelloAsso_Api_V5_Models_Statistics_Payer; + order?: HelloAsso_Api_V5_Models_Statistics_OrderLight + payer?: HelloAsso_Api_V5_Models_Statistics_Payer /** * Payments linked to this item */ - payments?: Array; - name?: string; + payments?: Array + name?: string /** * User : participant/member/adherent specified on the item */ - user?: HelloAsso_Api_V5_Models_Statistics_User; + user?: HelloAsso_Api_V5_Models_Statistics_User /** * PriceCategory : Free, Fixed or Pay what you want */ - priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory; + priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory /** * Minimum amount that was specified on the tier (in cents) */ - minAmount?: number; + minAmount?: number /** * The discount code used on the item */ - discount?: HelloAsso_Api_V5_Models_Statistics_ItemDiscount; + discount?: HelloAsso_Api_V5_Models_Statistics_ItemDiscount /** * Custom fields related to this item */ - customFields?: Array; + customFields?: Array /** * Extra options taken with this item */ - options?: Array; + options?: Array /** * The Ticket Url */ - ticketUrl?: string; + ticketUrl?: string /** * The item QrCode (for ticket scanning only) */ - qrCode?: string; + qrCode?: string /** * The Membership Card Url */ - membershipCardUrl?: string; + membershipCardUrl?: string /** * The day of levy for monthly donation only */ - dayOfLevy?: number; + dayOfLevy?: number /** * Tier description */ - tierDescription?: string; + tierDescription?: string /** * ID of the Item */ - id?: number; + id?: number /** * Total item Price in cents (after discount without extra options) */ - amount?: number; + amount?: number /** * Type of the used tariff */ - type?: HelloAsso_Api_V5_Models_Enums_TierType; + type?: HelloAsso_Api_V5_Models_Enums_TierType /** * The raw amount (without reduction) */ - initialAmount?: number; + initialAmount?: number /** * State of this item */ - state?: HelloAsso_Api_V5_Models_Enums_ItemState; -}; - + state?: HelloAsso_Api_V5_Models_Enums_ItemState +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDiscount.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDiscount.ts index 9186523..37e9607 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDiscount.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemDiscount.ts @@ -6,10 +6,9 @@ export type HelloAsso_Api_V5_Models_Statistics_ItemDiscount = { /** * The discount code applied on the item */ - code?: string; + code?: string /** * The discount amount in cents */ - amount?: number; -}; - + amount?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemOption.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemOption.ts index b5dac94..c4668ca 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemOption.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemOption.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from './HelloAsso_Api_V5_Models_Enums_PriceCategory'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from './HelloAsso_Api_V5_Models_Statistics_ItemCustomField'; +import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from "./HelloAsso_Api_V5_Models_Enums_PriceCategory" +import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from "./HelloAsso_Api_V5_Models_Statistics_ItemCustomField" /** * ItemOption class @@ -12,19 +12,18 @@ export type HelloAsso_Api_V5_Models_Statistics_ItemOption = { /** * Name of the option */ - name?: string; + name?: string /** * Amount of the option in cents */ - amount?: number; - priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory; + amount?: number + priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory /** * Option is required or optional */ - isRequired?: boolean; + isRequired?: boolean /** * Custom fields related to this option */ - customFields?: Array; -}; - + customFields?: Array +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemPayment.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemPayment.ts index 33a33d4..a7c1e54 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemPayment.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ItemPayment.ts @@ -2,12 +2,12 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from './HelloAsso_Api_V5_Models_Enums_PaymentCashOutState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from './HelloAsso_Api_V5_Models_Enums_PaymentMeans'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from './HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from './HelloAsso_Api_V5_Models_Enums_PaymentState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from './HelloAsso_Api_V5_Models_Enums_PaymentType'; +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from "./HelloAsso_Api_V5_Models_Enums_PaymentCashOutState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from "./HelloAsso_Api_V5_Models_Enums_PaymentMeans" +import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from "./HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from "./HelloAsso_Api_V5_Models_Enums_PaymentState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from "./HelloAsso_Api_V5_Models_Enums_PaymentType" /** * Payment linked to the item @@ -16,50 +16,49 @@ export type HelloAsso_Api_V5_Models_Statistics_ItemPayment = { /** * The cash out state */ - cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState; + cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState /** * Amount of the item and extra options payed on this payment term (in cents) */ - shareAmount?: number; + shareAmount?: number /** * The ID of the payment */ - id?: number; + id?: number /** * Total Amount of the payment (in cents) */ - amount?: number; + amount?: number /** * Tip Amount of the payment (in cents) */ - amountTip?: number; + amountTip?: number /** * Date of the payment */ - date?: string; + date?: string /** * The payment means used */ - paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans; + paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans /** * Indicates the payment number (useful in the case of an order comprising payments with installments) */ - installmentNumber?: number; + installmentNumber?: number /** * Payment state */ - state?: HelloAsso_Api_V5_Models_Enums_PaymentState; + state?: HelloAsso_Api_V5_Models_Enums_PaymentState /** * Payment type : a payment with a 'REGISTERED' state can be of three different types, OFFLINE, CREDIT or DEBIT (adjustment) */ - type?: HelloAsso_Api_V5_Models_Enums_PaymentType; + type?: HelloAsso_Api_V5_Models_Enums_PaymentType /** * Meta CreatedDate/UpdatedDate */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; + meta?: HelloAsso_Api_V5_Models_Common_MetaModel /** * Payment off line mean */ - paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel; -}; - + paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Order.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Order.ts index 2dc42ec..2e8c43c 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Order.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Order.ts @@ -2,58 +2,57 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_FormType } from './HelloAsso_Api_V5_Models_Enums_FormType'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderAmountModel } from './HelloAsso_Api_V5_Models_Statistics_OrderAmountModel'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderItem } from './HelloAsso_Api_V5_Models_Statistics_OrderItem'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderPayment } from './HelloAsso_Api_V5_Models_Statistics_OrderPayment'; -import type { HelloAsso_Api_V5_Models_Statistics_Payer } from './HelloAsso_Api_V5_Models_Statistics_Payer'; +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "./HelloAsso_Api_V5_Models_Enums_FormType" +import type { HelloAsso_Api_V5_Models_Statistics_OrderAmountModel } from "./HelloAsso_Api_V5_Models_Statistics_OrderAmountModel" +import type { HelloAsso_Api_V5_Models_Statistics_OrderItem } from "./HelloAsso_Api_V5_Models_Statistics_OrderItem" +import type { HelloAsso_Api_V5_Models_Statistics_OrderPayment } from "./HelloAsso_Api_V5_Models_Statistics_OrderPayment" +import type { HelloAsso_Api_V5_Models_Statistics_Payer } from "./HelloAsso_Api_V5_Models_Statistics_Payer" export type HelloAsso_Api_V5_Models_Statistics_Order = { - payer?: HelloAsso_Api_V5_Models_Statistics_Payer; + payer?: HelloAsso_Api_V5_Models_Statistics_Payer /** * All items of the order */ - items?: Array; + items?: Array /** * All payments of the order */ - payments?: Array; + payments?: Array /** * Total amount of the order */ - amount?: HelloAsso_Api_V5_Models_Statistics_OrderAmountModel; + amount?: HelloAsso_Api_V5_Models_Statistics_OrderAmountModel /** * The ID of the Order */ - id?: number; + id?: number /** * Order creation date */ - date?: string; + date?: string /** * FormSlug (lowercase name of the form without special characters) */ - formSlug?: string; + formSlug?: string /** * The type of the form */ - formType?: HelloAsso_Api_V5_Models_Enums_FormType; + formType?: HelloAsso_Api_V5_Models_Enums_FormType /** * The organization name. */ - organizationName?: string; + organizationName?: string /** * OrganizationSlug (lowercase name of the organization without special characters) */ - organizationSlug?: string; + organizationSlug?: string /** * Checkout intent Id if available */ - checkoutIntentId?: number; + checkoutIntentId?: number /** * Meta CreatedDate/UpdatedDate */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; -}; - + meta?: HelloAsso_Api_V5_Models_Common_MetaModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderAmountModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderAmountModel.ts index 375ae19..e5b39b3 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderAmountModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderAmountModel.ts @@ -6,14 +6,13 @@ export type HelloAsso_Api_V5_Models_Statistics_OrderAmountModel = { /** * Total amount in cents */ - total?: number; + total?: number /** * Vat amount in cents */ - vat?: number; + vat?: number /** * Discount amount in cents */ - discount?: number; -}; - + discount?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderDetail.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderDetail.ts index f9ef612..bed3fdf 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderDetail.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderDetail.ts @@ -2,58 +2,57 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_FormType } from './HelloAsso_Api_V5_Models_Enums_FormType'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderAmountModel } from './HelloAsso_Api_V5_Models_Statistics_OrderAmountModel'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderItem } from './HelloAsso_Api_V5_Models_Statistics_OrderItem'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderPayment } from './HelloAsso_Api_V5_Models_Statistics_OrderPayment'; -import type { HelloAsso_Api_V5_Models_Statistics_Payer } from './HelloAsso_Api_V5_Models_Statistics_Payer'; +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "./HelloAsso_Api_V5_Models_Enums_FormType" +import type { HelloAsso_Api_V5_Models_Statistics_OrderAmountModel } from "./HelloAsso_Api_V5_Models_Statistics_OrderAmountModel" +import type { HelloAsso_Api_V5_Models_Statistics_OrderItem } from "./HelloAsso_Api_V5_Models_Statistics_OrderItem" +import type { HelloAsso_Api_V5_Models_Statistics_OrderPayment } from "./HelloAsso_Api_V5_Models_Statistics_OrderPayment" +import type { HelloAsso_Api_V5_Models_Statistics_Payer } from "./HelloAsso_Api_V5_Models_Statistics_Payer" export type HelloAsso_Api_V5_Models_Statistics_OrderDetail = { - payer?: HelloAsso_Api_V5_Models_Statistics_Payer; + payer?: HelloAsso_Api_V5_Models_Statistics_Payer /** * All items of the order */ - items?: Array; + items?: Array /** * All payments of the order */ - payments?: Array; + payments?: Array /** * Total amount of the order */ - amount?: HelloAsso_Api_V5_Models_Statistics_OrderAmountModel; + amount?: HelloAsso_Api_V5_Models_Statistics_OrderAmountModel /** * The ID of the Order */ - id?: number; + id?: number /** * Order creation date */ - date?: string; + date?: string /** * FormSlug (lowercase name of the form without special characters) */ - formSlug?: string; + formSlug?: string /** * The type of the form */ - formType?: HelloAsso_Api_V5_Models_Enums_FormType; + formType?: HelloAsso_Api_V5_Models_Enums_FormType /** * The organization name. */ - organizationName?: string; + organizationName?: string /** * OrganizationSlug (lowercase name of the organization without special characters) */ - organizationSlug?: string; + organizationSlug?: string /** * Checkout intent Id if available */ - checkoutIntentId?: number; + checkoutIntentId?: number /** * Meta CreatedDate/UpdatedDate */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; -}; - + meta?: HelloAsso_Api_V5_Models_Common_MetaModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderItem.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderItem.ts index 76f59e4..c05dbbf 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderItem.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderItem.ts @@ -2,14 +2,14 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_ItemState } from './HelloAsso_Api_V5_Models_Enums_ItemState'; -import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from './HelloAsso_Api_V5_Models_Enums_PriceCategory'; -import type { HelloAsso_Api_V5_Models_Enums_TierType } from './HelloAsso_Api_V5_Models_Enums_TierType'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from './HelloAsso_Api_V5_Models_Statistics_ItemCustomField'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from './HelloAsso_Api_V5_Models_Statistics_ItemDiscount'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from './HelloAsso_Api_V5_Models_Statistics_ItemOption'; -import type { HelloAsso_Api_V5_Models_Statistics_SharePayment } from './HelloAsso_Api_V5_Models_Statistics_SharePayment'; -import type { HelloAsso_Api_V5_Models_Statistics_User } from './HelloAsso_Api_V5_Models_Statistics_User'; +import type { HelloAsso_Api_V5_Models_Enums_ItemState } from "./HelloAsso_Api_V5_Models_Enums_ItemState" +import type { HelloAsso_Api_V5_Models_Enums_PriceCategory } from "./HelloAsso_Api_V5_Models_Enums_PriceCategory" +import type { HelloAsso_Api_V5_Models_Enums_TierType } from "./HelloAsso_Api_V5_Models_Enums_TierType" +import type { HelloAsso_Api_V5_Models_Statistics_ItemCustomField } from "./HelloAsso_Api_V5_Models_Statistics_ItemCustomField" +import type { HelloAsso_Api_V5_Models_Statistics_ItemDiscount } from "./HelloAsso_Api_V5_Models_Statistics_ItemDiscount" +import type { HelloAsso_Api_V5_Models_Statistics_ItemOption } from "./HelloAsso_Api_V5_Models_Statistics_ItemOption" +import type { HelloAsso_Api_V5_Models_Statistics_SharePayment } from "./HelloAsso_Api_V5_Models_Statistics_SharePayment" +import type { HelloAsso_Api_V5_Models_Statistics_User } from "./HelloAsso_Api_V5_Models_Statistics_User" /** * Item on the order @@ -18,71 +18,70 @@ export type HelloAsso_Api_V5_Models_Statistics_OrderItem = { /** * Payments linked to this item and each share between the item and the payment */ - payments?: Array; - name?: string; + payments?: Array + name?: string /** * User : participant/member/adherent specified on the item */ - user?: HelloAsso_Api_V5_Models_Statistics_User; + user?: HelloAsso_Api_V5_Models_Statistics_User /** * PriceCategory : Free, Fixed or Pay what you want */ - priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory; + priceCategory?: HelloAsso_Api_V5_Models_Enums_PriceCategory /** * Minimum amount that was specified on the tier (in cents) */ - minAmount?: number; + minAmount?: number /** * The discount code used on the item */ - discount?: HelloAsso_Api_V5_Models_Statistics_ItemDiscount; + discount?: HelloAsso_Api_V5_Models_Statistics_ItemDiscount /** * Custom fields related to this item */ - customFields?: Array; + customFields?: Array /** * Extra options taken with this item */ - options?: Array; + options?: Array /** * The Ticket Url */ - ticketUrl?: string; + ticketUrl?: string /** * The item QrCode (for ticket scanning only) */ - qrCode?: string; + qrCode?: string /** * The Membership Card Url */ - membershipCardUrl?: string; + membershipCardUrl?: string /** * The day of levy for monthly donation only */ - dayOfLevy?: number; + dayOfLevy?: number /** * Tier description */ - tierDescription?: string; + tierDescription?: string /** * ID of the Item */ - id?: number; + id?: number /** * Total item Price in cents (after discount without extra options) */ - amount?: number; + amount?: number /** * Type of the used tariff */ - type?: HelloAsso_Api_V5_Models_Enums_TierType; + type?: HelloAsso_Api_V5_Models_Enums_TierType /** * The raw amount (without reduction) */ - initialAmount?: number; + initialAmount?: number /** * State of this item */ - state?: HelloAsso_Api_V5_Models_Enums_ItemState; -}; - + state?: HelloAsso_Api_V5_Models_Enums_ItemState +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderLight.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderLight.ts index 24bc018..9e4b8cf 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderLight.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderLight.ts @@ -2,41 +2,40 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_FormType } from './HelloAsso_Api_V5_Models_Enums_FormType'; +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "./HelloAsso_Api_V5_Models_Enums_FormType" export type HelloAsso_Api_V5_Models_Statistics_OrderLight = { /** * The ID of the Order */ - id?: number; + id?: number /** * Order creation date */ - date?: string; + date?: string /** * FormSlug (lowercase name of the form without special characters) */ - formSlug?: string; + formSlug?: string /** * The type of the form */ - formType?: HelloAsso_Api_V5_Models_Enums_FormType; + formType?: HelloAsso_Api_V5_Models_Enums_FormType /** * The organization name. */ - organizationName?: string; + organizationName?: string /** * OrganizationSlug (lowercase name of the organization without special characters) */ - organizationSlug?: string; + organizationSlug?: string /** * Checkout intent Id if available */ - checkoutIntentId?: number; + checkoutIntentId?: number /** * Meta CreatedDate/UpdatedDate */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; -}; - + meta?: HelloAsso_Api_V5_Models_Common_MetaModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderPayment.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderPayment.ts index 6b08621..3b3f27a 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderPayment.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_OrderPayment.ts @@ -2,13 +2,13 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from './HelloAsso_Api_V5_Models_Enums_PaymentCashOutState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from './HelloAsso_Api_V5_Models_Enums_PaymentMeans'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from './HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from './HelloAsso_Api_V5_Models_Enums_PaymentState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from './HelloAsso_Api_V5_Models_Enums_PaymentType'; -import type { HelloAsso_Api_V5_Models_Statistics_ShareItem } from './HelloAsso_Api_V5_Models_Statistics_ShareItem'; +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from "./HelloAsso_Api_V5_Models_Enums_PaymentCashOutState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from "./HelloAsso_Api_V5_Models_Enums_PaymentMeans" +import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from "./HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from "./HelloAsso_Api_V5_Models_Enums_PaymentState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from "./HelloAsso_Api_V5_Models_Enums_PaymentType" +import type { HelloAsso_Api_V5_Models_Statistics_ShareItem } from "./HelloAsso_Api_V5_Models_Statistics_ShareItem" /** * Payment on the order @@ -17,62 +17,61 @@ export type HelloAsso_Api_V5_Models_Statistics_OrderPayment = { /** * Items linked to this payment and each share between the item and the payment */ - items?: Array; + items?: Array /** * The date of the cash out */ - cashOutDate?: string; + cashOutDate?: string /** * The cash out state : payment transfer status */ - cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState; + cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState /** * The Payment Receipt Url */ - paymentReceiptUrl?: string; + paymentReceiptUrl?: string /** * The Fiscal Receipt Url */ - fiscalReceiptUrl?: string; + fiscalReceiptUrl?: string /** * The ID of the payment */ - id?: number; + id?: number /** * Total Amount of the payment (in cents) */ - amount?: number; + amount?: number /** * Tip Amount of the payment (in cents) */ - amountTip?: number; + amountTip?: number /** * Date of the payment */ - date?: string; + date?: string /** * The payment means used */ - paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans; + paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans /** * Indicates the payment number (useful in the case of an order comprising payments with installments) */ - installmentNumber?: number; + installmentNumber?: number /** * Payment state */ - state?: HelloAsso_Api_V5_Models_Enums_PaymentState; + state?: HelloAsso_Api_V5_Models_Enums_PaymentState /** * Payment type : a payment with a 'REGISTERED' state can be of three different types, OFFLINE, CREDIT or DEBIT (adjustment) */ - type?: HelloAsso_Api_V5_Models_Enums_PaymentType; + type?: HelloAsso_Api_V5_Models_Enums_PaymentType /** * Meta CreatedDate/UpdatedDate */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; + meta?: HelloAsso_Api_V5_Models_Common_MetaModel /** * Payment off line mean */ - paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel; -}; - + paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payer.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payer.ts index 2c2bce6..551b561 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payer.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payer.ts @@ -3,32 +3,31 @@ /* eslint-disable */ export type HelloAsso_Api_V5_Models_Statistics_Payer = { - email?: string; + email?: string /** * Gets or Sets Address */ - address?: string; + address?: string /** * Gets or Sets City */ - city?: string; + city?: string /** * Gets or Sets ZipCode */ - zipCode?: string; + zipCode?: string /** * Gets or Sets Country */ - country?: string; + country?: string /** * Gets or Sets Company */ - company?: string; + company?: string /** * Gets or Sets date of birth */ - dateOfBirth?: string; - firstName?: string; - lastName?: string; -}; - + dateOfBirth?: string + firstName?: string + lastName?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payment.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payment.ts index e4d934b..525020e 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payment.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_Payment.ts @@ -2,84 +2,83 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from './HelloAsso_Api_V5_Models_Enums_PaymentCashOutState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from './HelloAsso_Api_V5_Models_Enums_PaymentMeans'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from './HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from './HelloAsso_Api_V5_Models_Enums_PaymentState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from './HelloAsso_Api_V5_Models_Enums_PaymentType'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from './HelloAsso_Api_V5_Models_Statistics_OrderLight'; -import type { HelloAsso_Api_V5_Models_Statistics_Payer } from './HelloAsso_Api_V5_Models_Statistics_Payer'; -import type { HelloAsso_Api_V5_Models_Statistics_PaymentItem } from './HelloAsso_Api_V5_Models_Statistics_PaymentItem'; +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from "./HelloAsso_Api_V5_Models_Enums_PaymentCashOutState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from "./HelloAsso_Api_V5_Models_Enums_PaymentMeans" +import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from "./HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from "./HelloAsso_Api_V5_Models_Enums_PaymentState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from "./HelloAsso_Api_V5_Models_Enums_PaymentType" +import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from "./HelloAsso_Api_V5_Models_Statistics_OrderLight" +import type { HelloAsso_Api_V5_Models_Statistics_Payer } from "./HelloAsso_Api_V5_Models_Statistics_Payer" +import type { HelloAsso_Api_V5_Models_Statistics_PaymentItem } from "./HelloAsso_Api_V5_Models_Statistics_PaymentItem" export type HelloAsso_Api_V5_Models_Statistics_Payment = { /** * The order of this payment */ - order?: HelloAsso_Api_V5_Models_Statistics_OrderLight; + order?: HelloAsso_Api_V5_Models_Statistics_OrderLight /** * The payer of this payment */ - payer?: HelloAsso_Api_V5_Models_Statistics_Payer; + payer?: HelloAsso_Api_V5_Models_Statistics_Payer /** * Items linked to this payment */ - items?: Array; + items?: Array /** * The date of the cash out */ - cashOutDate?: string; + cashOutDate?: string /** * The cash out state : payment transfer status */ - cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState; + cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState /** * The Payment Receipt Url */ - paymentReceiptUrl?: string; + paymentReceiptUrl?: string /** * The Fiscal Receipt Url */ - fiscalReceiptUrl?: string; + fiscalReceiptUrl?: string /** * The ID of the payment */ - id?: number; + id?: number /** * Total Amount of the payment (in cents) */ - amount?: number; + amount?: number /** * Tip Amount of the payment (in cents) */ - amountTip?: number; + amountTip?: number /** * Date of the payment */ - date?: string; + date?: string /** * The payment means used */ - paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans; + paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans /** * Indicates the payment number (useful in the case of an order comprising payments with installments) */ - installmentNumber?: number; + installmentNumber?: number /** * Payment state */ - state?: HelloAsso_Api_V5_Models_Enums_PaymentState; + state?: HelloAsso_Api_V5_Models_Enums_PaymentState /** * Payment type : a payment with a 'REGISTERED' state can be of three different types, OFFLINE, CREDIT or DEBIT (adjustment) */ - type?: HelloAsso_Api_V5_Models_Enums_PaymentType; + type?: HelloAsso_Api_V5_Models_Enums_PaymentType /** * Meta CreatedDate/UpdatedDate */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; + meta?: HelloAsso_Api_V5_Models_Common_MetaModel /** * Payment off line mean */ - paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel; -}; - + paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail.ts index b3418e8..2eec462 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail.ts @@ -2,84 +2,83 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_MetaModel } from './HelloAsso_Api_V5_Models_Common_MetaModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from './HelloAsso_Api_V5_Models_Enums_PaymentCashOutState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from './HelloAsso_Api_V5_Models_Enums_PaymentMeans'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from './HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from './HelloAsso_Api_V5_Models_Enums_PaymentState'; -import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from './HelloAsso_Api_V5_Models_Enums_PaymentType'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from './HelloAsso_Api_V5_Models_Statistics_OrderLight'; -import type { HelloAsso_Api_V5_Models_Statistics_Payer } from './HelloAsso_Api_V5_Models_Statistics_Payer'; -import type { HelloAsso_Api_V5_Models_Statistics_PaymentItem } from './HelloAsso_Api_V5_Models_Statistics_PaymentItem'; +import type { HelloAsso_Api_V5_Models_Common_MetaModel } from "./HelloAsso_Api_V5_Models_Common_MetaModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentCashOutState } from "./HelloAsso_Api_V5_Models_Enums_PaymentCashOutState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentMeans } from "./HelloAsso_Api_V5_Models_Enums_PaymentMeans" +import type { HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel } from "./HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel" +import type { HelloAsso_Api_V5_Models_Enums_PaymentState } from "./HelloAsso_Api_V5_Models_Enums_PaymentState" +import type { HelloAsso_Api_V5_Models_Enums_PaymentType } from "./HelloAsso_Api_V5_Models_Enums_PaymentType" +import type { HelloAsso_Api_V5_Models_Statistics_OrderLight } from "./HelloAsso_Api_V5_Models_Statistics_OrderLight" +import type { HelloAsso_Api_V5_Models_Statistics_Payer } from "./HelloAsso_Api_V5_Models_Statistics_Payer" +import type { HelloAsso_Api_V5_Models_Statistics_PaymentItem } from "./HelloAsso_Api_V5_Models_Statistics_PaymentItem" export type HelloAsso_Api_V5_Models_Statistics_PaymentDetail = { /** * The order of this payment */ - order?: HelloAsso_Api_V5_Models_Statistics_OrderLight; + order?: HelloAsso_Api_V5_Models_Statistics_OrderLight /** * The payer of this payment */ - payer?: HelloAsso_Api_V5_Models_Statistics_Payer; + payer?: HelloAsso_Api_V5_Models_Statistics_Payer /** * Items linked to this payment */ - items?: Array; + items?: Array /** * The date of the cash out */ - cashOutDate?: string; + cashOutDate?: string /** * The cash out state : payment transfer status */ - cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState; + cashOutState?: HelloAsso_Api_V5_Models_Enums_PaymentCashOutState /** * The Payment Receipt Url */ - paymentReceiptUrl?: string; + paymentReceiptUrl?: string /** * The Fiscal Receipt Url */ - fiscalReceiptUrl?: string; + fiscalReceiptUrl?: string /** * The ID of the payment */ - id?: number; + id?: number /** * Total Amount of the payment (in cents) */ - amount?: number; + amount?: number /** * Tip Amount of the payment (in cents) */ - amountTip?: number; + amountTip?: number /** * Date of the payment */ - date?: string; + date?: string /** * The payment means used */ - paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans; + paymentMeans?: HelloAsso_Api_V5_Models_Enums_PaymentMeans /** * Indicates the payment number (useful in the case of an order comprising payments with installments) */ - installmentNumber?: number; + installmentNumber?: number /** * Payment state */ - state?: HelloAsso_Api_V5_Models_Enums_PaymentState; + state?: HelloAsso_Api_V5_Models_Enums_PaymentState /** * Payment type : a payment with a 'REGISTERED' state can be of three different types, OFFLINE, CREDIT or DEBIT (adjustment) */ - type?: HelloAsso_Api_V5_Models_Enums_PaymentType; + type?: HelloAsso_Api_V5_Models_Enums_PaymentType /** * Meta CreatedDate/UpdatedDate */ - meta?: HelloAsso_Api_V5_Models_Common_MetaModel; + meta?: HelloAsso_Api_V5_Models_Common_MetaModel /** * Payment off line mean */ - paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel; -}; - + paymentOffLineMean?: HelloAsso_Api_V5_Models_Enums_PaymentOffLineMeansModel +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentItem.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentItem.ts index b4b9a4f..ea38e86 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentItem.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_PaymentItem.ts @@ -2,8 +2,8 @@ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Enums_ItemState } from './HelloAsso_Api_V5_Models_Enums_ItemState'; -import type { HelloAsso_Api_V5_Models_Enums_TierType } from './HelloAsso_Api_V5_Models_Enums_TierType'; +import type { HelloAsso_Api_V5_Models_Enums_ItemState } from "./HelloAsso_Api_V5_Models_Enums_ItemState" +import type { HelloAsso_Api_V5_Models_Enums_TierType } from "./HelloAsso_Api_V5_Models_Enums_TierType" /** * Item linked to a payment @@ -12,34 +12,33 @@ export type HelloAsso_Api_V5_Models_Statistics_PaymentItem = { /** * Amount of the payment assigned to the item and its options (in cents) */ - shareAmount?: number; + shareAmount?: number /** * Amount of the item payed on this payment term (in cents) */ - shareItemAmount?: number; + shareItemAmount?: number /** * Amount of all extra options linked to this item and payed on this payment (in cents) */ - shareOptionsAmount?: number; + shareOptionsAmount?: number /** * ID of the Item */ - id?: number; + id?: number /** * Total item Price in cents (after discount without extra options) */ - amount?: number; + amount?: number /** * Type of the used tariff */ - type?: HelloAsso_Api_V5_Models_Enums_TierType; + type?: HelloAsso_Api_V5_Models_Enums_TierType /** * The raw amount (without reduction) */ - initialAmount?: number; + initialAmount?: number /** * State of this item */ - state?: HelloAsso_Api_V5_Models_Enums_ItemState; -}; - + state?: HelloAsso_Api_V5_Models_Enums_ItemState +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ShareItem.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ShareItem.ts index a03fa16..e366439 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ShareItem.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_ShareItem.ts @@ -6,18 +6,17 @@ export type HelloAsso_Api_V5_Models_Statistics_ShareItem = { /** * Id of the order item */ - id?: number; + id?: number /** * Amount of the payment assigned to the item and its options (in cents) */ - shareAmount?: number; + shareAmount?: number /** * Amount of the item payed on this payment term (in cents) */ - shareItemAmount?: number; + shareItemAmount?: number /** * Amount of all extra options linked to this item and payed on this payment (in cents) */ - shareOptionsAmount?: number; -}; - + shareOptionsAmount?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_SharePayment.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_SharePayment.ts index dcd8b4b..456e29e 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_SharePayment.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_SharePayment.ts @@ -6,10 +6,9 @@ export type HelloAsso_Api_V5_Models_Statistics_SharePayment = { /** * Id of the payment */ - id?: number; + id?: number /** * Amount of the item payed on this payment term (in cents) */ - shareAmount?: number; -}; - + shareAmount?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_User.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_User.ts index edbd296..9748b70 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_User.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Statistics_User.ts @@ -3,7 +3,6 @@ /* eslint-disable */ export type HelloAsso_Api_V5_Models_Statistics_User = { - firstName?: string; - lastName?: string; -}; - + firstName?: string + lastName?: string +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Tags_PublicTagModel.ts b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Tags_PublicTagModel.ts index de6b151..62ba2fa 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Tags_PublicTagModel.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Api_V5_Models_Tags_PublicTagModel.ts @@ -9,10 +9,9 @@ export type HelloAsso_Api_V5_Models_Tags_PublicTagModel = { /** * Name tag */ - name?: string; + name?: string /** * Tag score : measure tag relevance */ - score?: number; -}; - + score?: number +} diff --git a/src/helloasso/api-interface/models/HelloAsso_Models_Enums_GlobalRole.ts b/src/helloasso/api-interface/models/HelloAsso_Models_Enums_GlobalRole.ts index 95efcd6..bb018e3 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Models_Enums_GlobalRole.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Models_Enums_GlobalRole.ts @@ -3,7 +3,7 @@ /* eslint-disable */ export enum HelloAsso_Models_Enums_GlobalRole { - ORGANIZATION_ADMIN = 'OrganizationAdmin', - FORM_ADMIN = 'FormAdmin', - GROUP_ADMIN = 'GroupAdmin', + ORGANIZATION_ADMIN = "OrganizationAdmin", + FORM_ADMIN = "FormAdmin", + GROUP_ADMIN = "GroupAdmin" } diff --git a/src/helloasso/api-interface/models/HelloAsso_Models_Shared_GeoLocation.ts b/src/helloasso/api-interface/models/HelloAsso_Models_Shared_GeoLocation.ts index 3295196..8f36234 100644 --- a/src/helloasso/api-interface/models/HelloAsso_Models_Shared_GeoLocation.ts +++ b/src/helloasso/api-interface/models/HelloAsso_Models_Shared_GeoLocation.ts @@ -3,7 +3,6 @@ /* eslint-disable */ export type HelloAsso_Models_Shared_GeoLocation = { - readonly latitude?: number; - readonly longitude?: number; -}; - + readonly latitude?: number + readonly longitude?: number +} diff --git a/src/helloasso/api-interface/services/CheckoutIntentsManagementService.ts b/src/helloasso/api-interface/services/CheckoutIntentsManagementService.ts index f5421ce..427c887 100644 --- a/src/helloasso/api-interface/services/CheckoutIntentsManagementService.ts +++ b/src/helloasso/api-interface/services/CheckoutIntentsManagementService.ts @@ -1,15 +1,14 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse } from '../models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse'; -import type { HelloAsso_Api_V5_Models_Carts_InitCheckoutBody } from '../models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody'; -import type { HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse } from '../models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse'; +import type { HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse } from "../models/HelloAsso_Api_V5_Models_Carts_CheckoutIntentResponse" +import type { HelloAsso_Api_V5_Models_Carts_InitCheckoutBody } from "../models/HelloAsso_Api_V5_Models_Carts_InitCheckoutBody" +import type { HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse } from "../models/HelloAsso_Api_V5_Models_Carts_InitCheckoutResponse" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class CheckoutIntentsManagementService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -24,23 +23,23 @@ export class CheckoutIntentsManagementService { public organizationCheckoutIntentsGetCheckoutIntent( organizationSlug: string, checkoutIntentId: number, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/checkout-intents/{checkoutIntentId}', + method: "GET", + url: "/organizations/{organizationSlug}/checkout-intents/{checkoutIntentId}", path: { - 'organizationSlug': organizationSlug, - 'checkoutIntentId': checkoutIntentId, + organizationSlug: organizationSlug, + checkoutIntentId: checkoutIntentId }, headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -55,23 +54,22 @@ export class CheckoutIntentsManagementService { public organizationCheckoutIntentsPostInitCheckout( organizationSlug: string, body: HelloAsso_Api_V5_Models_Carts_InitCheckoutBody, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'POST', - url: '/organizations/{organizationSlug}/checkout-intents', + method: "POST", + url: "/organizations/{organizationSlug}/checkout-intents", path: { - 'organizationSlug': organizationSlug, + organizationSlug: organizationSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, body: body, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/DirectoryService.ts b/src/helloasso/api-interface/services/DirectoryService.ts index 790acab..6a7edd7 100644 --- a/src/helloasso/api-interface/services/DirectoryService.ts +++ b/src/helloasso/api-interface/services/DirectoryService.ts @@ -1,16 +1,15 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from '../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel'; -import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from '../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel'; -import type { HelloAsso_Api_V5_Models_Directory_ListFormsRequest } from '../models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest'; -import type { HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest } from '../models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest'; +import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel } from "../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableFormModel" +import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel } from "../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_SynchronizableOrganizationModel" +import type { HelloAsso_Api_V5_Models_Directory_ListFormsRequest } from "../models/HelloAsso_Api_V5_Models_Directory_ListFormsRequest" +import type { HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest } from "../models/HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class DirectoryService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -30,24 +29,24 @@ export class DirectoryService { body: HelloAsso_Api_V5_Models_Directory_ListFormsRequest, pageSize: number = 20, continuationToken?: string, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'POST', - url: '/directory/forms', + method: "POST", + url: "/directory/forms", headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'pageSize': pageSize, - 'continuationToken': continuationToken, + pageSize: pageSize, + continuationToken: continuationToken }, body: body, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -67,24 +66,23 @@ export class DirectoryService { body: HelloAsso_Api_V5_Models_Directory_ListOrganizationsRequest, pageSize: number = 20, continuationToken?: string, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'POST', - url: '/directory/organizations', + method: "POST", + url: "/directory/organizations", headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'pageSize': pageSize, - 'continuationToken': continuationToken, + pageSize: pageSize, + continuationToken: continuationToken }, body: body, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/FormsService.ts b/src/helloasso/api-interface/services/FormsService.ts index 36f6462..4540cff 100644 --- a/src/helloasso/api-interface/services/FormsService.ts +++ b/src/helloasso/api-interface/services/FormsService.ts @@ -1,17 +1,16 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel } from '../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel'; -import type { HelloAsso_Api_V5_Models_Enums_FormType } from '../models/HelloAsso_Api_V5_Models_Enums_FormType'; -import type { HelloAsso_Api_V5_Models_Forms_FormPublicModel } from '../models/HelloAsso_Api_V5_Models_Forms_FormPublicModel'; -import type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel } from '../models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel'; -import type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest } from '../models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest'; +import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel } from "../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Forms_FormLightModel" +import type { HelloAsso_Api_V5_Models_Enums_FormType } from "../models/HelloAsso_Api_V5_Models_Enums_FormType" +import type { HelloAsso_Api_V5_Models_Forms_FormPublicModel } from "../models/HelloAsso_Api_V5_Models_Forms_FormPublicModel" +import type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel } from "../models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateModel" +import type { HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest } from "../models/HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class FormsService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -25,27 +24,27 @@ export class FormsService { * @throws ApiError */ public publicFormsGetFormPublic( - organizationSlug: string = 'assoaha', - formType: 'CrowdFunding' | 'Membership' | 'Event' | 'Donation' | 'PaymentForm' | 'Checkout' | 'Shop' = 'Event', - formSlug: string = 'ma-billetterie', - authorization?: string, + organizationSlug: string = "assoaha", + formType: "CrowdFunding" | "Membership" | "Event" | "Donation" | "PaymentForm" | "Checkout" | "Shop" = "Event", + formSlug: string = "ma-billetterie", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/forms/{formType}/{formSlug}/public', + method: "GET", + url: "/organizations/{organizationSlug}/forms/{formType}/{formSlug}/public", path: { - 'organizationSlug': organizationSlug, - 'formType': formType, - 'formSlug': formSlug, + organizationSlug: organizationSlug, + formType: formType, + formSlug: formSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -64,27 +63,27 @@ export class FormsService { * @throws ApiError */ public publicFormsGetFormTypesList( - organizationSlug: string = 'pour-le-bonheur-d-alexis', + organizationSlug: string = "pour-le-bonheur-d-alexis", states?: Array, - authorization?: string, + authorization?: string ): CancelablePromise> { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/formTypes', + method: "GET", + url: "/organizations/{organizationSlug}/formTypes", path: { - 'organizationSlug': organizationSlug, + organizationSlug: organizationSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'states': states, + states: states }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -109,35 +108,35 @@ export class FormsService { * @throws ApiError */ public publicFormsGetFormListByOrganization( - organizationSlug: string = 'pour-le-bonheur-d-alexis', + organizationSlug: string = "pour-le-bonheur-d-alexis", states?: Array, formTypes?: Array, pageIndex: number = 1, pageSize: number = 20, continuationToken?: string, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/forms', + method: "GET", + url: "/organizations/{organizationSlug}/forms", path: { - 'organizationSlug': organizationSlug, + organizationSlug: organizationSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'states': states, - 'formTypes': formTypes, - 'pageIndex': pageIndex, - 'pageSize': pageSize, - 'continuationToken': continuationToken, + states: states, + formTypes: formTypes, + pageIndex: pageIndex, + pageSize: pageSize, + continuationToken: continuationToken }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -152,27 +151,26 @@ export class FormsService { * @throws ApiError */ public formAdministrationPostQuickCreateEvent( - formType: 'CrowdFunding' | 'Membership' | 'Event' | 'Donation' | 'PaymentForm' | 'Checkout' | 'Shop', + formType: "CrowdFunding" | "Membership" | "Event" | "Donation" | "PaymentForm" | "Checkout" | "Shop", body: HelloAsso_Api_V5_Models_Forms_FormQuickCreateRequest, - organizationSlug: string = 'assoaha', - authorization?: string, + organizationSlug: string = "assoaha", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'POST', - url: '/organizations/{organizationSlug}/forms/{formType}/action/quick-create', + method: "POST", + url: "/organizations/{organizationSlug}/forms/{formType}/action/quick-create", path: { - 'organizationSlug': organizationSlug, - 'formType': formType, + organizationSlug: organizationSlug, + formType: formType }, headers: { - 'Authorization': authorization, + Authorization: authorization }, body: body, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/OrdersItemsService.ts b/src/helloasso/api-interface/services/OrdersItemsService.ts index 3249be3..5512ce7 100644 --- a/src/helloasso/api-interface/services/OrdersItemsService.ts +++ b/src/helloasso/api-interface/services/OrdersItemsService.ts @@ -1,16 +1,15 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item } from '../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item'; -import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order } from '../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order'; -import type { HelloAsso_Api_V5_Models_Statistics_ItemDetail } from '../models/HelloAsso_Api_V5_Models_Statistics_ItemDetail'; -import type { HelloAsso_Api_V5_Models_Statistics_OrderDetail } from '../models/HelloAsso_Api_V5_Models_Statistics_OrderDetail'; +import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item } from "../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Item" +import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order } from "../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Order" +import type { HelloAsso_Api_V5_Models_Statistics_ItemDetail } from "../models/HelloAsso_Api_V5_Models_Statistics_ItemDetail" +import type { HelloAsso_Api_V5_Models_Statistics_OrderDetail } from "../models/HelloAsso_Api_V5_Models_Statistics_OrderDetail" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class OrdersItemsService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -25,25 +24,25 @@ export class OrdersItemsService { public ordersGetItem( itemId: number, withDetails: boolean = false, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/items/{itemId}', + method: "GET", + url: "/items/{itemId}", path: { - 'itemId': itemId, + itemId: itemId }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'withDetails': withDetails, + withDetails: withDetails }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -77,7 +76,7 @@ export class OrdersItemsService { public ordersGetFormItems( organizationSlug: string, formSlug: string, - formType: 'CrowdFunding' | 'Membership' | 'Event' | 'Donation' | 'PaymentForm' | 'Checkout' | 'Shop', + formType: "CrowdFunding" | "Membership" | "Event" | "Donation" | "PaymentForm" | "Checkout" | "Shop", from?: string, to?: string, userSearchKey?: string, @@ -88,40 +87,40 @@ export class OrdersItemsService { itemStates?: Array, tierName?: string, withDetails: boolean = false, - sortOrder: 'Asc' | 'Desc' = 'Desc', - sortField: 'Date' | 'UpdateDate' | 'CreationDate' = 'Date', - authorization?: string, + sortOrder: "Asc" | "Desc" = "Desc", + sortField: "Date" | "UpdateDate" | "CreationDate" = "Date", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/forms/{formType}/{formSlug}/items', + method: "GET", + url: "/organizations/{organizationSlug}/forms/{formType}/{formSlug}/items", path: { - 'organizationSlug': organizationSlug, - 'formSlug': formSlug, - 'formType': formType, + organizationSlug: organizationSlug, + formSlug: formSlug, + formType: formType }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'from': from, - 'to': to, - 'userSearchKey': userSearchKey, - 'pageIndex': pageIndex, - 'pageSize': pageSize, - 'continuationToken': continuationToken, - 'tierTypes': tierTypes, - 'itemStates': itemStates, - 'tierName': tierName, - 'withDetails': withDetails, - 'sortOrder': sortOrder, - 'sortField': sortField, + from: from, + to: to, + userSearchKey: userSearchKey, + pageIndex: pageIndex, + pageSize: pageSize, + continuationToken: continuationToken, + tierTypes: tierTypes, + itemStates: itemStates, + tierName: tierName, + withDetails: withDetails, + sortOrder: sortOrder, + sortField: sortField }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -162,38 +161,38 @@ export class OrdersItemsService { itemStates?: Array, tierName?: string, withDetails: boolean = false, - sortOrder: 'Asc' | 'Desc' = 'Desc', - sortField: 'Date' | 'UpdateDate' | 'CreationDate' = 'Date', - authorization?: string, + sortOrder: "Asc" | "Desc" = "Desc", + sortField: "Date" | "UpdateDate" | "CreationDate" = "Date", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/items', + method: "GET", + url: "/organizations/{organizationSlug}/items", path: { - 'organizationSlug': organizationSlug, + organizationSlug: organizationSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'from': from, - 'to': to, - 'userSearchKey': userSearchKey, - 'pageIndex': pageIndex, - 'pageSize': pageSize, - 'continuationToken': continuationToken, - 'tierTypes': tierTypes, - 'itemStates': itemStates, - 'tierName': tierName, - 'withDetails': withDetails, - 'sortOrder': sortOrder, - 'sortField': sortField, + from: from, + to: to, + userSearchKey: userSearchKey, + pageIndex: pageIndex, + pageSize: pageSize, + continuationToken: continuationToken, + tierTypes: tierTypes, + itemStates: itemStates, + tierName: tierName, + withDetails: withDetails, + sortOrder: sortOrder, + sortField: sortField }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -206,22 +205,22 @@ export class OrdersItemsService { */ public ordersGetOrder( orderId: number, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/orders/{orderId}', + method: "GET", + url: "/orders/{orderId}", path: { - 'orderId': orderId, + orderId: orderId }, headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -245,7 +244,7 @@ export class OrdersItemsService { public ordersGetFormOrders( organizationSlug: string, formSlug: string, - formType: 'CrowdFunding' | 'Membership' | 'Event' | 'Donation' | 'PaymentForm' | 'Checkout' | 'Shop', + formType: "CrowdFunding" | "Membership" | "Event" | "Donation" | "PaymentForm" | "Checkout" | "Shop", from?: string, to?: string, userSearchKey?: string, @@ -253,35 +252,35 @@ export class OrdersItemsService { pageSize: number = 20, continuationToken?: string, withDetails: boolean = false, - sortOrder: 'Asc' | 'Desc' = 'Desc', - authorization?: string, + sortOrder: "Asc" | "Desc" = "Desc", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/forms/{formType}/{formSlug}/orders', + method: "GET", + url: "/organizations/{organizationSlug}/forms/{formType}/{formSlug}/orders", path: { - 'organizationSlug': organizationSlug, - 'formSlug': formSlug, - 'formType': formType, + organizationSlug: organizationSlug, + formSlug: formSlug, + formType: formType }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'from': from, - 'to': to, - 'userSearchKey': userSearchKey, - 'pageIndex': pageIndex, - 'pageSize': pageSize, - 'continuationToken': continuationToken, - 'withDetails': withDetails, - 'sortOrder': sortOrder, + from: from, + to: to, + userSearchKey: userSearchKey, + pageIndex: pageIndex, + pageSize: pageSize, + continuationToken: continuationToken, + withDetails: withDetails, + sortOrder: sortOrder }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -311,34 +310,33 @@ export class OrdersItemsService { continuationToken?: string, formTypes?: Array, withDetails: boolean = false, - sortOrder: 'Asc' | 'Desc' = 'Desc', - authorization?: string, + sortOrder: "Asc" | "Desc" = "Desc", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/orders', + method: "GET", + url: "/organizations/{organizationSlug}/orders", path: { - 'organizationSlug': organizationSlug, + organizationSlug: organizationSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'from': from, - 'to': to, - 'userSearchKey': userSearchKey, - 'pageIndex': pageIndex, - 'pageSize': pageSize, - 'continuationToken': continuationToken, - 'formTypes': formTypes, - 'withDetails': withDetails, - 'sortOrder': sortOrder, + from: from, + to: to, + userSearchKey: userSearchKey, + pageIndex: pageIndex, + pageSize: pageSize, + continuationToken: continuationToken, + formTypes: formTypes, + withDetails: withDetails, + sortOrder: sortOrder }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/OrganizationVisualisationService.ts b/src/helloasso/api-interface/services/OrganizationVisualisationService.ts index 05c699e..62fc5dd 100644 --- a/src/helloasso/api-interface/services/OrganizationVisualisationService.ts +++ b/src/helloasso/api-interface/services/OrganizationVisualisationService.ts @@ -1,13 +1,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Organization_OrganizationModel } from '../models/HelloAsso_Api_V5_Models_Organization_OrganizationModel'; +import type { HelloAsso_Api_V5_Models_Organization_OrganizationModel } from "../models/HelloAsso_Api_V5_Models_Organization_OrganizationModel" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class OrganizationVisualisationService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -19,23 +18,22 @@ export class OrganizationVisualisationService { * @throws ApiError */ public organizationsGetOrganization( - organizationSlug: string = 'pour-le-bonheur-d-alexis', - authorization?: string, + organizationSlug: string = "pour-le-bonheur-d-alexis", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}', + method: "GET", + url: "/organizations/{organizationSlug}", path: { - 'organizationSlug': organizationSlug, + organizationSlug: organizationSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/PartnerManagementService.ts b/src/helloasso/api-interface/services/PartnerManagementService.ts index d99055e..7a34366 100644 --- a/src/helloasso/api-interface/services/PartnerManagementService.ts +++ b/src/helloasso/api-interface/services/PartnerManagementService.ts @@ -1,17 +1,16 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel } from '../models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel'; -import type { HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest } from '../models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest'; -import type { HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody } from '../models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody'; -import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from '../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel'; -import type { HelloAsso_Api_V5_Models_Partners_PartnerPublicModel } from '../models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel'; +import type { HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel } from "../models/HelloAsso_Api_V5_Models_Accounts_ApiClients_ApiClientModel" +import type { HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest } from "../models/HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest" +import type { HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody } from "../models/HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody" +import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel } from "../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Directory_PartnerOrganizationModel" +import type { HelloAsso_Api_V5_Models_Partners_PartnerPublicModel } from "../models/HelloAsso_Api_V5_Models_Partners_PartnerPublicModel" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class PartnerManagementService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -24,20 +23,20 @@ export class PartnerManagementService { */ public partnersPutPartnerDomain( body: HelloAsso_Api_V5_Models_Accounts_ApiClients_PublicPutPartnerApiClientRequest, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'PUT', - url: '/partners/me/api-clients', + method: "PUT", + url: "/partners/me/api-clients", headers: { - 'Authorization': authorization, + Authorization: authorization }, body: body, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -50,20 +49,20 @@ export class PartnerManagementService { */ public partnersPutPartnerUrlNotification( body: HelloAsso_Api_V5_Models_ApiNotifications_PostApiUrlNotificationBody, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'PUT', - url: '/partners/me/api-notifications', + method: "PUT", + url: "/partners/me/api-notifications", headers: { - 'Authorization': authorization, + Authorization: authorization }, body: body, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -74,19 +73,19 @@ export class PartnerManagementService { * @throws ApiError */ public partnersGetPartner( - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/partners/me', + method: "GET", + url: "/partners/me", headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -103,23 +102,22 @@ export class PartnerManagementService { public partnersGetOrganizations( pageSize: number = 20, continuationToken?: string, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/partners/me/organizations', + method: "GET", + url: "/partners/me/organizations", headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'pageSize': pageSize, - 'continuationToken': continuationToken, + pageSize: pageSize, + continuationToken: continuationToken }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/PaymentsManagementService.ts b/src/helloasso/api-interface/services/PaymentsManagementService.ts index ac151ef..9a91883 100644 --- a/src/helloasso/api-interface/services/PaymentsManagementService.ts +++ b/src/helloasso/api-interface/services/PaymentsManagementService.ts @@ -1,14 +1,13 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment } from '../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment'; -import type { HelloAsso_Api_V5_Models_Statistics_PaymentDetail } from '../models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail'; +import type { HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment } from "../models/HelloAsso_Api_V5_Models_Common_ResultsWithPaginationModelOfHelloAsso_Api_V5_Models_Statistics_Payment" +import type { HelloAsso_Api_V5_Models_Statistics_PaymentDetail } from "../models/HelloAsso_Api_V5_Models_Statistics_PaymentDetail" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class PaymentsManagementService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -21,22 +20,22 @@ export class PaymentsManagementService { */ public paymentsGetPayment( paymentId: number, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/payments/{paymentId}', + method: "GET", + url: "/payments/{paymentId}", path: { - 'paymentId': paymentId, + paymentId: paymentId }, headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -72,7 +71,7 @@ export class PaymentsManagementService { public paymentsGetFormPayments( organizationSlug: string, formSlug: string, - formType: 'CrowdFunding' | 'Membership' | 'Event' | 'Donation' | 'PaymentForm' | 'Checkout' | 'Shop', + formType: "CrowdFunding" | "Membership" | "Event" | "Donation" | "PaymentForm" | "Checkout" | "Shop", from?: string, to?: string, userSearchKey?: string, @@ -80,37 +79,37 @@ export class PaymentsManagementService { pageSize: number = 20, continuationToken?: string, states?: Array, - sortOrder: 'Asc' | 'Desc' = 'Desc', - sortField: 'Date' | 'UpdateDate' | 'CreationDate' = 'Date', - authorization?: string, + sortOrder: "Asc" | "Desc" = "Desc", + sortField: "Date" | "UpdateDate" | "CreationDate" = "Date", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/forms/{formType}/{formSlug}/payments', + method: "GET", + url: "/organizations/{organizationSlug}/forms/{formType}/{formSlug}/payments", path: { - 'organizationSlug': organizationSlug, - 'formSlug': formSlug, - 'formType': formType, + organizationSlug: organizationSlug, + formSlug: formSlug, + formType: formType }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'from': from, - 'to': to, - 'userSearchKey': userSearchKey, - 'pageIndex': pageIndex, - 'pageSize': pageSize, - 'continuationToken': continuationToken, - 'states': states, - 'sortOrder': sortOrder, - 'sortField': sortField, + from: from, + to: to, + userSearchKey: userSearchKey, + pageIndex: pageIndex, + pageSize: pageSize, + continuationToken: continuationToken, + states: states, + sortOrder: sortOrder, + sortField: sortField }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -142,7 +141,7 @@ export class PaymentsManagementService { * @throws ApiError */ public paymentsGetOrganizationPayments( - organizationSlug: string = 'pour-le-bonheur-d-alexis', + organizationSlug: string = "pour-le-bonheur-d-alexis", from?: string, to?: string, userSearchKey?: string, @@ -150,35 +149,35 @@ export class PaymentsManagementService { pageSize: number = 20, continuationToken?: string, states?: Array, - sortOrder: 'Asc' | 'Desc' = 'Desc', - sortField: 'Date' | 'UpdateDate' | 'CreationDate' = 'Date', - authorization?: string, + sortOrder: "Asc" | "Desc" = "Desc", + sortField: "Date" | "UpdateDate" | "CreationDate" = "Date", + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'GET', - url: '/organizations/{organizationSlug}/payments', + method: "GET", + url: "/organizations/{organizationSlug}/payments", path: { - 'organizationSlug': organizationSlug, + organizationSlug: organizationSlug }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'from': from, - 'to': to, - 'userSearchKey': userSearchKey, - 'pageIndex': pageIndex, - 'pageSize': pageSize, - 'continuationToken': continuationToken, - 'states': states, - 'sortOrder': sortOrder, - 'sortField': sortField, + from: from, + to: to, + userSearchKey: userSearchKey, + pageIndex: pageIndex, + pageSize: pageSize, + continuationToken: continuationToken, + states: states, + sortOrder: sortOrder, + sortField: sortField }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -197,27 +196,26 @@ export class PaymentsManagementService { comment?: string, refundOrder: boolean = false, sendRefundMail: boolean = true, - authorization?: string, + authorization?: string ): CancelablePromise { return this.httpRequest.request({ - method: 'POST', - url: '/payments/{paymentId}/refund', + method: "POST", + url: "/payments/{paymentId}/refund", path: { - 'paymentId': paymentId, + paymentId: paymentId }, headers: { - 'Authorization': authorization, + Authorization: authorization }, query: { - 'comment': comment, - 'refundOrder': refundOrder, - 'sendRefundMail': sendRefundMail, + comment: comment, + refundOrder: refundOrder, + sendRefundMail: sendRefundMail }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/UsersService.ts b/src/helloasso/api-interface/services/UsersService.ts index f59510f..c4bdaf4 100644 --- a/src/helloasso/api-interface/services/UsersService.ts +++ b/src/helloasso/api-interface/services/UsersService.ts @@ -1,13 +1,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Organization_OrganizationLightModel } from '../models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel'; +import type { HelloAsso_Api_V5_Models_Organization_OrganizationLightModel } from "../models/HelloAsso_Api_V5_Models_Organization_OrganizationLightModel" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class UsersService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -18,19 +17,18 @@ export class UsersService { * @throws ApiError */ public usersGetOrganizations( - authorization?: string, + authorization?: string ): CancelablePromise> { return this.httpRequest.request({ - method: 'GET', - url: '/users/me/organizations', + method: "GET", + url: "/users/me/organizations", headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/api-interface/services/ValuesDefinitionsService.ts b/src/helloasso/api-interface/services/ValuesDefinitionsService.ts index 83f09d0..3dc1d3f 100644 --- a/src/helloasso/api-interface/services/ValuesDefinitionsService.ts +++ b/src/helloasso/api-interface/services/ValuesDefinitionsService.ts @@ -1,14 +1,13 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { HelloAsso_Api_V5_Models_Account_OrganismCategoryModel } from '../models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel'; -import type { HelloAsso_Api_V5_Models_Tags_PublicTagModel } from '../models/HelloAsso_Api_V5_Models_Tags_PublicTagModel'; +import type { HelloAsso_Api_V5_Models_Account_OrganismCategoryModel } from "../models/HelloAsso_Api_V5_Models_Account_OrganismCategoryModel" +import type { HelloAsso_Api_V5_Models_Tags_PublicTagModel } from "../models/HelloAsso_Api_V5_Models_Tags_PublicTagModel" -import type { CancelablePromise } from '../core/CancelablePromise'; -import type { BaseHttpRequest } from '../core/BaseHttpRequest'; +import type { CancelablePromise } from "../core/CancelablePromise" +import type { BaseHttpRequest } from "../core/BaseHttpRequest" export class ValuesDefinitionsService { - constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -19,19 +18,19 @@ export class ValuesDefinitionsService { * @throws ApiError */ public valuesGetCategories( - authorization?: string, + authorization?: string ): CancelablePromise> { return this.httpRequest.request({ - method: 'GET', - url: '/values/organization/categories', + method: "GET", + url: "/values/organization/categories", headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } /** @@ -42,19 +41,18 @@ export class ValuesDefinitionsService { * @throws ApiError */ public valuesGetPublicTags( - authorization?: string, + authorization?: string ): CancelablePromise> { return this.httpRequest.request({ - method: 'GET', - url: '/values/tags', + method: "GET", + url: "/values/tags", headers: { - 'Authorization': authorization, + Authorization: authorization }, errors: { 401: `Unauthorized, you must add a valid JWT into Authorization Header with the format : \`Bearer TOKEN\``, - 403: `The JWT token hasn't the privileges or Roles for this action`, - }, - }); + 403: `The JWT token hasn't the privileges or Roles for this action` + } + }) } - } diff --git a/src/helloasso/dto/helloasso-notification.dto.ts b/src/helloasso/dto/helloasso-notification.dto.ts index dd4f9e2..bb6ec13 100644 --- a/src/helloasso/dto/helloasso-notification.dto.ts +++ b/src/helloasso/dto/helloasso-notification.dto.ts @@ -1,7 +1,16 @@ +import { ApiProperty } from "@nestjs/swagger" import { HelloAsso_Api_V5_Models_Statistics_Order, HelloAsso_Api_V5_Models_Statistics_Payment } from "../api-interface" import { HelloAssoNotificationEventType } from "../interfaces/helloasso-notification.interface" export class HelloAssoNotificationDto { + @ApiProperty({ name: "eventType", enum: HelloAssoNotificationEventType }) eventType: HelloAssoNotificationEventType + + @ApiProperty({ + name: "data", + type: "object", + description: + "Matches either HelloAsso.Api.V5.Models.Statistics.Order or HelloAsso.Api.V5.Models.Statistics.Payment from the HelloAsso API documentation (https://api.helloasso.com/v5/swagger/ui/index#/)" + }) data: HelloAsso_Api_V5_Models_Statistics_Order | HelloAsso_Api_V5_Models_Statistics_Payment | unknown } diff --git a/src/helloasso/helloasso.controller.ts b/src/helloasso/helloasso.controller.ts index 2b94ddf..5b64537 100644 --- a/src/helloasso/helloasso.controller.ts +++ b/src/helloasso/helloasso.controller.ts @@ -1,7 +1,9 @@ import { Body, Controller, Post } from "@nestjs/common" +import { ApiTags } from "@nestjs/swagger" import { HelloAssoNotificationDto } from "./dto/helloasso-notification.dto" import { HelloAssoService } from "./helloasso.service" +@ApiTags("HelloAsso") @Controller("helloasso") export class HelloAssoController { constructor(private readonly helloAssoService: HelloAssoService) {} diff --git a/src/setup-nest.ts b/src/setup-nest.ts index 2a270a3..c1d25f4 100644 --- a/src/setup-nest.ts +++ b/src/setup-nest.ts @@ -1,10 +1,26 @@ -import { INestApplication, ValidationPipe, VersioningType } from "@nestjs/common" +import { ClassSerializerInterceptor, INestApplication, ValidationPipe, VersioningType } from "@nestjs/common" +import { Reflector } from "@nestjs/core" import { NestExpressApplication } from "@nestjs/platform-express" +import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger" import { Request, Response } from "express" +import helmet from "helmet" +import { ExtendedConfigService } from "./config/config.service" +import { NestOptions } from "./config/nest/nest-config.interface" export async function setupNest(app: NestExpressApplication | INestApplication): Promise { // Setup shutdown hooks app.enableShutdownHooks() + const configService = app.get(ExtendedConfigService) + + app.use(helmet()) + + // CORS setup + const origins = configService.get("nest.corsOrigins") + + app.enableCors({ + origin: origins, + credentials: true + }) app.use((req: Request, _res: Response, next: () => void) => { req.headers.date = new Date().toISOString() @@ -26,4 +42,18 @@ export async function setupNest(app: NestExpressApplication | INestApplication): } }) ) + + app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector))) + + const config = new DocumentBuilder() + .setTitle("Piquet De Stream API") + .setDescription("API for the Piquet De Stream project") + .setVersion("1.0") + .build() + const document = SwaggerModule.createDocument(app, config) + SwaggerModule.setup("docs", app, document, { + swaggerOptions: { + docExpansion: "none" + } + }) }