btrz-api-client 7.26.0 → 7.28.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.
- package/lib/client-standalone-min.js +3 -3
- package/lib/endpoints/accounts/users.js +33 -64
- package/lib/endpoints/endpoints_helpers.js +11 -5
- package/lib/endpoints/inventory/routes.js +40 -24
- package/package.json +1 -1
- package/src/endpoints/accounts/users.js +0 -20
- package/src/endpoints/endpoints_helpers.js +5 -5
- package/src/endpoints/inventory/routes.js +10 -0
- package/test/endpoints/accounts/users.js +0 -44
- package/test/endpoints/endpoints_helpers.test.js +13 -0
- package/test/endpoints/inventory/routes.test.js +23 -0
- package/types/client.d.ts +6 -13
- package/types/endpoints/accounts/users.d.ts +0 -13
- package/types/endpoints/inventory/routes.d.ts +6 -0
- package/types/initializedClient.d.ts +6 -13
|
@@ -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(
|
|
153
|
-
var token =
|
|
154
|
-
jwtToken =
|
|
155
|
-
userId =
|
|
156
|
-
sequenceId =
|
|
157
|
-
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(
|
|
165
|
-
var token =
|
|
166
|
-
jwtToken =
|
|
167
|
-
userId =
|
|
168
|
-
|
|
169
|
-
query =
|
|
170
|
-
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(
|
|
179
|
-
var jwtToken =
|
|
180
|
-
token =
|
|
181
|
-
userId =
|
|
182
|
-
sequence =
|
|
183
|
-
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(
|
|
193
|
-
var jwtToken =
|
|
194
|
-
token =
|
|
195
|
-
userId =
|
|
196
|
-
sequenceId =
|
|
197
|
-
sequence =
|
|
198
|
-
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(
|
|
208
|
-
var jwtToken =
|
|
209
|
-
token =
|
|
210
|
-
userId =
|
|
211
|
-
sequenceId =
|
|
212
|
-
newUserId =
|
|
213
|
-
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.
|
|
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
|
-
|
|
40
|
-
|
|
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
|
}
|
|
@@ -95,12 +95,27 @@ function routesFactory(_ref) {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
function remove(_ref8) {
|
|
99
|
+
var token = _ref8.token,
|
|
100
|
+
jwtToken = _ref8.jwtToken,
|
|
101
|
+
routeId = _ref8.routeId,
|
|
102
|
+
headers = _ref8.headers;
|
|
103
|
+
|
|
104
|
+
return client({
|
|
105
|
+
url: "/routes/" + routeId,
|
|
106
|
+
method: "delete",
|
|
107
|
+
headers: authorizationHeaders({
|
|
108
|
+
token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
98
113
|
var fareTables = {
|
|
99
|
-
all: function all(
|
|
100
|
-
var token =
|
|
101
|
-
|
|
102
|
-
query =
|
|
103
|
-
headers =
|
|
114
|
+
all: function all(_ref9) {
|
|
115
|
+
var token = _ref9.token,
|
|
116
|
+
_ref9$query = _ref9.query,
|
|
117
|
+
query = _ref9$query === undefined ? {} : _ref9$query,
|
|
118
|
+
headers = _ref9.headers;
|
|
104
119
|
|
|
105
120
|
return client({
|
|
106
121
|
url: "/routes/fare-tables",
|
|
@@ -110,12 +125,12 @@ function routesFactory(_ref) {
|
|
|
110
125
|
})
|
|
111
126
|
});
|
|
112
127
|
},
|
|
113
|
-
create: function create(
|
|
114
|
-
var token =
|
|
115
|
-
jwtToken =
|
|
116
|
-
routeId =
|
|
117
|
-
fareTable =
|
|
118
|
-
headers =
|
|
128
|
+
create: function create(_ref10) {
|
|
129
|
+
var token = _ref10.token,
|
|
130
|
+
jwtToken = _ref10.jwtToken,
|
|
131
|
+
routeId = _ref10.routeId,
|
|
132
|
+
fareTable = _ref10.fareTable,
|
|
133
|
+
headers = _ref10.headers;
|
|
119
134
|
|
|
120
135
|
return client({
|
|
121
136
|
url: "/routes/" + routeId + "/fare-tables",
|
|
@@ -128,13 +143,13 @@ function routesFactory(_ref) {
|
|
|
128
143
|
}
|
|
129
144
|
});
|
|
130
145
|
},
|
|
131
|
-
update: function update(
|
|
132
|
-
var token =
|
|
133
|
-
jwtToken =
|
|
134
|
-
routeId =
|
|
135
|
-
fareTableId =
|
|
136
|
-
fareTable =
|
|
137
|
-
headers =
|
|
146
|
+
update: function update(_ref11) {
|
|
147
|
+
var token = _ref11.token,
|
|
148
|
+
jwtToken = _ref11.jwtToken,
|
|
149
|
+
routeId = _ref11.routeId,
|
|
150
|
+
fareTableId = _ref11.fareTableId,
|
|
151
|
+
fareTable = _ref11.fareTable,
|
|
152
|
+
headers = _ref11.headers;
|
|
138
153
|
|
|
139
154
|
return client({
|
|
140
155
|
url: "/routes/" + routeId + "/fare-tables/" + fareTableId,
|
|
@@ -149,12 +164,12 @@ function routesFactory(_ref) {
|
|
|
149
164
|
}
|
|
150
165
|
};
|
|
151
166
|
var stops = {
|
|
152
|
-
create: function create(
|
|
153
|
-
var token =
|
|
154
|
-
jwtToken =
|
|
155
|
-
routeId =
|
|
156
|
-
stop =
|
|
157
|
-
headers =
|
|
167
|
+
create: function create(_ref12) {
|
|
168
|
+
var token = _ref12.token,
|
|
169
|
+
jwtToken = _ref12.jwtToken,
|
|
170
|
+
routeId = _ref12.routeId,
|
|
171
|
+
stop = _ref12.stop,
|
|
172
|
+
headers = _ref12.headers;
|
|
158
173
|
|
|
159
174
|
return client({
|
|
160
175
|
url: "/routes/" + routeId + "/stops",
|
|
@@ -174,6 +189,7 @@ function routesFactory(_ref) {
|
|
|
174
189
|
stations: stations,
|
|
175
190
|
create: create,
|
|
176
191
|
update: update,
|
|
192
|
+
remove: remove,
|
|
177
193
|
fareTables: fareTables,
|
|
178
194
|
stops: stops
|
|
179
195
|
};
|
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
34
|
-
|
|
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
|
}
|
|
@@ -55,6 +55,15 @@ function routesFactory({client, internalAuthTokenProvider}) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
function remove({token, jwtToken, routeId, headers}) {
|
|
59
|
+
return client({
|
|
60
|
+
url: `/routes/${routeId}`,
|
|
61
|
+
method: "delete",
|
|
62
|
+
headers: authorizationHeaders({
|
|
63
|
+
token, jwtToken, internalAuthTokenProvider, headers
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
}
|
|
58
67
|
|
|
59
68
|
const fareTables = {
|
|
60
69
|
all({
|
|
@@ -117,6 +126,7 @@ function routesFactory({client, internalAuthTokenProvider}) {
|
|
|
117
126
|
stations,
|
|
118
127
|
create,
|
|
119
128
|
update,
|
|
129
|
+
remove,
|
|
120
130
|
fareTables,
|
|
121
131
|
stops
|
|
122
132
|
};
|
|
@@ -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
|
});
|
|
@@ -83,4 +83,27 @@ describe("inventory/route", () => {
|
|
|
83
83
|
token, jwtToken, routeId, stop
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
+
|
|
87
|
+
it("should update a route", () => {
|
|
88
|
+
const routeId = "507f1f77bcf86cd799439011";
|
|
89
|
+
const data = {
|
|
90
|
+
name: "Updated Route Name"
|
|
91
|
+
};
|
|
92
|
+
axiosMock.onPut(`/routes/${routeId}`).reply(expectRequest({
|
|
93
|
+
statusCode: 200, token, jwtToken
|
|
94
|
+
}));
|
|
95
|
+
return api.inventory.routes.update({
|
|
96
|
+
token, jwtToken, routeId, data
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it("should delete a route", () => {
|
|
101
|
+
const routeId = "507f1f77bcf86cd799439011";
|
|
102
|
+
axiosMock.onDelete(`/routes/${routeId}`).reply(expectRequest({
|
|
103
|
+
statusCode: 200, token, jwtToken
|
|
104
|
+
}));
|
|
105
|
+
return api.inventory.routes.remove({
|
|
106
|
+
token, jwtToken, routeId
|
|
107
|
+
});
|
|
108
|
+
});
|
|
86
109
|
});
|
package/types/client.d.ts
CHANGED
|
@@ -1322,6 +1322,12 @@ export function createApiClient(options: {
|
|
|
1322
1322
|
routeId: any;
|
|
1323
1323
|
headers: any;
|
|
1324
1324
|
}) => any;
|
|
1325
|
+
remove: ({ token, jwtToken, routeId, headers }: {
|
|
1326
|
+
token: any;
|
|
1327
|
+
jwtToken: any;
|
|
1328
|
+
routeId: any;
|
|
1329
|
+
headers: any;
|
|
1330
|
+
}) => any;
|
|
1325
1331
|
fareTables: {
|
|
1326
1332
|
all({ token, query, headers }: {
|
|
1327
1333
|
token: any;
|
|
@@ -3048,19 +3054,6 @@ export function createApiClient(options: {
|
|
|
3048
3054
|
offlineUserId: any;
|
|
3049
3055
|
headers: any;
|
|
3050
3056
|
}) => any;
|
|
3051
|
-
delegation: ({ token, jwtToken, actionName, delegator, headers }: {
|
|
3052
|
-
token: any;
|
|
3053
|
-
jwtToken: any;
|
|
3054
|
-
actionName: any;
|
|
3055
|
-
delegator: any;
|
|
3056
|
-
headers: any;
|
|
3057
|
-
}) => any;
|
|
3058
|
-
revokeDelegation: ({ token, jwtToken, actionName, headers }: {
|
|
3059
|
-
token: any;
|
|
3060
|
-
jwtToken: any;
|
|
3061
|
-
actionName: any;
|
|
3062
|
-
headers: any;
|
|
3063
|
-
}) => any;
|
|
3064
3057
|
sequences: {
|
|
3065
3058
|
get({ token, jwtToken, userId, sequenceId, headers }: {
|
|
3066
3059
|
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;
|
|
@@ -41,6 +41,12 @@ declare function routesFactory({ client, internalAuthTokenProvider }: {
|
|
|
41
41
|
routeId: any;
|
|
42
42
|
headers: any;
|
|
43
43
|
}) => any;
|
|
44
|
+
remove: ({ token, jwtToken, routeId, headers }: {
|
|
45
|
+
token: any;
|
|
46
|
+
jwtToken: any;
|
|
47
|
+
routeId: any;
|
|
48
|
+
headers: any;
|
|
49
|
+
}) => any;
|
|
44
50
|
fareTables: {
|
|
45
51
|
all({ token, query, headers }: {
|
|
46
52
|
token: any;
|
|
@@ -1276,6 +1276,12 @@ declare const _exports: {
|
|
|
1276
1276
|
routeId: any;
|
|
1277
1277
|
headers: any;
|
|
1278
1278
|
}) => any;
|
|
1279
|
+
remove: ({ token, jwtToken, routeId, headers }: {
|
|
1280
|
+
token: any;
|
|
1281
|
+
jwtToken: any;
|
|
1282
|
+
routeId: any;
|
|
1283
|
+
headers: any;
|
|
1284
|
+
}) => any;
|
|
1279
1285
|
fareTables: {
|
|
1280
1286
|
all({ token, query, headers }: {
|
|
1281
1287
|
token: any;
|
|
@@ -3002,19 +3008,6 @@ declare const _exports: {
|
|
|
3002
3008
|
offlineUserId: any;
|
|
3003
3009
|
headers: any;
|
|
3004
3010
|
}) => any;
|
|
3005
|
-
delegation: ({ token, jwtToken, actionName, delegator, headers }: {
|
|
3006
|
-
token: any;
|
|
3007
|
-
jwtToken: any;
|
|
3008
|
-
actionName: any;
|
|
3009
|
-
delegator: any;
|
|
3010
|
-
headers: any;
|
|
3011
|
-
}) => any;
|
|
3012
|
-
revokeDelegation: ({ token, jwtToken, actionName, headers }: {
|
|
3013
|
-
token: any;
|
|
3014
|
-
jwtToken: any;
|
|
3015
|
-
actionName: any;
|
|
3016
|
-
headers: any;
|
|
3017
|
-
}) => any;
|
|
3018
3011
|
sequences: {
|
|
3019
3012
|
get({ token, jwtToken, userId, sequenceId, headers }: {
|
|
3020
3013
|
token: any;
|