reach-api-sdk 1.0.131 → 1.0.133

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.
@@ -6336,6 +6336,17 @@ declare class CancellationPoliciesService {
6336
6336
  * @throws ApiError
6337
6337
  */
6338
6338
  getSystemCancellationPolicy(): CancelablePromise<CancellationPolicy>;
6339
+ /**
6340
+ * Sets the cancellation policy as the default policy. />.
6341
+ * @returns CancellationPolicy Success
6342
+ * @throws ApiError
6343
+ */
6344
+ setAsDefault({ cancellationPolicyId, }: {
6345
+ /**
6346
+ * The cancellation policy Id.
6347
+ */
6348
+ cancellationPolicyId: string;
6349
+ }): CancelablePromise<CancellationPolicy>;
6339
6350
  /**
6340
6351
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
6341
6352
  * @returns CancellationPolicy Success
@@ -7151,6 +7162,10 @@ type CoursePatch = {
7151
7162
  * Gets or sets the post completion survey Id.
7152
7163
  */
7153
7164
  postCompletionSurveyId?: string | null;
7165
+ /**
7166
+ * Gets or sets the cancellation policy id.
7167
+ */
7168
+ cancellationPolicyId?: string;
7154
7169
  /**
7155
7170
  * Gets or sets the survey Id.
7156
7171
  */
@@ -26542,6 +26557,10 @@ type SessionPatch = {
26542
26557
  * Gets or sets the survey Id.
26543
26558
  */
26544
26559
  surveyId?: string | null;
26560
+ /**
26561
+ * Gets or sets the cancellation policy id.
26562
+ */
26563
+ cancellationPolicyId?: string;
26545
26564
  /**
26546
26565
  * Gets or sets the session name.
26547
26566
  */
@@ -38620,6 +38639,10 @@ type TemplateDetail = {
38620
38639
  * Gets or sets the templates survey id.
38621
38640
  */
38622
38641
  surveyId?: string | null;
38642
+ /**
38643
+ * Gets or sets the templates cancellation policy id.
38644
+ */
38645
+ cancellationPolicyId?: string;
38623
38646
  /**
38624
38647
  * Gets or sets the templates name.
38625
38648
  */
@@ -38749,6 +38772,10 @@ type TemplateDetailPatch = {
38749
38772
  * Gets or sets the templates survey id.
38750
38773
  */
38751
38774
  surveyId?: string | null;
38775
+ /**
38776
+ * Gets or sets the templates cancellation policy id.
38777
+ */
38778
+ cancellationPolicyId?: string;
38752
38779
  /**
38753
38780
  * Gets or sets the templates name.
38754
38781
  */
@@ -39582,6 +39609,10 @@ type CreateTemplateDetail = {
39582
39609
  * Gets or sets the templates survey id.
39583
39610
  */
39584
39611
  surveyId?: string | null;
39612
+ /**
39613
+ * Gets or sets the templates cancellation policy id.
39614
+ */
39615
+ cancellationPolicyId?: string;
39585
39616
  /**
39586
39617
  * Gets or sets the templates name.
39587
39618
  */
package/dist/reach-sdk.js CHANGED
@@ -2363,6 +2363,27 @@ const request = (config, options, axiosClient = axios) => {
2363
2363
  }
2364
2364
  });
2365
2365
  }
2366
+ /**
2367
+ * Sets the cancellation policy as the default policy. />.
2368
+ * @returns CancellationPolicy Success
2369
+ * @throws ApiError
2370
+ */
2371
+ setAsDefault({
2372
+ cancellationPolicyId
2373
+ }) {
2374
+ return this.httpRequest.request({
2375
+ method: "PATCH",
2376
+ url: "/api/cancellation-policies/{cancellationPolicyId}/set-as-default",
2377
+ path: {
2378
+ cancellationPolicyId
2379
+ },
2380
+ errors: {
2381
+ 400: `Bad Request`,
2382
+ 422: `Client Error`,
2383
+ 500: `Server Error`
2384
+ }
2385
+ });
2386
+ }
2366
2387
  /**
2367
2388
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
2368
2389
  * @returns CancellationPolicy Success
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.131",
3
+ "version": "1.0.133",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5986,6 +5986,69 @@ paths:
5986
5986
  text/json:
5987
5987
  schema:
5988
5988
  $ref: '#/components/schemas/ValidationResultModel'
5989
+ '/api/cancellation-policies/{cancellationPolicyId}/set-as-default':
5990
+ patch:
5991
+ tags:
5992
+ - CancellationPolicies
5993
+ summary: Sets the cancellation policy as the default policy. />.
5994
+ operationId: SetAsDefault
5995
+ parameters:
5996
+ - name: cancellationPolicyId
5997
+ in: path
5998
+ description: The cancellation policy Id.
5999
+ required: true
6000
+ schema:
6001
+ type: string
6002
+ format: uuid
6003
+ responses:
6004
+ '200':
6005
+ description: Success
6006
+ content:
6007
+ text/plain:
6008
+ schema:
6009
+ $ref: '#/components/schemas/CancellationPolicy'
6010
+ application/json:
6011
+ schema:
6012
+ $ref: '#/components/schemas/CancellationPolicy'
6013
+ text/json:
6014
+ schema:
6015
+ $ref: '#/components/schemas/CancellationPolicy'
6016
+ '400':
6017
+ description: Bad Request
6018
+ content:
6019
+ text/plain:
6020
+ schema:
6021
+ $ref: '#/components/schemas/ReachError'
6022
+ application/json:
6023
+ schema:
6024
+ $ref: '#/components/schemas/ReachError'
6025
+ text/json:
6026
+ schema:
6027
+ $ref: '#/components/schemas/ReachError'
6028
+ '500':
6029
+ description: Server Error
6030
+ content:
6031
+ text/plain:
6032
+ schema:
6033
+ $ref: '#/components/schemas/ReachError'
6034
+ application/json:
6035
+ schema:
6036
+ $ref: '#/components/schemas/ReachError'
6037
+ text/json:
6038
+ schema:
6039
+ $ref: '#/components/schemas/ReachError'
6040
+ '422':
6041
+ description: Client Error
6042
+ content:
6043
+ text/plain:
6044
+ schema:
6045
+ $ref: '#/components/schemas/ValidationResultModel'
6046
+ application/json:
6047
+ schema:
6048
+ $ref: '#/components/schemas/ValidationResultModel'
6049
+ text/json:
6050
+ schema:
6051
+ $ref: '#/components/schemas/ValidationResultModel'
5989
6052
  /api/cancellation-policies/v2-temporary-route:
5990
6053
  post:
5991
6054
  tags:
@@ -103182,6 +103245,10 @@ components:
103182
103245
  description: Gets or sets the post completion survey Id.
103183
103246
  format: uuid
103184
103247
  nullable: true
103248
+ cancellationPolicyId:
103249
+ type: string
103250
+ description: Gets or sets the cancellation policy id.
103251
+ format: uuid
103185
103252
  surveyId:
103186
103253
  type: string
103187
103254
  description: Gets or sets the survey Id.
@@ -103859,6 +103926,10 @@ components:
103859
103926
  description: Gets or sets the templates survey id.
103860
103927
  format: uuid
103861
103928
  nullable: true
103929
+ cancellationPolicyId:
103930
+ type: string
103931
+ description: Gets or sets the templates cancellation policy id.
103932
+ format: uuid
103862
103933
  name:
103863
103934
  type: string
103864
103935
  description: Gets or sets the templates name.
@@ -110178,6 +110249,10 @@ components:
110178
110249
  description: Gets or sets the survey Id.
110179
110250
  format: uuid
110180
110251
  nullable: true
110252
+ cancellationPolicyId:
110253
+ type: string
110254
+ description: Gets or sets the cancellation policy id.
110255
+ format: uuid
110181
110256
  name:
110182
110257
  minLength: 1
110183
110258
  type: string
@@ -112192,6 +112267,10 @@ components:
112192
112267
  description: Gets or sets the templates survey id.
112193
112268
  format: uuid
112194
112269
  nullable: true
112270
+ cancellationPolicyId:
112271
+ type: string
112272
+ description: Gets or sets the templates cancellation policy id.
112273
+ format: uuid
112195
112274
  name:
112196
112275
  type: string
112197
112276
  description: Gets or sets the templates name.
@@ -112352,6 +112431,10 @@ components:
112352
112431
  description: Gets or sets the templates survey id.
112353
112432
  format: uuid
112354
112433
  nullable: true
112434
+ cancellationPolicyId:
112435
+ type: string
112436
+ description: Gets or sets the templates cancellation policy id.
112437
+ format: uuid
112355
112438
  name:
112356
112439
  type: string
112357
112440
  description: Gets or sets the templates name.
@@ -36,6 +36,10 @@ export type CoursePatch = {
36
36
  * Gets or sets the post completion survey Id.
37
37
  */
38
38
  postCompletionSurveyId?: string | null;
39
+ /**
40
+ * Gets or sets the cancellation policy id.
41
+ */
42
+ cancellationPolicyId?: string;
39
43
  /**
40
44
  * Gets or sets the survey Id.
41
45
  */
@@ -32,6 +32,10 @@ export type CreateTemplateDetail = {
32
32
  * Gets or sets the templates survey id.
33
33
  */
34
34
  surveyId?: string | null;
35
+ /**
36
+ * Gets or sets the templates cancellation policy id.
37
+ */
38
+ cancellationPolicyId?: string;
35
39
  /**
36
40
  * Gets or sets the templates name.
37
41
  */
@@ -39,6 +39,10 @@ export type SessionPatch = {
39
39
  * Gets or sets the survey Id.
40
40
  */
41
41
  surveyId?: string | null;
42
+ /**
43
+ * Gets or sets the cancellation policy id.
44
+ */
45
+ cancellationPolicyId?: string;
42
46
  /**
43
47
  * Gets or sets the session name.
44
48
  */
@@ -61,6 +61,10 @@ export type TemplateDetail = {
61
61
  * Gets or sets the templates survey id.
62
62
  */
63
63
  surveyId?: string | null;
64
+ /**
65
+ * Gets or sets the templates cancellation policy id.
66
+ */
67
+ cancellationPolicyId?: string;
64
68
  /**
65
69
  * Gets or sets the templates name.
66
70
  */
@@ -40,6 +40,10 @@ export type TemplateDetailPatch = {
40
40
  * Gets or sets the templates survey id.
41
41
  */
42
42
  surveyId?: string | null;
43
+ /**
44
+ * Gets or sets the templates cancellation policy id.
45
+ */
46
+ cancellationPolicyId?: string;
43
47
  /**
44
48
  * Gets or sets the templates name.
45
49
  */
@@ -31,6 +31,33 @@ export class CancellationPoliciesService {
31
31
  });
32
32
  }
33
33
 
34
+ /**
35
+ * Sets the cancellation policy as the default policy. />.
36
+ * @returns CancellationPolicy Success
37
+ * @throws ApiError
38
+ */
39
+ public setAsDefault({
40
+ cancellationPolicyId,
41
+ }: {
42
+ /**
43
+ * The cancellation policy Id.
44
+ */
45
+ cancellationPolicyId: string;
46
+ }): CancelablePromise<CancellationPolicy> {
47
+ return this.httpRequest.request({
48
+ method: 'PATCH',
49
+ url: '/api/cancellation-policies/{cancellationPolicyId}/set-as-default',
50
+ path: {
51
+ cancellationPolicyId: cancellationPolicyId,
52
+ },
53
+ errors: {
54
+ 400: `Bad Request`,
55
+ 422: `Client Error`,
56
+ 500: `Server Error`,
57
+ },
58
+ });
59
+ }
60
+
34
61
  /**
35
62
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
36
63
  * @returns CancellationPolicy Success