@otr-app/shared-backend-generated-client 2.3.198 → 2.3.199

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.
@@ -221,20 +221,25 @@ export class CoachingCardsControllerService {
221
221
  /**
222
222
  * listUserCoachingCards
223
223
  * @param userId userId
224
+ * @param coachingCardType coachingCardType
224
225
  * @param includeCreated includeCreated
225
226
  * @param includeReceived includeReceived
226
227
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
227
228
  * @param reportProgress flag to report request and response progress.
228
229
  */
229
- public listUserCoachingCardsUsingGET(userId: number, includeCreated?: boolean, includeReceived?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListUserCoachingCardsResponse>;
230
- public listUserCoachingCardsUsingGET(userId: number, includeCreated?: boolean, includeReceived?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListUserCoachingCardsResponse>>;
231
- public listUserCoachingCardsUsingGET(userId: number, includeCreated?: boolean, includeReceived?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<ListUserCoachingCardsResponse>>;
232
- public listUserCoachingCardsUsingGET(userId: number, includeCreated?: boolean, includeReceived?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
230
+ public listUserCoachingCardsUsingGET(userId: number, coachingCardType?: 'COACHING' | 'KUDOS', includeCreated?: boolean, includeReceived?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<ListUserCoachingCardsResponse>;
231
+ public listUserCoachingCardsUsingGET(userId: number, coachingCardType?: 'COACHING' | 'KUDOS', includeCreated?: boolean, includeReceived?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<ListUserCoachingCardsResponse>>;
232
+ public listUserCoachingCardsUsingGET(userId: number, coachingCardType?: 'COACHING' | 'KUDOS', includeCreated?: boolean, includeReceived?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<ListUserCoachingCardsResponse>>;
233
+ public listUserCoachingCardsUsingGET(userId: number, coachingCardType?: 'COACHING' | 'KUDOS', includeCreated?: boolean, includeReceived?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
233
234
  if (userId === null || userId === undefined) {
234
235
  throw new Error('Required parameter userId was null or undefined when calling listUserCoachingCardsUsingGET.');
235
236
  }
236
237
 
237
238
  let localVarQueryParameters = new HttpParams({encoder: this.encoder});
239
+ if (coachingCardType !== undefined && coachingCardType !== null) {
240
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
241
+ <any>coachingCardType, 'coachingCardType');
242
+ }
238
243
  if (includeCreated !== undefined && includeCreated !== null) {
239
244
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
240
245
  <any>includeCreated, 'includeCreated');
@@ -19,8 +19,17 @@ export interface CoachingCardsModel {
19
19
  coachingCardCategoryId?: number;
20
20
  coachingCardId?: number;
21
21
  coachingCardSubcategoryId?: number;
22
+ coachingCardType?: CoachingCardsModel.CoachingCardTypeEnum;
22
23
  coachingCardUsers?: Set<CoachingCardUsersModel>;
23
24
  coachingLinks?: CoachingLinks;
24
25
  coachingText?: string;
25
26
  }
27
+ export namespace CoachingCardsModel {
28
+ export type CoachingCardTypeEnum = 'COACHING' | 'KUDOS';
29
+ export const CoachingCardTypeEnum = {
30
+ Coaching: 'COACHING' as CoachingCardTypeEnum,
31
+ Kudos: 'KUDOS' as CoachingCardTypeEnum
32
+ };
33
+ }
34
+
26
35
 
@@ -16,8 +16,17 @@ import { CoachingLinks } from './coachingLinks';
16
16
  export interface SaveCoachingCardRequest {
17
17
  coachingCardCategoryId?: number;
18
18
  coachingCardSubcategoryId?: number;
19
+ coachingCardType?: SaveCoachingCardRequest.CoachingCardTypeEnum;
19
20
  coachingCardUserRequest?: Array<SaveCoachingCardUserRequest>;
20
21
  coachingLinks?: CoachingLinks;
21
22
  coachingText?: string;
22
23
  }
24
+ export namespace SaveCoachingCardRequest {
25
+ export type CoachingCardTypeEnum = 'COACHING' | 'KUDOS';
26
+ export const CoachingCardTypeEnum = {
27
+ Coaching: 'COACHING' as CoachingCardTypeEnum,
28
+ Kudos: 'KUDOS' as CoachingCardTypeEnum
29
+ };
30
+ }
31
+
23
32
 
@@ -4981,6 +4981,7 @@ angular.module('otrBackendService', [])
4981
4981
  * @method
4982
4982
  * @name OtrService#listUserCoachingCardsUsingGET
4983
4983
  * @param {object} parameters - method options and parameters
4984
+ * @param {string} parameters.coachingCardType - coachingCardType
4984
4985
  * @param {boolean} parameters.includeCreated - includeCreated
4985
4986
  * @param {boolean} parameters.includeReceived - includeReceived
4986
4987
  * @param {integer} parameters.userId - userId
@@ -4999,6 +5000,10 @@ angular.module('otrBackendService', [])
4999
5000
 
5000
5001
  headers['Accept'] = ['*/*'];
5001
5002
 
5003
+ if (parameters['coachingCardType'] !== undefined) {
5004
+ queryParameters['coachingCardType'] = parameters['coachingCardType'];
5005
+ }
5006
+
5002
5007
  /** set default value **/
5003
5008
  queryParameters['includeCreated'] = true;
5004
5009