swoop-common 2.2.155 → 2.2.157

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.
@@ -23,6 +23,7 @@ export type ComponentInstance = {
23
23
  commissionPercent: number;
24
24
  negotiatedDiscount: number;
25
25
  nonCommissionableAmount: number;
26
+ discountType?: string;
26
27
  };
27
28
  bookingGroup: string;
28
29
  startDate?: string;
@@ -21,6 +21,7 @@ export type SwoopSyncComponentInstance = {
21
21
  commissionPercent: number;
22
22
  negotiatedDiscount: number;
23
23
  nonCommissionableAmount: number;
24
+ discountType?: string;
24
25
  };
25
26
  bookingGroup: string;
26
27
  startDate: string;
@@ -12,4 +12,5 @@ export type Person = {
12
12
  calendarLink?: string | null;
13
13
  welcomeNote?: string | null;
14
14
  aboutMeText?: string | null;
15
+ groups?: Array<null>;
15
16
  };
@@ -13,4 +13,5 @@ export type Person_jsonld = (HydraItemBaseSchema & {
13
13
  calendarLink?: string | null;
14
14
  welcomeNote?: string | null;
15
15
  aboutMeText?: string | null;
16
+ groups?: Array<null>;
16
17
  });
@@ -13,4 +13,5 @@ export type Person_jsonld_read = (HydraItemBaseSchema & {
13
13
  calendarLink?: string | null;
14
14
  welcomeNote?: string | null;
15
15
  aboutMeText?: string | null;
16
+ groups?: Array<null>;
16
17
  });
@@ -12,4 +12,5 @@ export type Person_read = {
12
12
  calendarLink?: string | null;
13
13
  welcomeNote?: string | null;
14
14
  aboutMeText?: string | null;
15
+ groups?: Array<null>;
15
16
  };
@@ -309,10 +309,11 @@ export declare class SwoopService {
309
309
  * Retrieves the collection of Person resources.
310
310
  * @param region antarctica, arctic, patagonia
311
311
  * @param all 1,0 - include all records or just the active ones - default 0
312
+ * @param groupsArray Filter by group names, e.g. groups[]=manager&groups[]=sales. Valid values: superadmin, admin, sales, customer, partner, flight-specialist, bookings, accounts, other, has-sales-targets, manager, avatar-content-enabled
312
313
  * @returns any Successful response
313
314
  * @throws ApiError
314
315
  */
315
- peopleGetCollection(region?: string, all?: string): CancelablePromise<{
316
+ peopleGetCollection(region?: string, all?: string, groupsArray?: string): CancelablePromise<{
316
317
  people?: Array<Person>;
317
318
  }>;
318
319
  /**
@@ -494,16 +494,18 @@ export class SwoopService {
494
494
  * Retrieves the collection of Person resources.
495
495
  * @param region antarctica, arctic, patagonia
496
496
  * @param all 1,0 - include all records or just the active ones - default 0
497
+ * @param groupsArray Filter by group names, e.g. groups[]=manager&groups[]=sales. Valid values: superadmin, admin, sales, customer, partner, flight-specialist, bookings, accounts, other, has-sales-targets, manager, avatar-content-enabled
497
498
  * @returns any Successful response
498
499
  * @throws ApiError
499
500
  */
500
- peopleGetCollection(region, all) {
501
+ peopleGetCollection(region, all, groupsArray) {
501
502
  return __request(OpenAPI, {
502
503
  method: 'GET',
503
504
  url: '/api/people',
504
505
  query: {
505
506
  'region': region,
506
507
  'all': all,
508
+ 'groups[]': groupsArray,
507
509
  },
508
510
  });
509
511
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.155",
3
+ "version": "2.2.157",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {