@tennac-booking/sdk 1.0.107 → 1.0.109

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/dist/esm/api.js CHANGED
@@ -6706,6 +6706,42 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6706
6706
  options: localVarRequestOptions,
6707
6707
  };
6708
6708
  }),
6709
+ /**
6710
+ *
6711
+ * @param {string} id
6712
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6713
+ * @param {*} [options] Override http request option.
6714
+ * @throws {RequiredError}
6715
+ */
6716
+ updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
6717
+ // verify required parameter 'id' is not null or undefined
6718
+ assertParamExists('updateUserCreditsStaff', 'id', id);
6719
+ // verify required parameter 'updateUserCreditsRequest' is not null or undefined
6720
+ assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
6721
+ const localVarPath = `/api/clubs/staff/user-credits/{id}`
6722
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6723
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6724
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6725
+ let baseOptions;
6726
+ if (configuration) {
6727
+ baseOptions = configuration.baseOptions;
6728
+ }
6729
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6730
+ const localVarHeaderParameter = {};
6731
+ const localVarQueryParameter = {};
6732
+ // authentication bearerAuth required
6733
+ // http bearer authentication required
6734
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6735
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6736
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6737
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6738
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6739
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
6740
+ return {
6741
+ url: toPathString(localVarUrlObj),
6742
+ options: localVarRequestOptions,
6743
+ };
6744
+ }),
6709
6745
  };
6710
6746
  };
6711
6747
  /**
@@ -6828,6 +6864,22 @@ export const ClubsStaffApiFp = function (configuration) {
6828
6864
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6829
6865
  });
6830
6866
  },
6867
+ /**
6868
+ *
6869
+ * @param {string} id
6870
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6871
+ * @param {*} [options] Override http request option.
6872
+ * @throws {RequiredError}
6873
+ */
6874
+ updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
6875
+ return __awaiter(this, void 0, void 0, function* () {
6876
+ var _a, _b, _c;
6877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
6878
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6879
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6880
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6881
+ });
6882
+ },
6831
6883
  };
6832
6884
  };
6833
6885
  /**
@@ -6902,6 +6954,15 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6902
6954
  getUserProfileStaff(requestParameters, options) {
6903
6955
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
6904
6956
  },
6957
+ /**
6958
+ *
6959
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
6960
+ * @param {*} [options] Override http request option.
6961
+ * @throws {RequiredError}
6962
+ */
6963
+ updateUserCreditsStaff(requestParameters, options) {
6964
+ return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
6965
+ },
6905
6966
  };
6906
6967
  };
6907
6968
  /**
@@ -6984,6 +7045,16 @@ export class ClubsStaffApi extends BaseAPI {
6984
7045
  getUserProfileStaff(requestParameters, options) {
6985
7046
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6986
7047
  }
7048
+ /**
7049
+ *
7050
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
7051
+ * @param {*} [options] Override http request option.
7052
+ * @throws {RequiredError}
7053
+ * @memberof ClubsStaffApi
7054
+ */
7055
+ updateUserCreditsStaff(requestParameters, options) {
7056
+ return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
7057
+ }
6987
7058
  }
6988
7059
  /**
6989
7060
  * DefaultApi - axios parameter creator
@@ -7778,6 +7849,53 @@ export class EventsManagerApi extends BaseAPI {
7778
7849
  */
7779
7850
  export const EventsStaffApiAxiosParamCreator = function (configuration) {
7780
7851
  return {
7852
+ /**
7853
+ * Get events for the day view (entire week)
7854
+ * @param {string} [clubId]
7855
+ * @param {string} [date]
7856
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
7857
+ * @param {GetDailyEventsTypeEnum} [type]
7858
+ * @param {string} [sportId]
7859
+ * @param {*} [options] Override http request option.
7860
+ * @throws {RequiredError}
7861
+ */
7862
+ getDailyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
7863
+ const localVarPath = `/api/events/calendar/daily`;
7864
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7865
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7866
+ let baseOptions;
7867
+ if (configuration) {
7868
+ baseOptions = configuration.baseOptions;
7869
+ }
7870
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7871
+ const localVarHeaderParameter = {};
7872
+ const localVarQueryParameter = {};
7873
+ // authentication bearerAuth required
7874
+ // http bearer authentication required
7875
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7876
+ if (clubId !== undefined) {
7877
+ localVarQueryParameter['clubId'] = clubId;
7878
+ }
7879
+ if (date !== undefined) {
7880
+ localVarQueryParameter['date'] = date;
7881
+ }
7882
+ if (visibilityType !== undefined) {
7883
+ localVarQueryParameter['visibilityType'] = visibilityType;
7884
+ }
7885
+ if (type !== undefined) {
7886
+ localVarQueryParameter['type'] = type;
7887
+ }
7888
+ if (sportId !== undefined) {
7889
+ localVarQueryParameter['sportId'] = sportId;
7890
+ }
7891
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7893
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7894
+ return {
7895
+ url: toPathString(localVarUrlObj),
7896
+ options: localVarRequestOptions,
7897
+ };
7898
+ }),
7781
7899
  /**
7782
7900
  * Get all events for a club (staff only)
7783
7901
  * @param {*} [options] Override http request option.
@@ -7805,6 +7923,100 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7805
7923
  options: localVarRequestOptions,
7806
7924
  };
7807
7925
  }),
7926
+ /**
7927
+ * Get events for the entire month view (including recurring occurrences)
7928
+ * @param {string} [clubId]
7929
+ * @param {string} [date]
7930
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
7931
+ * @param {GetMonthlyEventsTypeEnum} [type]
7932
+ * @param {string} [sportId]
7933
+ * @param {*} [options] Override http request option.
7934
+ * @throws {RequiredError}
7935
+ */
7936
+ getMonthlyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
7937
+ const localVarPath = `/api/events/calendar/monthly`;
7938
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7939
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7940
+ let baseOptions;
7941
+ if (configuration) {
7942
+ baseOptions = configuration.baseOptions;
7943
+ }
7944
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7945
+ const localVarHeaderParameter = {};
7946
+ const localVarQueryParameter = {};
7947
+ // authentication bearerAuth required
7948
+ // http bearer authentication required
7949
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7950
+ if (clubId !== undefined) {
7951
+ localVarQueryParameter['clubId'] = clubId;
7952
+ }
7953
+ if (date !== undefined) {
7954
+ localVarQueryParameter['date'] = date;
7955
+ }
7956
+ if (visibilityType !== undefined) {
7957
+ localVarQueryParameter['visibilityType'] = visibilityType;
7958
+ }
7959
+ if (type !== undefined) {
7960
+ localVarQueryParameter['type'] = type;
7961
+ }
7962
+ if (sportId !== undefined) {
7963
+ localVarQueryParameter['sportId'] = sportId;
7964
+ }
7965
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7967
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7968
+ return {
7969
+ url: toPathString(localVarUrlObj),
7970
+ options: localVarRequestOptions,
7971
+ };
7972
+ }),
7973
+ /**
7974
+ * Get events for the week view (30 day sliding window)
7975
+ * @param {string} [clubId]
7976
+ * @param {string} [date]
7977
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
7978
+ * @param {GetWeeklyEventsTypeEnum} [type]
7979
+ * @param {string} [sportId]
7980
+ * @param {*} [options] Override http request option.
7981
+ * @throws {RequiredError}
7982
+ */
7983
+ getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
7984
+ const localVarPath = `/api/events/calendar/weekly`;
7985
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7986
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7987
+ let baseOptions;
7988
+ if (configuration) {
7989
+ baseOptions = configuration.baseOptions;
7990
+ }
7991
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7992
+ const localVarHeaderParameter = {};
7993
+ const localVarQueryParameter = {};
7994
+ // authentication bearerAuth required
7995
+ // http bearer authentication required
7996
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7997
+ if (clubId !== undefined) {
7998
+ localVarQueryParameter['clubId'] = clubId;
7999
+ }
8000
+ if (date !== undefined) {
8001
+ localVarQueryParameter['date'] = date;
8002
+ }
8003
+ if (visibilityType !== undefined) {
8004
+ localVarQueryParameter['visibilityType'] = visibilityType;
8005
+ }
8006
+ if (type !== undefined) {
8007
+ localVarQueryParameter['type'] = type;
8008
+ }
8009
+ if (sportId !== undefined) {
8010
+ localVarQueryParameter['sportId'] = sportId;
8011
+ }
8012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8014
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8015
+ return {
8016
+ url: toPathString(localVarUrlObj),
8017
+ options: localVarRequestOptions,
8018
+ };
8019
+ }),
7808
8020
  };
7809
8021
  };
7810
8022
  /**
@@ -7814,6 +8026,25 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7814
8026
  export const EventsStaffApiFp = function (configuration) {
7815
8027
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
7816
8028
  return {
8029
+ /**
8030
+ * Get events for the day view (entire week)
8031
+ * @param {string} [clubId]
8032
+ * @param {string} [date]
8033
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
8034
+ * @param {GetDailyEventsTypeEnum} [type]
8035
+ * @param {string} [sportId]
8036
+ * @param {*} [options] Override http request option.
8037
+ * @throws {RequiredError}
8038
+ */
8039
+ getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
8040
+ return __awaiter(this, void 0, void 0, function* () {
8041
+ var _a, _b, _c;
8042
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
8043
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8044
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8045
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8046
+ });
8047
+ },
7817
8048
  /**
7818
8049
  * Get all events for a club (staff only)
7819
8050
  * @param {*} [options] Override http request option.
@@ -7828,6 +8059,44 @@ export const EventsStaffApiFp = function (configuration) {
7828
8059
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7829
8060
  });
7830
8061
  },
8062
+ /**
8063
+ * Get events for the entire month view (including recurring occurrences)
8064
+ * @param {string} [clubId]
8065
+ * @param {string} [date]
8066
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
8067
+ * @param {GetMonthlyEventsTypeEnum} [type]
8068
+ * @param {string} [sportId]
8069
+ * @param {*} [options] Override http request option.
8070
+ * @throws {RequiredError}
8071
+ */
8072
+ getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
8073
+ return __awaiter(this, void 0, void 0, function* () {
8074
+ var _a, _b, _c;
8075
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
8076
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8077
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8078
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8079
+ });
8080
+ },
8081
+ /**
8082
+ * Get events for the week view (30 day sliding window)
8083
+ * @param {string} [clubId]
8084
+ * @param {string} [date]
8085
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
8086
+ * @param {GetWeeklyEventsTypeEnum} [type]
8087
+ * @param {string} [sportId]
8088
+ * @param {*} [options] Override http request option.
8089
+ * @throws {RequiredError}
8090
+ */
8091
+ getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
8092
+ return __awaiter(this, void 0, void 0, function* () {
8093
+ var _a, _b, _c;
8094
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
8095
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8096
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8097
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8098
+ });
8099
+ },
7831
8100
  };
7832
8101
  };
7833
8102
  /**
@@ -7837,6 +8106,15 @@ export const EventsStaffApiFp = function (configuration) {
7837
8106
  export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7838
8107
  const localVarFp = EventsStaffApiFp(configuration);
7839
8108
  return {
8109
+ /**
8110
+ * Get events for the day view (entire week)
8111
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
8112
+ * @param {*} [options] Override http request option.
8113
+ * @throws {RequiredError}
8114
+ */
8115
+ getDailyEvents(requestParameters = {}, options) {
8116
+ return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8117
+ },
7840
8118
  /**
7841
8119
  * Get all events for a club (staff only)
7842
8120
  * @param {*} [options] Override http request option.
@@ -7845,6 +8123,24 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7845
8123
  getEventsByClub(options) {
7846
8124
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
7847
8125
  },
8126
+ /**
8127
+ * Get events for the entire month view (including recurring occurrences)
8128
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8129
+ * @param {*} [options] Override http request option.
8130
+ * @throws {RequiredError}
8131
+ */
8132
+ getMonthlyEvents(requestParameters = {}, options) {
8133
+ return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8134
+ },
8135
+ /**
8136
+ * Get events for the week view (30 day sliding window)
8137
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8138
+ * @param {*} [options] Override http request option.
8139
+ * @throws {RequiredError}
8140
+ */
8141
+ getWeeklyEvents(requestParameters = {}, options) {
8142
+ return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8143
+ },
7848
8144
  };
7849
8145
  };
7850
8146
  /**
@@ -7854,6 +8150,16 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7854
8150
  * @extends {BaseAPI}
7855
8151
  */
7856
8152
  export class EventsStaffApi extends BaseAPI {
8153
+ /**
8154
+ * Get events for the day view (entire week)
8155
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
8156
+ * @param {*} [options] Override http request option.
8157
+ * @throws {RequiredError}
8158
+ * @memberof EventsStaffApi
8159
+ */
8160
+ getDailyEvents(requestParameters = {}, options) {
8161
+ return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8162
+ }
7857
8163
  /**
7858
8164
  * Get all events for a club (staff only)
7859
8165
  * @param {*} [options] Override http request option.
@@ -7863,7 +8169,72 @@ export class EventsStaffApi extends BaseAPI {
7863
8169
  getEventsByClub(options) {
7864
8170
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
7865
8171
  }
8172
+ /**
8173
+ * Get events for the entire month view (including recurring occurrences)
8174
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8175
+ * @param {*} [options] Override http request option.
8176
+ * @throws {RequiredError}
8177
+ * @memberof EventsStaffApi
8178
+ */
8179
+ getMonthlyEvents(requestParameters = {}, options) {
8180
+ return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8181
+ }
8182
+ /**
8183
+ * Get events for the week view (30 day sliding window)
8184
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8185
+ * @param {*} [options] Override http request option.
8186
+ * @throws {RequiredError}
8187
+ * @memberof EventsStaffApi
8188
+ */
8189
+ getWeeklyEvents(requestParameters = {}, options) {
8190
+ return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8191
+ }
7866
8192
  }
8193
+ /**
8194
+ * @export
8195
+ */
8196
+ export const GetDailyEventsVisibilityTypeEnum = {
8197
+ Public: 'public',
8198
+ Private: 'private',
8199
+ Invitation: 'invitation'
8200
+ };
8201
+ /**
8202
+ * @export
8203
+ */
8204
+ export const GetDailyEventsTypeEnum = {
8205
+ Event: 'event',
8206
+ Closure: 'closure'
8207
+ };
8208
+ /**
8209
+ * @export
8210
+ */
8211
+ export const GetMonthlyEventsVisibilityTypeEnum = {
8212
+ Public: 'public',
8213
+ Private: 'private',
8214
+ Invitation: 'invitation'
8215
+ };
8216
+ /**
8217
+ * @export
8218
+ */
8219
+ export const GetMonthlyEventsTypeEnum = {
8220
+ Event: 'event',
8221
+ Closure: 'closure'
8222
+ };
8223
+ /**
8224
+ * @export
8225
+ */
8226
+ export const GetWeeklyEventsVisibilityTypeEnum = {
8227
+ Public: 'public',
8228
+ Private: 'private',
8229
+ Invitation: 'invitation'
8230
+ };
8231
+ /**
8232
+ * @export
8233
+ */
8234
+ export const GetWeeklyEventsTypeEnum = {
8235
+ Event: 'event',
8236
+ Closure: 'closure'
8237
+ };
7867
8238
  /**
7868
8239
  * SportsManagerApi - axios parameter creator
7869
8240
  * @export
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
19
19
  **city** | **string** | Ville | [default to undefined]
20
20
  **sportsLevels** | [**Array<ClubPlayerDetailResponseSportsLevelsInner>**](ClubPlayerDetailResponseSportsLevelsInner.md) | Niveaux par sport | [default to undefined]
21
21
  **birthDate** | **string** | Date de naissance | [default to undefined]
22
+ **credits** | **number** | | [default to undefined]
22
23
 
23
24
  ## Example
24
25
 
@@ -40,6 +41,7 @@ const instance: ClubPlayerDetailResponse = {
40
41
  city,
41
42
  sportsLevels,
42
43
  birthDate,
44
+ credits,
43
45
  };
44
46
  ```
45
47
 
@@ -7,9 +7,12 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [default to undefined]
9
9
  **name** | **string** | | [default to undefined]
10
- **address** | **string** | | [optional] [default to undefined]
10
+ **picture** | **string** | | [optional] [default to undefined]
11
+ **bannerPictures** | **Array<string>** | | [optional] [default to undefined]
12
+ **galleryPictures** | **Array<string>** | | [optional] [default to undefined]
11
13
  **location** | [**UserLocationSummary**](UserLocationSummary.md) | | [default to undefined]
12
14
  **visitCount** | **number** | | [optional] [default to undefined]
15
+ **tags** | **Array<string>** | | [optional] [default to undefined]
13
16
 
14
17
  ## Example
15
18
 
@@ -19,9 +22,12 @@ import { ClubSummary } from '@tennac-booking/sdk';
19
22
  const instance: ClubSummary = {
20
23
  id,
21
24
  name,
22
- address,
25
+ picture,
26
+ bannerPictures,
27
+ galleryPictures,
23
28
  location,
24
29
  visitCount,
30
+ tags,
25
31
  };
26
32
  ```
27
33
 
@@ -12,6 +12,7 @@ All URIs are relative to *http://localhost*
12
12
  |[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
13
13
  |[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
14
14
  |[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
15
+ |[**updateUserCreditsStaff**](#updateusercreditsstaff) | **PUT** /api/clubs/staff/user-credits/{id} | |
15
16
 
16
17
  # **getActualities**
17
18
  > GetActualities200Response getActualities()
@@ -371,3 +372,57 @@ const { status, data } = await apiInstance.getUserProfileStaff(
371
372
 
372
373
  [[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)
373
374
 
375
+ # **updateUserCreditsStaff**
376
+ > StaffUserProfileResponse updateUserCreditsStaff(updateUserCreditsRequest)
377
+
378
+
379
+ ### Example
380
+
381
+ ```typescript
382
+ import {
383
+ ClubsStaffApi,
384
+ Configuration,
385
+ UpdateUserCreditsRequest
386
+ } from '@tennac-booking/sdk';
387
+
388
+ const configuration = new Configuration();
389
+ const apiInstance = new ClubsStaffApi(configuration);
390
+
391
+ let id: string; // (default to undefined)
392
+ let updateUserCreditsRequest: UpdateUserCreditsRequest; //
393
+
394
+ const { status, data } = await apiInstance.updateUserCreditsStaff(
395
+ id,
396
+ updateUserCreditsRequest
397
+ );
398
+ ```
399
+
400
+ ### Parameters
401
+
402
+ |Name | Type | Description | Notes|
403
+ |------------- | ------------- | ------------- | -------------|
404
+ | **updateUserCreditsRequest** | **UpdateUserCreditsRequest**| | |
405
+ | **id** | [**string**] | | defaults to undefined|
406
+
407
+
408
+ ### Return type
409
+
410
+ **StaffUserProfileResponse**
411
+
412
+ ### Authorization
413
+
414
+ [bearerAuth](../README.md#bearerAuth)
415
+
416
+ ### HTTP request headers
417
+
418
+ - **Content-Type**: application/json
419
+ - **Accept**: application/json
420
+
421
+
422
+ ### HTTP response details
423
+ | Status code | Description | Response headers |
424
+ |-------------|-------------|------------------|
425
+ |**200** | Ok | - |
426
+
427
+ [[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)
428
+
@@ -13,8 +13,9 @@ Name | Type | Description | Notes
13
13
  **endDate** | **string** | | [default to undefined]
14
14
  **courts** | **Array<string>** | | [default to undefined]
15
15
  **sports** | **Array<string>** | | [default to undefined]
16
- **recurringType** | **string** | | [default to undefined]
16
+ **recurringType** | **string** | | [optional] [default to undefined]
17
17
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
18
+ **occurrences** | **number** | | [optional] [default to undefined]
18
19
  **participationType** | **string** | | [default to undefined]
19
20
  **participants** | **Array<string>** | | [optional] [default to undefined]
20
21
  **teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
@@ -41,6 +42,7 @@ const instance: CreateEventRequest = {
41
42
  sports,
42
43
  recurringType,
43
44
  recurrenceEndDate,
45
+ occurrences,
44
46
  participationType,
45
47
  participants,
46
48
  teams,