reach-api-sdk 1.0.48 → 1.0.49

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.
@@ -12552,7 +12552,18 @@ type OpportunityRegister = {
12552
12552
  * Gets or sets a value indicating whether the attendee has been checked in.
12553
12553
  */
12554
12554
  checkedIn: boolean;
12555
+ /**
12556
+ * Gets or sets a value indicating whether the attendee has been moved TO another opportunity.
12557
+ */
12558
+ moved?: boolean;
12559
+ /**
12560
+ * Gets or sets the opportunity id that the attendee was moved from.
12561
+ */
12562
+ movedFrom?: string | null;
12555
12563
  attendee?: Attendee;
12564
+ orderItem?: OrderItem;
12565
+ scheduledSession?: ScheduledSession;
12566
+ course?: Course;
12556
12567
  };
12557
12568
 
12558
12569
  type OpportunityRegisterPage = {
@@ -12572,6 +12583,10 @@ type OpportunityRegisterPatch = {
12572
12583
  * Gets or sets the Id.
12573
12584
  */
12574
12585
  id: string;
12586
+ /**
12587
+ * Gets or sets a value indicating whether the attendee has been checked in.
12588
+ */
12589
+ checkedIn?: boolean;
12575
12590
  };
12576
12591
 
12577
12592
  /**
@@ -12587,6 +12602,21 @@ type OpportunityRegisterPost = {
12587
12602
  declare class OpportunityRegisterService {
12588
12603
  readonly httpRequest: BaseHttpRequest;
12589
12604
  constructor(httpRequest: BaseHttpRequest);
12605
+ /**
12606
+ * Moves an attendee from one scheduled sessions opportunity register to another.
12607
+ * @returns OpportunityRegister Success
12608
+ * @throws ApiError
12609
+ */
12610
+ move({ opportunityRegisterId, scheduledSessionId, }: {
12611
+ /**
12612
+ * The current register the attendee is assigned to.
12613
+ */
12614
+ opportunityRegisterId: string;
12615
+ /**
12616
+ * The scheduled session the attendee needs to be moved to.
12617
+ */
12618
+ scheduledSessionId: string;
12619
+ }): CancelablePromise<OpportunityRegister>;
12590
12620
  /**
12591
12621
  * Gets the resource by its Id.
12592
12622
  * @returns OpportunityRegister Success
package/dist/reach-sdk.js CHANGED
@@ -7713,6 +7713,29 @@ const request = (config, options, axiosClient = axios) => {
7713
7713
  constructor(httpRequest) {
7714
7714
  this.httpRequest = httpRequest;
7715
7715
  }
7716
+ /**
7717
+ * Moves an attendee from one scheduled sessions opportunity register to another.
7718
+ * @returns OpportunityRegister Success
7719
+ * @throws ApiError
7720
+ */
7721
+ move({
7722
+ opportunityRegisterId,
7723
+ scheduledSessionId
7724
+ }) {
7725
+ return this.httpRequest.request({
7726
+ method: "GET",
7727
+ url: "/api/opportunity-register/{opportunityRegisterId}/move-to/{scheduledSessionId}",
7728
+ path: {
7729
+ opportunityRegisterId,
7730
+ scheduledSessionId
7731
+ },
7732
+ errors: {
7733
+ 400: `Bad Request`,
7734
+ 422: `Client Error`,
7735
+ 500: `Server Error`
7736
+ }
7737
+ });
7738
+ }
7716
7739
  /**
7717
7740
  * Gets the resource by its Id.
7718
7741
  * @returns OpportunityRegister Success
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22117,6 +22117,76 @@ paths:
22117
22117
  text/json:
22118
22118
  schema:
22119
22119
  $ref: '#/components/schemas/ValidationResultModel'
22120
+ '/api/opportunity-register/{opportunityRegisterId}/move-to/{scheduledSessionId}':
22121
+ get:
22122
+ tags:
22123
+ - OpportunityRegister
22124
+ summary: Moves an attendee from one scheduled sessions opportunity register to another.
22125
+ operationId: Move
22126
+ parameters:
22127
+ - name: opportunityRegisterId
22128
+ in: path
22129
+ description: The current register the attendee is assigned to.
22130
+ required: true
22131
+ schema:
22132
+ type: string
22133
+ format: uuid
22134
+ - name: scheduledSessionId
22135
+ in: path
22136
+ description: The scheduled session the attendee needs to be moved to.
22137
+ required: true
22138
+ schema:
22139
+ type: string
22140
+ format: uuid
22141
+ responses:
22142
+ '200':
22143
+ description: Success
22144
+ content:
22145
+ text/plain:
22146
+ schema:
22147
+ $ref: '#/components/schemas/OpportunityRegister'
22148
+ application/json:
22149
+ schema:
22150
+ $ref: '#/components/schemas/OpportunityRegister'
22151
+ text/json:
22152
+ schema:
22153
+ $ref: '#/components/schemas/OpportunityRegister'
22154
+ '400':
22155
+ description: Bad Request
22156
+ content:
22157
+ text/plain:
22158
+ schema:
22159
+ $ref: '#/components/schemas/ReachError'
22160
+ application/json:
22161
+ schema:
22162
+ $ref: '#/components/schemas/ReachError'
22163
+ text/json:
22164
+ schema:
22165
+ $ref: '#/components/schemas/ReachError'
22166
+ '500':
22167
+ description: Server Error
22168
+ content:
22169
+ text/plain:
22170
+ schema:
22171
+ $ref: '#/components/schemas/ReachError'
22172
+ application/json:
22173
+ schema:
22174
+ $ref: '#/components/schemas/ReachError'
22175
+ text/json:
22176
+ schema:
22177
+ $ref: '#/components/schemas/ReachError'
22178
+ '422':
22179
+ description: Client Error
22180
+ content:
22181
+ text/plain:
22182
+ schema:
22183
+ $ref: '#/components/schemas/ValidationResultModel'
22184
+ application/json:
22185
+ schema:
22186
+ $ref: '#/components/schemas/ValidationResultModel'
22187
+ text/json:
22188
+ schema:
22189
+ $ref: '#/components/schemas/ValidationResultModel'
22120
22190
  '/api/opportunity-register/{id}':
22121
22191
  get:
22122
22192
  tags:
@@ -72879,8 +72949,23 @@ components:
72879
72949
  type: boolean
72880
72950
  description: Gets or sets a value indicating whether the attendee has been checked in.
72881
72951
  default: false
72952
+ moved:
72953
+ type: boolean
72954
+ description: Gets or sets a value indicating whether the attendee has been moved TO another opportunity.
72955
+ default: false
72956
+ movedFrom:
72957
+ type: string
72958
+ description: Gets or sets the opportunity id that the attendee was moved from.
72959
+ format: uuid
72960
+ nullable: true
72882
72961
  attendee:
72883
72962
  $ref: '#/components/schemas/Attendee'
72963
+ orderItem:
72964
+ $ref: '#/components/schemas/OrderItem'
72965
+ scheduledSession:
72966
+ $ref: '#/components/schemas/ScheduledSession'
72967
+ course:
72968
+ $ref: '#/components/schemas/Course'
72884
72969
  additionalProperties: false
72885
72970
  description: Represents an opportunity registration within the Reach application.
72886
72971
  OpportunityRegisterPage:
@@ -72911,6 +72996,10 @@ components:
72911
72996
  type: string
72912
72997
  description: Gets or sets the Id.
72913
72998
  format: uuid
72999
+ checkedIn:
73000
+ type: boolean
73001
+ description: Gets or sets a value indicating whether the attendee has been checked in.
73002
+ default: false
72914
73003
  additionalProperties: false
72915
73004
  description: Post model for Opportunity Register updates.
72916
73005
  OpportunityRegisterPost:
@@ -4,6 +4,9 @@
4
4
  /* eslint-disable */
5
5
 
6
6
  import type { Attendee } from './Attendee';
7
+ import type { Course } from './Course';
8
+ import type { OrderItem } from './OrderItem';
9
+ import type { ScheduledSession } from './ScheduledSession';
7
10
 
8
11
  /**
9
12
  * Represents an opportunity registration within the Reach application.
@@ -57,5 +60,16 @@ export type OpportunityRegister = {
57
60
  * Gets or sets a value indicating whether the attendee has been checked in.
58
61
  */
59
62
  checkedIn: boolean;
63
+ /**
64
+ * Gets or sets a value indicating whether the attendee has been moved TO another opportunity.
65
+ */
66
+ moved?: boolean;
67
+ /**
68
+ * Gets or sets the opportunity id that the attendee was moved from.
69
+ */
70
+ movedFrom?: string | null;
60
71
  attendee?: Attendee;
72
+ orderItem?: OrderItem;
73
+ scheduledSession?: ScheduledSession;
74
+ course?: Course;
61
75
  };
@@ -15,4 +15,8 @@ export type OpportunityRegisterPatch = {
15
15
  * Gets or sets the Id.
16
16
  */
17
17
  id: string;
18
+ /**
19
+ * Gets or sets a value indicating whether the attendee has been checked in.
20
+ */
21
+ checkedIn?: boolean;
18
22
  };
@@ -14,6 +14,39 @@ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
14
14
  export class OpportunityRegisterService {
15
15
  constructor(public readonly httpRequest: BaseHttpRequest) {}
16
16
 
17
+ /**
18
+ * Moves an attendee from one scheduled sessions opportunity register to another.
19
+ * @returns OpportunityRegister Success
20
+ * @throws ApiError
21
+ */
22
+ public move({
23
+ opportunityRegisterId,
24
+ scheduledSessionId,
25
+ }: {
26
+ /**
27
+ * The current register the attendee is assigned to.
28
+ */
29
+ opportunityRegisterId: string;
30
+ /**
31
+ * The scheduled session the attendee needs to be moved to.
32
+ */
33
+ scheduledSessionId: string;
34
+ }): CancelablePromise<OpportunityRegister> {
35
+ return this.httpRequest.request({
36
+ method: 'GET',
37
+ url: '/api/opportunity-register/{opportunityRegisterId}/move-to/{scheduledSessionId}',
38
+ path: {
39
+ opportunityRegisterId: opportunityRegisterId,
40
+ scheduledSessionId: scheduledSessionId,
41
+ },
42
+ errors: {
43
+ 400: `Bad Request`,
44
+ 422: `Client Error`,
45
+ 500: `Server Error`,
46
+ },
47
+ });
48
+ }
49
+
17
50
  /**
18
51
  * Gets the resource by its Id.
19
52
  * @returns OpportunityRegister Success