reach-api-sdk 1.0.52 → 1.0.54

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.
@@ -8917,6 +8917,28 @@ type GenericActivityPost = {
8917
8917
  declare class GenericActivityService {
8918
8918
  readonly httpRequest: BaseHttpRequest;
8919
8919
  constructor(httpRequest: BaseHttpRequest);
8920
+ /**
8921
+ * Archives an activity.
8922
+ * @returns GenericActivity Success
8923
+ * @throws ApiError
8924
+ */
8925
+ archive({ id, }: {
8926
+ /**
8927
+ * The activity id.
8928
+ */
8929
+ id: string;
8930
+ }): CancelablePromise<GenericActivity>;
8931
+ /**
8932
+ * Duplicates an activity.
8933
+ * @returns GenericActivity Success
8934
+ * @throws ApiError
8935
+ */
8936
+ duplicate({ id, }: {
8937
+ /**
8938
+ * The activity id.
8939
+ */
8940
+ id: string;
8941
+ }): CancelablePromise<GenericActivity>;
8920
8942
  /**
8921
8943
  * Gets the resource by its Id.
8922
8944
  * @returns GenericActivity Success
package/dist/reach-sdk.js CHANGED
@@ -4862,6 +4862,48 @@ const request = (config, options, axiosClient = axios) => {
4862
4862
  constructor(httpRequest) {
4863
4863
  this.httpRequest = httpRequest;
4864
4864
  }
4865
+ /**
4866
+ * Archives an activity.
4867
+ * @returns GenericActivity Success
4868
+ * @throws ApiError
4869
+ */
4870
+ archive({
4871
+ id
4872
+ }) {
4873
+ return this.httpRequest.request({
4874
+ method: "POST",
4875
+ url: "/api/all-activities/{id}/archive",
4876
+ path: {
4877
+ id
4878
+ },
4879
+ errors: {
4880
+ 400: `Bad Request`,
4881
+ 422: `Client Error`,
4882
+ 500: `Server Error`
4883
+ }
4884
+ });
4885
+ }
4886
+ /**
4887
+ * Duplicates an activity.
4888
+ * @returns GenericActivity Success
4889
+ * @throws ApiError
4890
+ */
4891
+ duplicate({
4892
+ id
4893
+ }) {
4894
+ return this.httpRequest.request({
4895
+ method: "POST",
4896
+ url: "/api/all-activities/{id}/duplicate",
4897
+ path: {
4898
+ id
4899
+ },
4900
+ errors: {
4901
+ 400: `Bad Request`,
4902
+ 422: `Client Error`,
4903
+ 500: `Server Error`
4904
+ }
4905
+ });
4906
+ }
4865
4907
  /**
4866
4908
  * Gets the resource by its Id.
4867
4909
  * @returns GenericActivity Success
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13487,6 +13487,132 @@ paths:
13487
13487
  text/json:
13488
13488
  schema:
13489
13489
  $ref: '#/components/schemas/ValidationResultModel'
13490
+ '/api/all-activities/{id}/archive':
13491
+ post:
13492
+ tags:
13493
+ - GenericActivity
13494
+ summary: Archives an activity.
13495
+ operationId: Archive
13496
+ parameters:
13497
+ - name: id
13498
+ in: path
13499
+ description: The activity id.
13500
+ required: true
13501
+ schema:
13502
+ type: string
13503
+ format: uuid
13504
+ responses:
13505
+ '200':
13506
+ description: Success
13507
+ content:
13508
+ text/plain:
13509
+ schema:
13510
+ $ref: '#/components/schemas/GenericActivity'
13511
+ application/json:
13512
+ schema:
13513
+ $ref: '#/components/schemas/GenericActivity'
13514
+ text/json:
13515
+ schema:
13516
+ $ref: '#/components/schemas/GenericActivity'
13517
+ '400':
13518
+ description: Bad Request
13519
+ content:
13520
+ text/plain:
13521
+ schema:
13522
+ $ref: '#/components/schemas/ReachError'
13523
+ application/json:
13524
+ schema:
13525
+ $ref: '#/components/schemas/ReachError'
13526
+ text/json:
13527
+ schema:
13528
+ $ref: '#/components/schemas/ReachError'
13529
+ '500':
13530
+ description: Server Error
13531
+ content:
13532
+ text/plain:
13533
+ schema:
13534
+ $ref: '#/components/schemas/ReachError'
13535
+ application/json:
13536
+ schema:
13537
+ $ref: '#/components/schemas/ReachError'
13538
+ text/json:
13539
+ schema:
13540
+ $ref: '#/components/schemas/ReachError'
13541
+ '422':
13542
+ description: Client Error
13543
+ content:
13544
+ text/plain:
13545
+ schema:
13546
+ $ref: '#/components/schemas/ValidationResultModel'
13547
+ application/json:
13548
+ schema:
13549
+ $ref: '#/components/schemas/ValidationResultModel'
13550
+ text/json:
13551
+ schema:
13552
+ $ref: '#/components/schemas/ValidationResultModel'
13553
+ '/api/all-activities/{id}/duplicate':
13554
+ post:
13555
+ tags:
13556
+ - GenericActivity
13557
+ summary: Duplicates an activity.
13558
+ operationId: Duplicate
13559
+ parameters:
13560
+ - name: id
13561
+ in: path
13562
+ description: The activity id.
13563
+ required: true
13564
+ schema:
13565
+ type: string
13566
+ format: uuid
13567
+ responses:
13568
+ '200':
13569
+ description: Success
13570
+ content:
13571
+ text/plain:
13572
+ schema:
13573
+ $ref: '#/components/schemas/GenericActivity'
13574
+ application/json:
13575
+ schema:
13576
+ $ref: '#/components/schemas/GenericActivity'
13577
+ text/json:
13578
+ schema:
13579
+ $ref: '#/components/schemas/GenericActivity'
13580
+ '400':
13581
+ description: Bad Request
13582
+ content:
13583
+ text/plain:
13584
+ schema:
13585
+ $ref: '#/components/schemas/ReachError'
13586
+ application/json:
13587
+ schema:
13588
+ $ref: '#/components/schemas/ReachError'
13589
+ text/json:
13590
+ schema:
13591
+ $ref: '#/components/schemas/ReachError'
13592
+ '500':
13593
+ description: Server Error
13594
+ content:
13595
+ text/plain:
13596
+ schema:
13597
+ $ref: '#/components/schemas/ReachError'
13598
+ application/json:
13599
+ schema:
13600
+ $ref: '#/components/schemas/ReachError'
13601
+ text/json:
13602
+ schema:
13603
+ $ref: '#/components/schemas/ReachError'
13604
+ '422':
13605
+ description: Client Error
13606
+ content:
13607
+ text/plain:
13608
+ schema:
13609
+ $ref: '#/components/schemas/ValidationResultModel'
13610
+ application/json:
13611
+ schema:
13612
+ $ref: '#/components/schemas/ValidationResultModel'
13613
+ text/json:
13614
+ schema:
13615
+ $ref: '#/components/schemas/ValidationResultModel'
13490
13616
  '/api/all-activities/{id}':
13491
13617
  get:
13492
13618
  tags:
@@ -15,6 +15,60 @@ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
15
15
  export class GenericActivityService {
16
16
  constructor(public readonly httpRequest: BaseHttpRequest) {}
17
17
 
18
+ /**
19
+ * Archives an activity.
20
+ * @returns GenericActivity Success
21
+ * @throws ApiError
22
+ */
23
+ public archive({
24
+ id,
25
+ }: {
26
+ /**
27
+ * The activity id.
28
+ */
29
+ id: string;
30
+ }): CancelablePromise<GenericActivity> {
31
+ return this.httpRequest.request({
32
+ method: 'POST',
33
+ url: '/api/all-activities/{id}/archive',
34
+ path: {
35
+ id: id,
36
+ },
37
+ errors: {
38
+ 400: `Bad Request`,
39
+ 422: `Client Error`,
40
+ 500: `Server Error`,
41
+ },
42
+ });
43
+ }
44
+
45
+ /**
46
+ * Duplicates an activity.
47
+ * @returns GenericActivity Success
48
+ * @throws ApiError
49
+ */
50
+ public duplicate({
51
+ id,
52
+ }: {
53
+ /**
54
+ * The activity id.
55
+ */
56
+ id: string;
57
+ }): CancelablePromise<GenericActivity> {
58
+ return this.httpRequest.request({
59
+ method: 'POST',
60
+ url: '/api/all-activities/{id}/duplicate',
61
+ path: {
62
+ id: id,
63
+ },
64
+ errors: {
65
+ 400: `Bad Request`,
66
+ 422: `Client Error`,
67
+ 500: `Server Error`,
68
+ },
69
+ });
70
+ }
71
+
18
72
  /**
19
73
  * Gets the resource by its Id.
20
74
  * @returns GenericActivity Success