@tennac-booking/sdk 1.0.156 → 1.0.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +1 -0
- package/api.ts +72 -13
- package/dist/api.d.ts +62 -6
- package/dist/api.js +21 -15
- package/dist/esm/api.d.ts +62 -6
- package/dist/esm/api.js +17 -11
- package/docs/ClubLocationSettings.md +2 -0
- package/docs/ClubsManagerApi.md +6 -5
- package/docs/CreateActualityRequest.md +30 -0
- package/docs/ImageContextType.md +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -352,6 +352,7 @@ Class | Method | HTTP request | Description
|
|
|
352
352
|
- [CourtInfo](docs/CourtInfo.md)
|
|
353
353
|
- [CourtResponse](docs/CourtResponse.md)
|
|
354
354
|
- [CourtStatus](docs/CourtStatus.md)
|
|
355
|
+
- [CreateActualityRequest](docs/CreateActualityRequest.md)
|
|
355
356
|
- [CreateBookingRequest](docs/CreateBookingRequest.md)
|
|
356
357
|
- [CreateClubRequest](docs/CreateClubRequest.md)
|
|
357
358
|
- [CreateClubRoleRequest](docs/CreateClubRoleRequest.md)
|
package/api.ts
CHANGED
|
@@ -2190,6 +2190,12 @@ export interface ClubLocationSettings {
|
|
|
2190
2190
|
* @memberof ClubLocationSettings
|
|
2191
2191
|
*/
|
|
2192
2192
|
'country'?: string;
|
|
2193
|
+
/**
|
|
2194
|
+
*
|
|
2195
|
+
* @type {Array<number>}
|
|
2196
|
+
* @memberof ClubLocationSettings
|
|
2197
|
+
*/
|
|
2198
|
+
'coordinates'?: Array<number>;
|
|
2193
2199
|
}
|
|
2194
2200
|
/**
|
|
2195
2201
|
*
|
|
@@ -3812,6 +3818,58 @@ export const CourtStatus = {
|
|
|
3812
3818
|
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
3813
3819
|
|
|
3814
3820
|
|
|
3821
|
+
/**
|
|
3822
|
+
*
|
|
3823
|
+
* @export
|
|
3824
|
+
* @interface CreateActualityRequest
|
|
3825
|
+
*/
|
|
3826
|
+
export interface CreateActualityRequest {
|
|
3827
|
+
/**
|
|
3828
|
+
*
|
|
3829
|
+
* @type {string}
|
|
3830
|
+
* @memberof CreateActualityRequest
|
|
3831
|
+
*/
|
|
3832
|
+
'diffusionMode'?: CreateActualityRequestDiffusionModeEnum;
|
|
3833
|
+
/**
|
|
3834
|
+
* Nom affiché du sport
|
|
3835
|
+
* @type {string}
|
|
3836
|
+
* @memberof CreateActualityRequest
|
|
3837
|
+
*/
|
|
3838
|
+
'title': string;
|
|
3839
|
+
/**
|
|
3840
|
+
* Description du sport
|
|
3841
|
+
* @type {string}
|
|
3842
|
+
* @memberof CreateActualityRequest
|
|
3843
|
+
*/
|
|
3844
|
+
'content': string;
|
|
3845
|
+
/**
|
|
3846
|
+
* Niveaux associés
|
|
3847
|
+
* @type {string}
|
|
3848
|
+
* @memberof CreateActualityRequest
|
|
3849
|
+
*/
|
|
3850
|
+
'imageUrl'?: string;
|
|
3851
|
+
/**
|
|
3852
|
+
* URLs de logos/images
|
|
3853
|
+
* @type {string}
|
|
3854
|
+
* @memberof CreateActualityRequest
|
|
3855
|
+
*/
|
|
3856
|
+
'externalLink'?: string;
|
|
3857
|
+
/**
|
|
3858
|
+
*
|
|
3859
|
+
* @type {boolean}
|
|
3860
|
+
* @memberof CreateActualityRequest
|
|
3861
|
+
*/
|
|
3862
|
+
'isPublished'?: boolean;
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
export const CreateActualityRequestDiffusionModeEnum = {
|
|
3866
|
+
Page: 'page',
|
|
3867
|
+
Newsletter: 'newsletter',
|
|
3868
|
+
Both: 'both'
|
|
3869
|
+
} as const;
|
|
3870
|
+
|
|
3871
|
+
export type CreateActualityRequestDiffusionModeEnum = typeof CreateActualityRequestDiffusionModeEnum[keyof typeof CreateActualityRequestDiffusionModeEnum];
|
|
3872
|
+
|
|
3815
3873
|
/**
|
|
3816
3874
|
*
|
|
3817
3875
|
* @export
|
|
@@ -6615,7 +6673,8 @@ export const ImageContextType = {
|
|
|
6615
6673
|
ClubPreview: 'club-preview',
|
|
6616
6674
|
ClubCarousel: 'club-carousel',
|
|
6617
6675
|
ClubSportImage: 'club-sport-image',
|
|
6618
|
-
ClubEventImage: 'club-event-image'
|
|
6676
|
+
ClubEventImage: 'club-event-image',
|
|
6677
|
+
ClubEventSponsorImage: 'club-event-sponsor-image'
|
|
6619
6678
|
} as const;
|
|
6620
6679
|
|
|
6621
6680
|
export type ImageContextType = typeof ImageContextType[keyof typeof ImageContextType];
|
|
@@ -20251,13 +20310,13 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
|
|
|
20251
20310
|
},
|
|
20252
20311
|
/**
|
|
20253
20312
|
*
|
|
20254
|
-
* @param {
|
|
20313
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
20255
20314
|
* @param {*} [options] Override http request option.
|
|
20256
20315
|
* @throws {RequiredError}
|
|
20257
20316
|
*/
|
|
20258
|
-
createActuality: async (
|
|
20259
|
-
// verify required parameter '
|
|
20260
|
-
assertParamExists('createActuality', '
|
|
20317
|
+
createActuality: async (createActualityRequest: CreateActualityRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20318
|
+
// verify required parameter 'createActualityRequest' is not null or undefined
|
|
20319
|
+
assertParamExists('createActuality', 'createActualityRequest', createActualityRequest)
|
|
20261
20320
|
const localVarPath = `/api/clubs/actualities`;
|
|
20262
20321
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20263
20322
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -20281,7 +20340,7 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
|
|
|
20281
20340
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20282
20341
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20283
20342
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20284
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
20343
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createActualityRequest, localVarRequestOptions, configuration)
|
|
20285
20344
|
|
|
20286
20345
|
return {
|
|
20287
20346
|
url: toPathString(localVarUrlObj),
|
|
@@ -21026,12 +21085,12 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
|
|
|
21026
21085
|
},
|
|
21027
21086
|
/**
|
|
21028
21087
|
*
|
|
21029
|
-
* @param {
|
|
21088
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
21030
21089
|
* @param {*} [options] Override http request option.
|
|
21031
21090
|
* @throws {RequiredError}
|
|
21032
21091
|
*/
|
|
21033
|
-
async createActuality(
|
|
21034
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createActuality(
|
|
21092
|
+
async createActuality(createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>> {
|
|
21093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createActuality(createActualityRequest, options);
|
|
21035
21094
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21036
21095
|
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.createActuality']?.[localVarOperationServerIndex]?.url;
|
|
21037
21096
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -21291,7 +21350,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
|
|
|
21291
21350
|
* @throws {RequiredError}
|
|
21292
21351
|
*/
|
|
21293
21352
|
createActuality(requestParameters: ClubsManagerApiCreateActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateActuality200Response> {
|
|
21294
|
-
return localVarFp.createActuality(requestParameters.
|
|
21353
|
+
return localVarFp.createActuality(requestParameters.createActualityRequest, options).then((request) => request(axios, basePath));
|
|
21295
21354
|
},
|
|
21296
21355
|
/**
|
|
21297
21356
|
* Crée un nouveau terrain pour un club
|
|
@@ -21493,10 +21552,10 @@ export interface ClubsManagerApiArchivePriceForSubscriptionPlanRequest {
|
|
|
21493
21552
|
export interface ClubsManagerApiCreateActualityRequest {
|
|
21494
21553
|
/**
|
|
21495
21554
|
*
|
|
21496
|
-
* @type {
|
|
21555
|
+
* @type {CreateActualityRequest}
|
|
21497
21556
|
* @memberof ClubsManagerApiCreateActuality
|
|
21498
21557
|
*/
|
|
21499
|
-
readonly
|
|
21558
|
+
readonly createActualityRequest: CreateActualityRequest
|
|
21500
21559
|
}
|
|
21501
21560
|
|
|
21502
21561
|
/**
|
|
@@ -21809,7 +21868,7 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
21809
21868
|
* @memberof ClubsManagerApi
|
|
21810
21869
|
*/
|
|
21811
21870
|
public createActuality(requestParameters: ClubsManagerApiCreateActualityRequest, options?: RawAxiosRequestConfig) {
|
|
21812
|
-
return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.
|
|
21871
|
+
return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.createActualityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21813
21872
|
}
|
|
21814
21873
|
|
|
21815
21874
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -2146,6 +2146,12 @@ export interface ClubLocationSettings {
|
|
|
2146
2146
|
* @memberof ClubLocationSettings
|
|
2147
2147
|
*/
|
|
2148
2148
|
'country'?: string;
|
|
2149
|
+
/**
|
|
2150
|
+
*
|
|
2151
|
+
* @type {Array<number>}
|
|
2152
|
+
* @memberof ClubLocationSettings
|
|
2153
|
+
*/
|
|
2154
|
+
'coordinates'?: Array<number>;
|
|
2149
2155
|
}
|
|
2150
2156
|
/**
|
|
2151
2157
|
*
|
|
@@ -3755,6 +3761,55 @@ export declare const CourtStatus: {
|
|
|
3755
3761
|
readonly Unavailable: "unavailable";
|
|
3756
3762
|
};
|
|
3757
3763
|
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
3764
|
+
/**
|
|
3765
|
+
*
|
|
3766
|
+
* @export
|
|
3767
|
+
* @interface CreateActualityRequest
|
|
3768
|
+
*/
|
|
3769
|
+
export interface CreateActualityRequest {
|
|
3770
|
+
/**
|
|
3771
|
+
*
|
|
3772
|
+
* @type {string}
|
|
3773
|
+
* @memberof CreateActualityRequest
|
|
3774
|
+
*/
|
|
3775
|
+
'diffusionMode'?: CreateActualityRequestDiffusionModeEnum;
|
|
3776
|
+
/**
|
|
3777
|
+
* Nom affiché du sport
|
|
3778
|
+
* @type {string}
|
|
3779
|
+
* @memberof CreateActualityRequest
|
|
3780
|
+
*/
|
|
3781
|
+
'title': string;
|
|
3782
|
+
/**
|
|
3783
|
+
* Description du sport
|
|
3784
|
+
* @type {string}
|
|
3785
|
+
* @memberof CreateActualityRequest
|
|
3786
|
+
*/
|
|
3787
|
+
'content': string;
|
|
3788
|
+
/**
|
|
3789
|
+
* Niveaux associés
|
|
3790
|
+
* @type {string}
|
|
3791
|
+
* @memberof CreateActualityRequest
|
|
3792
|
+
*/
|
|
3793
|
+
'imageUrl'?: string;
|
|
3794
|
+
/**
|
|
3795
|
+
* URLs de logos/images
|
|
3796
|
+
* @type {string}
|
|
3797
|
+
* @memberof CreateActualityRequest
|
|
3798
|
+
*/
|
|
3799
|
+
'externalLink'?: string;
|
|
3800
|
+
/**
|
|
3801
|
+
*
|
|
3802
|
+
* @type {boolean}
|
|
3803
|
+
* @memberof CreateActualityRequest
|
|
3804
|
+
*/
|
|
3805
|
+
'isPublished'?: boolean;
|
|
3806
|
+
}
|
|
3807
|
+
export declare const CreateActualityRequestDiffusionModeEnum: {
|
|
3808
|
+
readonly Page: "page";
|
|
3809
|
+
readonly Newsletter: "newsletter";
|
|
3810
|
+
readonly Both: "both";
|
|
3811
|
+
};
|
|
3812
|
+
export type CreateActualityRequestDiffusionModeEnum = typeof CreateActualityRequestDiffusionModeEnum[keyof typeof CreateActualityRequestDiffusionModeEnum];
|
|
3758
3813
|
/**
|
|
3759
3814
|
*
|
|
3760
3815
|
* @export
|
|
@@ -6508,6 +6563,7 @@ export declare const ImageContextType: {
|
|
|
6508
6563
|
readonly ClubCarousel: "club-carousel";
|
|
6509
6564
|
readonly ClubSportImage: "club-sport-image";
|
|
6510
6565
|
readonly ClubEventImage: "club-event-image";
|
|
6566
|
+
readonly ClubEventSponsorImage: "club-event-sponsor-image";
|
|
6511
6567
|
};
|
|
6512
6568
|
export type ImageContextType = typeof ImageContextType[keyof typeof ImageContextType];
|
|
6513
6569
|
/**
|
|
@@ -16102,11 +16158,11 @@ export declare const ClubsManagerApiAxiosParamCreator: (configuration?: Configur
|
|
|
16102
16158
|
archivePriceForSubscriptionPlan: (priceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16103
16159
|
/**
|
|
16104
16160
|
*
|
|
16105
|
-
* @param {
|
|
16161
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
16106
16162
|
* @param {*} [options] Override http request option.
|
|
16107
16163
|
* @throws {RequiredError}
|
|
16108
16164
|
*/
|
|
16109
|
-
createActuality: (
|
|
16165
|
+
createActuality: (createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16110
16166
|
/**
|
|
16111
16167
|
* Crée un nouveau terrain pour un club
|
|
16112
16168
|
* @param {CreateCourtRequest} createCourtRequest
|
|
@@ -16259,11 +16315,11 @@ export declare const ClubsManagerApiFp: (configuration?: Configuration) => {
|
|
|
16259
16315
|
archivePriceForSubscriptionPlan(priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSubscriptionPlanForClub200Response>>;
|
|
16260
16316
|
/**
|
|
16261
16317
|
*
|
|
16262
|
-
* @param {
|
|
16318
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
16263
16319
|
* @param {*} [options] Override http request option.
|
|
16264
16320
|
* @throws {RequiredError}
|
|
16265
16321
|
*/
|
|
16266
|
-
createActuality(
|
|
16322
|
+
createActuality(createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>>;
|
|
16267
16323
|
/**
|
|
16268
16324
|
* Crée un nouveau terrain pour un club
|
|
16269
16325
|
* @param {CreateCourtRequest} createCourtRequest
|
|
@@ -16581,10 +16637,10 @@ export interface ClubsManagerApiArchivePriceForSubscriptionPlanRequest {
|
|
|
16581
16637
|
export interface ClubsManagerApiCreateActualityRequest {
|
|
16582
16638
|
/**
|
|
16583
16639
|
*
|
|
16584
|
-
* @type {
|
|
16640
|
+
* @type {CreateActualityRequest}
|
|
16585
16641
|
* @memberof ClubsManagerApiCreateActuality
|
|
16586
16642
|
*/
|
|
16587
|
-
readonly
|
|
16643
|
+
readonly createActualityRequest: CreateActualityRequest;
|
|
16588
16644
|
}
|
|
16589
16645
|
/**
|
|
16590
16646
|
* Request parameters for createCourtForClub operation in ClubsManagerApi.
|
package/dist/api.js
CHANGED
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.WeekdayKey = void 0;
|
|
27
|
+
exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -87,6 +87,11 @@ exports.CourtStatus = {
|
|
|
87
87
|
Available: 'available',
|
|
88
88
|
Unavailable: 'unavailable'
|
|
89
89
|
};
|
|
90
|
+
exports.CreateActualityRequestDiffusionModeEnum = {
|
|
91
|
+
Page: 'page',
|
|
92
|
+
Newsletter: 'newsletter',
|
|
93
|
+
Both: 'both'
|
|
94
|
+
};
|
|
90
95
|
exports.CreateClubRoleRequestRoleEnum = {
|
|
91
96
|
Admin: 'admin',
|
|
92
97
|
Manager: 'manager',
|
|
@@ -180,7 +185,8 @@ exports.ImageContextType = {
|
|
|
180
185
|
ClubPreview: 'club-preview',
|
|
181
186
|
ClubCarousel: 'club-carousel',
|
|
182
187
|
ClubSportImage: 'club-sport-image',
|
|
183
|
-
ClubEventImage: 'club-event-image'
|
|
188
|
+
ClubEventImage: 'club-event-image',
|
|
189
|
+
ClubEventSponsorImage: 'club-event-sponsor-image'
|
|
184
190
|
};
|
|
185
191
|
/**
|
|
186
192
|
*
|
|
@@ -6720,13 +6726,13 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6720
6726
|
}),
|
|
6721
6727
|
/**
|
|
6722
6728
|
*
|
|
6723
|
-
* @param {
|
|
6729
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
6724
6730
|
* @param {*} [options] Override http request option.
|
|
6725
6731
|
* @throws {RequiredError}
|
|
6726
6732
|
*/
|
|
6727
|
-
createActuality: (
|
|
6728
|
-
// verify required parameter '
|
|
6729
|
-
(0, common_1.assertParamExists)('createActuality', '
|
|
6733
|
+
createActuality: (createActualityRequest_1, ...args_1) => __awaiter(this, [createActualityRequest_1, ...args_1], void 0, function* (createActualityRequest, options = {}) {
|
|
6734
|
+
// verify required parameter 'createActualityRequest' is not null or undefined
|
|
6735
|
+
(0, common_1.assertParamExists)('createActuality', 'createActualityRequest', createActualityRequest);
|
|
6730
6736
|
const localVarPath = `/api/clubs/actualities`;
|
|
6731
6737
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6732
6738
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6744,7 +6750,7 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6744
6750
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6745
6751
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6746
6752
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6747
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6753
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActualityRequest, localVarRequestOptions, configuration);
|
|
6748
6754
|
return {
|
|
6749
6755
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6750
6756
|
options: localVarRequestOptions,
|
|
@@ -7376,14 +7382,14 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
7376
7382
|
},
|
|
7377
7383
|
/**
|
|
7378
7384
|
*
|
|
7379
|
-
* @param {
|
|
7385
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
7380
7386
|
* @param {*} [options] Override http request option.
|
|
7381
7387
|
* @throws {RequiredError}
|
|
7382
7388
|
*/
|
|
7383
|
-
createActuality(
|
|
7389
|
+
createActuality(createActualityRequest, options) {
|
|
7384
7390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7385
7391
|
var _a, _b, _c;
|
|
7386
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(
|
|
7392
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(createActualityRequest, options);
|
|
7387
7393
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7388
7394
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.createActuality']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7389
7395
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7698,7 +7704,7 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
7698
7704
|
* @throws {RequiredError}
|
|
7699
7705
|
*/
|
|
7700
7706
|
createActuality(requestParameters, options) {
|
|
7701
|
-
return localVarFp.createActuality(requestParameters.
|
|
7707
|
+
return localVarFp.createActuality(requestParameters.createActualityRequest, options).then((request) => request(axios, basePath));
|
|
7702
7708
|
},
|
|
7703
7709
|
/**
|
|
7704
7710
|
* Crée un nouveau terrain pour un club
|
|
@@ -7899,7 +7905,7 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
7899
7905
|
* @memberof ClubsManagerApi
|
|
7900
7906
|
*/
|
|
7901
7907
|
createActuality(requestParameters, options) {
|
|
7902
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).createActuality(requestParameters.
|
|
7908
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).createActuality(requestParameters.createActualityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7903
7909
|
}
|
|
7904
7910
|
/**
|
|
7905
7911
|
* Crée un nouveau terrain pour un club
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2146,6 +2146,12 @@ export interface ClubLocationSettings {
|
|
|
2146
2146
|
* @memberof ClubLocationSettings
|
|
2147
2147
|
*/
|
|
2148
2148
|
'country'?: string;
|
|
2149
|
+
/**
|
|
2150
|
+
*
|
|
2151
|
+
* @type {Array<number>}
|
|
2152
|
+
* @memberof ClubLocationSettings
|
|
2153
|
+
*/
|
|
2154
|
+
'coordinates'?: Array<number>;
|
|
2149
2155
|
}
|
|
2150
2156
|
/**
|
|
2151
2157
|
*
|
|
@@ -3755,6 +3761,55 @@ export declare const CourtStatus: {
|
|
|
3755
3761
|
readonly Unavailable: "unavailable";
|
|
3756
3762
|
};
|
|
3757
3763
|
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
3764
|
+
/**
|
|
3765
|
+
*
|
|
3766
|
+
* @export
|
|
3767
|
+
* @interface CreateActualityRequest
|
|
3768
|
+
*/
|
|
3769
|
+
export interface CreateActualityRequest {
|
|
3770
|
+
/**
|
|
3771
|
+
*
|
|
3772
|
+
* @type {string}
|
|
3773
|
+
* @memberof CreateActualityRequest
|
|
3774
|
+
*/
|
|
3775
|
+
'diffusionMode'?: CreateActualityRequestDiffusionModeEnum;
|
|
3776
|
+
/**
|
|
3777
|
+
* Nom affiché du sport
|
|
3778
|
+
* @type {string}
|
|
3779
|
+
* @memberof CreateActualityRequest
|
|
3780
|
+
*/
|
|
3781
|
+
'title': string;
|
|
3782
|
+
/**
|
|
3783
|
+
* Description du sport
|
|
3784
|
+
* @type {string}
|
|
3785
|
+
* @memberof CreateActualityRequest
|
|
3786
|
+
*/
|
|
3787
|
+
'content': string;
|
|
3788
|
+
/**
|
|
3789
|
+
* Niveaux associés
|
|
3790
|
+
* @type {string}
|
|
3791
|
+
* @memberof CreateActualityRequest
|
|
3792
|
+
*/
|
|
3793
|
+
'imageUrl'?: string;
|
|
3794
|
+
/**
|
|
3795
|
+
* URLs de logos/images
|
|
3796
|
+
* @type {string}
|
|
3797
|
+
* @memberof CreateActualityRequest
|
|
3798
|
+
*/
|
|
3799
|
+
'externalLink'?: string;
|
|
3800
|
+
/**
|
|
3801
|
+
*
|
|
3802
|
+
* @type {boolean}
|
|
3803
|
+
* @memberof CreateActualityRequest
|
|
3804
|
+
*/
|
|
3805
|
+
'isPublished'?: boolean;
|
|
3806
|
+
}
|
|
3807
|
+
export declare const CreateActualityRequestDiffusionModeEnum: {
|
|
3808
|
+
readonly Page: "page";
|
|
3809
|
+
readonly Newsletter: "newsletter";
|
|
3810
|
+
readonly Both: "both";
|
|
3811
|
+
};
|
|
3812
|
+
export type CreateActualityRequestDiffusionModeEnum = typeof CreateActualityRequestDiffusionModeEnum[keyof typeof CreateActualityRequestDiffusionModeEnum];
|
|
3758
3813
|
/**
|
|
3759
3814
|
*
|
|
3760
3815
|
* @export
|
|
@@ -6508,6 +6563,7 @@ export declare const ImageContextType: {
|
|
|
6508
6563
|
readonly ClubCarousel: "club-carousel";
|
|
6509
6564
|
readonly ClubSportImage: "club-sport-image";
|
|
6510
6565
|
readonly ClubEventImage: "club-event-image";
|
|
6566
|
+
readonly ClubEventSponsorImage: "club-event-sponsor-image";
|
|
6511
6567
|
};
|
|
6512
6568
|
export type ImageContextType = typeof ImageContextType[keyof typeof ImageContextType];
|
|
6513
6569
|
/**
|
|
@@ -16102,11 +16158,11 @@ export declare const ClubsManagerApiAxiosParamCreator: (configuration?: Configur
|
|
|
16102
16158
|
archivePriceForSubscriptionPlan: (priceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16103
16159
|
/**
|
|
16104
16160
|
*
|
|
16105
|
-
* @param {
|
|
16161
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
16106
16162
|
* @param {*} [options] Override http request option.
|
|
16107
16163
|
* @throws {RequiredError}
|
|
16108
16164
|
*/
|
|
16109
|
-
createActuality: (
|
|
16165
|
+
createActuality: (createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16110
16166
|
/**
|
|
16111
16167
|
* Crée un nouveau terrain pour un club
|
|
16112
16168
|
* @param {CreateCourtRequest} createCourtRequest
|
|
@@ -16259,11 +16315,11 @@ export declare const ClubsManagerApiFp: (configuration?: Configuration) => {
|
|
|
16259
16315
|
archivePriceForSubscriptionPlan(priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSubscriptionPlanForClub200Response>>;
|
|
16260
16316
|
/**
|
|
16261
16317
|
*
|
|
16262
|
-
* @param {
|
|
16318
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
16263
16319
|
* @param {*} [options] Override http request option.
|
|
16264
16320
|
* @throws {RequiredError}
|
|
16265
16321
|
*/
|
|
16266
|
-
createActuality(
|
|
16322
|
+
createActuality(createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>>;
|
|
16267
16323
|
/**
|
|
16268
16324
|
* Crée un nouveau terrain pour un club
|
|
16269
16325
|
* @param {CreateCourtRequest} createCourtRequest
|
|
@@ -16581,10 +16637,10 @@ export interface ClubsManagerApiArchivePriceForSubscriptionPlanRequest {
|
|
|
16581
16637
|
export interface ClubsManagerApiCreateActualityRequest {
|
|
16582
16638
|
/**
|
|
16583
16639
|
*
|
|
16584
|
-
* @type {
|
|
16640
|
+
* @type {CreateActualityRequest}
|
|
16585
16641
|
* @memberof ClubsManagerApiCreateActuality
|
|
16586
16642
|
*/
|
|
16587
|
-
readonly
|
|
16643
|
+
readonly createActualityRequest: CreateActualityRequest;
|
|
16588
16644
|
}
|
|
16589
16645
|
/**
|
|
16590
16646
|
* Request parameters for createCourtForClub operation in ClubsManagerApi.
|
package/dist/esm/api.js
CHANGED
|
@@ -81,6 +81,11 @@ export const CourtStatus = {
|
|
|
81
81
|
Available: 'available',
|
|
82
82
|
Unavailable: 'unavailable'
|
|
83
83
|
};
|
|
84
|
+
export const CreateActualityRequestDiffusionModeEnum = {
|
|
85
|
+
Page: 'page',
|
|
86
|
+
Newsletter: 'newsletter',
|
|
87
|
+
Both: 'both'
|
|
88
|
+
};
|
|
84
89
|
export const CreateClubRoleRequestRoleEnum = {
|
|
85
90
|
Admin: 'admin',
|
|
86
91
|
Manager: 'manager',
|
|
@@ -174,7 +179,8 @@ export const ImageContextType = {
|
|
|
174
179
|
ClubPreview: 'club-preview',
|
|
175
180
|
ClubCarousel: 'club-carousel',
|
|
176
181
|
ClubSportImage: 'club-sport-image',
|
|
177
|
-
ClubEventImage: 'club-event-image'
|
|
182
|
+
ClubEventImage: 'club-event-image',
|
|
183
|
+
ClubEventSponsorImage: 'club-event-sponsor-image'
|
|
178
184
|
};
|
|
179
185
|
/**
|
|
180
186
|
*
|
|
@@ -6658,13 +6664,13 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6658
6664
|
}),
|
|
6659
6665
|
/**
|
|
6660
6666
|
*
|
|
6661
|
-
* @param {
|
|
6667
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
6662
6668
|
* @param {*} [options] Override http request option.
|
|
6663
6669
|
* @throws {RequiredError}
|
|
6664
6670
|
*/
|
|
6665
|
-
createActuality: (
|
|
6666
|
-
// verify required parameter '
|
|
6667
|
-
assertParamExists('createActuality', '
|
|
6671
|
+
createActuality: (createActualityRequest_1, ...args_1) => __awaiter(this, [createActualityRequest_1, ...args_1], void 0, function* (createActualityRequest, options = {}) {
|
|
6672
|
+
// verify required parameter 'createActualityRequest' is not null or undefined
|
|
6673
|
+
assertParamExists('createActuality', 'createActualityRequest', createActualityRequest);
|
|
6668
6674
|
const localVarPath = `/api/clubs/actualities`;
|
|
6669
6675
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6670
6676
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6682,7 +6688,7 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6682
6688
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6683
6689
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6684
6690
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6685
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6691
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createActualityRequest, localVarRequestOptions, configuration);
|
|
6686
6692
|
return {
|
|
6687
6693
|
url: toPathString(localVarUrlObj),
|
|
6688
6694
|
options: localVarRequestOptions,
|
|
@@ -7313,14 +7319,14 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
7313
7319
|
},
|
|
7314
7320
|
/**
|
|
7315
7321
|
*
|
|
7316
|
-
* @param {
|
|
7322
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
7317
7323
|
* @param {*} [options] Override http request option.
|
|
7318
7324
|
* @throws {RequiredError}
|
|
7319
7325
|
*/
|
|
7320
|
-
createActuality(
|
|
7326
|
+
createActuality(createActualityRequest, options) {
|
|
7321
7327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7322
7328
|
var _a, _b, _c;
|
|
7323
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(
|
|
7329
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(createActualityRequest, options);
|
|
7324
7330
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7325
7331
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.createActuality']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7326
7332
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7634,7 +7640,7 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7634
7640
|
* @throws {RequiredError}
|
|
7635
7641
|
*/
|
|
7636
7642
|
createActuality(requestParameters, options) {
|
|
7637
|
-
return localVarFp.createActuality(requestParameters.
|
|
7643
|
+
return localVarFp.createActuality(requestParameters.createActualityRequest, options).then((request) => request(axios, basePath));
|
|
7638
7644
|
},
|
|
7639
7645
|
/**
|
|
7640
7646
|
* Crée un nouveau terrain pour un club
|
|
@@ -7834,7 +7840,7 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
7834
7840
|
* @memberof ClubsManagerApi
|
|
7835
7841
|
*/
|
|
7836
7842
|
createActuality(requestParameters, options) {
|
|
7837
|
-
return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.
|
|
7843
|
+
return ClubsManagerApiFp(this.configuration).createActuality(requestParameters.createActualityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7838
7844
|
}
|
|
7839
7845
|
/**
|
|
7840
7846
|
* Crée un nouveau terrain pour un club
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**zipCode** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**city** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**country** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**coordinates** | **Array<number>** | | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: ClubLocationSettings = {
|
|
|
20
21
|
zipCode,
|
|
21
22
|
city,
|
|
22
23
|
country,
|
|
24
|
+
coordinates,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -132,7 +132,7 @@ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
|
132
132
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
133
133
|
|
|
134
134
|
# **createActuality**
|
|
135
|
-
> UpdateActuality200Response createActuality(
|
|
135
|
+
> UpdateActuality200Response createActuality(createActualityRequest)
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
### Example
|
|
@@ -140,16 +140,17 @@ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
|
140
140
|
```typescript
|
|
141
141
|
import {
|
|
142
142
|
ClubsManagerApi,
|
|
143
|
-
Configuration
|
|
143
|
+
Configuration,
|
|
144
|
+
CreateActualityRequest
|
|
144
145
|
} from '@tennac-booking/sdk';
|
|
145
146
|
|
|
146
147
|
const configuration = new Configuration();
|
|
147
148
|
const apiInstance = new ClubsManagerApi(configuration);
|
|
148
149
|
|
|
149
|
-
let
|
|
150
|
+
let createActualityRequest: CreateActualityRequest; //
|
|
150
151
|
|
|
151
152
|
const { status, data } = await apiInstance.createActuality(
|
|
152
|
-
|
|
153
|
+
createActualityRequest
|
|
153
154
|
);
|
|
154
155
|
```
|
|
155
156
|
|
|
@@ -157,7 +158,7 @@ const { status, data } = await apiInstance.createActuality(
|
|
|
157
158
|
|
|
158
159
|
|Name | Type | Description | Notes|
|
|
159
160
|
|------------- | ------------- | ------------- | -------------|
|
|
160
|
-
| **
|
|
161
|
+
| **createActualityRequest** | **CreateActualityRequest**| | |
|
|
161
162
|
|
|
162
163
|
|
|
163
164
|
### Return type
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CreateActualityRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**diffusionMode** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | Nom affiché du sport | [default to undefined]
|
|
10
|
+
**content** | **string** | Description du sport | [default to undefined]
|
|
11
|
+
**imageUrl** | **string** | Niveaux associés | [optional] [default to undefined]
|
|
12
|
+
**externalLink** | **string** | URLs de logos/images | [optional] [default to undefined]
|
|
13
|
+
**isPublished** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CreateActualityRequest } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: CreateActualityRequest = {
|
|
21
|
+
diffusionMode,
|
|
22
|
+
title,
|
|
23
|
+
content,
|
|
24
|
+
imageUrl,
|
|
25
|
+
externalLink,
|
|
26
|
+
isPublished,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ImageContextType.md
CHANGED
|
@@ -17,4 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
* `ClubEventImage` (value: `'club-event-image'`)
|
|
19
19
|
|
|
20
|
+
* `ClubEventSponsorImage` (value: `'club-event-sponsor-image'`)
|
|
21
|
+
|
|
20
22
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|