@escapenavigator/services 2.1.17 → 2.1.19

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.
@@ -97,6 +97,9 @@ declare const toggle: ApiMethodDeclaration<{
97
97
  id: number;
98
98
  status: IntegrationConnectionStatusEnum;
99
99
  }>;
100
+ declare const remove: ApiMethodDeclaration<number, {
101
+ ok: boolean;
102
+ }>;
100
103
  declare const createRequest: ApiMethodDeclaration<CreateIntegrationRequestDto, {
101
104
  id: number;
102
105
  status: IntegrationRequestStatusEnum;
@@ -163,6 +166,7 @@ type ApiDeclaration = {
163
166
  matchResource: typeof matchResource;
164
167
  recheck: typeof recheck;
165
168
  toggle: typeof toggle;
169
+ remove: typeof remove;
166
170
  createRequest: typeof createRequest;
167
171
  myRequests: typeof myRequests;
168
172
  pendingBookingRequests: typeof pendingBookingRequests;
@@ -49,6 +49,10 @@ var toggle = function (_a) {
49
49
  data: { enabled: enabled },
50
50
  });
51
51
  };
52
+ var remove = function (connectionId) { return ({
53
+ url: "/integrations/".concat(connectionId),
54
+ method: 'DELETE',
55
+ }); };
52
56
  var createRequest = function (data) { return ({
53
57
  url: '/integrations/requests',
54
58
  method: 'POST',
@@ -128,6 +132,7 @@ exports.integrationsV2ApiDeclaration = {
128
132
  matchResource: matchResource,
129
133
  recheck: recheck,
130
134
  toggle: toggle,
135
+ remove: remove,
131
136
  createRequest: createRequest,
132
137
  myRequests: myRequests,
133
138
  pendingBookingRequests: pendingBookingRequests,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "2.1.17",
3
+ "version": "2.1.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,10 +12,10 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "652b54103811e11143cc5a3ed93ce813ed38f22b",
15
+ "gitHead": "acba2e6aea71867d7e53d75398262592238882f6",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.1.16",
18
- "@escapenavigator/utils": "^2.1.17",
17
+ "@escapenavigator/types": "^2.1.18",
18
+ "@escapenavigator/utils": "^2.1.19",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",