btrz-api-client 7.25.0 → 7.27.0

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.
@@ -119,55 +119,26 @@ function usersFactory(_ref) {
119
119
  });
120
120
  }
121
121
 
122
- function delegation(_ref10) {
123
- var token = _ref10.token,
124
- jwtToken = _ref10.jwtToken,
125
- actionName = _ref10.actionName,
126
- delegator = _ref10.delegator,
127
- headers = _ref10.headers;
128
-
129
- return client({
130
- url: "/users/delegation",
131
- method: "post",
132
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
133
- data: { actionName: actionName, delegator: delegator }
134
- });
135
- }
136
-
137
- function revokeDelegation(_ref11) {
138
- var token = _ref11.token,
139
- jwtToken = _ref11.jwtToken,
140
- actionName = _ref11.actionName,
141
- headers = _ref11.headers;
142
-
143
- return client({
144
- url: "/users/delegation",
145
- method: "delete",
146
- headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
147
- data: { actionName: actionName }
148
- });
149
- }
150
-
151
122
  var sequences = {
152
- get: function get(_ref12) {
153
- var token = _ref12.token,
154
- jwtToken = _ref12.jwtToken,
155
- userId = _ref12.userId,
156
- sequenceId = _ref12.sequenceId,
157
- headers = _ref12.headers;
123
+ get: function get(_ref10) {
124
+ var token = _ref10.token,
125
+ jwtToken = _ref10.jwtToken,
126
+ userId = _ref10.userId,
127
+ sequenceId = _ref10.sequenceId,
128
+ headers = _ref10.headers;
158
129
 
159
130
  return client({
160
131
  url: "/users/" + userId + "/sequences/" + sequenceId,
161
132
  headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
162
133
  });
163
134
  },
164
- all: function all(_ref13) {
165
- var token = _ref13.token,
166
- jwtToken = _ref13.jwtToken,
167
- userId = _ref13.userId,
168
- _ref13$query = _ref13.query,
169
- query = _ref13$query === undefined ? {} : _ref13$query,
170
- headers = _ref13.headers;
135
+ all: function all(_ref11) {
136
+ var token = _ref11.token,
137
+ jwtToken = _ref11.jwtToken,
138
+ userId = _ref11.userId,
139
+ _ref11$query = _ref11.query,
140
+ query = _ref11$query === undefined ? {} : _ref11$query,
141
+ headers = _ref11.headers;
171
142
 
172
143
  return client({
173
144
  url: "/users/" + userId + "/sequences",
@@ -175,12 +146,12 @@ function usersFactory(_ref) {
175
146
  headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
176
147
  });
177
148
  },
178
- create: function create(_ref14) {
179
- var jwtToken = _ref14.jwtToken,
180
- token = _ref14.token,
181
- userId = _ref14.userId,
182
- sequence = _ref14.sequence,
183
- headers = _ref14.headers;
149
+ create: function create(_ref12) {
150
+ var jwtToken = _ref12.jwtToken,
151
+ token = _ref12.token,
152
+ userId = _ref12.userId,
153
+ sequence = _ref12.sequence,
154
+ headers = _ref12.headers;
184
155
 
185
156
  return client({
186
157
  url: "/users/" + userId + "/sequences",
@@ -189,13 +160,13 @@ function usersFactory(_ref) {
189
160
  data: sequence
190
161
  });
191
162
  },
192
- update: function update(_ref15) {
193
- var jwtToken = _ref15.jwtToken,
194
- token = _ref15.token,
195
- userId = _ref15.userId,
196
- sequenceId = _ref15.sequenceId,
197
- sequence = _ref15.sequence,
198
- headers = _ref15.headers;
163
+ update: function update(_ref13) {
164
+ var jwtToken = _ref13.jwtToken,
165
+ token = _ref13.token,
166
+ userId = _ref13.userId,
167
+ sequenceId = _ref13.sequenceId,
168
+ sequence = _ref13.sequence,
169
+ headers = _ref13.headers;
199
170
 
200
171
  return client({
201
172
  url: "/users/" + userId + "/sequences/" + sequenceId,
@@ -204,13 +175,13 @@ function usersFactory(_ref) {
204
175
  data: sequence
205
176
  });
206
177
  },
207
- transfer: function transfer(_ref16) {
208
- var jwtToken = _ref16.jwtToken,
209
- token = _ref16.token,
210
- userId = _ref16.userId,
211
- sequenceId = _ref16.sequenceId,
212
- newUserId = _ref16.newUserId,
213
- headers = _ref16.headers;
178
+ transfer: function transfer(_ref14) {
179
+ var jwtToken = _ref14.jwtToken,
180
+ token = _ref14.token,
181
+ userId = _ref14.userId,
182
+ sequenceId = _ref14.sequenceId,
183
+ newUserId = _ref14.newUserId,
184
+ headers = _ref14.headers;
214
185
 
215
186
  return client({
216
187
  url: "/users/" + userId + "/sequences/" + sequenceId,
@@ -233,8 +204,6 @@ function usersFactory(_ref) {
233
204
  update: update,
234
205
  createOrUpdateMany: createOrUpdateMany,
235
206
  impersonate: impersonate,
236
- delegation: delegation,
237
- revokeDelegation: revokeDelegation,
238
207
  sequences: sequences
239
208
  };
240
209
  }
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
4
+
3
5
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4
6
 
5
7
  var constants = require("../constants");
@@ -31,14 +33,18 @@ function authorizationHeaders(_ref) {
31
33
 
32
34
  try {
33
35
  if (headers && (typeof headers === "undefined" ? "undefined" : _typeof(headers)) === "object" && !Array.isArray(headers)) {
34
- Object.keys(headers).forEach(function (key) {
36
+ Object.entries(headers).forEach(function (_ref2) {
37
+ var _ref3 = _slicedToArray(_ref2, 2),
38
+ key = _ref3[0],
39
+ value = _ref3[1];
40
+
35
41
  if (_headers[key]) {
36
42
  return;
37
43
  }
38
- if (key === "x-amzn-trace-id") {
39
- if (headers[key]) {
40
- _headers[key] = headers[key];
41
- }
44
+ if (key === "x-amzn-trace-id" && value) {
45
+ _headers[key] = headers[key];
46
+ } else if (key === "x-elevation-token") {
47
+ _headers[key] = headers[key];
42
48
  }
43
49
  });
44
50
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _require = require("./../endpoints_helpers"),
3
+ var _require = require("./../endpoints_helpers.js"),
4
4
  authorizationHeaders = _require.authorizationHeaders;
5
5
 
6
6
  function schedulesFactory(_ref) {
@@ -117,13 +117,65 @@ function schedulesFactory(_ref) {
117
117
  }
118
118
  };
119
119
 
120
+ var exceptions = {
121
+ create: function create(_ref9) {
122
+ var token = _ref9.token,
123
+ jwtToken = _ref9.jwtToken,
124
+ data = _ref9.data,
125
+ scheduleId = _ref9.scheduleId,
126
+ headers = _ref9.headers;
127
+
128
+ return client({
129
+ url: "/schedules/" + scheduleId + "/schedule-exceptions",
130
+ method: "post",
131
+ headers: authorizationHeaders({
132
+ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
133
+ }),
134
+ data: data
135
+ });
136
+ },
137
+ delete: function _delete(_ref10) {
138
+ var token = _ref10.token,
139
+ jwtToken = _ref10.jwtToken,
140
+ scheduleId = _ref10.scheduleId,
141
+ exceptionId = _ref10.exceptionId,
142
+ headers = _ref10.headers;
143
+
144
+ return client({
145
+ url: "/schedules/" + scheduleId + "/schedule-exceptions/" + exceptionId,
146
+ method: "delete",
147
+ headers: authorizationHeaders({
148
+ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
149
+ })
150
+ });
151
+ },
152
+ update: function update(_ref11) {
153
+ var token = _ref11.token,
154
+ jwtToken = _ref11.jwtToken,
155
+ data = _ref11.data,
156
+ scheduleId = _ref11.scheduleId,
157
+ exceptionId = _ref11.exceptionId,
158
+ headers = _ref11.headers;
159
+
160
+ return client({
161
+ url: "/schedules/" + scheduleId + "/schedule-exceptions/" + exceptionId,
162
+ method: "put",
163
+ headers: authorizationHeaders({
164
+ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
165
+ }),
166
+ data: data
167
+ });
168
+ }
169
+ };
170
+
120
171
  return {
121
172
  all: all,
122
173
  get: get,
123
174
  create: create,
124
175
  update: update,
125
176
  delete: deleteSchedule,
126
- autoBouncing: autoBouncing
177
+ autoBouncing: autoBouncing,
178
+ exceptions: exceptions
127
179
  };
128
180
  }
129
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btrz-api-client",
3
- "version": "7.25.0",
3
+ "version": "7.27.0",
4
4
  "description": "Api client for Betterez endpoints",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -65,24 +65,6 @@ function usersFactory({client, internalAuthTokenProvider}) {
65
65
  });
66
66
  }
67
67
 
68
- function delegation({token, jwtToken, actionName, delegator, headers}) {
69
- return client({
70
- url: "/users/delegation",
71
- method: "post",
72
- headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
73
- data: {actionName, delegator}
74
- });
75
- }
76
-
77
- function revokeDelegation({token, jwtToken, actionName, headers}) {
78
- return client({
79
- url: "/users/delegation",
80
- method: "delete",
81
- headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
82
- data: {actionName}
83
- });
84
- }
85
-
86
68
  const sequences = {
87
69
  get({token, jwtToken, userId, sequenceId, headers}) {
88
70
  return client({
@@ -135,8 +117,6 @@ function usersFactory({client, internalAuthTokenProvider}) {
135
117
  update,
136
118
  createOrUpdateMany,
137
119
  impersonate,
138
- delegation,
139
- revokeDelegation,
140
120
  sequences
141
121
  };
142
122
  }
@@ -25,14 +25,14 @@ function authorizationHeaders({
25
25
 
26
26
  try {
27
27
  if (headers && typeof headers === "object" && !Array.isArray(headers)) {
28
- Object.keys(headers).forEach((key) => {
28
+ Object.entries(headers).forEach(([key, value]) => {
29
29
  if (_headers[key]) {
30
30
  return;
31
31
  }
32
- if (key === "x-amzn-trace-id") {
33
- if (headers[key]) {
34
- _headers[key] = headers[key];
35
- }
32
+ if (key === "x-amzn-trace-id" && value) {
33
+ _headers[key] = headers[key];
34
+ } else if (key === "x-elevation-token") {
35
+ _headers[key] = headers[key];
36
36
  }
37
37
  });
38
38
  }
@@ -1,4 +1,4 @@
1
- const {authorizationHeaders} = require("./../endpoints_helpers");
1
+ const {authorizationHeaders} = require("./../endpoints_helpers.js");
2
2
 
3
3
  function schedulesFactory({client, internalAuthTokenProvider}) {
4
4
  function all({token, query = {}, headers}) {
@@ -69,13 +69,46 @@ function schedulesFactory({client, internalAuthTokenProvider}) {
69
69
  }
70
70
  };
71
71
 
72
+ const exceptions = {
73
+ create: ({token, jwtToken, data, scheduleId, headers}) => {
74
+ return client({
75
+ url: `/schedules/${scheduleId}/schedule-exceptions`,
76
+ method: "post",
77
+ headers: authorizationHeaders({
78
+ token, jwtToken, internalAuthTokenProvider, headers
79
+ }),
80
+ data
81
+ });
82
+ },
83
+ delete: ({token, jwtToken, scheduleId, exceptionId, headers}) => {
84
+ return client({
85
+ url: `/schedules/${scheduleId}/schedule-exceptions/${exceptionId}`,
86
+ method: "delete",
87
+ headers: authorizationHeaders({
88
+ token, jwtToken, internalAuthTokenProvider, headers
89
+ })
90
+ });
91
+ },
92
+ update: ({token, jwtToken, data, scheduleId, exceptionId, headers}) => {
93
+ return client({
94
+ url: `/schedules/${scheduleId}/schedule-exceptions/${exceptionId}`,
95
+ method: "put",
96
+ headers: authorizationHeaders({
97
+ token, jwtToken, internalAuthTokenProvider, headers
98
+ }),
99
+ data
100
+ });
101
+ }
102
+ };
103
+
72
104
  return {
73
105
  all,
74
106
  get,
75
107
  create,
76
108
  update,
77
109
  delete: deleteSchedule,
78
- autoBouncing
110
+ autoBouncing,
111
+ exceptions
79
112
  };
80
113
  }
81
114
 
@@ -94,50 +94,6 @@ describe("accounts/user/{id}", () => {
94
94
  });
95
95
  });
96
96
 
97
- it("should delegate permissions to a user", () => {
98
- axiosMock.onPost("/users/delegation").reply(
99
- expectRequest({
100
- statusCode: 200,
101
- token,
102
- jwtToken,
103
- body: {
104
- actionName: "exceed_ticket_movement_limit",
105
- delegator: {
106
- email: "some_email@betterez.com",
107
- password: "some_password"
108
- }
109
- }
110
- })
111
- );
112
- return api.accounts.users.delegation({
113
- jwtToken,
114
- token,
115
- actionName: "exceed_ticket_movement_limit",
116
- delegator: {
117
- email: "some_email@betterez.com",
118
- password: "some_password"
119
- }
120
- });
121
- });
122
-
123
- it("should revoke permissions previously delegated to a user", () => {
124
- axiosMock.onDelete("/users/delegation").reply(
125
- expectRequest({
126
- statusCode: 200,
127
- token,
128
- jwtToken,
129
- body: {
130
- actionName: "exceed_ticket_movement_limit"
131
- }
132
- })
133
- );
134
- return api.accounts.users.revokeDelegation({
135
- jwtToken,
136
- token,
137
- actionName: "exceed_ticket_movement_limit"
138
- });
139
- });
140
-
141
97
  it("should return user sequence", () => {
142
98
  const sequenceId = "123";
143
99
  const userId = "1234321";
@@ -115,6 +115,19 @@ describe("endpoints helpers", () => {
115
115
  expect(headers).to.not.haveOwnProperty("x-amzn-trace-id");
116
116
  expect(headers).to.deep.equal({});
117
117
  });
118
+
119
+ it("should add the x-elevation-token header if it is provided in the 'headers' argument", () => {
120
+ const newHeaders = {
121
+ "test-header": "123",
122
+ "x-elevation-token": "ABCDEF"
123
+ };
124
+
125
+ const headers = authorizationHeaders({headers: newHeaders});
126
+
127
+ expect(headers).to.deep.equal({
128
+ "x-elevation-token": "ABCDEF"
129
+ });
130
+ });
118
131
  });
119
132
  });
120
133
  });
@@ -1,5 +1,5 @@
1
- const {axiosMock, expectRequest} = require("./../../test-helpers");
2
- const api = require("./../../../src/client").createApiClient({baseURL: "http://test.com"});
1
+ const {axiosMock, expectRequest} = require("./../../test-helpers.js");
2
+ const api = require("./../../../src/client.js").createApiClient({baseURL: "http://test.com"});
3
3
 
4
4
  describe("inventory/routes/shedules", () => {
5
5
  const token = "I owe you a token";
@@ -64,7 +64,7 @@ describe("inventory/routes/shedules", () => {
64
64
  });
65
65
 
66
66
  it("should add auto bouncing data to the schedules", () => {
67
- axiosMock.onPost(`/routes/schedules/auto-bouncing`).reply(expectRequest({
67
+ axiosMock.onPost("/routes/schedules/auto-bouncing").reply(expectRequest({
68
68
  statusCode: 200, token, jwtToken
69
69
  }));
70
70
  return api.inventory.schedules.autoBouncing.create({token, jwtToken, data});
@@ -74,4 +74,25 @@ describe("inventory/routes/shedules", () => {
74
74
  axiosMock.onDelete(`/routes/${routeId}/schedules/${scheduleId}/auto-bouncing`).reply(expectRequest({statusCode: 200, token, jwtToken}));
75
75
  return api.inventory.schedules.autoBouncing.delete({token, jwtToken, routeId, parentScheduleId: scheduleId});
76
76
  });
77
+
78
+ it("should create a schedule exception", () => {
79
+ axiosMock.onPost(`/schedules/${scheduleId}/schedule-exceptions`).reply(expectRequest({
80
+ statusCode: 200, token, jwtToken
81
+ }));
82
+ return api.inventory.schedules.exceptions.create({token, jwtToken, data, scheduleId});
83
+ });
84
+
85
+ it("should delete a schedule exception", async () => {
86
+ const exceptionId = "exception123";
87
+ axiosMock.onDelete(`/schedules/${scheduleId}/schedule-exceptions/${exceptionId}`)
88
+ .reply(expectRequest({statusCode: 200, token, jwtToken}));
89
+ return api.inventory.schedules.exceptions.delete({token, jwtToken, scheduleId, exceptionId});
90
+ });
91
+
92
+ it("should update a schedule exception", async () => {
93
+ const exceptionId = "exception123";
94
+ axiosMock.onPut(`/schedules/${scheduleId}/schedule-exceptions/${exceptionId}`)
95
+ .reply(expectRequest({statusCode: 200, token, jwtToken}));
96
+ return api.inventory.schedules.exceptions.update({token, jwtToken, data, scheduleId, exceptionId});
97
+ });
77
98
  });
package/types/client.d.ts CHANGED
@@ -1432,6 +1432,30 @@ export function createApiClient(options: {
1432
1432
  headers: any;
1433
1433
  }) => any;
1434
1434
  };
1435
+ exceptions: {
1436
+ create: ({ token, jwtToken, data, scheduleId, headers }: {
1437
+ token: any;
1438
+ jwtToken: any;
1439
+ data: any;
1440
+ scheduleId: any;
1441
+ headers: any;
1442
+ }) => any;
1443
+ delete: ({ token, jwtToken, scheduleId, exceptionId, headers }: {
1444
+ token: any;
1445
+ jwtToken: any;
1446
+ scheduleId: any;
1447
+ exceptionId: any;
1448
+ headers: any;
1449
+ }) => any;
1450
+ update: ({ token, jwtToken, data, scheduleId, exceptionId, headers }: {
1451
+ token: any;
1452
+ jwtToken: any;
1453
+ data: any;
1454
+ scheduleId: any;
1455
+ exceptionId: any;
1456
+ headers: any;
1457
+ }) => any;
1458
+ };
1435
1459
  };
1436
1460
  seatClasses: {
1437
1461
  all: ({ token, jwtToken, query, headers }: {
@@ -3024,19 +3048,6 @@ export function createApiClient(options: {
3024
3048
  offlineUserId: any;
3025
3049
  headers: any;
3026
3050
  }) => any;
3027
- delegation: ({ token, jwtToken, actionName, delegator, headers }: {
3028
- token: any;
3029
- jwtToken: any;
3030
- actionName: any;
3031
- delegator: any;
3032
- headers: any;
3033
- }) => any;
3034
- revokeDelegation: ({ token, jwtToken, actionName, headers }: {
3035
- token: any;
3036
- jwtToken: any;
3037
- actionName: any;
3038
- headers: any;
3039
- }) => any;
3040
3051
  sequences: {
3041
3052
  get({ token, jwtToken, userId, sequenceId, headers }: {
3042
3053
  token: any;
@@ -44,19 +44,6 @@ declare function usersFactory({ client, internalAuthTokenProvider }: {
44
44
  offlineUserId: any;
45
45
  headers: any;
46
46
  }) => any;
47
- delegation: ({ token, jwtToken, actionName, delegator, headers }: {
48
- token: any;
49
- jwtToken: any;
50
- actionName: any;
51
- delegator: any;
52
- headers: any;
53
- }) => any;
54
- revokeDelegation: ({ token, jwtToken, actionName, headers }: {
55
- token: any;
56
- jwtToken: any;
57
- actionName: any;
58
- headers: any;
59
- }) => any;
60
47
  sequences: {
61
48
  get({ token, jwtToken, userId, sequenceId, headers }: {
62
49
  token: any;
@@ -52,4 +52,28 @@ declare function schedulesFactory({ client, internalAuthTokenProvider }: {
52
52
  headers: any;
53
53
  }) => any;
54
54
  };
55
+ exceptions: {
56
+ create: ({ token, jwtToken, data, scheduleId, headers }: {
57
+ token: any;
58
+ jwtToken: any;
59
+ data: any;
60
+ scheduleId: any;
61
+ headers: any;
62
+ }) => any;
63
+ delete: ({ token, jwtToken, scheduleId, exceptionId, headers }: {
64
+ token: any;
65
+ jwtToken: any;
66
+ scheduleId: any;
67
+ exceptionId: any;
68
+ headers: any;
69
+ }) => any;
70
+ update: ({ token, jwtToken, data, scheduleId, exceptionId, headers }: {
71
+ token: any;
72
+ jwtToken: any;
73
+ data: any;
74
+ scheduleId: any;
75
+ exceptionId: any;
76
+ headers: any;
77
+ }) => any;
78
+ };
55
79
  };
@@ -1386,6 +1386,30 @@ declare const _exports: {
1386
1386
  headers: any;
1387
1387
  }) => any;
1388
1388
  };
1389
+ exceptions: {
1390
+ create: ({ token, jwtToken, data, scheduleId, headers }: {
1391
+ token: any;
1392
+ jwtToken: any;
1393
+ data: any;
1394
+ scheduleId: any;
1395
+ headers: any;
1396
+ }) => any;
1397
+ delete: ({ token, jwtToken, scheduleId, exceptionId, headers }: {
1398
+ token: any;
1399
+ jwtToken: any;
1400
+ scheduleId: any;
1401
+ exceptionId: any;
1402
+ headers: any;
1403
+ }) => any;
1404
+ update: ({ token, jwtToken, data, scheduleId, exceptionId, headers }: {
1405
+ token: any;
1406
+ jwtToken: any;
1407
+ data: any;
1408
+ scheduleId: any;
1409
+ exceptionId: any;
1410
+ headers: any;
1411
+ }) => any;
1412
+ };
1389
1413
  };
1390
1414
  seatClasses: {
1391
1415
  all: ({ token, jwtToken, query, headers }: {
@@ -2978,19 +3002,6 @@ declare const _exports: {
2978
3002
  offlineUserId: any;
2979
3003
  headers: any;
2980
3004
  }) => any;
2981
- delegation: ({ token, jwtToken, actionName, delegator, headers }: {
2982
- token: any;
2983
- jwtToken: any;
2984
- actionName: any;
2985
- delegator: any;
2986
- headers: any;
2987
- }) => any;
2988
- revokeDelegation: ({ token, jwtToken, actionName, headers }: {
2989
- token: any;
2990
- jwtToken: any;
2991
- actionName: any;
2992
- headers: any;
2993
- }) => any;
2994
3005
  sequences: {
2995
3006
  get({ token, jwtToken, userId, sequenceId, headers }: {
2996
3007
  token: any;